sSMTP is alternative to Sendmail. sSMTP is a send-only sendmail emulator for machines which normally pick their mail up from a centralized mailhub (via pop, imap, nfs mounts or other means). It provides the functionality required for humans and programs to send mail via the standard or /usr/bin/mail user agents. It is used to send mail to external email address after authentication with valid mail account. Download & Install # rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm # yum -y install ssmtp Now we will edit the ssmtp configuration file. # cd /etc/ssmtp # vim /etc/ssmtp/ssmtp.conf Here is the custom configuration MailHub=mail.techgyaan.org:25 # SMTP server hostname and port UseTLS=NO # Secure connection (SSL/TLS) FromLineOverride=YES # Force the From: line Hostname=mail.techgyaan.org # The name of this host RewriteDomain=mail.techgyaan.org ...
CloudGyaan | DevOps Linux Blog | AWS, Azure, GCP, Teraform, Kubernates, Docker, Terraform