Portal Home > Knowledgebase > Articles Database > message headers and IP
message headers and IP
Posted by mwheelan, 06-13-2007, 11:27 AM |
Hello
I have a dedicated server and I am using the SMTP of one of my domain names to send mail. The IP of this domain name ends in .25 and the server hostname IP ends in .24. The emails that are received list the server hostname and IP in the message headers instead of the IP of the domain name that is sending the email. Is there something that can be done about this? I read that a message could be mistaken as spam if it doesn't originate from the exact IP of the domain in the 'from' field.
thanks for your advice
|
Posted by Techbrace, 06-14-2007, 06:10 AM |
mwheelan,
This can be done by modifying the smtp_banner directive in exim.conf. Do the following:
1. create a file, say /etc/smtp_domains and add the following lines:
primary_shared_ip: server_name
sec_ded_ip: domain_name
eg:-
66.67.68.69: servername.com
66.67.68.70: customerdomain.com
2. Edit the smtp_banner section in exim.conf and change it to the following:
smtp_banner = "${lookup {$interface_address} lsearch {/etc/smtp_domains} } ESMTP Exim ${version_number} \
\#${compile_number} ${tod_full} \n\
We do not authorize the use of this system to transport unsolicited, \n\
and/or bulk e-mail."
3. Restart exim and done.
Do a 'telnet customerdomain.com 25' now and see if you are getting the domain name instead of the server name in the SMTP banner.
|
Posted by mwheelan, 06-14-2007, 09:53 AM |
Hi and thanks for your detailed explanation
before I go ahead and try this would this also work for qmail ?
Furthermore, just to clear things up about my first message the emails that are sent from my server (and subsequently opened by subscribers) list the server hostname and IP in the message headers instead of the IP of the domain name that is sending the email.
|
Posted by Techbrace, 06-14-2007, 10:32 AM |
Sorry, the above setup is meant for only exim servers and won't work on any other mail servers. And yes, this will work as you wanted on exim servers.
|
Posted by mwheelan, 06-15-2007, 03:06 AM |
Thanks again, any ideas on how this can be accomplished with qmail?
|
Add to Favourites Print this Article
Also Read
Geo-DNS (Views: 682)