On Wed, Sep 16, 2020 at 04:39:12PM -0600, Bob Proulx wrote:

> What's the best configuration for a web server that does not receive
> mail but needs to send mail?

Send via a smarthost relay.  Use a valid envelope sender domain that
will receive (and, as appropriate, take note of) bounces.  Use a
valid "From" domain, but perhaps a "noreply" localpart.

For the header RFC2822.From localpart, you have a choice of either
silently discarding or rejecting mail to that address.  It is perhaps
more "friendly" to users who fail to notice the "noreply" localpart
to reject.

    transport:
        nore...@example.org     error:5.1.1 This address does not receive email
        nom...@example.org      discard:silently

The "nomail" variant is for silent discards, and is probably not what
you want in most cases, but is sometimes appropriate.

-- 
    Viktor.

Reply via email to