Différences
Ci-dessous, les différences entre deux révisions de la page.
Prochaine révision | Révision précédente | ||
informatique:reseau:messagerie:maildrop [2010/02/17 15:03] – Reprise ancien Wiki bn8 | informatique:reseau:messagerie:maildrop [2012/02/03 14:40] (Version actuelle) – bn8 | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
+ | ====== Maildrop ====== | ||
+ | |||
+ | |||
**Maildrop** est un **MDA** (//Mail Delivry Agent//) pouvant se subtituer à [[informatique: | **Maildrop** est un **MDA** (//Mail Delivry Agent//) pouvant se subtituer à [[informatique: | ||
[[informatique: | [[informatique: | ||
- | ====== Configuration de [[Postfix]] ====== | + | ===== Configuration de Postfix ===== |
* main.cf | * main.cf | ||
Ligne 18: | Ligne 21: | ||
* Penser à redémarrer [[informatique: | * Penser à redémarrer [[informatique: | ||
- | ====== Configuration de Maildrop | + | ===== Configuration de Maildrop ===== |
- | ===== Configuration LDAP ===== | + | ==== Configuration LDAP ==== |
* / | * / | ||
# 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 52: | ||
# | # | ||
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 | ||
- | ====== Configuration du filtrage | + | ===== Configuration du filtrage ===== |
Le fichier **/ | Le fichier **/ | ||
* / | * / | ||
Ligne 81: | Ligne 84: | ||
# 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 99: | ||
`maildirmake $DEFAULT/ | `maildirmake $DEFAULT/ | ||
} | } | ||
+ | | ||
to " | to " | ||
} | } | ||
+ | | ||
`test -r $HOME/ | `test -r $HOME/ | ||
if( $RETURNCODE == 0 ) | if( $RETURNCODE == 0 ) | ||
Ligne 108: | Ligne 111: | ||
} | } | ||
} | } | ||
+ | | ||
**Explication : **Ici Maildrop testera d' | **Explication : **Ici Maildrop testera d' | ||
- | ====== Configuration de Courier | + | ===== Configuration de Courier ===== |
Maildrop utilise les librairies de [[informatique: | Maildrop utilise les librairies de [[informatique: | ||
- | **Extrait du fichier // | + | **Extrait du fichier // |
| | ||
Ligne 132: | Ligne 135: | ||
**Remarque : ** La composition de // | **Remarque : ** La composition de // | ||
- | ====== Tests ====== | + | ===== Tests ===== |
Avant de configurer [[informatique: | Avant de configurer [[informatique: | ||
* Changer d' | * Changer d' | ||
Ligne 145: | Ligne 148: | ||
To: toto@domain.com | To: toto@domain.com | ||
Subject: test | Subject: test | ||
+ | | ||
test | test | ||
Ligne 160: | Ligne 163: | ||
La commande devrai rien retourner et le mail devrai se trouvé dans la //Maildir// de l' | La commande devrai rien retourner et le mail devrai se trouvé dans la //Maildir// de l' | ||
- | ===== Problèmes possibles | + | ==== Problèmes possibles ==== |
ERR: authdaemon: s_connect() failed: Permission denied | ERR: authdaemon: s_connect() failed: Permission denied | ||