OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
Re: accepting mail for postmaster, abuse

From: Wietse Venema (wietseporcupine.org)
Date: Fri Dec 21 2007 - 10:06:17 CST


Andrew Long:
> This server typically accepts no mail from the internet but is a
> selective relay for relay-ip's. This led to problems with not
> accepting abuse and postmaster. With help from group, I created
> /etc/postfix/roleacount (and db) as follows:
> abusehost.domain.com OK
> postmasterhost.domain.com OK
> abusedomain.com OK
> postmasterdomain.com OK

Instead of creating an access map without telling Postfix how
to deliver the mail, create virtual aliases (NOT VIRTUAL ALIAS
DOMAINS) that tell Postfix where to deliver the mail.

/etc/postfix/main.cf:
    virtual_alias_maps = hash:/etc/postfix/virtual

/etc/postfix/virtual:
    abusehost.domain.com abuseexample.com
    postmasterhost.domain.com postmasterexample.com

Where example.com is the domain to sent this mail to.

        Wietse