Sendmail as a send-only local server

From Notes to self
Revision as of 23:28, 5 August 2015 by Verbovet (talk | contribs)
Jump to navigation Jump to search
  • Edit # cd /usr/share/sendmail/cf/cf
  • Edit sendmail-slackware.mc :
    • Add the line FEATURE(`no_default_msa')dnl to the FEATURE block
    • Add the line DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1,Name=MTA')dnl right before the MAILER lines
  • # m4 sendmail-slackware.mc > /etc/mail/sendmail.cf
  • Add something like
root:           user
user:           user@example.org
to /etc/mail/aliases; then run the command newaliases
  • # /etc/rc.d/rc.sendmail restart
  • Add the fqdn-hostname to the whitelist of the inbound smtp server for example.org