Koozali.org: home of the SME Server

Create user that can't receive mail?

Offline haymann

  • *
  • 212
  • +0/-0
Create user that can't receive mail?
« on: July 20, 2007, 07:54:50 PM »
I am guessing that this has been asked before, but I can't seem to put together search terms that bring me some worthwhile results...

I am wanting to create a user that has no inbox. I want to be able to send mail from that account, but not receive it. I did find this trick to disable mail from outside the network which helps, but I also want to disable from inside the network as well. I am guessing that with a slight change to the code that I mentioned earlier, I would be able to accomplish what I am after.

Could someone point me in the right direction please?
Thanks,
Ryan

Offline mmccarn

  • *
  • 2,626
  • +10/-0
Create user that can't receive mail?
« Reply #1 on: July 20, 2007, 08:04:40 PM »
You could do this by simply entering an invalid email address in your email client.

Is there a reason that you need/want to create a SME account for this at all?

Offline haymann

  • *
  • 212
  • +0/-0
Create user that can't receive mail?
« Reply #2 on: July 20, 2007, 08:33:16 PM »
That is true and I thought about doing it that way, but then thought about a send only option.

It actually started because I have one "client" (he doesn't actually pay me..) that I want to send something to and don't want him to get my email address because I will get all sorts of forwards and requests for help. Then I thought it might be handy to have an announcement type email account that I could send out updates, etc... much like many financial institutions and utility companies do...

Offline Confucius

  • ****
  • 235
  • +0/-0
Create user that can't receive mail?
« Reply #3 on: July 20, 2007, 09:09:23 PM »
There are 100's of PHP (and other) scripts that can serve that purpose. Very easy to use the address noreply@yourdomain.com.

Offline william_syd

  • ****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
Create user that can't receive mail?
« Reply #4 on: July 21, 2007, 03:16:09 AM »
What about the badmailfromto plugin for qpstmp?

Quote
Much like the similar check_badmailfrom, this plugin references both the
FROM: and TO: lines, and if they both are present in the badmailfromto
config file (a tab delimited list of FROM/TO pairs), then the message is
blocked as if the recipient (TO) didn't exist.  This is specifically designed
to not give the impression that the sender is blocked (good for cases of
harassment).

Based heavily on check_badmailfrom.


http://forums.contribs.org/index.php?topic=35667.msg156657#msg156657
Regards,
William

IF I give advise.. It's only if it was me....

Offline haymann

  • *
  • 212
  • +0/-0
Create user that can't receive mail?
« Reply #5 on: July 24, 2007, 05:10:23 PM »
Thanks, I'll look into that.
Ryan

Offline raem

  • *
  • 3,972
  • +4/-0
Re: Create user that can't receive mail?
« Reply #6 on: October 16, 2009, 09:22:54 AM »
Dear all

Re badmailfromto, I added this to the FAQ, which uses a custom template, but needs more work/study to create the code to extract data from a db file.
http://wiki.contribs.org/Email#How_to_block_email_from_one_address_to_another_address_with_check_badmailfromto_plugin
...