Hier werden die Unterschiede zwischen zwei Versionen gezeigt.
Beide Seiten, vorherige Überarbeitung Vorherige Überarbeitung Nächste Überarbeitung | Vorherige Überarbeitung Nächste Überarbeitung Beide Seiten, nächste Überarbeitung | ||
lpi2:postfix-virtual-domains [2014/02/26 22:52] ingo_wichmann |
lpi2:postfix-virtual-domains [2014/02/27 00:19] ingo_wichmann [Postfix konfigurieren] |
||
---|---|---|---|
Zeile 4: | Zeile 4: | ||
Voraussetzung: [[postfix-dovecot-imapd]] mit lmtp | Voraussetzung: [[postfix-dovecot-imapd]] mit lmtp | ||
- | ''/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 ====== |