lpi2:postfix-virtual-domains
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen der Seite angezeigt.
| Beide Seiten, vorherige ÜberarbeitungVorherige ÜberarbeitungNächste Überarbeitung | Vorherige Überarbeitung | ||
| lpi2:postfix-virtual-domains [2014/02/27 00:13] – 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: | + | Voraussetzung: |
| ===== Maps erstellen ===== | ===== Maps erstellen ===== | ||
| - | '' | + | <file txt / |
| - | <file> | + | |
| # postmap hash:/ | # postmap hash:/ | ||
| example.com yes | example.com yes | ||
| Zeile 13: | Zeile 11: | ||
| postmap hash:/ | postmap hash:/ | ||
| + | -> erzeugt ''/ | ||
| Domain nachschlagen testen: | 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 29: | Zeile 27: | ||
| Empfänger nachschlagen testen: | Empfänger nachschlagen testen: | ||
| postmap -q postmaster@example.com hash:/ | postmap -q postmaster@example.com hash:/ | ||
| - | | + | -> '' |
| + | | ||
| + | -> '' | ||
| ===== Postfix konfigurieren ===== | ===== Postfix konfigurieren ===== | ||
| - | '' | + | <file txt / |
| - | <file> | + | mydestination = localhost |
| virtual_mailbox_domains = hash:/ | virtual_mailbox_domains = hash:/ | ||
| virtual_mailbox_maps | virtual_mailbox_maps | ||
| virtual_alias_maps | virtual_alias_maps | ||
| - | virtual_transport = lmtp:unix:public/ | + | virtual_transport = lmtp:unix:private/ |
| </ | </ | ||
| + | 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.1393460002.txt.gz · Zuletzt geändert: 2014/02/27 00:13 von ingo_wichmann
