Mike McKoy: > Wietse Venema <wie...@porcupine.org> wrote: > > > > > Use sender_dependent_default_transport_maps to select a suitable SMTP > > client configuration: > > > > /etc/postfix/main.cf: > > sender_dependent_default_transport_maps = > > hash:/etc/postfix/sender_dependent_transport > > > /etc/postfix/sender_dependent_default_transport > > example.com smtp-example-com > > So it would look something like this? > /etc/postfix/sender_dependent_default_transport > mymodeltalk.com smtp-mymodeltalk-com > inform.mymodeltalk.com smtp-inform.mymodeltalk.com > myforeverhair.com smtp-myforeverhair.com
I just noticed that the table is searched by sender address and @domain, so you'd need to specify @mymodeltalk.com and so on. > > /etc/postfix/master.cf: > > smtp-example-com .. .. .. .. .. smtp > > -o smtp_bind_addres=192.168.1.1 > > > And this would look like this? > smtp-mymodeltalk-com .. .. .. .. .. smtp > -o smtp_bind_addres=52.0.148.79 > > smtp-inform-mymodeltalk-com .. .. .. .. .. smtp > -o smtp_bind_addres=52.0.33.25 > > smtp-myforeverhair-com .. .. .. .. .. smtp > -o smtp_bind_addres=52.1.130.125 Yes, assuming that the IP addresses are correct. > > > How easy is it to configure postfix to send using a specific IP address > > for > > > each domain I have on the server? I've already bound the IPs. When I used > > > Exim all I had to do was create a list of IPs for the server to send as. > > > But alas, i'm not using cpanel so I can't use exim. I need to find a way > > to > > > do this with postfix. > > > > /etc/postfix/master.cf: > > 192.168.1.1:smtp .. .. .. .. .. smtpd The above is to receive mail. I thought you needed that, too, but I may have misread your question. > And this last part would look like this? > /etc/postfix/master.cf: > 52.0.148.79:smtp .. .. .. .. .. smtpd > 52.0.33.25:smtp .. .. .. .. .. smtpd > 52.1.130.125:smtp .. .. .. .. .. smtpd If each domain is to have its own mail receiving address, yes. However, Postfix is not really a multi-personality server. You can fake it by setting "-o myhostname=mta-name-here" on the smtp and smtpd process command lines. But when mail is not deliverable, then (as required by RFC 5321) Postfix will send a non-delivery notification with the null sender address, and that address will fly past your sender_dependent_default_transport_maps. Multiple MTA personalities require multiple Postfix instances. Wietse