Hi all,

As my email service provider would be upgrading their email servers soon, i need to change how my servers send email to users in my domain.

Currently my servers send email through an unrecognized local domain i.e: user at localhost dot com as part of the email address. As the new mail servers would reject such email, i would need to have sendmail on the servers to send email through a registered email account i created.

Having googled around, i noted that i have to define SMART_HOST as my company's domain :

define(`SMART_HOST', `[mail****com]')

as well as un-comment the following:

define(`confCACERT_PATH', `/etc/pki/tls/certs')dnl define(`confCACERT', `/etc/pki/tls/certs/ca-bundle.crt')dnl
define(`confSERVER_CERT', `/etc/pki/tls/certs/sendmail.pem')dnl
define(`confSERVER_KEY', `/etc/pki/tls/certs/sendmail.pem')dnl
TRUST_AUTH_MECH(`LOGIN PLAIN')dnl
define(`confAUTH_MECHANISMS', `LOGIN PLAIN')dnl

for authentication to work with my email provider's SMTP servers to work.

Next i created a authinfo file which is supposedly to be mapped to create a authinfo.db which allows me to pass through user credentials.

after regenerating the sendmail.cf and restarting the sendmail service, it didn't work, however i noted in the logging that the mail was being sent successfully in maillog:

to=<root at server dot localhost dot com>, delay=01:30:56, xdelay=00:00:01, mailer=relay, pri=211930, relay=mail****com. [203.117.178.37], dsn=2.0.0, stat=Sent (o2B2WO24025251 Message accepted for delivery) Mar 11 10:25:12 server sendmail[26207]: o2B0qCY8018263:
to=<root at server dot localhost dot com>, delay=01:30:59, xdelay=00:00:03, mailer=relay, pri=211930, relay=mail****com. [203.117.178.37], dsn=2.0.0, stat=Sent (o2B2WO26025251 Message accepted for delivery) Mar 11 10:25:13 server sendmail[26207]: o2B0qCYJ018263:
to=<root at server dot localhost dot com>, delay=01:31:00, xdelay=00:00:01, mailer=relay, pri=211930, relay=mail****com. [203.117.178.37], dsn=2.0.0, stat=Sent (o2B2WO28025251 Message accepted for delivery)

where mail****com is the SMTP server i wish to relay to.

I notice it keeps resending every 1-2 seconds but i am getting nothing no emails at from the server.

i got my salsauth running as well, so i am abit lost on what i am doing wrong.

Can anyone help? Thanks!