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

From Notes to self
Jump to navigation Jump to search
No edit summary
No edit summary
Line 7: Line 7:
<pre>root:          user
<pre>root:          user
user:          user@example.org</pre>
user:          user@example.org</pre>
:to <code>/etc/mail/aliases</code>
:to <code>/etc/mail/aliases</code>; them run the command <code>newaliases</code>
*# /etc/rc.d/rc.sendmail restart
[[Category: Linux]]
[[Category: Linux]]

Revision as of 21:25, 5 August 2015

  • Edit /usr/share/sendmail/cf/cf/sendmail-slackware.mc:
    • Add FEATURE(`no_default_msa')dnl to the FEATURE block
    • Add DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1,Name=MTA')dnl right before the MAILER lines
  • m4 /usr/share/sendmail/cf/cf/sendmail-slackware.mc > /etc/mail/sendmail.cf
  • Add something like
root:           user
user:           user@example.org
to /etc/mail/aliases; them run the command newaliases
    1. /etc/rc.d/rc.sendmail restart