isp-tools

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit a883492816e67e7781a7ee37bd495e111301dc62
parent dbb809194d5b2c44fc9d366eb89e587bd60972a6
Author: dankert <devnull@localhost>
Date:   Tue, 27 Sep 2016 00:47:06 +0200

Transport-Tabelle muss auch die Domains der Aliases enthalten.

Diffstat:
update_mta | 6++++--
1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/update_mta b/update_mta @@ -44,13 +44,15 @@ fi -create_map transport "select distinct domain,'virtual:' from mailbox where active=1" +create_map transport "select distinct domain,'virtual:' from alias where active=1" create_map aliases "select address,goto from alias where active=1" create_map sender "select concat(local_part,'@',domain),concat(local_part,'@',domain) from mailbox where active=1" create_map virtualforward "select '# n/a','' from mailbox where active=1" create_map accounts "select concat(local_part,'@',domain) , concat(maildir,'/') from mailbox where active=1" create_map accountsmap "select concat(local_part,'@',domain) , concat(local_part,'@',domain) from mailbox where active=1" -create_map recipient_reject "select concat(local_part,'@',domain), 'REJECT' from mailbox where active=0" + +# Ablehnen: Deaktivierte Mailboxen und deaktivierte Aliases +create_map recipient_reject "select concat(local_part,'@',domain), 'REJECT' from mailbox where active=0 union select address,'REJECT' from alias where active=0" hg -R $MTA_CONFIG_DIR diff hg -R $MTA_CONFIG_DIR commit -u `whoami` -m "Updating Postfix configuration"