I would suggest against this, since there is a risk that servers aren't 
supporting this, and might deny the mail, discard it (send it to /dev/null, 
which I do with obvious spam), quarantine it or sort it to the end user's spam 
folder.

Its better to set up a nore...@yourdomain.tld adress set to DISCARD. Doing this 
will also "circumvent" sender adress verification, which some (un-serious) mail 
systems do.

-----Ursprungligt meddelande-----
Från: owner-postfix-us...@postfix.org [mailto:owner-postfix-us...@postfix.org] 
För Darac Marjal
Skickat: den 27 januari 2016 11:26
Till: postfix-users@postfix.org
Ämne: Re: Adding a noreply address [Invalid]

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: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to