Différences
Ci-dessous, les différences entre deux révisions de la page.
Prochaine révision | Révision précédenteDernière révisionLes deux révisions suivantes | ||
informatique:reseau:messagerie:maildrop [2010/02/17 15:03] – Reprise ancien Wiki bn8 | informatique:reseau:messagerie:maildrop [2011/06/21 12:48] – modification externe 127.0.0.1 | ||
---|---|---|---|
Ligne 3: | Ligne 3: | ||
[[informatique: | [[informatique: | ||
- | ====== Configuration de [[Postfix]] ====== | + | ====== Configuration de Postfix ====== |
* main.cf | * main.cf | ||
Ligne 24: | Ligne 24: | ||
# hostname - host name of your ldap server | # hostname - host name of your ldap server | ||
hostname | hostname | ||
+ | | ||
# basedn - base DN by which to search for LDAP entries | # basedn - base DN by which to search for LDAP entries | ||
basedn | basedn | ||
+ | | ||
# binddn, bindpw - optional, binddn and password if your ldap server | # binddn, bindpw - optional, binddn and password if your ldap server | ||
# requires you to authenticate before searching | # requires you to authenticate before searching | ||
binddn cn=mail, | binddn cn=mail, | ||
bindpw mailpassword | bindpw mailpassword | ||
+ | | ||
# timeout - specifies maximum time ( in seconds ) to wait for a response | # timeout - specifies maximum time ( in seconds ) to wait for a response | ||
# from the LDAP server | # from the LDAP server | ||
timeout | timeout | ||
+ | | ||
# search_method - used to specify whether to search on the users id, or | # search_method - used to specify whether to search on the users id, or | ||
# email address, and may be either ' | # email address, and may be either ' | ||
Ligne 49: | Ligne 49: | ||
# | # | ||
search_method | search_method | ||
+ | | ||
# default_uid - default uid (number only) to use incase uidnumber attribute not | # default_uid - default uid (number only) to use incase uidnumber attribute not | ||
# found in users ldap entry | # found in users ldap entry | ||
default_uidnumber | default_uidnumber | ||
+ | | ||
# default_gid - default gid (number only) to use incase gidnumber attribute not | # default_gid - default gid (number only) to use incase gidnumber attribute not | ||
# found in users ldap entry | # found in users ldap entry | ||
default_gidnumber | default_gidnumber | ||
+ | | ||
# MAIL_ATTR - LDAP attribute which contains the users complete email address | # MAIL_ATTR - LDAP attribute which contains the users complete email address | ||
mail_attr | mail_attr | ||
+ | | ||
# UID_ATTR - LDAP attribute which contains the users name (w/o domain) | # UID_ATTR - LDAP attribute which contains the users name (w/o domain) | ||
uid_attr | uid_attr | ||
+ | | ||
# MAILDIR_ATTR - LDAP attribute which contains the path to the users | # MAILDIR_ATTR - LDAP attribute which contains the path to the users | ||
# custom maildir | # custom maildir | ||
maildir_attr | maildir_attr | ||
+ | | ||
# HOMEDIRECTORY_ATTR - LDAP attribute which contains the path to the users | # HOMEDIRECTORY_ATTR - LDAP attribute which contains the path to the users | ||
# home directory | # home directory | ||
homedirectory_attr | homedirectory_attr | ||
+ | | ||
# QUOTA_ATTR - LDAP attribute which contains the users quota | # QUOTA_ATTR - LDAP attribute which contains the users quota | ||
quota_attr | quota_attr | ||
Ligne 81: | Ligne 81: | ||
# Global maildrop filter file | # Global maildrop filter file | ||
DEFAULT=" | DEFAULT=" | ||
+ | | ||
`test -d $DEFAULT` | `test -d $DEFAULT` | ||
+ | | ||
if ( $RETURNCODE == 1 ) | if ( $RETURNCODE == 1 ) | ||
{ | { | ||
`maildirmake $DEFAULT` | `maildirmake $DEFAULT` | ||
} | } | ||
+ | | ||
if (/ | if (/ | ||
{ | { | ||
Ligne 96: | Ligne 96: | ||
`maildirmake $DEFAULT/ | `maildirmake $DEFAULT/ | ||
} | } | ||
+ | | ||
to " | to " | ||
} | } | ||
+ | | ||
`test -r $HOME/ | `test -r $HOME/ | ||
if( $RETURNCODE == 0 ) | if( $RETURNCODE == 0 ) | ||
Ligne 108: | Ligne 108: | ||
} | } | ||
} | } | ||
+ | | ||
**Explication : **Ici Maildrop testera d' | **Explication : **Ici Maildrop testera d' | ||
Ligne 115: | Ligne 115: | ||
Maildrop utilise les librairies de [[informatique: | Maildrop utilise les librairies de [[informatique: | ||
- | **Extrait du fichier // | + | **Extrait du fichier // |
| | ||
Ligne 145: | Ligne 145: | ||
To: toto@domain.com | To: toto@domain.com | ||
Subject: test | Subject: test | ||
+ | | ||
test | test | ||