From: julm Date: Mon, 9 Dec 2013 10:00:47 +0000 (+0100) Subject: Modification : postfix : gère mieux les +$EXTENSION dans virtual(5). X-Git-Url: https://git.cyclocoop.org/?p=lhc%2Fateliers.git;a=commitdiff_plain;h=609b4906d7603de5aa78e3f899427858de00206d Modification : postfix : gère mieux les +$EXTENSION dans virtual(5). --- diff --git a/etc/postfix/main.cf b/etc/postfix/main.cf index 056312e..802fa35 100644 --- a/etc/postfix/main.cf +++ b/etc/postfix/main.cf @@ -53,7 +53,7 @@ parent_domain_matches_subdomains = #smtpd_access_maps permit_mx_backup_networks = policy-spf_time_limit = 3600s -propagate_unmatched_extensions = canonical, virtual +propagate_unmatched_extensions = canonical, virtual, alias queue_minfree = 0 readme_directory = no #receive_override_options = no_address_mappings @@ -145,6 +145,8 @@ smtpd_recipient_restrictions = permit_sasl_authenticated reject_unverified_recipient # NOTE: $fallback_transport est garant de l'existence du destinataire + # ATTENTION: verify(8) tient un cache, consultable ainsi si verify(8) est stoppé : + # postmap -s btree:/var/lib/postfix/verify_cache reject_unauth_destination # NOTE: ne pas passer par SPFCheck / Postgrey si le mail n'est pas pour nous ou quelqu'un pour lequel on tient lieu de backup_mx check_policy_service unix:private/spfcheck diff --git a/etc/sympa/virtual_alias b/etc/sympa/virtual_alias index 7c67b3e..0d03f33 100644 --- a/etc/sympa/virtual_alias +++ b/etc/sympa/virtual_alias @@ -1,8 +1,2 @@ -/^(postmaster|root|abuse|sympa-request)@(cyclocoop\.org)$/ $2-$1 -/^(listmaster|sympa)@(cyclocoop\.org)$/ $2-$1 -/^(.*)-(request|editor|owner|subscribe|unsubscribe)@(cyclocoop\.org)$/ $3-$1-$2 -/^([^+]*)@(cyclocoop\.org)$/ $2-$1 -/^(postmaster|root|abuse|sympa-request)@(ptitvelo\.net)$/ $2-$1 -/^(listmaster|sympa)@(ptitvelo\.net)$/ $2-$1 -/^(.*)-(request|editor|owner|subscribe|unsubscribe)@(ptitvelo\.net)$/ $3-$1-$2 -/^([^+]*)@(ptitvelo\.net)$/ $2-$1 +/^([^@]+)@(cyclocoop\.org)$/ $2-$1 +/^([^@]+)@(ptitvelo\.net)$/ $2-$1