configuring Sendmail client in centos


R Ramanathan

Hi All,

I am trying to configure SMTP client my linux machine, where i will be using external SMTP server for oubound mail.
I have added below line in my and create using m4.
define(`SMART_HOST', `')dnl
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
define(`confCLIENT_CERT', `/etc/pki/tls/certs/sendmail.pem')dnl
define(`confCLIENT_KEY', `/etc/pki/tls/certs/sendmail.pem')dnl
DAEMON_OPTIONS(`Port=465, Name=TLSMTA, M=s')dnl

but i could see still the request going on default port 25. How can i send forward it through port 465.

Further do i need to make any configuration changes in

Last edited:

Hi all,

This is inform that the above issue is fixed after adding 465 in at the end of Mrelay Tag:

Mrelay, P=[IPC], F=mDFMuXa8k, S=EnvFromSMTP/HdrFromSMTP, R=MasqSMTP, E=\r\n, L=2040,
A=TCP $h 465

But now i m not getting client greeting and connection getting timeout.

Just to inform you when i am using other client like thunderbird i am able to send mail with the same configurations.

Please suggest/help to fix this issue


You need to reconfigure send-mail by the below attachment,



  • Sendmail.txt
    3.4 KB · Views: 1,709

Members online

Latest posts