ram wrote: > On Tue, 2008-11-25 at 23:39 +1100, Barney Desmond wrote: >> You'd think you could create extra smtp-service instances in master.cf >> and bind them to different addresses with -o smtp_bind_address=a.b.c.d, >> then use transport maps to fiddle with them, but this apparently doesn't >> work. > > How ? > My transport_maps file is a map on domain names > All my blackberry forwards will be something like > [EMAIL PROTECTED] > > how will I add a transport to send some vodafone.blackerry.com mails > thru some smtp-service and some other thru the other service > > Even if this is not a 100% equal distribution that is ok
The situation we've tried to deal with before is a customer saying, "mail to hotmail.com must come from a different address". The server's "main" address set in main.cf is 1.1.1.1, and the "other" address is 1.1.1.2 This is what we thought *should* work, but apparently it doesn't. I'd love to be told that it actually works. 1. Add an extra smtp service to master.cf: smtphotmail inet n - - - - smtpd -o smtp_bind_address=1.1.1.2 2. Add a transport mapping for the destination hotmail.com smtphotmail: 3. Run postmap over the transport file and reload (or restart) postfix to pick up the changes. The smtp_bind_address apparently can't be set in this manner, though I've never found out the reason for it.
signature.asc
Description: OpenPGP digital signature