[Mailman-Users] Question concerning list of members as relay_recipients in postfix

Mark Sapiro mark at msapiro.net
Thu Jun 16 22:04:47 CEST 2011


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 at 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 at msapiro.net>        The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan



More information about the Mailman-Users mailing list