Sendmail as a send-only local server: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| (12 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
* | *<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(` | **Add the line <code>DAEMON_OPTIONS(`NAME=NoMTA4,Family=inet,Addr=127.0.0.1')dnl</code> right before the MAILER lines | ||
*<code># m4 | *<code># m4 sendmail-slackware.mc > /etc/mail/sendmail.cf</code> | ||
*Add something like | *Add something like | ||
<pre>root: user | <pre>root: user | ||
user: user@example.org</pre> | user: user@example.org</pre> | ||
:to <code>/etc/mail/aliases</code>; then run the command <code>newaliases</code> | :to the end of <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> | ||
* | *Make sure that the fqdn-hostname is whitelisted in the inbound smtp server for <code>example.org</code> | ||
[[Category: Linux]] | [[Category: Linux]] | ||
Latest revision as of 20:02, 28 October 2018
# cd /usr/share/sendmail/cf/cf- Edit
sendmail-slackware.mc:- Add the line
FEATURE(`no_default_msa')dnlto the end of the FEATURE block - Add the line
DAEMON_OPTIONS(`NAME=NoMTA4,Family=inet,Addr=127.0.0.1')dnlright before the MAILER lines
- Add the line
# m4 sendmail-slackware.mc > /etc/mail/sendmail.cf
- Add something like
root: user user: user@example.org
- to the end of
/etc/mail/aliases; then run the commandnewaliases
# /etc/rc.d/rc.sendmail restart- Make sure that the fqdn-hostname is whitelisted in the inbound smtp server for
example.org