Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Qmail - Received from header wrong

Status
Not open for further replies.

NghtHawk

Technical User
Nov 3, 2004
4
US
I've looked for an answer to this problem and haven't had any luck...

My problem is Qmail is showing the root IP address for all emails sent from the server. In other words here is what I have...

11.11.11.11 - RootServer.com
22.22.22.22 - Site1.com
33.33.33.33 - Site2.com
44.44.44.44 - Site3.com
55.55.55.55 - Site 4.com

Return-Path: <me@site2.com>
Received: from (11.11.11.11) by my.ip.net <=== THIS IS WHAT I AM QUESTIONING
Received: (qmail 20395 invoked from network); 3 Nov 2004 15:57:43 -0000
Received: from any.ip.net by site2.com with SMTP; 3 Nov 2004 15:57:43 -0000

Each domain on my site has MX records pointing to it's own IP address, but mail appears to be sent by the root IP. Is there a way to change this so the last "Received:" record shows the correct web site? From what I can tell this being different than the web site sending the mail is causing some bounced messages.
 
Ok folks, I know Qmail binds to the first address on the box...

Is there any way to correct this on a Plesk/Linux 9 box? Script? Patch? RPM?
 
Yes and no...

I can name it anything I want, the point is that it's the first IP address on the box. That is causing some emails to bounce when that IP does not match the IP of the sending web site.

If I could make that IP match the sending web site (which could be any of them listed above) I'd simply put "mailserver" in the me file.
 
If I knew IPtables better, there might be some rules that could be built with that, but the best I've been able to do is change the overall IP using this...

iptables -t nat -A POSTROUTING -o eth0 -p tcp --dport 25 -j SNAT --to-source 22.22.22.22
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top