Wednesday 20 March 2019

Enable a TLS with SMTP

backup ordinal config file: 
cp sendmail.mc sendmail.mc_orignal2019 


mkdir -p /etc/mail/certs 

cd /etc/mail/certs 
openssl req -new -x509 -keyout cakey.pem -out cacert.pem -days 365 
openssl req -nodes -new -x509 -keyout sendmail.pem -out sendmail.pem -days 365 

chmod 600 sendmail.pem 

We need to enable below list of parameters. 
vi /etc/mail/sendmail.mc 
define(`confAUTH_MECHANISMS', `LOGIN PLAIN DIGEST-MD5 CRAM-MD5')dnl 
TRUST_AUTH_MECH(`LOGIN PLAIN DIGEST-MD5 CRAM-MD5')dnl 

DAEMON_OPTIONS(`Port=smtp,Addr=10.70.9.12, Name=MTA')dnl 
dnl ### do STARTTLS 
define(`confCACERT_PATH', `/etc/mail/certs')dnl 
define(`confCACERT', `/etc/mail/certs/cacert.pem')dnl 
define(`confSERVER_CERT', `/etc/mail/certs/sendmail.pem')dnl 
define(`confSERVER_KEY', `/etc/mail/certs/sendmail.pem')dnl 
define(`confCLIENT_CERT', `/etc/mail/certs/sendmail.pem')dnl 
define(`confCLIENT_KEY', `/etc/mail/certs/sendmail.pem')dnl 

Compile the config file. 
m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf 

start saslauthd service 
service saslauthd start 

restart sendmail service 
service sendmail restart 

4 comments:

  1. Do this hack to drop 2 lbs of fat in 8 hours

    At least 160 thousand men and women are trying a simple and secret "liquid hack" to burn 2 lbs each night in their sleep.

    It is very easy and works every time.

    This is how you can do it yourself:

    1) Get a glass and fill it half full

    2) Then learn this strange hack

    and you'll become 2 lbs thinner when you wake up!

    ReplyDelete
  2. If you're trying to lose pounds then you certainly need to get on this brand new personalized keto plan.

    To design this service, certified nutritionists, personal trainers, and top chefs joined together to develop keto meal plans that are effective, painless, economically-efficient, and fun.

    Since their grand opening in 2019, 1000's of individuals have already remodeled their figure and health with the benefits a certified keto plan can give.

    Speaking of benefits; clicking this link, you'll discover 8 scientifically-certified ones given by the keto plan.

    ReplyDelete