Host to set up postfix to use external smtp server

Posted by Leo on Server Fault See other posts from Server Fault or by Leo
Published on 2013-10-28T03:31:36Z Indexed on 2013/10/28 3:56 UTC
Read the original article Hit count: 169

Filed under:
|
|
|

I have a web server and a mail server. Both have the same domain name except, one points to mywebsite.com and the other is mail.mywebsite.com. They have different IPs. I'm trying to set up postfix on my web server so it uses my mail server as the server that sends e-mails.

I followed this guide: http://www.howtoforge.com/postfix_relaying_through_another_mailserver

I am getting this error in my logs:

Oct 28 02:56:45 mywebsite postfix/smtp[1660]: warning: host mail.mywebsite.com[xxx.xxx.xx.xx]:25 greeted me with my own hostname mywebsite.com
Oct 28 02:56:46 mywebsite postfix/smtp[1660]: warning: host mail.mywebsite.com[xxx.xxx.xx.xx]:25 replied to HELO/EHLO with my own hostname mywebsite.com

I've searched around and I read that you can't use the same hostname when relaying to a separate smtp server. Is there a work around for this? Do I need to set up my mail server with a separate domain name?

Also I have my MX records set up for both mywebsite.com and mail.mywebsite.com.

I'm not that experienced with this so if I need to give more info let me know.

Thanks!

© Server Fault or respective owner

Related posts about ubuntu

Related posts about email