×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Controlling IP of outbound mail

Controlling IP of outbound mail

Controlling IP of outbound mail

(OP)
I have a number of servers running Postfix, each of which host several different domain names. They've all been set up using sender_dependent_default_transport_maps to ensure that mail from/to each domain is coming in and exiting the server from it's own IP address.

A few days back I had a crash on an older server so I did a quick migration of one user's domain onto another server. I've been monitoring the logs and everything seemed to be running ok but after they did a month-end invoice mailing I noticed a minor issue in the logs. It's entirely possible that this has been happening for years and I just never noticed... but now that I've seen, it's going to annoy me until I fix it smile Unfortunately because of the circumstances I don't have the old server to be able to go back and look through the logs and configs to look for differences.

If I send an email from a test user on the server, everything goes ok and I can see in the message headers that everything is processing with the correct hostnames and IP addresses, etc. They have one user, however, that is used for sending out their monthly accounting mailings. Incoming mail for that user (which honestly is about 90% bounces and 10% of people replying to the "do not reply to this unmonitored email address") is forwarded to their accounting department using the following mail filter receipe...

redirect "otheruser@theirmaindomain.com";
discard;
stop; 

The recipe attempts to do the forward but the mail provider for their other domain has been bouncing the forwarded messages as too much traffic from an unknown IP (they have so many random restrictions on sending and receiving... not even going there smile ). In any case it was from those bounces that I noticed that the forwarded messages are being sent out from the main IP of the server, and not the IP specific to that client.

How can I poke at the configuration of the server to resolve this such that those redirected messages hit the right transport and go out the correct IP address?

Mike



Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close