What I've done is have the transport_maps and relay_domains point to a transport.cf file which then redirects to a mysql database.
Main.cf: #transport_maps = hash:/usr/local/etc/postfix/transport.map transport_maps = mysql:/usr/local/etc/postfix/transport.cf #relay_domains = $mynetworks, hash:/usr/local/etc/postfix/transport.map relay_domains = $mynetworks, mysql:/usr/local/etc/postfix/transport.cf Transport.cf: user = username password = password hosts = localhost dbname = postfix table = domains select_field = transport where_field = domain I then set up a website that lists all the domains and has the ability to insert, modify, and delete the listings. This allows our email admin to do the administration without him letting me know that there's a new domain to add to the spam filter list. -Mitch Ias.net -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Omar K. Sent: Tuesday, February 14, 2006 5:44 AM To: IMGate@mgw2.MEIway.com Subject: [IMGate] Re: How to relay for several unspecified domains Can someone point me to the direction of an auto generation script ? -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Len Conrad Sent: Tuesday, February 14, 2006 12:10 PM To: IMGate@mgw2.MEIway.com Subject: [IMGate] Re: How to relay for several unspecified domains >So, if I need to relay for a new domain, I need to add it to this file. > >I would like to stop the need of having to update the transport map and have >IMGATE assume all the domains we get are for one mail server. How can >that be done? it can't be done. postfix can't assume or guess which domains are yours and which aren't. postfix must be told: 1) which domains to accept and relay for (relay_domains) and then 2) where to relay them. Len