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 local delivery only to Sendmail for localhost only without leaving a redirect
No edit summary
Line 1: Line 1:
*Edit <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 FEATURE block
Line 10: Line 10:
:to <code>/etc/mail/aliases</code>; then run the command <code>newaliases</code>
:to <code>/etc/mail/aliases</code>; then run the command <code>newaliases</code>
*<code># /etc/rc.d/rc.sendmail restart</code>
*<code># /etc/rc.d/rc.sendmail restart</code>
* Add the fqdn-hostname to the whitelist of the inbound smtp server for <code>example.org</code>
*Make sure that the fqdn-hostname is in DNS and is whitelisted in the inbound smtp server for <code>example.org</code>
[[Category: Linux]]
[[Category: Linux]]

Revision as of 23:36, 5 August 2015

  • # 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
  • Make sure that the fqdn-hostname is in DNS and is whitelisted in the inbound smtp server for example.org