On 2/6/2014 1:40 PM, Wietse Venema wrote:
Norton Allen:
[ Charset ISO-8859-1 unsupported, converting... ]
I have a server  with virtual_alias_domains and virtual_alias_maps.
Aside from the required administrative aliases, I do not need to accept
mail addressed to the server's hostname.

Now I would like to add Majordomo lists to a couple of my virtual
domains. From the Majordomo HowTo linked Postfix site we have:

     test:           "|/var/majordomo/resend -l test test-list"
     test-list:      :include:/var/majordomo/lists/test
     test-request:   "|/var/majordomo/request-answer test"
     test-approval:  owner-test
     test-owner:     owner-test
     owner-test:     jon

In my case, this would be layered below the virtual aliases:

     test@my.virtual.domain: test-my-virtual-domain
     ...

with the local aliases becoming:

     test-my-virtual-domain:       "|/var/majordomo/resend -l test 
test-my-virtual-domain-list"
     test-my-virtual-domain-list:  :include:/var/majordomo/lists/test
In the pcre_table manpage is a very old example to block mail to
majordomo "internal-only" aliases. It would be used like this:
/etc/postfix/main.cf:
     smtpd_recipient_restrictions =
        permit_mynetworks
        ...
        reject_unauth_destination
        ...
        check_recipient_access pcre:/etc/postfix/pcre

/etc/postfix/smtpd_access.pcre:
     # Protect your outgoing majordomo exploders
     /^(?!owner-)(.*)-outgoing@(.*)/ 550 Use ${1}@${2} instead

You can adopt standard majordomo address convention, or you can
update the regular expression.

        Wietse

Excellent. This has been bothering me for a long time, and it's been hard to put a finger on exactly what is required. I think a key point here (for me anyway) is that smtpd_recipient_restrictions do not apply to mail delivered from localhost because they presumably don't use SMTP. Is that a correct understanding? I think I have been looking for some rule that would look at both the sender and the recipient, but that's just not the way it works.

In any event, thank you very much.

-Norton

Reply via email to