Koozali.org: home of the SME Server

Obsolete Releases => SME Server 7.x => Topic started by: haymann on July 20, 2007, 07:54:50 PM

Title: Create user that can't receive mail?
Post by: haymann 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 (http://wiki.contribs.org/Email#Disable_mail_to_a_user_from_an_external_network) 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 (http://wiki.contribs.org/Email#Disable_mail_to_a_user_from_an_external_network), I would be able to accomplish what I am after.

Could someone point me in the right direction please?
Thanks,
Ryan
Title: Create user that can't receive mail?
Post by: mmccarn 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?
Title: Create user that can't receive mail?
Post by: haymann 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...
Title: Create user that can't receive mail?
Post by: Confucius 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.
Title: Create user that can't receive mail?
Post by: william_syd 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
Title: Create user that can't receive mail?
Post by: haymann on July 24, 2007, 05:10:23 PM
Thanks, I'll look into that.
Ryan
Title: Re: Create user that can't receive mail?
Post by: raem 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