Linux/Mailserver/Internet Site: Difference between revisions
Appearance
< Linux | Mailserver
No edit summary |
No edit summary |
||
| Line 5: | Line 5: | ||
== Postgrey == | == Postgrey == | ||
* install | * install | ||
<blockquote> | <blockquote> | ||
<pre> | <pre> | ||
| Line 12: | Line 12: | ||
</blockquote> | </blockquote> | ||
* /etc/default/postgrey | * edit /etc/default/postgrey | ||
<blockquote> | <blockquote> | ||
<pre> | <pre> | ||
| Line 26: | Line 26: | ||
</blockquote> | </blockquote> | ||
* edit /etc/postfix/main.cf | |||
<blockquote> | <blockquote> | ||
<pre> | <pre> | ||
smtpd_recipient_restrictions = | |||
... | |||
permit_sasl_authenticated | |||
permit_mynetworks | |||
reject_unauth_destination | |||
... | |||
check_policy_service inet:127.0.0.1:10023 | |||
... | |||
permit | |||
</pre> | </pre> | ||
</blockquote> | </blockquote> | ||
<blockquote> | <blockquote> | ||
Revision as of 20:07, 5 September 2016
Requirements
- Ubuntu 16.04
- server with static ip
- control of dns entries
Postgrey
- install
apt install postgrey
- edit /etc/default/postgrey
POSTGREY_OPTS="--inet=10023 --delay=60"
- restart
systemctl restart postgrey
- edit /etc/postfix/main.cf
smtpd_recipient_restrictions =
...
permit_sasl_authenticated
permit_mynetworks
reject_unauth_destination
...
check_policy_service inet:127.0.0.1:10023
...
permit