Difference between revisions of "Sendmail"
Jump to navigation
Jump to search
(Initial creation) |
(→Configuration: Added "Allowed/Denied Senders/Receivers") |
||
Line 35: | Line 35: | ||
Taken from the recommendations at http://www.trilug.org/~jonc/mailserver/PartIII.html | Taken from the recommendations at http://www.trilug.org/~jonc/mailserver/PartIII.html | ||
=== Allowed/Denied Senders/Receivers === | |||
First check that the feature is enabled in <code>sendmail.mc</code>, look in (don't worry about a <code>dnl</code> at the end of the lines, only if they're at the front) | |||
FEATURE(access_db) | |||
FEATURE(blacklist_recipients) | |||
You can then edit the <code>access</code> to allow or deny email, eg | |||
<pre> | |||
# Allow connections from (relaying) from the following... | |||
Connect:localhost.localdomain RELAY | |||
Connect:localhost RELAY | |||
Connect:127.0.0.1 RELAY | |||
Connect:192.168.10 RELAY | |||
# Deny email destined for recipients | |||
server.domain.com 550 Mail relay disabled for this recipient | |||
user@another.com 550 Mail relay disabled for this recipient | |||
</pre> | |||
== Troubleshooting == | == Troubleshooting == |