lpi2:postfix-virtual-domains
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen der Seite angezeigt.
| Nächste Überarbeitung | Vorherige Überarbeitung | ||
| lpi2:postfix-virtual-domains [2014/02/26 21:20] – angelegt ingo_wichmann | lpi2:postfix-virtual-domains [2024/08/10 13:08] (aktuell) – ingo_wichmann | ||
|---|---|---|---|
| Zeile 1: | Zeile 1: | ||
| ====== Postfix: virtuelle Domains und Benutzer in Textdateien ====== | ====== Postfix: virtuelle Domains und Benutzer in Textdateien ====== | ||
| - | //in der Praxis würde ich LDAP oder eine Datenbank bevorzugen// | ||
| - | ''/ | + | Voraussetzung: |
| - | <file> | + | |
| - | virtual_mailbox_domains = hash:/ | + | ===== Maps erstellen ===== |
| - | virtual_mailbox_maps | + | |
| - | virtual_alias_maps | + | |
| - | </ | + | |
| - | '' | + | <file txt / |
| - | <file> | + | |
| # postmap hash:/ | # postmap hash:/ | ||
| example.com yes | example.com yes | ||
| Zeile 16: | Zeile 11: | ||
| postmap hash:/ | postmap hash:/ | ||
| + | -> erzeugt ''/ | ||
| + | Domain nachschlagen testen: | ||
| postmap -q example.com hash:/ | postmap -q example.com hash:/ | ||
| - | + | -> '' | |
| - | ''/ | + | <file txt / |
| - | <file> | + | |
| # postmap hash:/ | # postmap hash:/ | ||
| postmaster@example.com | postmaster@example.com | ||
| Zeile 25: | Zeile 21: | ||
| user1@example.com | user1@example.com | ||
| user2@example.com | user2@example.com | ||
| + | admin@example.com | ||
| </ | </ | ||
| postmap hash:/ | postmap hash:/ | ||
| + | Empfänger nachschlagen testen: | ||
| postmap -q postmaster@example.com hash:/ | postmap -q postmaster@example.com hash:/ | ||
| - | | + | -> '' |
| + | | ||
| + | -> '' | ||
| + | |||
| + | ===== Postfix konfigurieren ===== | ||
| + | |||
| + | <file txt / | ||
| + | mydestination = localhost | ||
| + | |||
| + | virtual_mailbox_domains = hash:/ | ||
| + | virtual_mailbox_maps | ||
| + | virtual_alias_maps | ||
| + | |||
| + | virtual_transport = lmtp: | ||
| + | </ | ||
| + | postfix reload | ||
| + | |||
| + | ===== testen ===== | ||
| + | Client: | ||
| + | swaks --from user1@example.com --to user2@example.com -s example.com -a -au user1@example.com -ap xxxxxx | ||
| + | -> '' | ||
| + | |||
| + | Server: | ||
| + | journalctl -g 46AE13EB41 | ||
| + | -> '' | ||
| ====== Dokumentation ====== | ====== Dokumentation ====== | ||
| * http:// | * http:// | ||
| - | * https:// | + | |
lpi2/postfix-virtual-domains.1393449644.txt.gz · Zuletzt geändert: 2014/02/26 21:20 von ingo_wichmann
