Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
| public:linux:mail [2011/09/17 14:09] – ceric35 | public:linux:mail [2023/02/13 13:39] (Version actuelle) – modification externe 127.0.0.1 | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| ====== Installation d'un serveur mail ====== | ====== Installation d'un serveur mail ====== | ||
| + | |||
| + | Cette documentation explique comment installer un serveur mail complet (smtp, imap, pop) | ||
| + | basé sur les comptes unix (et le système de stockage basé sur maildir). | ||
| + | |||
| + | documentation : http:// | ||
| ===== Postfix ===== | ===== Postfix ===== | ||
| {{: | {{: | ||
| + | |||
| + | Postfix permet d' | ||
| < | < | ||
| < | < | ||
| + | |||
| + | **Configuration** | ||
| < | < | ||
| + | # the internet hostname of this mail system | ||
| + | myhostname = ceric35.net | ||
| + | |||
| + | # les adresses autorisés a utiliser postfix | ||
| + | mynetworks = 127.0.0.0/ | ||
| + | |||
| + | # Hote relay | ||
| + | relayhost = smtp.free.fr | ||
| + | |||
| + | # Alias pour les comptes mail | ||
| + | alias_maps = hash:/ | ||
| + | alias_database = hash:/ | ||
| + | |||
| + | # Utilisation de procmail pour la livraison des mails | ||
| + | mailbox_command = procmail -a " | ||
| + | |||
| + | # Autorisation des + (et obligatoire pour mailman) | ||
| + | recipient_delimiter = + | ||
| + | |||
| + | # ??? (mais mailman aime bien) | ||
| + | unknown_local_recipient_reject_code = 550 | ||
| + | |||
| </ | </ | ||
| - | ===== Postgrey | + | **Ajout des alias:** |
| + | < | ||
| + | root: mailboxname | ||
| + | admin: mailboxname | ||
| + | </ | ||
| + | |||
| + | **Prise en compte des alias:** | ||
| + | newaliases | ||
| + | postfix reload | ||
| + | |||
| + | ===== procmail ===== | ||
| + | |||
| + | Procmail permet de traiter les mails transférés par postfix. | ||
| + | |||
| + | **Installation: | ||
| + | emerge procmail | ||
| + | |||
| + | **Configuration** | ||
| + | La configuration par défaut est très bien: | ||
| + | < | ||
| + | # Use maildir-style mailbox in user's home directory | ||
| + | DEFAULT=$HOME/ | ||
| + | </ | ||
| + | |||
| + | ===== courier ===== | ||
| + | |||
| + | Courier permet de fournir un serveur imap (ou pop) pour recupérer les mails a distance. | ||
| + | |||
| + | **Installation: | ||
| + | emerge courier-imap | ||
| + | |||
| + | Fonctionne par defaut sans configuration. | ||
| + | |||
| + | ===== webmail : roundcube | ||
| - | < | + | Roundcube est un webmail. |
| - | ===== Amavis, SpamAssassin & Clamav ===== | + | **Installation: |
| + | emerge roundcube | ||
| + | webapp-config -I -h mail.ceric35.net -d / roundcube 0.5.4 | ||
| - | {{:public: | + | **Configuration:** |
| - | {{: | + | * config/main.inc.php |
| - | {{: | + | * $rcmail_config[' |
| + | * / | ||
| + | * 127.0.0.1 ceric35.net | ||
| - | < | + | ==== webmail : imp ===== |
| - | ===== Source ===== | + | **Installation: |
| + | emerge squirrelmail | ||
| + | webapp-config -I -h mail.ceric35.net -d imp squirrelmail 1.4.22 | ||
| - | http:// | + | **Configuration:** |