Documentation added.

see #469
This commit is contained in:
Antoine Nguyen
2013-12-27 16:05:00 +01:00
parent b46fb9c103
commit 99990c11cd
2 changed files with 12 additions and 5 deletions
+4 -5
View File
@@ -63,14 +63,13 @@ lines inside::
<driver>:/etc/postfix/maps/sql-relaydomains-transport.cf
<driver>:/etc/postfix/maps/sql-relaydomain-aliases-transport.cf
Replace ``<driver>`` by the name of the database you use.
Ensure that ``smtpd_recipient_restrictions`` contains at least the
following options::
smtpd_recipient_restrictions =
permit_mynetworks
reject_unauth_destination
check_recipient_access
<driver>:/etc/postfix/maps/sql-relay-recipient-verification.cf
Replace ``<driver>`` by the name of the database you use.
Reload postfix.
+8
View File
@@ -172,6 +172,14 @@ class RelayDomainAliasesTransportMap(MapFile):
sqlite = "SELECT srv.name || ':[' || rdom.target_host || ']' FROM postfix_relay_domains_service AS srv INNER JOIN postfix_relay_domains_relaydomain AS rdom ON rdom.service_id=srv.id INNER JOIN postfix_relay_domains_relaydomainalias AS rdomalias ON rdom.id=rdomalias.target_id WHERE rdom.enabled=1 AND rdomalias.enabled=1 AND rdomalias.name='%s'"
class RelayRecipientVerification(Mapfile):
category = "relaydomains"
filename = "sql-relay-recipient-verification.cf"
mysql = "SELECT 'reject_unverified_recipient' FROM postfix_relay_domains_relaydomain WHERE verify_recipients=1 AND name='%d'"
postgres = "SELECT 'reject_unverified_recipient' FROM postfix_relay_domains_relaydomain WHERE verify_recipients AND name='%d'"
sqlite = "SELECT 'reject_unverified_recipient' FROM postfix_relay_domains_relaydomain WHERE verify_recipients=1 AND name='%d'"
class PostfixMapsCommand(Command):
help = "Generate ready-to-use postfix map files"