crans_bcfg2/Python/etc/postfix/canonical
Michel Blockelet 452b3c1742 [postfix] Canonical filtrant seulement le necessaire, corrections adm-only
Ignore-this: b5bef4b9217a758c7ca3654fe25fd582
Pour eviter que le canonical transforme lists.crans.org -> crans.org ...
On corrige aussi le hostname donne a postfix pour les serveurs adm-only.

darcs-hash:20121021231019-ddb99-69ee4298a18252363452db169c9a2f54c34a819e.gz
2012-10-22 01:10:19 +02:00

11 lines
282 B
Python

# -*- mode: python; coding: utf-8 -*-
include("ip")
if has("bug-tracker"):
# On ne sait jamais
@/^(.*)@bugs.crans.org$/ ${1}@bugs.crans.org
print "/^(.*)@%s$/ ${1}@crans.org" % admhostname
if not has("adm-only"):
print "/^(.*)@%s$/ ${1}@crans.org" % pubhostname