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.

link|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
feedback

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
or
required, but never shown

Browse other questions tagged or ask your own question.