Sendmail as a send-only local server: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 2: | Line 2: | ||
*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 | ||
**Add the lines<pre>DAEMON_OPTIONS(`NAME=NoMTA4, Family=inet, Addr=127.0.0.1')dnl | **Add the lines<pre> | ||
DAEMON_OPTIONS(`NAME=NoMTA4, Family=inet, Addr=127.0.0.1')dnl | |||
DAEMON_OPTIONS(`Name=MSA4, Family=inet, Addr=127.0.0.1, Port=587, M=E')dnl | |||
</pre>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 01:25, 9 August 2015
# cd /usr/share/sendmail/cf/cf- Edit
sendmail-slackware.mc:- Add the line
FEATURE(`no_default_msa')dnlto the FEATURE block - Add the lines
- Add the line
DAEMON_OPTIONS(`NAME=NoMTA4, Family=inet, Addr=127.0.0.1')dnl DAEMON_OPTIONS(`Name=MSA4, Family=inet, Addr=127.0.0.1, Port=587, M=E')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 commandnewaliases
# /etc/rc.d/rc.sendmail restart- Make sure that the fqdn-hostname is in the DNS and is whitelisted in the inbound smtp server for
example.org