Hier werden die Unterschiede zwischen zwei Versionen gezeigt.
Beide Seiten, vorherige Überarbeitung Vorherige Überarbeitung Nächste Überarbeitung | Vorherige Überarbeitung | ||
lpi2:postfix-virtual-domains [2014/02/26 22:52] ingo_wichmann |
lpi2:postfix-virtual-domains [2022/12/17 12:53] (aktuell) ingo_wichmann |
||
---|---|---|---|
Zeile 2: | Zeile 2: | ||
//in der Praxis würde ich LDAP oder eine Datenbank bevorzugen// | //in der Praxis würde ich LDAP oder eine Datenbank bevorzugen// | ||
- | Voraussetzung: [[postfix-dovecot-imapd]] mit lmtp | + | Voraussetzung: [[postfix-dovecot-imapd]] mit [[wpde>LMTP]] und [[dovecot-virtual-domains]] |
- | ''/etc/postfix/main.cf'' : | + | ===== Maps erstellen ===== |
- | <file> | + | |
- | virtual_mailbox_domains = hash:/etc/postfix/virtual_mailbox_domains.txt | + | |
- | virtual_mailbox_maps = hash:/etc/postfix/virtual_alias_maps.txt | + | |
- | virtual_alias_maps = hash:/etc/postfix/virtual_alias_maps.txt | + | |
- | + | ||
- | virtual_transport = lmtp:unix:public/dovecot-lmtp | + | |
- | </file> | + | |
''/etc/postfix/virtual_mailbox_domains.txt'' : | ''/etc/postfix/virtual_mailbox_domains.txt'' : | ||
Zeile 37: | Zeile 30: | ||
postmap -q postmaster@example.com hash:/etc/postfix/virtual_alias_maps.txt | postmap -q postmaster@example.com hash:/etc/postfix/virtual_alias_maps.txt | ||
postmap -q user2@example.com hash:/etc/postfix/virtual_alias_maps.txt | postmap -q user2@example.com hash:/etc/postfix/virtual_alias_maps.txt | ||
+ | |||
+ | ===== Postfix konfigurieren ===== | ||
+ | |||
+ | ''/etc/postfix/main.cf'' : | ||
+ | <file> | ||
+ | virtual_mailbox_domains = hash:/etc/postfix/virtual_mailbox_domains.txt | ||
+ | virtual_mailbox_maps = hash:/etc/postfix/virtual_alias_maps.txt | ||
+ | virtual_alias_maps = hash:/etc/postfix/virtual_alias_maps.txt | ||
+ | |||
+ | virtual_transport = lmtp:unix:private/dovecot-lmtp | ||
+ | </file> | ||
====== Dokumentation ====== | ====== Dokumentation ====== | ||
* http://www.postfix.org/VIRTUAL_README.html#virtual_mailbox | * http://www.postfix.org/VIRTUAL_README.html#virtual_mailbox | ||
- | * https://workaround.org/ispmail/squeeze/postfix-domain-types | ||