On Nov 9, 2023, at 4:32 PM, Wietse Venema via Postfix-users 
<postfix-users@postfix.org> wrote:
> 
> Wietse Venema via Postfix-users:
>> Shaun Erickson via Postfix-users:
>>> mailserver.fd.com :
>>> Accepts all mail from our servers (including itself).
>>> If the mail is destined for fd.com , it is - with the exception
>>> of ab...@fd.com , postmas...@fd.com , and r...@fd.com  - sent
>>> straight to /dev/null.
>>> 
>> /etc/postfix/main.cf:
>>    mydestination = fd.com, localhost, ....
>>    alias_maps = hash:/etc/aliases, static:/dev/null
>> 
>> /etc/aliases:
>>    root: someone@somewhere
>>    abuse: someone@somewhere
>>    ...etc...
>> 
>> Simple problems should have simple solutions.
> 
> However, If this server also receives mail from the internet, a
> more subtle solution is needed. 
> 
> The above would accept mail for any recipient in fd.com <http://fd.com/>. That
> would be wasteful. 
> 
> The example below overrides the default local_recipient_maps setting
> (local_recipient_maps = proxy:unix:passwd.byname $alias_maps) which
> would accept too much.
> 
> /etc/postfix/main.cf:
>    mydestination = fd.com <http://fd.com/>, localhost, ....
>    alias_maps = hash:/etc/aliases, static:/dev/null
>    local_recipient_maps = proxy:unix:passwd.byname hash:/etc/aliases
> 
> /etc/aliases:
>    root: someone@somewhere
>    abuse: someone@somewhere
>    ...etc...
> 
>       Wietse
> _______________________________________________
> Postfix-users mailing list -- postfix-users@postfix.org 
> <mailto:postfix-users@postfix.org>
> To unsubscribe send an email to postfix-users-le...@postfix.org 
> <mailto:postfix-users-le...@postfix.org>
Thank you for your reply, Wietse. I’ll consider this, along with what Victor 
replied with.

-ste
_______________________________________________
Postfix-users mailing list -- postfix-users@postfix.org
To unsubscribe send an email to postfix-users-le...@postfix.org

Reply via email to