Changing domain reported in raw headers

komrade

Verified User
Joined
Apr 3, 2005
Messages
6
I'm still trying to learn about how to handle multiple domains on a server. My main server domain is www.orange.com and the user level has www.orange.com and www.banana.com as hosted domains.

When an email is sent from [email protected] the long headers show it coming from:

Received: from 83.xxx.xx.xxx.reverse.xxxx.net ([83.xxx.xx.xxx] helo=mater.orange.com)

I think this is causing it to be flagged as spam as well as looking strange to people who take a close look at the raw source. How do I change it to reflect the proper www.banana.com domain name in the email headers? Is this something to do with reverse DNS?

Thanks :)
 
The HELO that exim uses to identify itself should resolve back to the server's primary IP (the IP that exim is using for outgoing mail). Further, the PTR for the IP should resolve to this name as well.

So, If your hostname is mater.orange.com, a DNS A record for "mater.orange.com" should exist that points to the same IP that mater.orange.com is using for outgoing. Further, the PTR record for this IP should also resolve to "mater.orange.com".

In your case, the PTR record is "83.xxx.xx.xxx.reverse.xxxx.net" and should resolve to "mater.orange.com" instead. You'll need your IP provider to make this change.

Telling exim to instead identify itself is "mater.banana.com" is a whole different issue. If you change the HELO, then you need the name to resolve to the IP, and the PTR has to point to the name, etc. This is possible, but probably not something you want to do.
 
Actually you can set the helo name in the exim.conf file.

By default the exim.conf file should tell exim to use the server hostname as the helo name.

Additionally you need an A record pointing the hostname to the main IP# of the server, and one (and ONLY one reverse (PTR) record, pointing the IP# to the hostname.

That's what the antispammers are looking for, and if you do it right you won't find yourself improperly classified as a spammer.

Jeff
 
Bumping an old thread...

I'm bringing this old thread back to life, because I find myself in exactly the same situation.

Here is my question:

vps.primary_domain.com has a A Record pointing back to the primary server IP. Everything works fine. No problems sending out emails from anyone who has an account on that IP.

However, I have a reseller who has domains on a separate IP. His domain headers HELO still point to vps.primary_domain.com, but the IP obviously does not match. As such, a lot of his emails are being rejected.

What can I do to fix this? Thanks!

Duncan
 
If his outgoing server uses a HELO giving the name of the machine that actually sends the mail, and there's an A record for that domain name pointing to that IP#, and there's a pointer record for that IP# pointing to that domain, then any server on the 'net should be accepting email from it.

If not, then post a copy of the entire return message you get, and someone will be able to help you.

Jeff
 
Back
Top