Sendmail’s core purpose, like other MTAs, is to safely transfer email among hosts, usually using the SMTP protocol. However, Sendmail is highly configurable, allowing control over almost every aspect of how email is handled, including the protocol used. Many system administrators elect to use Sendmail as their MTA due to its power and scalability.
In this post we are going to look on how to configure the Sendmail configuration using your mail server gateway.
My Local Server : quickfixlinux.com
MY SMTP Server : smtpqf.com (10.10.10.10)
1] Install the sendmail packages and m4 packages.
[firstname.lastname@example.org ~]# yum install sendmail\* Loaded plugins: rhnplugin, security This system is receiving updates from RHN Classic or RHN Satellite. Setting up Install Process Resolving Dependencies –> Running transaction check —> Package sendmail.x86_64 0:8.13.8-10.el5_11 set to be updated —> Package sendmail-cf.x86_64 0:8.13.8-10.el5_11 set to be updated —> Package sendmail-devel.i386 0:8.13.8-10.el5_11 set to be updated —> Package sendmail-devel.x86_64 0:8.13.8-10.el5_11 set to be updated —> Package sendmail-doc.x86_64 0:8.13.8-10.el5_11 set to be updated –> Finished Dependency Resolution
2] Sendmail’s lengthy and detailed configuration file is /etc/mail/send mail.cf. Avoid editing the sendmail.cf file directly. To make configuration changes to Sendmail, edit the /etc/mail/sendmail.mc file, backup the original /etc/mail/sendmail.cf file, and use the following alternatives to generate a new configuration file:
# cd /etc/mail/
Look for the line :26 and make the changes in the sendmail.mc as below:
Where: smtpqf.com is the name of my Mail Server Gateway