Ajout de fichiers dans le plugins python.
darcs-hash:20071218042114-af139-8ce65c1c19fb24d871bddf18dfc29bd0627a40b1.gz
This commit is contained in:
parent
30982be082
commit
81ab684f93
12 changed files with 135 additions and 7 deletions
24
Python/etc/apt/sources.list/gen.py
Normal file
24
Python/etc/apt/sources.list/gen.py
Normal file
|
@ -0,0 +1,24 @@
|
|||
# -*- mode: python; coding: utf-8 -*-
|
||||
|
||||
include("mode/space")
|
||||
header()
|
||||
|
||||
if has("debian-mirror"):
|
||||
mirror = "file:/mirror/"
|
||||
else:
|
||||
mirror = "ftp:/mirror.adm.crans.org/"
|
||||
|
||||
def source(args):
|
||||
%deb mirror + args
|
||||
%deb-src mirror + args
|
||||
|
||||
source("debian etch main contrib")
|
||||
source("debian-volatile etch/volatile main contrib")
|
||||
source("debian-security etch/updates main")
|
||||
|
||||
if has("test"):
|
||||
@# Mplayer...
|
||||
source("debian-multimedia etch main")
|
||||
|
||||
@# Paquet construit a la main
|
||||
source("custom ./")
|
7
Python/etc/postfix/ldap-aliases.cf/gen.py
Normal file
7
Python/etc/postfix/ldap-aliases.cf/gen.py
Normal file
|
@ -0,0 +1,7 @@
|
|||
# -*- mode: python; coding: utf-8 -*-
|
||||
|
||||
header("Recherche des alias dans la base ldap.")
|
||||
|
||||
query="(|(mailAlias=%s)(canonicalAlias=%s))"
|
||||
result="uid"
|
||||
dump("template/postfix/ldap")
|
3
Python/etc/postfix/ldap-aliases.cf/info.xml
Normal file
3
Python/etc/postfix/ldap-aliases.cf/info.xml
Normal file
|
@ -0,0 +1,3 @@
|
|||
<FileInfo>
|
||||
<Info owner="root" group="root" perms="0600"/>
|
||||
</FileInfo>
|
7
Python/etc/postfix/ldap-canonical.cf/gen.py
Normal file
7
Python/etc/postfix/ldap-canonical.cf/gen.py
Normal file
|
@ -0,0 +1,7 @@
|
|||
# -*- mode: python; coding: utf-8 -*-
|
||||
|
||||
header()
|
||||
|
||||
query="(&(mail=%s)(canonicalAlias=*))"
|
||||
result="canonicalAlias"
|
||||
dump("template/postfix/ldap")
|
3
Python/etc/postfix/ldap-canonical.cf/info.xml
Normal file
3
Python/etc/postfix/ldap-canonical.cf/info.xml
Normal file
|
@ -0,0 +1,3 @@
|
|||
<FileInfo>
|
||||
<Info owner="root" group="root" perms="0600"/>
|
||||
</FileInfo>
|
7
Python/etc/postfix/ldap-sqlgrey.cf/gen.py
Normal file
7
Python/etc/postfix/ldap-sqlgrey.cf/gen.py
Normal file
|
@ -0,0 +1,7 @@
|
|||
# -*- mode: python; coding: utf-8 -*-
|
||||
|
||||
header("Test si le greylisting est active pour un certain compte.")
|
||||
|
||||
query="(|(uid=%u)(mailAlias=%u)(canonicalAlias=%u))"
|
||||
result="contourneGreylist"
|
||||
dump("template/postfix/ldap")
|
3
Python/etc/postfix/ldap-sqlgrey.cf/info.xml
Normal file
3
Python/etc/postfix/ldap-sqlgrey.cf/info.xml
Normal file
|
@ -0,0 +1,3 @@
|
|||
<FileInfo>
|
||||
<Info owner="root" group="root" perms="0600"/>
|
||||
</FileInfo>
|
21
Python/etc/postfix/transport/gen.py
Normal file
21
Python/etc/postfix/transport/gen.py
Normal file
|
@ -0,0 +1,21 @@
|
|||
# -*- coding: utf-8; mode: python -*-
|
||||
|
||||
header("Transport des mails.")
|
||||
|
||||
if has("mailing-list-manager"):
|
||||
@# Les mailing-listes sont delivrees localement
|
||||
@lists.crans.org local
|
||||
else:
|
||||
@lists.crans.org smtp:[lists.adm.crans.org]
|
||||
|
||||
if has("news-server"):
|
||||
@# Le corbeau, c'est ici
|
||||
@corbeau@crans.org local
|
||||
|
||||
if not has("users"):
|
||||
@# C'est le serveur des adherents qui fait les livraisons des
|
||||
@# adresses clubs et adherents
|
||||
@crans.org smtp:[users.adm.crans.org]
|
||||
@crans.ens-cachan.fr smtp:[users.adm.crans.org]
|
||||
@install-party.ens-cachan.fr smtp:[users.adm.crans.org]
|
||||
@clubs.ens-cachan.fr smtp:[users.adm.crans.org]
|
Loading…
Add table
Add a link
Reference in a new issue