I have got my DNS MX record at betterbusinessreferral.com pointing to mailserver.betterbusinessreferral.com and IP 220.127.116.11. I can receive emails sent to accounts I have setup (sent from for instance hotmail to firstname.lastname@example.org
), using outlook. When trying to send OUTGOING mail from this server, I get an email saying RELAY REJECTED immediately. I followed instructions at http://www.linuxhomenetworking.com/l...n/sendmail.htm
. Somehow, I think the problem might be the old hostname lingering, in the file /var/log/maillog, I see the following-
"Mar 27 04:02:07 betterbusinessreferral sendmail: k2R927NC016615: from=root, size=66030, class=0, nrcpts=1, msgid=<200603270902.k2R927NC016615@svr1.betterbusi nessreferral.com>, relay=root@localhost
Mar 27 04:02:13 betterbusinessreferral sendmail: k2R927od016617: from=<email@example.com>, size=66376, class=0, nrcpts=1, msgid=<200603270902.k2R927NC016615@svr1.betterbusi nessreferral.com>, proto=ESMTP, daemon=MTA, relay=localhost.localdomain [127.0.0.1]
Mar 27 04:02:13 betterbusinessreferral sendmail: k2R927NC016615: to=root, ctladdr=root (0/0), delay=00:00:06, xdelay=00:00:06, mailer=relay, pri=96030, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (k2R927od016617 Message accepted for delivery)
Mar 27 04:02:14 betterbusinessreferral sendmail: k2R927od016617: to=<firstname.lastname@example.org>, delay=00:00:01, xdelay=00:00:01, mailer=esmtp, pri=186376, relay=svr1.betterbusinessreferral.com, dsn=5.1.2, stat=Host unknown (Name server: svr1.betterbusinessreferral.com: host not found)"
The hostname svr1 is the OLD hostname that was unresolvable, before I had access to my DNS
When I type hostname at a terminal, I see what I set it to in network device control:
[root@www ~]# hostname
Thanks in advance for your help.