Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
05-18-2005, 03:26 PM
|
#1
|
|
LQ Newbie
Registered: May 2005
Posts: 3
Rep: 
|
[ Post removed ]
Hi,
I'm trying to get this mail server to work correctly..All the basics are set up. We can send and receive mail just fine, except for one thing. When we send email, some servers end up rejecting it due to our server returning the wrong hostname!
I have multiple domains set up on this machine. Mail goes through to the correct addresses and all, except the EHLO will only reply with the hostname that the machine is named.
I'll call it 'hostname.com'
So, if I send mail from 'user@anotherhostname.com', and the receiving server checks it, the EHLO says: '220 hostname.com blah blah blah'
BUT, I need it to say: '220 anotherhostname.com'
- This being a reply with the hostname according to the IP address used to access the server.
Sendmail is set up to use BIND DNS (compiled in), and 'anotherhostname.com' is entered into the DNS database on the server, however right now, all the domains are set up on our hosting provider's domain name servers.
- Can this effect this sendmail configuration???
I've looked EVERYWHERE on Google and lots of other places as well.. I've seen lots of questions about this, but I can't seem to find the answer.
So, to wrap it up, I have a server with multiple domains and need sendmail to return the correct hostname upon EHLO queries to different IP addresses.
ANY help would be GREATLY appreciated!! Thanks in advance!
Last edited by Whatever123; 03-30-2009 at 12:39 PM.
|
|
|
|
05-19-2005, 09:17 PM
|
#2
|
|
Member
Registered: Sep 2004
Location: Texas, USA
Distribution: Fedora
Posts: 620
Rep:
|
Add the following to /etc/mail/sendmail.mc and then rebuild sendmail.cf. Change to match the reverse lookup name for your MTA. They should match. Some MTA's (like mine) are very picky about this.
Code:
define(`confDOMAIN_NAME', `mail.mydomain1.com')dnl
|
|
|
|
05-20-2005, 11:04 AM
|
#3
|
|
LQ Newbie
Registered: May 2005
Posts: 3
Original Poster
Rep: 
|
So, will this enable the server to be able to reply with different hostnames for each IP?
ex:
123.0.0.1 would respond like: '220 hostname.com'
and
123.0.0.2 would respond like: '220 anotherhostname.com'
??
Last edited by Whatever123; 03-30-2009 at 12:38 PM.
|
|
|
|
05-20-2005, 06:32 PM
|
#4
|
|
Member
Registered: Sep 2004
Location: Texas, USA
Distribution: Fedora
Posts: 620
Rep:
|
I have never configured sendmail with more than one IP, so I can't answer your question.
By making the change I posted, your MTA will always HELO with the name you assign. Which should match your MTA's reverse name in DNS (using a single IP).
FWIW: I host multiple domains using one IP address. I have never had a problem with "outbound" e-mail, just as long as the HELO name matches the reverse lookup name for that IP. i.e. The external IP address of my firewall.
|
|
|
|
05-23-2005, 10:56 AM
|
#5
|
|
LQ Newbie
Registered: May 2005
Posts: 3
Original Poster
Rep: 
|
The problem is solved! Thanks for your help.. To fix it, I ended up having to change all the MX records for each domain to the same address, and then changed the hostname of the machine to the address I set the MX records to.
Everything is working great now.. =) Just have to install SPF records now..
Last edited by Whatever123; 03-30-2009 at 12:37 PM.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 08:59 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|