I have a FreeBSD 6.3 installation that is currently running sendmail. I have a very small 3 node domain that is running DNS. It appears that my DNS forwarding and reverse lookups are resolving correctly. I am trying to send mail from the box that is running sendmail to an account on another node. So far this is what I have done:
1.) Added an MX record for any mail coming from mydomain.net
1a.) Tested that using Dig and Host commands to verify that the MX record is correct.
2.) Changes the Cwlocalhost entry in the sendmail.cf file to Cwlocalhost mydomain.net
3.) Added the hosts to the locaol_host_names file and uncommented that entry in the sendmail.cf file
4.) Ensured that the hosts entry in the nsswitch.conf file reads :dns files
The output of the mail command is:
I have been banging around on Google for more tan a week with no success. Any help that you can provide would be most appreciated.
1.) Added an MX record for any mail coming from mydomain.net
1a.) Tested that using Dig and Host commands to verify that the MX record is correct.
2.) Changes the Cwlocalhost entry in the sendmail.cf file to Cwlocalhost mydomain.net
3.) Added the hosts to the locaol_host_names file and uncommented that entry in the sendmail.cf file
4.) Ensured that the hosts entry in the nsswitch.conf file reads :dns files
The output of the mail command is:
Code:
myhost# mail -v [email]mymailaccount@mydomain.net[/email]
Subject: test
test
.
EOT
[email]mymailaccount@mydomain.net[/email]... Connecting to [127.0.0.1] via relay...
220 myhost.mydomain.net ESMTP Sendmail 8.14.2/8.14.2; Thu, 22 Jul 2010 17:38:34 -0500 (CDT)
>>> EHLO myhost.mydomain.net
250-myhost.mydomain.net Hello localhost.mydomain.net [127.0.0.1], pleased to meet you
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-8BITMIME
250-SIZE
250-DSN
250-ETRN
250-DELIVERBY
250 HELP
>>> MAIL From:<root@myhost.mydomain.net> SIZE=47
250 2.1.0 <root@myhost.mydomain.net>... Sender ok
>>> RCPT To:<mymailaccount@mydomain.net>
>>> DATA
550 5.1.1 <mymailaccount@mydomain.net>... User unknown
503 5.0.0 Need RCPT (recipient)
>>> RSET
250 2.0.0 Reset state
>>> RSET
250 2.0.0 Reset state
root... Using cached ESMTP connection to [127.0.0.1] via relay...
>>> MAIL From:<> SIZE=1071
250 2.1.0 <>... Sender ok
>>> RCPT To:<root@myhost.mydomain.net>
>>> DATA
250 2.1.5 <root@myhost.mydomain.net>... Recipient ok
354 Enter mail, end with "." on a line by itself
>>> .
250 2.0.0 o6MMcYse013041 Message accepted for delivery
root... Sent (o6MMcYse013041 Message accepted for delivery)
Closing connection to [127.0.0.1]
>>> QUIT
221 2.0.0 myhost.mydomain.net closing connection
I have been banging around on Google for more tan a week with no success. Any help that you can provide would be most appreciated.