Question concerning list of members as relay_recipients in postfix

Hi,
I have recently migrated my old mailman installation to a new based on 2.1.14 with postfix as MTA. The prior one used EXIM.
The mailman server is just part of a big mail complex and located on the inner side of my network
The other parts are GATEWAYS ( postfix based ) and backends ( EXCHANGE based). We use virtual domains ( host around 100 ) domains.
Mail is routed GW => EXCHANGE => Mailman server, so if I have a list in a domain called mydomain@xyz.com<mailto:mydomain@xyz.com> and also a lot of users in that domain, we need to make EXCHG forward any address it can't solve to the Mailman server, to make sure that mail to the list mydomain@xyz.com<mailto:mydomain@xyz.com> is processed.
We could of course let the EXCHG system be authoritative for the domain but that would imply that all mailman addresses Is added as contacts in EXCHG. I'm not the EXCHG guy and when I talk about this......
Because if this I get all garbage mail sent to mydomain@xyz.com<mailto:mydomain@xyz.com> . We have some sort of address control but I can't Avoid some of the garbage.
Due to this I need to make the postfix on the mailman server aware of what addresses to handle and reject anything else.
This is not a big problem but before I dig into this and make a script I would ask if this is already done.
I have the listnames in virtual-mailman and can get a list of members with the script list_members.
Any hints ?
Best regards
Peter Sorensen/Univ.Of.South.Denmark/Email: maspsr@sdu.dk

On 6/15/2011 11:52 PM, Peter Sørensen wrote:
Due to this I need to make the postfix on the mailman server aware of what addresses to handle and reject anything else.
This is not a big problem but before I dig into this and make a script I would ask if this is already done.
I have the listnames in virtual-mailman and can get a list of members with the script list_members.
I don't understand the problem? Doesn't Postfix already reject mail for unknown recipients? The only Mailman recipients are the listname(-*)@... addresses that Postfix already knows via data/virtual-mailman and data/aliases. If there are also list members on the mailman server, they should have mailboxes or be otherwise deliverable. The only Mailman related mail to list members is outgoing mail.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan

The problem is that I use the GW as a smtp relay for the mailman server so when the GW receive a mail for an address in mydomain@xyz.com this is forwarded to the EXCHG system and because EXCHG is'nt authorative for the domain because we also handle mailman list created in this domain unknown adresses is forwarded to the mailman server. If this is'nt for a list this would be redirectet back to the GW because the mail servers use this as a smtp relay. Therefore I need to make this server aware of adsresses it should accept mail for.
Hope this clarify what I want to achieve.
regards
Peter
Fra: Mark Sapiro [mark@msapiro.net] Sendt: 16. juni 2011 17:30 Til: Peter Sørensen Cc: mailman-users@python.org Emne: Re: [Mailman-Users] Question concerning list of members as relay_recipients in postfix
On 6/15/2011 11:52 PM, Peter Sørensen wrote:
Due to this I need to make the postfix on the mailman server aware of what addresses to handle and reject anything else.
This is not a big problem but before I dig into this and make a script I would ask if this is already done.
I have the listnames in virtual-mailman and can get a list of members with the script list_members.
I don't understand the problem? Doesn't Postfix already reject mail for unknown recipients? The only Mailman recipients are the listname(-*)@... addresses that Postfix already knows via data/virtual-mailman and data/aliases. If there are also list members on the mailman server, they should have mailboxes or be otherwise deliverable. The only Mailman related mail to list members is outgoing mail.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan

On 6/16/2011 12:06 PM, Peter Sørensen wrote:
The problem is that I use the GW as a smtp relay for the mailman server so when the GW receive a mail for an address in mydomain@xyz.com this is forwarded to the EXCHG system and because EXCHG is'nt authorative for the domain because we also handle mailman list created in this domain unknown adresses is forwarded to the mailman server. If this is'nt for a list this would be redirectet back to the GW because the mail servers use this as a smtp relay. Therefore I need to make this server aware of adsresses it should accept mail for.
Hope this clarify what I want to achieve.
and previously:
Due to this I need to make the postfix on the mailman server aware of what addresses to handle and reject anything else.
So now it seems you are saying you need to make the postfix on the gateway server aware of what addresses to handle.
You can use Mailman's data/virtual-mailman.db directly in relay_recipient_maps on the gateway server.
You could create a script on the Mailman server containing
#!/bin/sh /usr/sbin/postmap $1
followed by an rsync or whatever to update the file on the gateway
and put
POSTFIX_MAP_CMD = '/path/to/script'
in mm_cfg.py to keep the files in sync.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
participants (2)
-
Mark Sapiro
-
Peter Sørensen