On Tue, Jan 26, 2016 at 03:54:51PM +0000, Matt Bayliss wrote:
 

I'm trying to find the correct/best practice method for setting up a black hole
email address for such items as "noreply" addresses when sending alerts from
monitoring devices etc. 

RFC 6854 adds the ability to use "Group Addresses" in the sender fields. That is, similar to how you can have "undisclosed recipients", you can have "undisclosed sender". So:

        From: Promotional Mail Bot:;
        To: Bob <b...@example.org>
        Subject: Buy More Widgets!
        Date: 12th of Never

        Hi Bob,

        Don't forget to buy more widgets from us!

        WidgetCo

The list of people in the group is optional, so you could also do:

        From: Doctors Surgery:drn...@example.org,drhibb...@example.org;
        ...

Mind you, I've never actually seen RFC6854-syntax in the wild.


I have come across a couple of tutorials which has instructions such as:

----------------------------------------------------

" edit the /etc/postfix/aliases file and add there as bottom line:

devnull: /dev/null

- rebuild the aliases.db file with the command:

newaliases

- edit the /etc/postfix/virtual file and add as bottom line (replace the [1]
example.com domain with your main virtual domain):

[2]blackh...@example.com devnull

- rebuild virtual.db file with the command:

postmap /etc/postfix/virtual

 

Now create a mail user or alias that is forwarded to [3]blackh...@example.com ... 
that's all!"

----------------------------------------------------

So I don't really want to create a user on the system unless its really
necessary so how would I alias it, is that not already done when editing /etc/
postfix/aliases.p, all I really want is a specific address in the mail domain
to silently accept and drop any mail sent to it.

Error in log isRecipient address rejected: User unknown in local recipient table; 
from=<> to=[4]nore...@domain.com

Thanks,

 


References:

[1] http://example.com/
[2] mailto:blackh...@example.com
[3] mailto:blackh...@example.com
[4] mailto:nore...@domain.com

--
For more information, please reread.

Attachment: signature.asc
Description: PGP signature

Reply via email to