From 512848aa65b7394265531647418b1f54bd1b7c03 Mon Sep 17 00:00:00 2001 From: Steven Mondji-Lerider Date: Mon, 8 Oct 2012 13:49:15 +0000 Subject: [PATCH] Updating postfix config files to work with mailman ( not yet with virtual domains ). --- .gitattributes | 1 + etc/alternc/postfix.cf | 3 ++- etc/alternc/templates/postfix/mytransport.cf | 13 +++++++++++++ 3 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 etc/alternc/templates/postfix/mytransport.cf diff --git a/.gitattributes b/.gitattributes index 7dc4f136..1076bdf8 100644 --- a/.gitattributes +++ b/.gitattributes @@ -481,6 +481,7 @@ etc/alternc/templates/postfix/mydomain.cf -text etc/alternc/templates/postfix/mygid.cf -text etc/alternc/templates/postfix/myquota.cf -text etc/alternc/templates/postfix/myrelay.cf -text +etc/alternc/templates/postfix/mytransport.cf -text etc/alternc/templates/postfix/myvirtual.cf -text etc/alternc/templates/postfix/sasl/smtpd.conf -text etc/alternc/templates/proftpd/modules.conf -text diff --git a/etc/alternc/postfix.cf b/etc/alternc/postfix.cf index 70b27a49..bd8429ac 100644 --- a/etc/alternc/postfix.cf +++ b/etc/alternc/postfix.cf @@ -41,6 +41,7 @@ virtual_mailbox_base = /var/alternc/mail virtual_minimum_uid = 2000 virtual_gid_maps = proxy:mysql:/etc/postfix/mygid.cf virtual_uid_maps = proxy:mysql:/etc/postfix/mygid.cf -virtual_transport = dovecot +transport_maps = proxy:mysql:/etc/postfix/mytransport.cf dovecot_destination_recipient_limit = 1 +mailman_destination_recipient_limit = 1 smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_invalid_hostname, reject_non_fqdn_hostname, reject_non_fqdn_sender, reject_rbl_client zen.spamhaus.org, reject_non_fqdn_recipient, reject_unknown_sender_domain, reject_unknown_recipient_domain, reject_unauth_pipelining, reject_unlisted_recipient, reject_unauth_destination diff --git a/etc/alternc/templates/postfix/mytransport.cf b/etc/alternc/templates/postfix/mytransport.cf new file mode 100644 index 00000000..8f49fa42 --- /dev/null +++ b/etc/alternc/templates/postfix/mytransport.cf @@ -0,0 +1,13 @@ +# +# %%warning_message%% +# + +user = %%db_mail_user%% +password = %%db_mail_pwd%% +hosts =%%dbhost%% +dbname = %%dbname%% + +query = select delivery from mailbox join address on address.id = mailbox.address_id join domaines on domaines.id = address.domain_id where concat(address.address,'@',domaines.domaine) ='%s' + + +