Hi All,
I am using RHEL5 on boxes.
client: web04.example.com
server: web05.example.com
I am trying to confiugre sendmail client and server environment. A very simple environment. On server side I configured sendmail and relaying the requests from other linux machines. On a server end emails are going out fine but on client side its not working with Deffered message in log. I tried to find any solution online but couldnt get any exact info to sort out this issue.
On server side there is a entry of client machine in /etc/mail/access and I created access.db as well with make hash command.
makemap hash /etc/mail/access.db < /etc/mail/access
Now on client linux machine I just made two changes in sendmail.mc
dnl DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl
dnl define(`SMART_HOST', `web05.example.com')dnl
used m4 utility to create sendmail.cf. Also used make -C /etc/mail
Testing by mail client at client machine
# echo "testing 04 delivery" | mail -s "testing"
smk@gmail.com
#tail -f /var/log/mail.info
Nov 11 16:07:21 dwweb04 sendmail[10032]: nABG7K7t010032: from=root, size=66, class=0, nrcpts=1, msgid=<200911111607.nABG7K7t010032@web04.example.com>, relay=root@localhost
Nov 11 16:07:21 dwweb04 sendmail[10033]: nABG7LBh010033: from=<root@web04.example.com>, size=368, class=0, nrcpts=1, msgid=<200911111607.nABG7K7t010032@web04.example.com>, proto=ESMTP, daemon=MTA, relay=localhost.localdomain [127.0.0.1]
Nov 11 16:07:21 dwweb04 sendmail[10032]: nABG7K7t010032: to=smk@gmail.com, ctladdr=root (0/0), delay=00:00:01, xdelay=00:00:00, mailer=relay, pri=30066, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (nABG7LBh010033 Message accepted for delivery)
Nov 11 16:09:09 dwweb04 sendmail[10019]: nABE4r0i009143: to=<smk@gmail.com>, ctladdr=<backup@web04.example.com> (503/503), delay=02:04:16, xdelay=00:02:00, mailer=relay, pri=390353, relay=web05.example.com. [*.*.*.*] (external IP), dsn=4.0.0, stat=Deferred: Connection timed out with web05.example.com.
Note: I have changed mydomain.com to example.com here
There are some other outputs that can help
At client machine (web04)
# telnet web05.example.com 25
Trying 192.168.1.107...
Connected to web05.example.com (192.168.1.107).
Escape character is '^]'.
220 web05.example.com ESMTP Sendmail 8.13.8/8.13.8; Wed, 11 Nov 2009 16:18:03 GMT
Is there something on server end that is not responding? or if I am doing something wrong please point out.
Many thanks.