Thank you for the delightful insight. I thought I was pretty clear in
what I was attempting to do in my first email:
"I have a simple postfix 2.9.3 server with 2 IP addresses. I want all
mail sent from a sender address of *@example1 to go through 1.1.1.1, and
all mail sent from a sender address of *@example2.com to go through
1.1.1.2."
My understanding is sender_dependent_default_transport_maps is what I
want here based on my research prior to emailing this list, but I could
be wrong. I don't feel like I need an O'Reily book to achieve this.......
On 7/30/2012 11:20 PM, Viktor Dukhovni wrote:
On Mon, Jul 30, 2012 at 09:57:10PM -0500, Russell Jones wrote:
Thanks Viktor. I feel like I am closer, just not quite there yet. I
am now getting the following error:
mail for 1.1.1.1 loops back to myself
main.cf:
sender_dependent_default_transport_maps =
hash:/etc/postfix/sender_dependent_default_transport_maps
master.cf:
1.1.1.1:smtp inet n - n - - smtpd -o
smtpd_sasl_auth_enable=yes -o myhostname=mail.domain1.tld
1.1.1.1:submission inet n - n - - smtpd -o
smtpd_sasl_auth_enable=yes -o myhostname=mail.domain1.tld
sender_dependent_default_transport_maps:
@domain1.tld smtp:1.1.1.1
You configured Postfix to deliver mail to itself. It dutifully
tries to do so and reports a loop as it should. I don't know what
your intentions are, but you appear to be stumbling around in the
dark without any real understanding of what you're doing.
You need to take a step back and think harder about what problem
you're really trying to solve with these settings, draw a diagram
of the desired mail flow, and think about how the Postfix MTA fits
into the desired end-state, and understand how the corresponding
configuration settings affect the mail flow.
http://www.postfix.org/OVERVIEW.html
The No-Starch or the O'Reilly Postfix books will be helpful.
Cargo-cult configuration will not get you very far when your needs
are specialized, you need to reach a higher level of proficiency.