Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have the following setup

mailserver.domain 10.0.0.3 - centos 5.6, qmail works fine

webserver.domain 10.0.0.4 -centos 5.6, sendmail configured with smarthost = mailserver, when sending mail to an outside domain (like yahoo.com) it works, but when I send mail to user@domain it doesn't.

the maillog on webserver says that the mail was sent to user@10.0.0.3 the maillog on mailserver says it can't send it for some reason - I can't edit anything on mailserver yet, and I was wondering if I could convince webserv not change the address to ip .

I also have a windows box on the network, that successfully sends mails via mailserver to anyhost including domain.

Edit: I've installed postfix instead of sendmail and now it works.

Thank you for your interest.

share|improve this question
    
Do you have a domain? Did you set any MX-records? –  Bart De Vos May 18 '11 at 15:11
    
Yes, I have a domain with MX records pointing to mailserver –  Tiberiu Gal May 18 '11 at 18:13
    
What IP did you put in the MX-record? –  Bart De Vos May 18 '11 at 18:15
    
the domain MX is set to the external IP address (which both machines share) I have a NAT setup with the external world. –  Tiberiu Gal May 18 '11 at 18:42
    
Keep in mind that the mailserver work fine, it's only when I send mails from the webserver that I have problems. –  Tiberiu Gal May 18 '11 at 18:44
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.