sudo yum install sendmail sendmail-cf m4
Configurables defined in /etc/mail/.
- access
- Allow/Deny other systems to use Sendmail for outbound emails.
- domaintable
- Used for domain name mapping for Sendmail.
- local-host-names
- Used to define aliases for the host.
- mailertable
- Defined the instructions that override routing for particular domains.
- virtusertable
- Specifies a domain-specific form of aliasing, allowing multiple virtual domains to be hosted on one machine.
Remove the following line from the sendmail.mc-file:
dnl DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl
Add this line also in sendmail.mc above ‘MAILER’ option
FEATURE(`relay_hosts_only')dnl
<hostname> >> /etc/mail/relay-domains