OSEC

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

From: mouss (mlist.onlyfree.fr)
Date: Thu Nov 01 2007 - 09:31:45 CDT


Benny Pedersen wrote:
> On Thu, November 1, 2007 13:01, mouss wrote:
>> reject_unauth_destination
>> check_recipient_access hash:/etc/postfix/roleaccount
>>
>> # cat roleaccount
>> postmasterexample.com OK
>> abuseexample.com OK
>> # postmap roleaccount
>
> sed -i -e s:OK:PERMIT_AUTH_DESTINATION:g /etc/postfix/roleaccount

that may be a taste question. I prefer reject_unauth_destination before,
and not having to use "special" actions.

>
> i personly just add them to aliases,

Look again at the end of his smtpd_recipient_restrictions. There is a
reject. This may not be clear in my quoting.

> will work for multiple hosted domains
> then aswell, just in case one forget to add them as virtual_alias
>
> sendmail -bv postmasterlocalhost
>