Sendmail as a send-only local server: Difference between revisions

From Notes to self
Jump to navigation Jump to search
m Verbovet moved page Sendmail for localhost only to Sendmail as a send-only local server without leaving a redirect
No edit summary
Line 1: Line 1:
*<code># cd /usr/share/sendmail/cf/cf</code>
*<code># cd /usr/share/sendmail/cf/cf</code>
*Edit <code>sendmail-slackware.mc</code> :
*Edit <code>sendmail-slackware.mc</code> :
**Add the line <code>FEATURE(`no_default_msa')dnl</code> to the FEATURE block
**Add the line <code>FEATURE(`no_default_msa')dnl</code> to the end of the FEATURE block
**Add the line <code>DAEMON_OPTIONS(`NAME=NoMTA4,Family=inet,Addr=127.0.0.1')dnl</code> right before the MAILER lines
**Add the line <code>DAEMON_OPTIONS(`NAME=NoMTA4,Family=inet,Addr=127.0.0.1')dnl</code> right before the MAILER lines
*<code># m4 sendmail-slackware.mc > /etc/mail/sendmail.cf</code>
*<code># m4 sendmail-slackware.mc > /etc/mail/sendmail.cf</code>

Revision as of 14:05, 7 July 2016

  • # cd /usr/share/sendmail/cf/cf
  • Edit sendmail-slackware.mc :
    • Add the line FEATURE(`no_default_msa')dnl to the end of the FEATURE block
    • Add the line DAEMON_OPTIONS(`NAME=NoMTA4,Family=inet,Addr=127.0.0.1')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
  • Make sure that the fqdn-hostname is in the DNS (has an A record) and is whitelisted in the inbound smtp server for example.org