On Nov 9, 2023, at 4:32 PM, Wietse Venema via Postfix-users
<[email protected]> 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 [email protected] , [email protected] , and [email protected] - 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 -- [email protected]
> <mailto:[email protected]>
> To unsubscribe send an email to [email protected]
> <mailto:[email protected]>
Thank you for your reply, Wietse. I’ll consider this, along with what Victor
replied with.
-ste
_______________________________________________
Postfix-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]