Hi,
I configured the sendmail 3.11 to connect to realy server for sendmail the outgoing mails, it worked fine it is able to send mails throught relay server.
Output:
echo hai | mail -v -s wel
user@abc.com
user@abc.com... Connecting to
smtp.abc.com via relay...
220 smtp.abc.com ESMTP
>>> EHLO hostname.abc.com
250-smtp.abc.com
250-8BITMIME
250 SIZE 104857600
>>> MAIL From:<root@hostname.abc.com> SIZE=49
250 sender <root@hostname.abc.com> ok
>>> RCPT To:<user@abc.com>
250 recipient <user@abc.com> ok
>>> DATA
354 go ahead
>>> .
250 ok: Message 771735492 accepted
user@abc.com... Sent (ok: Message 771735492 accepted)
Closing connection to smtp.abc.com
>>> QUIT
221 smtp.abc.com
Same setup i followed to configure sendmail 3.13 to connect to relay server for sending outgoing mails, but it is connecting to the localhost instaed of relay server. (DS entry in sendmail.cf is exists)
output:
echo hai | mail -v -s wel
user@abc.com
user@abc.com... Connecting to [127.0.0.1] via relay...
220 hostname.abc.comESMTP Sendmail 8.13.1/8.11.6; Fri, 21 Dec 2007 00:23:40 -0500
>>> EHLO hostname.abc.com
250-hostname.abc.com Hello localhost.localdomain [127.0.0.1], pleased to meet you
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-8BITMIME
250-SIZE
250-DSN
250-ETRN
250-AUTH GSSAPI DIGEST-MD5 CRAM-MD5
250-DELIVERBY
250 HELP
>>> MAIL From:<root@hostname.abc.com> SIZE=49 AUTH=root@hostname.abc.com250 2.1.0 <root@hostname.abc.com>... Sender ok
>>> RCPT To:<user@abc.com>
>>> DATA
250 2.1.5 <user@abc.com>... Recipient ok
354 Enter mail, end with "." on a line by itself
>>> .
250 2.0.0 lBL5Ne3e013137 Message accepted for delivery
user@abc.com... Sent (lBL5Ne3e013137 Message accepted for delivery)
Closing connection to [127.0.0.1]
>>> QUIT
221 2.0.0 hostname.abc.com closing connection
So, how to configure sendmail 8.13 to connect to relay server for sendaing mails.
Thank In Advance
Dhanju