Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
| Beide Seiten der vorigen RevisionVorhergehende ÜberarbeitungNächste Überarbeitung | Vorhergehende Überarbeitung | ||
| centos:mail_c7:postfix3_4 [27.01.2019 20:02. ] – [manpage] django | centos:mail_c7:postfix3_4 [22.07.2020 20:09. ] (aktuell) – [Reject-Regeln] django | ||
|---|---|---|---|
| Zeile 18: | Zeile 18: | ||
| - Anschließend wechseln wir in das Konfigurationsverzeichnis // | - Anschließend wechseln wir in das Konfigurationsverzeichnis // | ||
| - Nun löschen __oder__ verschieben wir die nicht benötigten Dateien: | - Nun löschen __oder__ verschieben wir die nicht benötigten Dateien: | ||
| - | - **löschen** < | + | - **löschen** < |
| main.cf main.cf.proto master.cf.proto -f</ | main.cf main.cf.proto master.cf.proto -f</ | ||
| - | - **verschieben** < | + | - **verschieben** < |
| main.cf main.cf.proto master.cf.proto / | main.cf main.cf.proto master.cf.proto / | ||
| - Anlegen einer leeren **main.cf**. < | - Anlegen einer leeren **main.cf**. < | ||
| Zeile 26: | Zeile 26: | ||
| Somit befinden sich nun nur noch zwei Dateien im Verzeichnis // | Somit befinden sich nun nur noch zwei Dateien im Verzeichnis // | ||
| < | < | ||
| + | ├── access | ||
| ├── dynamicmaps.cf | ├── dynamicmaps.cf | ||
| ├── dynamicmaps.cf.d | ├── dynamicmaps.cf.d | ||
| Zeile 343: | Zeile 344: | ||
| virtual_transport = lmtp: | virtual_transport = lmtp: | ||
| </ | </ | ||
| + | |||
| + | === relay_domains === | ||
| + | * **relay_domains** Lookup-Tabelle zur Definition der Domänen für die unser Mailserver Nachricht annehmen soll. \\ **relay_domains.db** Datenbankfile zur // | ||
| + | # Kapitel 12.1 Postfix als eingehendes Mailrelay vor einem anderen Server | ||
| + | # Lookup-Tabelle zur Definition der Domänen für die unser Mailserver Nachricht annehmen soll. | ||
| + | # Nach dem Ändern und/oder Erweitern der Tabelle, muß noch mittels | ||
| + | # | ||
| + | # $ postmap / | ||
| + | # | ||
| + | # die zugehörige Datenbank erzeugt werden. | ||
| + | # | ||
| + | # Relevant ist erst eimal nur die erste Spalte. Die zweite Spalte dient nur zum Erhalten der Tabellenstruktur und | ||
| + | # kann daher z.B. als Hinweisfeld zum Dokumentieren verwendet werden. | ||
| + | # Beispiel: | ||
| + | # omni128.de | ||
| + | # | ||
| + | # Da für jede Domäne auch ein Transportweg definiert werden muss, erledigen wir die Definition des selbigen gleich | ||
| + | # hier in dieser Tabelle, in dem wir die Spalte zwei hierzu verwenden. | ||
| + | # | ||
| + | |||
| + | === transport_maps === | ||
| + | * **transport_maps** Lookup-Tabelle zum Aktivieren einer alternativen Mailrouting bei der Zustellung an einen weiteren Mailserver. \\ **transport_maps.db** Datenbankfile zur // | ||
| + | # Kapitel 5.2.5 transport-Tabelle: | ||
| + | # Lookup-Tabelle zum Aktivieren einer alternativen Mailrouting bei der | ||
| + | # Zustellung an einen weiteren Mailserver. Nach dem Ändern und/oder | ||
| + | # Erweitern der Tabelle, muß noch mittels: | ||
| + | # | ||
| + | # $ postmap / | ||
| + | # | ||
| + | # die zugehörige Datenbank erzeugt werden. | ||
| + | # | ||
| + | # Alle eMails, die an Subdomains von nausch.org gerichtet sind | ||
| + | # (" | ||
| + | # intra.nausch.org (MX-Records) weitergeleitet. (keine " | ||
| + | # | ||
| + | |||
| + | # Alle eMails, die an die Domain tachtler.net gerichtet sind, werden an | ||
| + | # den bzw. die Mailserver der Mail-Domäne t-offline.de (MX-Records) | ||
| + | # weitergeleitet. (keine " | ||
| + | # tachtler.net | ||
| + | |||
| + | # Mails an backup.nausch.org werden an den Mailserver (A-Record) auf Port 25 | ||
| + | # mit Namen mail.intra.nausch.org geschickt. | ||
| + | # | ||
| ==== Queueing ==== | ==== Queueing ==== | ||
| Zeile 497: | Zeile 542: | ||
| # wget http:// | # wget http:// | ||
| - | |||
| - | |||
| - | |||
| - | |||
| - | |||
| - | \\ \\ \\ | ||
| - | <WRAP center round todo 30%> | ||
| - | FIXME FIXME FIXME | ||
| - | * //**do geds weida!**// | ||
| - | FIXME FIXME FIXME | ||
| - | </ | ||
| - | \\ \\ \\ | ||
| - | |||
| - | |||
| ===== Lookup-Tabellen ===== | ===== Lookup-Tabellen ===== | ||
| Zeile 1070: | Zeile 1101: | ||
| === Access-Dateien === | === Access-Dateien === | ||
| == check_client_access == | == check_client_access == | ||
| - | * **access_client** Access-Tabelle zum Black- und Whitelisten einzelner Hosts auf Basis ihrer IP-Adresse. Damit wir auch Netzbereiche in der Form **10.0.10.1/ | + | * **access_client** Access-Tabelle zum Black- und Whitelisten einzelner Hosts auf Basis ihrer IP-Adresse. Damit wir auch Netzbereiche in der Form **10.0.10.1/ |
| # Kapitel 5.2.7 access-Tabelle: | # Kapitel 5.2.7 access-Tabelle: | ||
| # Tabelle zum black- und whitelisten einzelner Hosts auf Basis ihrer | # Tabelle zum black- und whitelisten einzelner Hosts auf Basis ihrer | ||
| Zeile 1086: | Zeile 1117: | ||
| == check_helo_access == | == check_helo_access == | ||
| - | * **access_helo** Access-Tabelle zum Black- und Whitelisten einzelner Hosts auf Grund seines HELO-Namens. \\ **access_helo.db** Datenbankfile zur // | + | * **access_helo** Access-Tabelle zum Black- und Whitelisten einzelner Hosts auf Grund seines HELO-Namens. \\ **access_helo.db** Datenbankfile zur // |
| # Kapitel 5.2.7 access-Tabelle: | # Kapitel 5.2.7 access-Tabelle: | ||
| # Tabelle zum black- und whitelisten einzelner Hosts auf Grund seines | # Tabelle zum black- und whitelisten einzelner Hosts auf Grund seines | ||
| Zeile 1098: | Zeile 1129: | ||
| == check_recipient_access-rfc == | == check_recipient_access-rfc == | ||
| - | * **access_recipient-rfc** Access-Tabelle zum Black- und Whitelisten einzelner aufgaben- oder funktionsgebundener E-Mail-Adressen (Role-Accounts). \\ **access_recipient-rfc.db** Datenbankfile zur // | + | * **access_recipient-rfc** Access-Tabelle zum Black- und Whitelisten einzelner aufgaben- oder funktionsgebundener E-Mail-Adressen (Role-Accounts). \\ **access_recipient-rfc.db** Datenbankfile zur // |
| # Postmaster, abuse und andere aufgaben- oder funktionsgebundene eMail-Adressen | # Postmaster, abuse und andere aufgaben- oder funktionsgebundene eMail-Adressen | ||
| # (Role-Accounts) whitelisten. Nach dem Ändern und/oder Erweiterrn der Tabelle, | # (Role-Accounts) whitelisten. Nach dem Ändern und/oder Erweiterrn der Tabelle, | ||
| Zeile 1107: | Zeile 1138: | ||
| abuse@ | abuse@ | ||
| postmaster@ | postmaster@ | ||
| + | webmaster@ | ||
| </ | </ | ||
| == check_recipient_access == | == check_recipient_access == | ||
| - | * **access_recipient** Access-Tabelle zum Black- und Whitelisten einzelner Hosts auf Grund der Empfänger-eMailadresse. \\ **access_recipient.db** Datenbankfile zur // | + | * **access_recipient** Access-Tabelle zum Black- und Whitelisten einzelner Hosts auf Grund der Empfänger-eMailadresse. \\ **access_recipient.db** Datenbankfile zur // |
| # Kapitel 5.2.7 access-Tabelle: | # Kapitel 5.2.7 access-Tabelle: | ||
| # Tabelle zum black- und whitelisten einzelne Empfänger auf Basis ihrer | # Tabelle zum black- und whitelisten einzelne Empfänger auf Basis ihrer | ||
| Zeile 1123: | Zeile 1155: | ||
| == check_sender_access == | == check_sender_access == | ||
| - | * **access_sender** Access-Tabelle zum Black- und Whitelisten einzelner Absender auf Grund der Absender-eMailadresse. \\ **access_sender.db** Datenbankfile zur // | + | * **access_sender** Access-Tabelle zum Black- und Whitelisten einzelner Absender auf Grund der Absender-eMailadresse. \\ **access_sender.db** Datenbankfile zur // |
| # Kapitel 5.2.7 access-Tabelle: | # Kapitel 5.2.7 access-Tabelle: | ||
| # Tabelle zum black- und whitelisten einzelner Absender auf Basis ihrer | # Tabelle zum black- und whitelisten einzelner Absender auf Basis ihrer | ||
| Zeile 1145: | Zeile 1177: | ||
| In der Manpage zu **canonical** bzw. in der Datei // | In der Manpage zu **canonical** bzw. in der Datei // | ||
| # man 5 canonical | # man 5 canonical | ||
| - | < | + | < |
| NAME | NAME | ||
| Zeile 1158: | Zeile 1190: | ||
| DESCRIPTION | DESCRIPTION | ||
| - | | + | |
| - | addresses. The mapping | + | |
| - | the queue. | + | recursive. |
| - | | + | |
| - | the postmap(1) | + | mand. The result, an indexed file in dbm or db format, is used for fast searching |
| - | fast searching by the mail system. Execute the command " | + | Execute |
| - | cal" to rebuild an indexed file after changing the corresponding | + | |
| - | When the table is provided via other means such as NIS, LDAP or SQL, the same lookups | + | When the table is provided via other means such as NIS, LDAP or SQL, the same lookups |
| - | are done as for ordinary indexed files. | + | ordinary indexed files. |
| - | | + | |
| - | are given as regular expressions, | + | expressions, |
| - | those cases, | + | slightly different way as described below under " |
| - | under " | + | |
| - | By default the canonical(5) mapping | + | |
| - | addresses | + | inside messages) and message envelope addresses (for example, the addresses that are used in SMTP protocol |
| - | the addresses that are used in SMTP protocol commands). This is controlled | + | commands). This is controlled with the canonical_classes parameter. |
| - | canonical_classes parameter. | + | |
| - | NOTE: Postfix versions 2.2 and later rewrite message headers from remote SMTP clients | + | |
| - | only if the client matches the local_header_rewrite_clients | + | matches the local_header_rewrite_clients parameter, or if the |
| - | remote_header_rewrite_domain | + | parameter |
| - | get the behavior | + | write_clients = static: |
| - | | + | |
| - | | + | |
| - | name.Lastname, or to clean up addresses produced by legacy mail systems. | + | up addresses produced by legacy mail systems. |
| - | The canonical(5) mapping is not to be confused with virtual | + | |
| - | local aliasing. To change the destination but not the headers, use the virtual(5) or | + | change the destination but not the headers, use the virtual(5) or aliases(5) map instead. |
| - | aliases(5) map instead. | + | |
| CASE FOLDING | CASE FOLDING | ||
| - | The search string is folded to lowercase before database lookup. As of Postfix | + | The search string is folded to lowercase before database lookup. As of Postfix 2.3, the search |
| - | the search | + | |
| - | whose lookup fields can match both upper and lower case. | + | lower case. |
| TABLE FORMAT | TABLE FORMAT | ||
| Zeile 1205: | Zeile 1233: | ||
| blank lines and comments | blank lines and comments | ||
| - | Empty lines and whitespace-only lines are ignored, as are lines whose first | + | Empty lines and whitespace-only lines are ignored, as are lines whose first non-whitespace |
| - | | + | ter is a `#'. |
| | | ||
| - | A logical line starts with non-whitespace text. A line that starts with white‐ | + | A logical line starts with non-whitespace text. A line that starts with whitespace continues a log‐ |
| - | | + | |
| TABLE SEARCH ORDER | TABLE SEARCH ORDER | ||
| - | With lookups from indexed files such as DB or DBM, or from networked tables | + | With lookups from indexed files such as DB or DBM, or from networked tables such as NIS, LDAP or SQL, each |
| - | NIS, LDAP or SQL, patterns | + | |
| + | |||
| + | | ||
| + | match is found. | ||
| | | ||
| Replace user@domain by address. This form has the highest precedence. | Replace user@domain by address. This form has the highest precedence. | ||
| - | This is useful to clean up addresses produced by legacy mail systems. | + | This is useful to clean up addresses produced by legacy mail systems. |
| - | | + | duce Firstname.Lastname style addresses, but see below for a simpler solution. |
| - | | + | |
| user address | user address | ||
| - | Replace | + | Replace |
| - | | + | tion, or when it is listed in $inet_interfaces or $proxy_interfaces. |
| - | | + | |
| This form is useful for replacing login names by Firstname.Lastname. | This form is useful for replacing login names by Firstname.Lastname. | ||
| | | ||
| - | Replace other addresses in domain by address. | + | Replace other addresses in domain by address. |
| - | dence. | + | |
| - | Note: @domain | + | Note: @domain is a wild-card. When this form is applied to recipient addresses, |
| - | | + | |
| - | | + | |
| - | | + | |
| - | | + | address. |
| - | | + | |
| RESULT ADDRESS REWRITING | RESULT ADDRESS REWRITING | ||
| The lookup result is subject to address rewriting: | The lookup result is subject to address rewriting: | ||
| - | | + | |
| - | | + | |
| - | | + | |
| - | | + | |
| - | | + | |
| - | | + | |
| ADDRESS EXTENSION | ADDRESS EXTENSION | ||
| - | When a mail address | + | When a mail address localpart contains the optional |
| - | user+foo@domain), | + | lookup order becomes: user+foo@domain, |
| - | user, and @domain. | + | |
| - | The propagate_unmatched_extensions parameter controls | + | |
| - | extension (+foo) is propagated to the result of table lookup. | + | propagated to the result of table lookup. |
| REGULAR EXPRESSION TABLES | REGULAR EXPRESSION TABLES | ||
| - | | + | This section describes how the table lookups change when the table is given in the form of regular |
| - | form of regular | + | sions. For a description of regular expression lookup table syntax, see regexp_table(5) or pcre_table(5). |
| - | syntax, see regexp_table(5) or pcre_table(5). | + | |
| - | | + | |
| - | looked up. Thus, user@domain mail addresses are not broken up into their user and | + | user@domain mail addresses are not broken up into their user and @domain |
| - | @domain constituent parts, nor is user+foo broken up into user and foo. | + | user+foo broken up into user and foo. |
| - | | + | |
| - | that matches the search string. | + | search string. |
| - | | + | |
| - | parenthesized substrings | + | strings |
| TCP-BASED TABLES | TCP-BASED TABLES | ||
| - | | + | This section describes how the table lookups change when lookups are directed to a TCP-based server. For a |
| - | TCP-based server. For a description of the TCP client/ | + | description of the TCP client/ |
| - | tcp_table(5). | + | to and including Postfix version 2.4. |
| - | Each lookup operation uses the entire address once. Thus, user@domain mail addresses | + | |
| - | are not broken up into their user and @domain constituent parts, nor is user+foo | + | into their user and @domain constituent parts, nor is user+foo |
| - | | + | |
| | | ||
| Zeile 1291: | Zeile 1312: | ||
| CONFIGURATION PARAMETERS | CONFIGURATION PARAMETERS | ||
| - | | + | The following main.cf parameters are especially relevant. |
| - | only a parameter | + | mary. See postconf(5) for more details including examples. |
| | | ||
| Zeile 1307: | Zeile 1328: | ||
| | | ||
| - | A list of address rewriting or forwarding mechanisms that propagate an address | + | A list of address rewriting or forwarding mechanisms that propagate an address extension from the |
| - | | + | |
| - | | + | |
| Other parameters of interest: | Other parameters of interest: | ||
| | | ||
| - | The network interface addresses that this system receives mail on. You need | + | The network |
| - | | + | |
| | | ||
| - | Rewrite | + | Rewrite message header addresses in mail from these clients and update |
| - | plete addresses with the domain name in $myorigin or $mydomain; | + | |
| - | | + | |
| - | | + | |
| remote_header_rewrite_domain parameter. | remote_header_rewrite_domain parameter. | ||
| | | ||
| - | Other interfaces that this machine receives mail on by way of a proxy agent or | + | Other interfaces |
| - | | + | |
| | | ||
| - | List of address classes | + | List of address classes subject to masquerading: |
| - | | + | |
| | | ||
| Zeile 1348: | Zeile 1368: | ||
| | | ||
| - | Don' | + | Don' |
| - | | + | |
| - | | + | |
| SEE ALSO | SEE ALSO | ||
| Zeile 1359: | Zeile 1378: | ||
| README FILES | README FILES | ||
| - | | + | Use " |
| - | tion. | + | |
| | | ||
| | | ||
| Zeile 1373: | Zeile 1391: | ||
| | | ||
| - | | + | |
| + | | ||
| + | 111 8th Avenue | ||
| + | New York, NY 10011, USA | ||
| + | |||
| + | CANONICAL(5) | ||
| </ | </ | ||
| Auch hier editieren wir nicht die Vorlage- und Musterdatei // | Auch hier editieren wir nicht die Vorlage- und Musterdatei // | ||
| Zeile 1379: | Zeile 1402: | ||
| === Canonical-Dateien === | === Canonical-Dateien === | ||
| == sender_canonical_maps == | == sender_canonical_maps == | ||
| - | * **sender_canonical_maps** Lookup-Tabelle zum Umschreibungen von Absender eMail-Adressen im SMTP-Envelop und im Header der eMail. \\ **sender_canonical_maps.db** Datenbankfile zur // | + | * **sender_canonical_maps** Lookup-Tabelle zum Umschreibungen von Absender eMail-Adressen im SMTP-Envelop und im Header der eMail. \\ **sender_canonical_maps.db** Datenbankfile zur // |
| # Kapitel 5.2.3 canonical-Tabelle: | # Kapitel 5.2.3 canonical-Tabelle: | ||
| # Lookup-Tabelle zum Umschreibungen von Absender eMail-Adressen im | # Lookup-Tabelle zum Umschreibungen von Absender eMail-Adressen im | ||
| # SMTP-Envelop und im Header der eMail. | # SMTP-Envelop und im Header der eMail. | ||
| # Nach dem Ändern und/oder Erweitern der Tabelle, muß noch mittels | # Nach dem Ändern und/oder Erweitern der Tabelle, muß noch mittels | ||
| - | # $ postmap / | + | # |
| + | # | ||
| + | # | ||
| # die zugehörige Datenbank erzeugt werden. | # die zugehörige Datenbank erzeugt werden. | ||
| # | # | ||
| Zeile 1398: | Zeile 1423: | ||
| </ | </ | ||
| == recipient_canonical_maps == | == recipient_canonical_maps == | ||
| - | * **recipient_canonical_maps** Lookup-Tabelle zum Umschreibungen von Empfänger eMail-Adressen im SMTP-Envelop und im Header der eMail. \\ **recipient_canonical_maps.db** Datenbankfile zur // | + | * **recipient_canonical_maps** Lookup-Tabelle zum Umschreibungen von Empfänger eMail-Adressen im SMTP-Envelop und im Header der eMail. \\ **recipient_canonical_maps.db** Datenbankfile zur // |
| # Kapitel 5.2.3 canonical-Tabelle: | # Kapitel 5.2.3 canonical-Tabelle: | ||
| # Lookup-Tabelle zum Umschreibungen von Empfänger eMail-Adressen | # Lookup-Tabelle zum Umschreibungen von Empfänger eMail-Adressen | ||
| # im SMTP-Envelop und im Header der eMail. | # im SMTP-Envelop und im Header der eMail. | ||
| # Nach dem Ändern und/oder Erweitern der Tabelle, muß noch mittels | # Nach dem Ändern und/oder Erweitern der Tabelle, muß noch mittels | ||
| - | # $ postmap / | + | # |
| + | # $ postmap / | ||
| + | # | ||
| # die zugehörige Datenbank erzeugt werden. | # die zugehörige Datenbank erzeugt werden. | ||
| # | # | ||
| Zeile 1410: | Zeile 1437: | ||
| # | # | ||
| # genau eine Adresse umschreiben | # genau eine Adresse umschreiben | ||
| - | #swat@nausch.org | + | swat@nausch.org |
| - | # | + | |
| - | # Django : 2012-12-29 | + | |
| - | # FaxMaster für hylafax definiert | + | |
| - | FaxMaster@nausch.org | + | |
| - | root@vml000020.dmz.nausch.org | + | |
| - | + | ||
| - | sks@keyserver.nausch.org | + | |
| - | + | ||
| - | # Django : 2014-05-09 | + | |
| - | # test für dmarc.nausch.org | + | |
| - | # | + | |
| - | huhu@dmarc.nausch.org | + | |
| - | + | ||
| - | # Django : 2014-06-07 | + | |
| - | # rewrite | + | |
| - | root@vml000080.dmz.nausch.org | + | |
| </ | </ | ||
| Zeile 1441: | Zeile 1452: | ||
| In der Manpage zu **generic** bzw. in der Datei // | In der Manpage zu **generic** bzw. in der Datei // | ||
| # man 5 generic | # man 5 generic | ||
| - | < | + | < |
| NAME | NAME | ||
| Zeile 1454: | Zeile 1465: | ||
| DESCRIPTION | DESCRIPTION | ||
| - | | + | |
| - | delivered. This is the opposite of canonical(5) mapping, which applies when mail is | + | the opposite of canonical(5) mapping, which applies when mail is received. |
| - | received. | + | |
| - | | + | |
| - | Internet domain name and that uses something | + | and that uses something like localdomain.local instead. |
| - | generic(5) table is then used by the smtp(8) client to transform local mail addresses | + | client to transform local mail addresses into valid Internet mail addresses |
| - | into valid Internet mail addresses when mail has to be sent across the Internet. | + | across the Internet. |
| - | the EXAMPLE section at the end of this document. | + | |
| - | | + | |
| - | appear inside messages) and message envelope addresses (for example, | + | and message envelope addresses (for example, the addresses that are used in SMTP protocol commands). |
| - | that are used in SMTP protocol commands). | + | |
| - | | + | |
| - | the postmap(1) command. | + | The result, |
| - | fast searching by the mail system. Execute the command " | + | the command " |
| - | to rebuild an indexed file after changing the corresponding text file. | + | text file. |
| - | When the table is provided via other means such as NIS, LDAP or SQL, the same lookups | + | |
| - | are done as for ordinary indexed files. | + | ordinary indexed files. |
| - | | + | |
| - | are given as regular expressions, | + | expressions, |
| - | those case, the lookups are done in a slightly different way as described below under | + | slightly different way as described below under " |
| - | " | + | |
| CASE FOLDING | CASE FOLDING | ||
| - | The search string is folded to lowercase before database lookup. As of Postfix | + | The search string is folded to lowercase before database lookup. As of Postfix 2.3, the search |
| - | the search | + | |
| - | whose lookup fields can match both upper and lower case. | + | lower case. |
| TABLE FORMAT | TABLE FORMAT | ||
| Zeile 1493: | Zeile 1500: | ||
| blank lines and comments | blank lines and comments | ||
| - | Empty lines and whitespace-only lines are ignored, as are lines whose first | + | Empty lines and whitespace-only lines are ignored, as are lines whose first non-whitespace |
| - | | + | ter is a `#'. |
| | | ||
| - | A logical line starts with non-whitespace text. A line that starts with white‐ | + | A logical line starts with non-whitespace text. A line that starts with whitespace continues a log‐ |
| - | | + | |
| TABLE SEARCH ORDER | TABLE SEARCH ORDER | ||
| - | With lookups from indexed files such as DB or DBM, or from networked tables | + | With lookups from indexed files such as DB or DBM, or from networked tables such as NIS, LDAP or SQL, each |
| - | NIS, LDAP or SQL, patterns | + | |
| + | |||
| + | | ||
| + | match is found. | ||
| | | ||
| Zeile 1508: | Zeile 1518: | ||
| user address | user address | ||
| - | Replace | + | Replace user@site by address when site is equal to $myorigin, when site is listed |
| - | | + | tion, or when it is listed in $inet_interfaces or $proxy_interfaces. |
| - | | + | |
| | | ||
| - | Replace other addresses in domain by address. | + | Replace other addresses in domain by address. |
| - | dence. | + | |
| RESULT ADDRESS REWRITING | RESULT ADDRESS REWRITING | ||
| The lookup result is subject to address rewriting: | The lookup result is subject to address rewriting: | ||
| - | | + | |
| - | | + | |
| - | | + | |
| - | | + | |
| - | | + | |
| - | | + | |
| ADDRESS EXTENSION | ADDRESS EXTENSION | ||
| - | | + | |
| - | user+foo@domain), | + | lookup order becomes: user+foo@domain, |
| - | user, and @domain. | + | |
| - | | + | The propagate_unmatched_extensions parameter controls whether an unmatched |
| - | extension (+foo) is propagated to the result of table lookup. | + | propagated to the result of table lookup. |
| REGULAR EXPRESSION TABLES | REGULAR EXPRESSION TABLES | ||
| - | This section describes how the table lookups change when the table is given in the | + | This section describes how the table lookups change when the table is given in the form of regular |
| - | form of regular | + | sions. For a description of regular expression lookup table syntax, see regexp_table(5) or pcre_table(5). |
| - | syntax, see regexp_table(5) or pcre_table(5). | + | |
| - | Each pattern is a regular expression that is applied | + | Each pattern is a regular expression that is applied |
| - | looked | + | user@domain |
| - | @domain constituent parts, nor is user+foo broken up into user and foo. | + | user+foo broken up into user and foo. |
| - | | + | |
| - | that matches the search string. | + | search string. |
| - | | + | |
| - | parenthesized substrings | + | strings |
| TCP-BASED TABLES | TCP-BASED TABLES | ||
| - | This section describes how the table lookups change when lookups are directed | + | This section describes how the table lookups change when lookups are directed to a TCP-based server. For a |
| - | TCP-based | + | description |
| - | tcp_table(5). | + | to and including Postfix version 2.4. |
| - | Each lookup operation uses the entire address once. Thus, user@domain mail addresses | + | Each lookup operation uses the entire address once. Thus, user@domain mail addresses are not broken |
| - | are not broken up into their user and @domain constituent parts, nor is user+foo | + | into their user and @domain constituent parts, nor is user+foo |
| - | | + | |
| | | ||
| EXAMPLE | EXAMPLE | ||
| - | The following shows a generic mapping with an indexed file. When mail is sent to a | + | |
| - | remote | + | this replaces his@localdomain.local by his ISP mail address, replaces |
| - | replaces her@localdomain.local by her ISP mail address, | + | mail address, |
| - | addresses | + | (this example assumes that the ISP supports " |
| - | assumes that the ISP supports " | + | |
| / | / | ||
| Zeile 1577: | Zeile 1578: | ||
| | | ||
| - | | + | |
| - | | + | systems |
| - | system supports use the command " | + | -m". |
| BUGS | BUGS | ||
| Zeile 1585: | Zeile 1587: | ||
| CONFIGURATION PARAMETERS | CONFIGURATION PARAMETERS | ||
| - | The following main.cf parameters are especially relevant. | + | The following main.cf parameters are especially relevant. |
| - | only a parameter | + | mary. See postconf(5) for more details including examples. |
| | | ||
| - | Address | + | Address |
| - | | + | ing mail via SMTP. |
| | | ||
| - | A list of address rewriting or forwarding mechanisms that propagate an address | + | A list of address rewriting or forwarding mechanisms that propagate an address extension |
| - | | + | |
| - | | + | |
| Other parameters of interest: | Other parameters of interest: | ||
| | | ||
| - | The network interface addresses that this system receives mail on. | + | The network interface addresses that this system receives mail on. You need to stop and start |
| - | | + | |
| | | ||
| - | Other interfaces that this machine receives mail on by way of a proxy agent or | + | Other interfaces |
| - | | + | |
| | | ||
| Zeile 1622: | Zeile 1624: | ||
| README FILES | README FILES | ||
| - | Use " | + | Use " |
| - | tion. | + | |
| | | ||
| | | ||
| Zeile 1642: | Zeile 1643: | ||
| | | ||
| - | GENERIC(5) | + | |
| - | </ | + | Google, Inc. |
| + | 111 8th Avenue | ||
| + | New York, NY 10011, USA | ||
| - | Auch hier editieren wir nicht diese Vorlage- und Musterdatei // | + | |
| + | |||
| + | Auch hier editieren wir nicht diese Vorlage- und Musterdatei // | ||
| === generic-Dateien === | === generic-Dateien === | ||
| == lmtp_generic_maps == | == lmtp_generic_maps == | ||
| - | * **lmtp_generic_maps** Lookup-Tabelle zum Umschreibungen von Empfänger eMail-Adressen im SMTP-Envelop und im Header der eMail. Das Umschreiben erfolgt beim Verlassen des Systems via LMTP. \\ **lmtp_generic_maps.db** Datenbankfile zur // | + | * **lmtp_generic_maps** Lookup-Tabelle zum Umschreibungen von Empfänger eMail-Adressen im SMTP-Envelop und im Header der eMail. Das Umschreiben erfolgt beim Verlassen des Systems via LMTP. \\ **lmtp_generic_maps.db** Datenbankfile zur // |
| + | # Kapitel 5.2.4 generic-Tabelle: | ||
| # Lookup-Tabelle zum Umschreibungen von Empfänger eMail-Adressen im | # Lookup-Tabelle zum Umschreibungen von Empfänger eMail-Adressen im | ||
| # SMTP-Envelop und im Header der eMail. | # SMTP-Envelop und im Header der eMail. | ||
| # | # | ||
| # Nach dem Ändern und/oder Erweitern der Tabelle, muß noch mittels | # Nach dem Ändern und/oder Erweitern der Tabelle, muß noch mittels | ||
| - | # $ postmap / | + | # |
| - | # erzeugt werden. | + | # |
| + | # | ||
| + | # die zugehörige Datenbank erzeugt werden. | ||
| # | # | ||
| # catch all | # catch all | ||
| Zeile 1664: | Zeile 1672: | ||
| </ | </ | ||
| == smtp_generic_maps == | == smtp_generic_maps == | ||
| - | * **smtp_generic_maps** Lookup-Tabelle zum Umschreibungen von Empfänger eMail-Adressen im SMTP-Envelop und im Header der eMail. Das Umschreiben erfolgt beim Verlassen des Systems via SMTP. \\ **smtp_generic_maps.db** Datenbankfile zur // | + | * **smtp_generic_maps** Lookup-Tabelle zum Umschreibungen von Empfänger eMail-Adressen im SMTP-Envelop und im Header der eMail. Das Umschreiben erfolgt beim Verlassen des Systems via SMTP. \\ **smtp_generic_maps.db** Datenbankfile zur // |
| + | # Kapitel 5.2.4 generic-Tabelle: | ||
| # Lookup-Tabelle zum Umschreibungen von Empfänger eMail-Adressen im | # Lookup-Tabelle zum Umschreibungen von Empfänger eMail-Adressen im | ||
| # SMTP-Envelop und im Header der eMail. | # SMTP-Envelop und im Header der eMail. | ||
| # | # | ||
| # Nach dem Ändern und/oder Erweitern der Tabelle, muß noch mittels | # Nach dem Ändern und/oder Erweitern der Tabelle, muß noch mittels | ||
| - | # $ postmap / | + | # |
| - | # erzeugt werden. | + | # |
| + | # | ||
| + | # die zugehörige Datenbank erzeugt werden. | ||
| # | # | ||
| # catch all | # catch all | ||
| Zeile 1684: | Zeile 1695: | ||
| In der Manpage zu **relocated** bzw. in der Datei // | In der Manpage zu **relocated** bzw. in der Datei // | ||
| # man 5 relocated | # man 5 relocated | ||
| - | < | + | < |
| NAME | NAME | ||
| Zeile 1693: | Zeile 1704: | ||
| DESCRIPTION | DESCRIPTION | ||
| - | | + | |
| - | moved to new_location" | + | bounce messages. |
| - | | + | |
| - | the postmap(1) | + | |
| - | fast searching by the mail system. Execute the command | + | Execute the command " |
| - | cated" to rebuild an indexed file after changing the corresponding | + | |
| - | When the table is provided via other means such as NIS, LDAP or SQL, the same lookups | + | |
| - | are done as for ordinary indexed files. | + | ordinary indexed files. |
| - | | + | |
| - | are given as regular expressions, | + | expressions, |
| - | those case, the lookups are done in a slightly different way as described below under | + | slightly different way as described below under " |
| - | " | + | |
| Table lookups are case insensitive. | Table lookups are case insensitive. | ||
| CASE FOLDING | CASE FOLDING | ||
| - | | + | The search string is folded to lowercase before database lookup. As of Postfix 2.3, the search |
| - | the search string is not case folded with database types such as regexp: | + | not case folded with database types such as regexp: or pcre: whose lookup fields can match both upper and |
| - | whose lookup fields can match both upper and lower case. | + | lower case. |
| TABLE FORMAT | TABLE FORMAT | ||
| Zeile 1723: | Zeile 1733: | ||
| | | ||
| - | Where new_location specifies contact information such as an email address, or | + | Where new_location specifies contact information such as an email address, |
| - | | + | |
| - | | + | |
| - | | + | ter is a `#'. |
| - | | + | |
| - | | + | |
| TABLE SEARCH ORDER | TABLE SEARCH ORDER | ||
| - | With lookups from indexed files such as DB or DBM, or from networked tables | + | With lookups from indexed files such as DB or DBM, or from networked tables such as NIS, LDAP or SQL, pat‐ |
| - | NIS, LDAP or SQL, patterns | + | |
| | | ||
| Matches user@domain. This form has precedence over all other forms. | Matches user@domain. This form has precedence over all other forms. | ||
| - | | + | |
| - | tion, or when site is listed in $inet_interfaces or $proxy_interfaces. | + | |
| | | ||
| Zeile 1746: | Zeile 1756: | ||
| ADDRESS EXTENSION | ADDRESS EXTENSION | ||
| - | When a mail address | + | |
| - | user+foo@domain), | + | lookup order becomes: user+foo@domain, |
| - | user, and @domain. | + | |
| REGULAR EXPRESSION TABLES | REGULAR EXPRESSION TABLES | ||
| - | This section describes how the table lookups change when the table is given in the | + | This section describes how the table lookups change when the table is given in the form of regular |
| - | form of regular | + | |
| - | description of regular | + | table syntax, see regexp_table(5) or pcre_table(5). For a description |
| - | pcre_table(5). | + | lookup protocol, see tcp_table(5). |
| - | tcp_table(5). | + | |
| - | Each pattern is a regular expression that is applied | + | |
| - | looked | + | user@domain mail addresses are not broken up into their user and @domain |
| - | @domain constituent parts, nor is user+foo broken up into user and foo. | + | user+foo broken up into user and foo. |
| - | | + | |
| - | that matches the search string. | + | search string. |
| - | | + | |
| - | parenthesized substrings | + | strings |
| TCP-BASED TABLES | TCP-BASED TABLES | ||
| - | This section describes how the table lookups change when lookups are directed | + | This section describes how the table lookups change when lookups are directed to a TCP-based server. For a |
| - | TCP-based | + | description of the TCP client/ |
| - | tcp_table(5). | + | to and including Postfix version 2.4. |
| - | Each lookup operation uses the entire address once. Thus, user@domain mail addresses | + | |
| - | are not broken up into their user and @domain constituent parts, nor is user+foo | + | into their user and @domain constituent parts, nor is user+foo |
| - | | + | |
| | | ||
| Zeile 1782: | Zeile 1789: | ||
| CONFIGURATION PARAMETERS | CONFIGURATION PARAMETERS | ||
| - | The following main.cf parameters are especially relevant. | + | The following main.cf parameters are especially relevant. |
| - | only a parameter | + | mary. See postconf(5) for more details including examples. |
| | | ||
| Zeile 1791: | Zeile 1798: | ||
| | | ||
| - | The network | + | The network |
| - | | + | |
| | | ||
| Zeile 1801: | Zeile 1808: | ||
| | | ||
| - | Other interfaces that this machine receives mail on by way of a proxy agent or | + | Other interfaces that this machine receives mail on by way of a proxy agent or network |
| - | | + | |
| SEE ALSO | SEE ALSO | ||
| Zeile 1810: | Zeile 1817: | ||
| README FILES | README FILES | ||
| - | | + | Use " |
| - | tion. | + | DATABASE_README, |
| + | | ||
| + | |||
| + | LICENSE | ||
| + | The Secure Mailer license must be distributed with this software. | ||
| + | |||
| + | List of lookup tables for relocated users or sites. | ||
| + | |||
| + | Other parameters of interest: | ||
| + | |||
| + | | ||
| + | The network | ||
| + | Postfix when this parameter changes. | ||
| + | |||
| + | | ||
| + | List of domains that this mail system considers local. | ||
| + | |||
| + | | ||
| + | The domain that is appended to locally-posted mail. | ||
| + | |||
| + | | ||
| + | Other interfaces that this machine receives mail on by way of a proxy agent or network | ||
| + | translator. | ||
| + | |||
| + | SEE ALSO | ||
| + | | ||
| + | | ||
| + | | ||
| + | |||
| + | README FILES | ||
| + | Use " | ||
| | | ||
| | | ||
| Zeile 1824: | Zeile 1861: | ||
| | | ||
| - | | + | |
| - | </ | + | |
| + | 111 8th Avenue | ||
| + | New York, NY 10011, USA | ||
| + | |||
| + | RELOCATED(5)</ | ||
| + | |||
| Wir editieren nun aber nicht diese Vorlage- und Musterdatei // | Wir editieren nun aber nicht diese Vorlage- und Musterdatei // | ||
| === relocated-Datei === | === relocated-Datei === | ||
| - | * **relocated_maps** Lookup-Tabelle zum Aktivieren von " | + | * **relocated_maps** Lookup-Tabelle zum Aktivieren von " |
| + | # Kapitel 5.2.6 relocated-Tabelle: | ||
| # Lookup-Tabelle zum Aktivieren von " | # Lookup-Tabelle zum Aktivieren von " | ||
| # einer eMail über nicht existierende eMailadressen mit Angabe der neu zu | # einer eMail über nicht existierende eMailadressen mit Angabe der neu zu | ||
| Zeile 1835: | Zeile 1878: | ||
| # | # | ||
| # Nach dem Ändern und/oder Erweitern der Tabelle, muß noch mittels | # Nach dem Ändern und/oder Erweitern der Tabelle, muß noch mittels | ||
| - | # $ postmap / | + | # |
| + | # $ postmap / | ||
| + | # | ||
| # die zugehörige Datenbank erzeugt werden. | # die zugehörige Datenbank erzeugt werden. | ||
| # | # | ||
| - | michael.nausch@omni128.de | + | michael.nausch@omni128.de |
| - | </ | + | |
| ==== transport ==== | ==== transport ==== | ||
| Lookup-Tabelle zum Aktivieren einer alternativen Mailrouting bei der Zustellung an einen weiteren Mailserver. | Lookup-Tabelle zum Aktivieren einer alternativen Mailrouting bei der Zustellung an einen weiteren Mailserver. | ||
| Zeile 1845: | Zeile 1889: | ||
| In der Manpage zu **transport** bzw. in der Datei // | In der Manpage zu **transport** bzw. in der Datei // | ||
| # man 5 transport | # man 5 transport | ||
| - | < | + | < |
| NAME | NAME | ||
| Zeile 1858: | Zeile 1902: | ||
| DESCRIPTION | DESCRIPTION | ||
| - | | + | |
| - | delivery transports and next-hop destinations. | + | and next-hop destinations. |
| - | local or smtp are defined in the master.cf file, and next-hop destinations are typi‐ | + | file, and next-hop |
| - | | + | ial-rewrite(8) daemon. |
| - | This mapping overrides the default transport: | + | This mapping overrides the default transport: |
| - | Postfix: | + | |
| | | ||
| - | This is the default for final delivery to domains listed with mydestination, | + | This is the default for final delivery to domains listed with mydestination, |
| - | | + | |
| - | faces. The default nexthop destination is the MTA hostname. | + | |
| | | ||
| - | This is the default for final delivery to domains listed with virtual_mail‐ | + | This is the default for final delivery to domains listed with virtual_mailbox_domains. The default |
| - | box_domains. The default nexthop destination is the recipient domain. | + | |
| | | ||
| - | This is the default for remote delivery to domains listed with relay_domains. | + | This is the default for remote delivery to domains listed with relay_domains. In order of decreas‐ |
| - | | + | ing precedence, the nexthop destination |
| - | | + | host_maps, relayhost, or from the recipient domain. |
| - | | + | |
| | | ||
| - | This is the default for remote delivery to other destinations. | + | This is the default for remote delivery to other destinations. |
| - | | + | |
| - | dent_default_transport_maps, | + | |
| - | | + | |
| - | | + | |
| - | the postmap(1) | + | mand. The result, an indexed file in dbm or db format, is used for fast searching |
| - | fast searching by the mail system. Execute the command | + | Execute |
| - | port" to rebuild an indexed file after changing the corresponding | + | |
| - | When the table is provided via other means such as NIS, LDAP or SQL, the same lookups | + | When the table is provided via other means such as NIS, LDAP or SQL, the same lookups |
| - | are done as for ordinary indexed files. | + | ordinary indexed files. |
| - | | + | |
| - | are given as regular expressions, | + | expressions, |
| - | those case, the lookups are done in a slightly different way as described below under | + | slightly different way as described below under " |
| - | " | + | |
| CASE FOLDING | CASE FOLDING | ||
| - | | + | |
| - | the search string is not case folded with database types such as regexp: | + | not case folded with database types such as regexp: or pcre: whose lookup fields can match both upper and |
| - | whose lookup fields can match both upper and lower case. | + | lower case. |
| TABLE FORMAT | TABLE FORMAT | ||
| Zeile 1909: | Zeile 1949: | ||
| | | ||
| - | When pattern | + | When pattern matches the recipient address or domain, use the corresponding result. |
| - | | + | |
| blank lines and comments | blank lines and comments | ||
| - | Empty lines and whitespace-only lines are ignored, as are lines whose first | + | Empty lines and whitespace-only lines are ignored, as are lines whose first non-whitespace |
| - | | + | ter is a `#'. |
| | | ||
| - | A logical line starts with non-whitespace text. A line that starts with white‐ | + | A logical line starts with non-whitespace text. A line that starts with whitespace continues a log‐ |
| - | | + | |
| - | The pattern specifies an email address, a domain name, or a domain name hierarchy, as | + | The pattern specifies an email address, a domain name, or a domain name hierarchy, as described in section |
| - | described in section "TABLE LOOKUP" | + | "TABLE LOOKUP" |
| - | | + | The result is of the form transport: |
| - | mail. This is described in section " | + | in section " |
| TABLE SEARCH ORDER | TABLE SEARCH ORDER | ||
| - | With lookups from indexed files such as DB or DBM, or from networked tables | + | With lookups from indexed files such as DB or DBM, or from networked tables such as NIS, LDAP or SQL, pat‐ |
| - | NIS, LDAP or SQL, patterns | + | |
| | | ||
| Zeile 1940: | Zeile 1979: | ||
| | | ||
| - | Deliver | + | Deliver mail for any subdomain of domain through transport to nexthop. This applies only when the |
| - | | + | |
| - | ent_domain_matches_subdomains | + | |
| - | | + | |
| * transport: | * transport: | ||
| - | The special pattern * represents any address (i.e. it functions as the wild- | + | The special pattern * represents any address (i.e. it functions as the wild-card |
| - | | + | |
| - | | + | |
| - | | + | mailer-daemon@hostname). |
| - | Note 2: user@domain or user+extension@domain lookup is available in Postfix | + | Note 2: user@domain or user+extension@domain lookup is available in Postfix 2.0 and later. |
| - | later. | + | |
| RESULT FORMAT | RESULT FORMAT | ||
| - | | + | The lookup result is of the form transport: |
| - | mail delivery transport | + | port such as smtp or local. The nexthop field specifies where and how to deliver mail. |
| - | how to deliver mail. | + | |
| - | | + | |
| - | of a mail delivery service entry in the Postfix master.cf file). | + | service entry in the Postfix master.cf file). |
| - | The interpretation of the nexthop field is transport dependent. In the case of SMTP, | + | The interpretation of the nexthop field is transport dependent. In the case of SMTP, specify a service |
| - | specify | + | a non-default |
| - | exchanger) DNS lookups with [host] or [host]: | + | [host]: |
| - | specify an IP address instead of a hostname. | + | |
| - | | + | A null transport and null nexthop result means "do not change": |
| - | transport and nexthop information that would be used when the entire transport | + | information that would be used when the entire transport table did not exist. |
| - | did not exist. | + | |
| - | | + | |
| - | to the recipient domain. | + | domain. |
| - | A null transport field with non-null nexthop field does not modify | + | A null transport field with non-null nexthop field does not modify the transport information. |
| - | information. | + | |
| EXAMPLES | EXAMPLES | ||
| - | | + | In order to deliver internal mail directly, while using a mail relay for all other mail, specify |
| - | mail, specify a null entry for internal destinations | + | entry for internal |
| - | transport | + | specify a wildcard for all other destinations. |
| - | tions. | + | |
| my.domain | my.domain | ||
| Zeile 1988: | Zeile 2020: | ||
| * smtp: | * smtp: | ||
| - | In order to send mail for example.com and its subdomains via the uucp transport | + | In order to send mail for example.com and its subdomains via the uucp transport to the UUCP host named |
| - | the UUCP host named example: | + | example: |
| example.com | example.com | ||
| .example.com | .example.com | ||
| - | | + | When no nexthop host name is specified, the destination domain name is used instead. For example, the fol‐ |
| - | For example, the following | + | |
| - | to a mail exchanger for example.com. | + | slow transport could be configured to run at most one delivery process at a time: |
| - | at most one delivery process at a time: | + | |
| example.com | example.com | ||
| - | When no transport is specified, Postfix uses the transport that matches | + | |
| - | domain | + | DESCRIPTION above). |
| - | and its subdomains to host gateway.example.com: | + | ple.com: |
| example.com | example.com | ||
| .example.com | .example.com | ||
| - | In the above example, the [] suppress MX lookups. | + | |
| - | when your machine is primary MX host for example.com. | + | primary MX host for example.com. |
| - | | + | In the case of delivery via SMTP, one may specify hostname: |
| - | host: | + | |
| example.com | example.com | ||
| - | This directs mail for user@example.com to host bar.example port 2025. Instead | + | This directs mail for user@example.com to host bar.example port 2025. Instead of a numerical port a |
| - | numerical | + | |
| - | lookups must be disabled. | + | |
| The error mailer can be used to bounce mail: | The error mailer can be used to bounce mail: | ||
| Zeile 2027: | Zeile 2056: | ||
| REGULAR EXPRESSION TABLES | REGULAR EXPRESSION TABLES | ||
| - | This section describes how the table lookups change when the table is given in the | + | This section describes how the table lookups change when the table is given in the form of regular |
| - | form of regular | + | sions. For a description of regular expression lookup table syntax, see regexp_table(5) or pcre_table(5). |
| - | syntax, see regexp_table(5) or pcre_table(5). | + | |
| - | Each pattern is a regular expression that is applied | + | Each pattern is a regular expression that is applied |
| - | looked | + | some.domain.hierarchy |
| - | is user+foo@domain looked up as user@domain. | + | user@domain. |
| - | | + | |
| - | that matches the search string. | + | search string. |
| - | The trivial-rewrite(8) server disallows regular expression substitution of $1 etc. in | + | |
| - | regular expression | + | |
| - | version 2.3 and later). | + | |
| TCP-BASED TABLES | TCP-BASED TABLES | ||
| - | | + | This section describes how the table lookups change when lookups are directed to a TCP-based server. For a |
| - | TCP-based server. For a description of the TCP client/ | + | description |
| - | tcp_table(5). | + | to and including Postfix version 2.4. |
| - | | + | Each lookup operation uses the entire recipient address once. Thus, some.domain.hierarchy is not looked |
| - | some.domain.hierarchy is not looked up via its parent domains, nor is user+foo@domain | + | up via its parent domains, nor is user+foo@domain looked up as user@domain. |
| - | looked up as user@domain. | + | |
| | | ||
| CONFIGURATION PARAMETERS | CONFIGURATION PARAMETERS | ||
| - | | + | |
| - | only a parameter | + | mary. See postconf(5) for more details including examples. |
| | | ||
| Zeile 2061: | Zeile 2087: | ||
| | | ||
| - | List of Postfix features that use domain.tld patterns to match sub.domain.tld | + | List of Postfix features that use domain.tld |
| - | | + | |
| | | ||
| Zeile 2074: | Zeile 2100: | ||
| README FILES | README FILES | ||
| - | | + | Use " |
| - | tion. | + | |
| | | ||
| | | ||
| Zeile 2089: | Zeile 2114: | ||
| | | ||
| - | | + | |
| - | </ | + | |
| + | 111 8th Avenue | ||
| + | New York, NY 10011, USA | ||
| + | |||
| + | TRANSPORT(5)</ | ||
| === transport-Datei === | === transport-Datei === | ||
| - | * **transport_maps** Lookup-Tabelle zum Aktivieren einer alternativen Mailrouting bei der Zustellung an einen weiteren Mailserver. \\ **transport_maps.db** Datenbankfile zur // | + | * **transport_maps** Lookup-Tabelle zum Aktivieren einer alternativen Mailrouting bei der Zustellung an einen weiteren Mailserver. \\ **transport_maps.db** Datenbankfile zur // |
| + | # Kapitel 5.2.5 transport-Tabelle: | ||
| # Lookup-Tabelle zum Aktivieren einer alternativen Mailrouting bei der | # Lookup-Tabelle zum Aktivieren einer alternativen Mailrouting bei der | ||
| # Zustellung an einen weiteren Mailserver. Nach dem Ändern und/oder | # Zustellung an einen weiteren Mailserver. Nach dem Ändern und/oder | ||
| # Erweitern der Tabelle, muß noch mittels: | # Erweitern der Tabelle, muß noch mittels: | ||
| - | # $ postmap / | + | # |
| + | # $ postmap / | ||
| # | # | ||
| # die zugehörige Datenbank erzeugt werden. | # die zugehörige Datenbank erzeugt werden. | ||
| Zeile 2114: | Zeile 2145: | ||
| # mit Namen mail.intra.nausch.org geschickt. | # mit Namen mail.intra.nausch.org geschickt. | ||
| # | # | ||
| - | |||
| - | # Django : 2013-02-21 | ||
| - | # eMails an den Fax-Server an den Host vml000020 weiterleiten | ||
| - | fax.nausch.org | ||
| - | # eMails an den Key-Server sollen an den Host vml000030 weitergeleitet | ||
| - | # werden. | ||
| - | keyserver.nausch.org | ||
| - | |||
| - | # Django : 2013-02-22 | ||
| - | # eMails an den Mailinglisten-Server an das Programm mailman weiterreichen | ||
| - | # | ||
| </ | </ | ||
| Zeile 2133: | Zeile 2153: | ||
| In der Manpage zu **virtual** bzw. in der Datei // | In der Manpage zu **virtual** bzw. in der Datei // | ||
| # man 5 transport | # man 5 transport | ||
| - | < | + | < |
| NAME | NAME | ||
| Zeile 2146: | Zeile 2166: | ||
| DESCRIPTION | DESCRIPTION | ||
| - | | + | |
| - | virtual, and all remote mail destinations. | + | remote mail destinations. |
| - | is used only for local(8) delivery. | + | Virtual aliasing is recursive, and is implemented |
| - | | + | |
| The main applications of virtual aliasing are: | The main applications of virtual aliasing are: | ||
| Zeile 2155: | Zeile 2174: | ||
| | | ||
| - | | + | |
| - | | + | |
| - | Virtual | + | Virtual |
| - | | + | |
| - | | + | |
| - | | + | |
| - | message headers. | + | Use canonical(5) mapping to rewrite header and envelope addresses in general. |
| - | in general. | + | |
| - | | + | |
| - | to the postmap(1) command. | + | command. |
| - | for fast searching by the mail system. Execute the command " | + | Execute the command " |
| - | tual" to rebuild an indexed file after changing the corresponding | + | |
| - | When the table is provided via other means such as NIS, LDAP or SQL, the same lookups | + | |
| - | are done as for ordinary indexed files. | + | ordinary indexed files. |
| - | | + | |
| - | are given as regular expressions, | + | expressions, |
| - | those case, the lookups are done in a slightly different way as described below under | + | slightly different way as described below under " |
| - | " | + | |
| CASE FOLDING | CASE FOLDING | ||
| - | The search string is folded to lowercase before database lookup. As of Postfix | + | The search string is folded to lowercase before database lookup. As of Postfix 2.3, the search |
| - | the search | + | |
| - | whose lookup fields can match both upper and lower case. | + | lower case. |
| TABLE FORMAT | TABLE FORMAT | ||
| Zeile 2191: | Zeile 2207: | ||
| blank lines and comments | blank lines and comments | ||
| - | Empty lines and whitespace-only lines are ignored, as are lines whose first | + | Empty lines and whitespace-only lines are ignored, as are lines whose first non-whitespace |
| - | | + | ter is a `#'. |
| | | ||
| - | A logical line starts with non-whitespace text. A line that starts with white‐ | + | A logical line starts with non-whitespace text. A line that starts with whitespace continues a log‐ |
| - | | + | |
| TABLE SEARCH ORDER | TABLE SEARCH ORDER | ||
| - | With lookups from indexed files such as DB or DBM, or from networked tables | + | With lookups from indexed files such as DB or DBM, or from networked tables such as NIS, LDAP or SQL, each |
| - | NIS, LDAP or SQL, patterns | + | |
| + | |||
| + | | ||
| + | match is found. | ||
| | | ||
| - | Redirect | + | Redirect mail for user@domain to address. |
| - | dence. | + | |
| user address, address, ... | user address, address, ... | ||
| - | Redirect mail for user@site to address when site is equal to $myorigin, | + | Redirect mail for user@site to address when site is equal to $myorigin, |
| - | | + | |
| - | | + | |
| - | This functionality overlaps with functionality of the local aliases(5) | + | This functionality overlaps with functionality of the local aliases(5) |
| - | base. The difference | + | |
| - | | + | |
| | | ||
| - | Redirect mail for other users in domain to address. | + | Redirect mail for other users in domain to address. |
| - | | + | |
| - | Note: @domain is a wild-card. With this form, the Postfix SMTP server accepts | + | Note: @domain is a wild-card. With this form, the Postfix SMTP server accepts mail for any |
| - | | + | ent |
| - | | + | |
| - | | + | |
| - | | + | |
| RESULT ADDRESS REWRITING | RESULT ADDRESS REWRITING | ||
| The lookup result is subject to address rewriting: | The lookup result is subject to address rewriting: | ||
| - | | + | |
| - | | + | |
| - | | + | |
| - | | + | |
| - | | + | |
| - | | + | |
| - | | + | |
| ADDRESS EXTENSION | ADDRESS EXTENSION | ||
| - | | + | When a mail address localpart contains the optional |
| - | user+foo@domain), | + | lookup order becomes: user+foo@domain, |
| - | user, and @domain. | + | |
| - | | + | |
| - | extension (+foo) is propagated to the result of table lookup. | + | propagated to the result of table lookup. |
| VIRTUAL ALIAS DOMAINS | VIRTUAL ALIAS DOMAINS | ||
| - | | + | |
| - | | + | a virtual alias domain, all recipient addresses are aliased to addresses in other domains. |
| - | to addresses in other domains. | + | |
| - | | + | |
| - | are implemented with the Postfix virtual(8) mail delivery agent. With virtual mailbox | + | the Postfix virtual(8) mail delivery agent. With virtual mailbox domains, each recipient address can have |
| - | domains, each recipient address can have its own mailbox. | + | its own mailbox. |
| - | With a virtual alias domain, the virtual domain has its own user name space. | + | |
| - | (i.e. non-virtual) | + | usernames are not visible in a virtual alias domain. In particular, local aliases(5) |
| - | lar, local aliases(5) and local mailing lists are not visible | + | lists are not visible as localname@virtual-alias.domain. |
| - | alias.domain. | + | |
| | | ||
| Zeile 2265: | Zeile 2273: | ||
| | | ||
| - | | + | |
| - | -m" for available database types. | + | database types. |
| / | / | ||
| - | | + | |
| - | | + | |
| - | | + | |
| - | | + | |
| - | The virtual-alias.domain anything entry is required for a virtual alias domain. | + | The virtual-alias.domain anything entry is required for a virtual alias domain. |
| - | | + | is rejected with "relay access denied", |
| - | loops back to myself" | + | |
| - | | + | |
| - | relay_domains configuration parameters. | + | parameters. |
| - | With a virtual alias domain, the Postfix SMTP server accepts mail for known-user@vir‐ | + | With a virtual alias domain, the Postfix SMTP server accepts mail for known-user@virtual-alias.domain, |
| - | tual-alias.domain, | + | rejects mail for unknown-user@virtual-alias.domain as undeliverable. |
| - | | + | |
| - | | + | |
| - | you may also specify it via the main.cf virtual_alias_domains | + | it via the main.cf virtual_alias_domains configuration |
| - | ter. This latter parameter uses the same syntax as the main.cf mydestination | + | syntax as the main.cf mydestination |
| - | | + | |
| REGULAR EXPRESSION TABLES | REGULAR EXPRESSION TABLES | ||
| - | This section describes how the table lookups change when the table is given in the | + | This section describes how the table lookups change when the table is given in the form of regular |
| - | form of regular | + | sions. For a description of regular expression lookup table syntax, see regexp_table(5) or pcre_table(5). |
| - | syntax, see regexp_table(5) or pcre_table(5). | + | |
| - | Each pattern is a regular expression that is applied | + | Each pattern is a regular expression that is applied |
| - | looked | + | user@domain |
| - | @domain constituent parts, nor is user+foo broken up into user and foo. | + | user+foo broken up into user and foo. |
| - | | + | |
| - | that matches the search string. | + | search string. |
| - | | + | |
| - | parenthesized substrings | + | strings |
| TCP-BASED TABLES | TCP-BASED TABLES | ||
| - | This section describes how the table lookups change when lookups are directed | + | This section describes how the table lookups change when lookups are directed to a TCP-based server. For a |
| - | TCP-based | + | description |
| - | tcp_table(5). | + | to and including Postfix version 2.4. |
| - | Each lookup operation uses the entire address once. Thus, user@domain mail addresses | + | Each lookup operation uses the entire address once. Thus, user@domain mail addresses are not broken |
| - | are not broken up into their user and @domain constituent parts, nor is user+foo | + | into their user and @domain constituent parts, nor is user+foo |
| - | | + | |
| | | ||
| Zeile 2320: | Zeile 2323: | ||
| CONFIGURATION PARAMETERS | CONFIGURATION PARAMETERS | ||
| - | The following main.cf parameters are especially relevant to this topic. See the Post‐ | + | |
| - | | + | syntax details and for default values. Use the " |
| - | command after a configuration change. | + | |
| | | ||
| Zeile 2328: | Zeile 2330: | ||
| | | ||
| - | List of virtual alias domains. This uses the same syntax as the mydestination | + | List of virtual alias domains. This uses the same syntax as the mydestination parameter. |
| - | | + | |
| | | ||
| - | A list of address rewriting or forwarding mechanisms that propagate an address | + | A list of address rewriting or forwarding mechanisms that propagate an address extension |
| - | | + | |
| - | | + | |
| Other parameters of interest: | Other parameters of interest: | ||
| | | ||
| - | The network | + | The network interface addresses that this system receives mail on. You need to stop and start |
| - | | + | |
| | | ||
| Zeile 2352: | Zeile 2353: | ||
| | | ||
| - | Other interfaces that this machine receives mail on by way of a proxy agent or | + | Other interfaces |
| - | | + | |
| SEE ALSO | SEE ALSO | ||
| Zeile 2362: | Zeile 2363: | ||
| README FILES | README FILES | ||
| - | | + | Use " |
| - | tion. | + | |
| | | ||
| | | ||
| Zeile 2377: | Zeile 2377: | ||
| | | ||
| - | | + | |
| - | </ | + | |
| + | 111 8th Avenue | ||
| + | New York, NY 10011, USA | ||
| + | |||
| + | VIRTUAL(5)</ | ||
| === virtual-Dateien === | === virtual-Dateien === | ||
| == virtual_alias_domains == | == virtual_alias_domains == | ||
| - | * **virtual_alias_domains** Lookup-Tabelle zum Verwalten der virtuellen Domains. \\ **virtual_alias_domains.db** | + | * **virtual_alias_domains** Lookup-Tabelle zum Verwalten der virtuellen Domains. \\ **virtual_alias_domains.db** |
| + | # Kapitel 5.2.2 virtual: Weiterleitung und virtuelle Mailadressen | ||
| # Lookup-Tabelle zum Verwalten der virtuellen Domains. | # Lookup-Tabelle zum Verwalten der virtuellen Domains. | ||
| # Nach dem Ändern und/oder Erweitern der Tabelle, muß noch mittels | # Nach dem Ändern und/oder Erweitern der Tabelle, muß noch mittels | ||
| Zeile 2396: | Zeile 2401: | ||
| # | # | ||
| </ | </ | ||
| - | * **virtual_alias_maps** Lookup-Tabelle zum Verwalten der virtuellen eMail-Adressen. \\ **virtual_alias_maps.db** | + | * **virtual_alias_maps** Lookup-Tabelle zum Verwalten der virtuellen eMail-Adressen. \\ **virtual_alias_maps.db** |
| + | # Kapitel 5.2.2 virtual: Weiterleitung und virtuelle Mailadressen | ||
| # Lookup-Tabelle zum Verwalten der virtuellen eMailadressen. | # Lookup-Tabelle zum Verwalten der virtuellen eMailadressen. | ||
| # Nach dem Ändern und/oder Erweitern der Tabelle, muß noch mittels | # Nach dem Ändern und/oder Erweitern der Tabelle, muß noch mittels | ||
| Zeile 2437: | Zeile 2443: | ||
| == mysql_virtual_domains_maps.cf == | == mysql_virtual_domains_maps.cf == | ||
| # vim / | # vim / | ||
| - | <file bash / | + | <file bash / |
| # Definition der Datenbankanbindung zur Abfrage der virtuellen Domaenen | # Definition der Datenbankanbindung zur Abfrage der virtuellen Domaenen | ||
| # | # | ||
| Zeile 2449: | Zeile 2455: | ||
| == mysql_virtual_alias_maps.cf == | == mysql_virtual_alias_maps.cf == | ||
| # vim / | # vim / | ||
| - | <file bash / | + | <file bash / |
| # Definition der Datenbankanbindung zur Abfrage der virtual Alias Maps | # Definition der Datenbankanbindung zur Abfrage der virtual Alias Maps | ||
| # | # | ||
| Zeile 2461: | Zeile 2467: | ||
| == mysql_virtual_alias_domain_maps.cf == | == mysql_virtual_alias_domain_maps.cf == | ||
| # vim / | # vim / | ||
| - | <file bash / | + | <file bash / |
| # Definition der Datenbankanbindung zur Abfrage der virtual Alias Domain Maps | # Definition der Datenbankanbindung zur Abfrage der virtual Alias Domain Maps | ||
| # | # | ||
| Zeile 2475: | Zeile 2481: | ||
| == mysql_virtual_alias_domain_catchall_maps.cf == | == mysql_virtual_alias_domain_catchall_maps.cf == | ||
| # vim / | # vim / | ||
| - | <file bash / | + | <file bash / |
| # Definition der Datenbankanbindung zur Abfrage der virtual Alias Domain Catchall Maps | # Definition der Datenbankanbindung zur Abfrage der virtual Alias Domain Catchall Maps | ||
| # | # | ||
| Zeile 2489: | Zeile 2495: | ||
| == mysql_virtual_mailbox_maps.cf == | == mysql_virtual_mailbox_maps.cf == | ||
| # vim / | # vim / | ||
| - | <file bash / | + | <file bash / |
| # Definition der Datenbankanbindung zur Abfrage der virtual Mailbox Maps | # Definition der Datenbankanbindung zur Abfrage der virtual Mailbox Maps | ||
| # | # | ||
| Zeile 2501: | Zeile 2507: | ||
| == mysql_virtual_alias_domain_mailbox_maps.cf == | == mysql_virtual_alias_domain_mailbox_maps.cf == | ||
| # vim / | # vim / | ||
| - | <file bash / | + | <file bash / |
| # Definition der Datenbankanbindung zur Abfrage der virtual Alias Domain Mailbox Maps | # Definition der Datenbankanbindung zur Abfrage der virtual Alias Domain Mailbox Maps | ||
| # | # | ||
| Zeile 2517: | Zeile 2523: | ||
| === bcc-Dateien === | === bcc-Dateien === | ||
| == recipient_bcc_maps == | == recipient_bcc_maps == | ||
| - | * **recipient_bcc_maps** Lookup-Tabelle für Blindcopies einer oder mehrerer Empfangsadressen zu einem oder mehrer Zieladressen. \\ **recipient_bcc_maps.db** | + | * **recipient_bcc_maps** Lookup-Tabelle für Blindcopies einer oder mehrerer Empfangsadressen zu einem oder mehrer Zieladressen. \\ **recipient_bcc_maps.db** |
| # Kapitel 5.2.3 bcc-Tabelle: | # Kapitel 5.2.3 bcc-Tabelle: | ||
| # | # | ||
| # Nach dem Ändern und/oder Erweitern der Tabelle, muß noch mittels | # Nach dem Ändern und/oder Erweitern der Tabelle, muß noch mittels | ||
| - | # $ postmap / | + | # |
| + | # | ||
| + | # | ||
| # die zugehörige Datenbank erzeugt werden. | # die zugehörige Datenbank erzeugt werden. | ||
| # | # | ||
| Zeile 2529: | Zeile 2537: | ||
| # alle Nachrichten eines einzelnen Empfängers kopieren | # alle Nachrichten eines einzelnen Empfängers kopieren | ||
| # | # | ||
| - | # | ||
| - | # | ||
| </ | </ | ||
| - | * **sender_bcc_maps** Lookup-Tabelle für Blindcopies einer oder mehrerer Absenderadressen zu einem oder mehrer Zieladressen. \\ **sender_bcc_maps.db** | + | * **sender_bcc_maps** Lookup-Tabelle für Blindcopies einer oder mehrerer Absenderadressen zu einem oder mehrer Zieladressen. \\ **sender_bcc_maps.db** |
| # Kapitel 5.2.3 bcc-Tabelle: | # Kapitel 5.2.3 bcc-Tabelle: | ||
| # | # | ||
| # Nach dem Ändern und/oder Erweitern der Tabelle, muß noch mittels | # Nach dem Ändern und/oder Erweitern der Tabelle, muß noch mittels | ||
| - | # $ postmap / | + | # |
| + | # $ postmap / | ||
| + | # | ||
| # die zugehörige Datenbank erzeugt werden. | # die zugehörige Datenbank erzeugt werden. | ||
| # | # | ||
| Zeile 2543: | Zeile 2551: | ||
| # | # | ||
| # alle Nachrichten eines einzelnen Absenders kopieren | # alle Nachrichten eines einzelnen Absenders kopieren | ||
| - | # | + | # |
| - | # | + | |
| - | # | + | |
| + | ==== main.cf ==== | ||
| In der Sektion **LOOKUP-TABELLEN** definieren wir nun die zuvor vorgestellten Lookup-Tabellen in der Hauptkonfigurationsdatei **main.cf**. | In der Sektion **LOOKUP-TABELLEN** definieren wir nun die zuvor vorgestellten Lookup-Tabellen in der Hauptkonfigurationsdatei **main.cf**. | ||
| # vim / | # vim / | ||
| - | <code bash>... | + | <code bash>################################################################################ |
| - | + | ||
| - | ################################################################################ | + | |
| ## LOOKUP-TABELLEN | ## LOOKUP-TABELLEN | ||
| # | # | ||
| - | # Django : 2014-10-15 - default Datenbank Typ für die Befehle newaliases, | + | # Django : 2019-01-27 - default Datenbank Typ für die Befehle newaliases, |
| # postalias und postmap auf das performantere btree umgestellt. | # postalias und postmap auf das performantere btree umgestellt. | ||
| # default default_database_type = hash | # default default_database_type = hash | ||
| default_database_type = btree | default_database_type = btree | ||
| - | # Django : 2014-10-15 - Trennzeichen zwischen Usernamen und Adresserweiterung | + | # Django : 2019-01-27 - Trennzeichen zwischen Usernamen und Adresserweiterung |
| # default: recipient_delimiter = | # default: recipient_delimiter = | ||
| recipient_delimiter = + | recipient_delimiter = + | ||
| - | # Django : 2014-10-15 - Alias-Tabelle für die Zustellung von lokalen Nachrichten | + | # Django : 2019-01-27 - Alias-Tabelle für die Zustellung von lokalen Nachrichten |
| # durch den MDA (Mail Delivery Agent) " | # durch den MDA (Mail Delivery Agent) " | ||
| # Tabelle / | # Tabelle / | ||
| Zeile 2569: | Zeile 2574: | ||
| # default: alias_maps = hash:/ | # default: alias_maps = hash:/ | ||
| alias_maps = hash:/ | alias_maps = hash:/ | ||
| - | # btree:/ | ||
| alias_database = hash:/ | alias_database = hash:/ | ||
| - | # Django : 2014-10-15 - Optionale Lookup Tabelle mit allen gültigen Empfängern | + | # Django : 2019-01-27 - Optionale Lookup Tabelle mit allen gültigen Empfängern |
| # der in $relay_domains aufgeführten Domains | # der in $relay_domains aufgeführten Domains | ||
| # default: relay_recipient_maps = | # default: relay_recipient_maps = | ||
| Zeile 2579: | Zeile 2583: | ||
| # | # | ||
| - | # Django : 2014-10-15 - virtuelle Mail-Domains und Mailboxen mit Anbindung an | + | # Django : 2019-01-27 - virtuelle Mail-Domains und Mailboxen mit Anbindung an |
| # das mySQL-Datenbankbackend (Verwaltung mit Hilfe von postfixadmin) | # das mySQL-Datenbankbackend (Verwaltung mit Hilfe von postfixadmin) | ||
| # default: virtual_mailbox_domains = $virtual_mailbox_maps | # default: virtual_mailbox_domains = $virtual_mailbox_maps | ||
| Zeile 2593: | Zeile 2597: | ||
| proxy: | proxy: | ||
| - | # Django : 2014-10-15 - BCC-Adress Lookup Tabelle mit deren Hilfe Nachrichten | + | # Django : 2019-01-27 - BCC-Adress Lookup Tabelle mit deren Hilfe Nachrichten |
| # einzelner oder mehrerer Empfänger automatisch an einen weiteren | # einzelner oder mehrerer Empfänger automatisch an einen weiteren | ||
| # Empfänger geschickt werden. | # Empfänger geschickt werden. | ||
| Zeile 2599: | Zeile 2603: | ||
| recipient_bcc_maps = btree:/ | recipient_bcc_maps = btree:/ | ||
| - | # Django : 2014-10-15 - BCC-Adress Lookup Tabelle mit deren Hilfe Nachrichten | + | # Django : 2019-01-27 - BCC-Adress Lookup Tabelle mit deren Hilfe Nachrichten |
| # einzelner oder mehrerer Absender automatisch an einen weiteren | # einzelner oder mehrerer Absender automatisch an einen weiteren | ||
| # Empfänger geschickt werden. | # Empfänger geschickt werden. | ||
| sender_bcc_maps = btree:/ | sender_bcc_maps = btree:/ | ||
| - | # Django : 2014-10-16 - SMTP Lookup Tabelle mit deren Hilfe eMail-Adressen der | + | # Django : 2019-01-27 - SMTP Lookup Tabelle mit deren Hilfe eMail-Adressen der |
| # Empfänger im SMTP-Envelope und im Header der eMail beim Verlassen | # Empfänger im SMTP-Envelope und im Header der eMail beim Verlassen | ||
| # des MTA via SMTP umgeschrieben werden können. | # des MTA via SMTP umgeschrieben werden können. | ||
| Zeile 2610: | Zeile 2614: | ||
| smtp_generic_maps = btree:/ | smtp_generic_maps = btree:/ | ||
| - | # Django : 2014-10-16 - LMTP Lookup Tabelle mit deren Hilfe eMail-Adressen der | + | # Django : 2019-01-27 - LMTP Lookup Tabelle mit deren Hilfe eMail-Adressen der |
| # Empfänger im SMTP-Envelope und im Header der eMail beim Verlassen | # Empfänger im SMTP-Envelope und im Header der eMail beim Verlassen | ||
| # des MTA zum MDA via LMTP umgeschrieben werden können. | # des MTA zum MDA via LMTP umgeschrieben werden können. | ||
| Zeile 2616: | Zeile 2620: | ||
| lmtp_generic_maps = btree:/ | lmtp_generic_maps = btree:/ | ||
| - | # Django : 2014-10-16 - Lookup-Tabelle zum Umschreibungen von Absender-eMail- | + | # Django : 2019-01-27 - Lookup-Tabelle zum Umschreibungen von Absender-eMail- |
| # -Adressen im SMTP-Envelop und/oder im Header der eMail. | # -Adressen im SMTP-Envelop und/oder im Header der eMail. | ||
| # default: sender_canonical_maps = | # default: sender_canonical_maps = | ||
| Zeile 2626: | Zeile 2630: | ||
| sender_canonical_classes = envelope_sender | sender_canonical_classes = envelope_sender | ||
| - | # Django : 2014-10-16 - Lookup-Tabelle zum Umschreibungen von Empfänger-eMail- | + | # Django : 2019-01-27 - Lookup-Tabelle zum Umschreibungen von Empfänger-eMail- |
| # -Adressen im SMTP-Envelop und/oder im Header der eMail. | # -Adressen im SMTP-Envelop und/oder im Header der eMail. | ||
| # default: recipient_canonical_maps = | # default: recipient_canonical_maps = | ||
| Zeile 2636: | Zeile 2640: | ||
| recipient_canonical_classes = envelope_recipient | recipient_canonical_classes = envelope_recipient | ||
| - | # Django : 2014-10-16 - Lookup-Tabelle zum Aktivieren von " | + | # Django : 2019-01-27 - Lookup-Tabelle zum Aktivieren von " |
| # an den Absender einer eMail über nicht existierende eMail-Adressen | # an den Absender einer eMail über nicht existierende eMail-Adressen | ||
| # mit Angabe der neu zu nutzenden eMailadresse des Empfängers. | # mit Angabe der neu zu nutzenden eMailadresse des Empfängers. | ||
| Zeile 2642: | Zeile 2646: | ||
| relocated_maps = btree:/ | relocated_maps = btree:/ | ||
| - | # Django : 2015-10-15 - Ergebnisse der Adress-Verification cachen | + | # Django : 2019-01-27 - Ergebnisse der Adress-Verification cachen |
| # Kapitel 12.2.2 Dynamische Empfänger-Verifizierung | # Kapitel 12.2.2 Dynamische Empfänger-Verifizierung | ||
| # Kapitel 9.5.5 envelope sender überprüfen | # Kapitel 9.5.5 envelope sender überprüfen | ||
| # default: address_verify_map = btree: | # default: address_verify_map = btree: | ||
| - | |||
| </ | </ | ||
| + | Die Installation und Konfiguration des in diesem Codeabschnitt enthaltenen SRS-Daemon findest sich im Kapitel **[[centos: | ||
| Zeile 2682: | Zeile 2685: | ||
| * **reject_rbl_client ix.dnsbl.manitu.net** Blockiert die eMail, wenn die Client-IP-Adresse bei **ix.dnsbl.manitu.net** geblacklistet ist. | * **reject_rbl_client ix.dnsbl.manitu.net** Blockiert die eMail, wenn die Client-IP-Adresse bei **ix.dnsbl.manitu.net** geblacklistet ist. | ||
| * **reject_rbl_client bl.spamcop.net** Blockiert die eMail, wenn die Client-IP-Adresse bei **bl.spamcop.net** geblacklistet ist. | * **reject_rbl_client bl.spamcop.net** Blockiert die eMail, wenn die Client-IP-Adresse bei **bl.spamcop.net** geblacklistet ist. | ||
| - | * **reject_rbl_client dnsbl.njabl.org** Blockiert die eMail, wenn die Client-IP-Adresse bei **dnsbl.njabl.org** geblacklistet ist. | ||
| * **reject_rhsbl_client multi.uribl.com** \\ Blockiert die eMail, sofern der Client-Hostname in der verwendeten **rhsbl_domain**(**RHSBL**)((**R**ight-**H**and **S**ided **B**lacklist)) gelistet ist. | * **reject_rhsbl_client multi.uribl.com** \\ Blockiert die eMail, sofern der Client-Hostname in der verwendeten **rhsbl_domain**(**RHSBL**)((**R**ight-**H**and **S**ided **B**lacklist)) gelistet ist. | ||
| * **reject_plaintext_session** \\ Liefert einen **REJECT**, wenn die Verbindung nicht TLS transportverschlüsselt ist. | * **reject_plaintext_session** \\ Liefert einen **REJECT**, wenn die Verbindung nicht TLS transportverschlüsselt ist. | ||
| Zeile 2688: | Zeile 2690: | ||
| Nachfolgende Definitionen fügen wir nun am Ende der // | Nachfolgende Definitionen fügen wir nun am Ende der // | ||
| # vim / | # vim / | ||
| - | < | + | < |
| - | + | ||
| - | ################################################################################ | + | |
| ## SMTP RECIPIENT RESTRICTIONS | ## SMTP RECIPIENT RESTRICTIONS | ||
| # | # | ||
| - | # Django : 2014-10-29 - Schutz unserer Empfänger mit Hilfe der Recipient | + | # Django : 2019-01-27 - Schutz unserer Empfänger mit Hilfe der Recipient |
| # Restrictions | # Restrictions | ||
| # default: smtpd_recipient_restrictions = | # default: smtpd_recipient_restrictions = | ||
| Zeile 2751: | Zeile 2751: | ||
| Nachfolgende Definitionen fügen wir nun am Ende der // | Nachfolgende Definitionen fügen wir nun am Ende der // | ||
| # vim / | # vim / | ||
| - | < | + | < |
| - | + | ||
| - | ################################################################################ | + | |
| ## SMTP RELAY RESTRICTIONS | ## SMTP RELAY RESTRICTIONS | ||
| # | # | ||
| - | # Django : 2014-10-27 - Definition, wer über unseren MX relayen darf oder nicht. | + | # Django : 2019-01-27 - Definition, wer über unseren MX relayen darf oder nicht. |
| # http:// | # http:// | ||
| # default: smtpd_relay_restrictions = permit_mynetworks, | # default: smtpd_relay_restrictions = permit_mynetworks, | ||
| Zeile 2776: | Zeile 2774: | ||
| <file bash / | <file bash / | ||
| # # | # # | ||
| - | # Django : 2014-10-15 - Musterkonfiguration Postfix | + | # Django : 2019-01-27 - Musterkonfiguration Postfix |
| # # | # # | ||
| ################################################################################ | ################################################################################ | ||
| Zeile 2783: | Zeile 2781: | ||
| ## INSTALLATIONS-KONFIGURATIONS INFORMATIONEN | ## INSTALLATIONS-KONFIGURATIONS INFORMATIONEN | ||
| # | # | ||
| + | # Der Kopatibilitäts Level definiert, welche Standardeinstellungen Postfix für | ||
| + | # die Einstellungen main.cf und master.cf verwendet. Diese Standardeinstellungen | ||
| + | # werden sich im Laufe der Zeit voraussichtlich ändern! | ||
| + | # | ||
| + | # Damit die Lauffähigkeit des Postfix-Daemon nicht gefährdet wird der Daemon | ||
| + | # rückwärtskompatible Standardeinstellungen verwenden und dies auch entsprechend | ||
| + | # protokollieren. So kann bei einer Migration definiert werden, | ||
| + | # kompatible Standardeinstellungen in main.cf oder master.cf dauerhaft | ||
| + | # vorgenommen werden müssen. | ||
| + | # | ||
| + | # Nach erfolgter Überprüfung ist der compatibility_level, | ||
| + | # / | ||
| + | # empfohlen, entsprechend anzupassen. | ||
| + | # | ||
| + | # Django : 2019-01-27 - Kompatibilitäts-Level der Postfix 3 Installation | ||
| + | # Standardwert 2 definiert eine Neuinstalltion und kein (!) Upgrade. | ||
| + | # default: compatibility_level = 2 | ||
| + | compatibility_level = 2 | ||
| + | |||
| # Folgende Default-Parameter werden benutzt, sobald eine neue Postfix-Version | # Folgende Default-Parameter werden benutzt, sobald eine neue Postfix-Version | ||
| # installiert wird. | # installiert wird. | ||
| # | # | ||
| - | # Django : 2014-10-31 - Vollständiger Pfad zum Postfix sendmail Programm, dem | + | # Django : 2019-01-27 - Vollständiger Pfad zum Postfix sendmail Programm, dem |
| # zu senmail kompatiblen sendmail Befehl. | # zu senmail kompatiblen sendmail Befehl. | ||
| # default: sendmail_path = / | # default: sendmail_path = / | ||
| sendmail_path = / | sendmail_path = / | ||
| - | + | ||
| - | # Django : 2014-10-31 - Vollständiger Pfad zum Postfix newaliases Programm, dem | + | # Django : 2019-01-27 - Vollständiger Pfad zum Postfix newaliases Programm, dem |
| # zu sendmail kompatiblen Programm zum Anlegen der Alias Datenbanken. | # zu sendmail kompatiblen Programm zum Anlegen der Alias Datenbanken. | ||
| # default: newaliases_path = / | # default: newaliases_path = / | ||
| newaliases_path = / | newaliases_path = / | ||
| - | + | ||
| - | # Django : 2014-10-31 - Vollständiger Pfad zum Postfix qmail-Programm, | + | # Django : 2019-01-27 - Vollständiger Pfad zum Postfix qmail-Programm, |
| # sendmail kompatiblen Programm zum Anzeigen der Maile-Queues | # sendmail kompatiblen Programm zum Anzeigen der Maile-Queues | ||
| # default: mailq_path = / | # default: mailq_path = / | ||
| mailq_path = / | mailq_path = / | ||
| - | + | ||
| - | # Django : 2014-10-31 - Gruppe für die Befehle mail submission und queue | + | # Django : 2019-01-27 - Gruppe für die Befehle mail submission und queue |
| # management. Die Gruppe muss eine numerische eigene ID haben | # management. Die Gruppe muss eine numerische eigene ID haben | ||
| # und darf nicht mit anderen Benutzeraccounts geteilt werden, | # und darf nicht mit anderen Benutzeraccounts geteilt werden, | ||
| Zeile 2807: | Zeile 2824: | ||
| # default: setgid_group = postdrop | # default: setgid_group = postdrop | ||
| setgid_group = postdrop | setgid_group = postdrop | ||
| - | + | ||
| - | # Django : 2014-10-31 - Pfad für die Postfix Postfix HTML Dokumentation. | + | # Django : 2019-01-27 - Pfad für die Postfix Postfix HTML Dokumentation. |
| # default: html_directory | # default: html_directory | ||
| html_directory = no | html_directory = no | ||
| - | + | ||
| - | # Django : 2014-10-31 - Pfad für die Postfix online man-pages. | + | # Django : 2019-01-27 - Pfad für die Postfix online man-pages. |
| # default: manpage_directory = / | # default: manpage_directory = / | ||
| manpage_directory = / | manpage_directory = / | ||
| - | + | ||
| - | # Django : 2014-10-31 - Pfadangabe für die Postfix Beispielkonfigurationsdateien. | + | # Django : 2019-01-27 - Pfadangabe für die Postfix Beispielkonfigurationsdateien. |
| # Dieser Parameter ist obsolete seit Postfix 2.1. | # Dieser Parameter ist obsolete seit Postfix 2.1. | ||
| # default: sample_directory = / | # default: sample_directory = / | ||
| - | sample_directory = / | + | sample_directory = / |
| - | + | ||
| - | # Django : 2014-10-31 - Pfadangabe für die Postfix README Dateien. | + | # Django : 2019-01-27 - Pfadangabe für die Postfix README Dateien. |
| # default: readme_directory = no | # default: readme_directory = no | ||
| - | readme_directory = / | + | readme_directory = / |
| + | |||
| + | # Django : 2019-01-27 - Pfadangabe für das Postfix Metadirectory | ||
| + | # default: meta_directory = / | ||
| + | meta_directory = / | ||
| + | |||
| + | # Django : 2019-01-27 - Pfadangabe für das SHLIB-Verzeichnis | ||
| + | # default: shlib_directory = / | ||
| + | shlib_directory = / | ||
| ################################################################################ | ################################################################################ | ||
| - | ## PFADANGABEN DER LOKALEN INSTALLATION | + | ## PFADANGABEN DER LOKALEN INSTALLATION |
| # | # | ||
| - | # Django : 2014-10-31 - Definition des Speicherortes für die Queue-Dateien von | + | # Django : 2019-01-27 - Definition des Speicherortes für die Queue-Dateien von |
| # Postfix. Dies ist auch der root-Pfad, falls Postfix in einer | # Postfix. Dies ist auch der root-Pfad, falls Postfix in einer | ||
| # chroot-Umgebung laufen sollte. In der Datei examples/ | # chroot-Umgebung laufen sollte. In der Datei examples/ | ||
| Zeile 2837: | Zeile 2862: | ||
| # default: queue_directory = / | # default: queue_directory = / | ||
| queue_directory = / | queue_directory = / | ||
| - | + | ||
| - | # Django : 2014-10-31 - Vollständiger Pfad zu allen postXXX-Programmen. | + | # Django : 2019-01-27 - Vollständiger Pfad zu allen postXXX-Programmen. |
| # default: command_directory = /usr/sbin | # default: command_directory = /usr/sbin | ||
| command_directory = /usr/sbin | command_directory = /usr/sbin | ||
| - | + | ||
| - | # Django : 2014-10-31 Vollständiger Pfad zum Verzeichnis, | + | # Django : 2019-01-27 Vollständiger Pfad zum Verzeichnis, |
| # postfix Daemon Programme (die z.B. auch in der master.cf | # postfix Daemon Programme (die z.B. auch in der master.cf | ||
| # aufgeführt sind) befinden. Das Verzeichnis muss root gehören! | # aufgeführt sind) befinden. Das Verzeichnis muss root gehören! | ||
| # default: daemon_directory = / | # default: daemon_directory = / | ||
| daemon_directory = / | daemon_directory = / | ||
| - | + | ||
| - | # Django : 2014-10-31 - Datenverzeichnis, | + | # Django : 2019-01-27 - Datenverzeichnis, |
| # ablegt, wie z.B. Caches, Zufallszahlen ect. pp. Das Verzeichnis | # ablegt, wie z.B. Caches, Zufallszahlen ect. pp. Das Verzeichnis | ||
| # muss dem nachfolgendem " | # muss dem nachfolgendem " | ||
| Zeile 2858: | Zeile 2883: | ||
| ## RECHTE BEI QUEUES UND PROZESSEN | ## RECHTE BEI QUEUES UND PROZESSEN | ||
| # | # | ||
| - | # Django : 2014-10-31 - Definition des Nutzers, unter dem die meisten Postfix | + | # Django : 2019-01-27 - Definition des Nutzers, unter dem die meisten Postfix |
| # Daemons laufen und mit dem die Queue-Dateien geschrieben werden. | # Daemons laufen und mit dem die Queue-Dateien geschrieben werden. | ||
| # Die User muss unique sein, d.h. er darf weder einer anderen Gruppe | # Die User muss unique sein, d.h. er darf weder einer anderen Gruppe | ||
| Zeile 2867: | Zeile 2892: | ||
| mail_owner = postfix | mail_owner = postfix | ||
| - | # Django : 2014-10-31 - Festlegung der Defaultrechte, | + | # Django : 2019-01-27 - Festlegung der Defaultrechte, |
| # Delivery Agent) verwendet werden, wenn dieser Nachrichten in eine | # Delivery Agent) verwendet werden, wenn dieser Nachrichten in eine | ||
| # externe Datei schreibt, oder einem anderen Befehl übergibt. | # externe Datei schreibt, oder einem anderen Befehl übergibt. | ||
| Zeile 2876: | Zeile 2901: | ||
| # default: default_privs = nobody | # default: default_privs = nobody | ||
| default_privs = nobody | default_privs = nobody | ||
| + | |||
| ################################################################################ | ################################################################################ | ||
| ## DEBUGGING | ## DEBUGGING | ||
| # | # | ||
| - | # Django : 2014-10-31 - Mit dem Parameter " | + | # Django : 2019-01-27 - Mit dem Parameter " |
| # um welchen Faktor der Logging-Level erhöht wird, wenn ein SMTP | # um welchen Faktor der Logging-Level erhöht wird, wenn ein SMTP | ||
| # Client, ein Hostname oder eine IP-Adresse zu den Definitionen des | # Client, ein Hostname oder eine IP-Adresse zu den Definitionen des | ||
| Zeile 2887: | Zeile 2913: | ||
| debug_peer_level = 2 | debug_peer_level = 2 | ||
| - | # Django : 2014-10-31 : Definition einer Liste aus Netzwerk-Adressen, | + | # Django : 2019-01-27 : Definition einer Liste aus Netzwerk-Adressen, |
| # Namen, IP-Adressen oder entsprechender Postfix-Listen | # Namen, IP-Adressen oder entsprechender Postfix-Listen | ||
| # " | # " | ||
| Zeile 2896: | Zeile 2922: | ||
| # default: debug_peer_list = | # default: debug_peer_list = | ||
| - | # Django : 2014-10-13 - Debugger-Befehlszeile | + | # Django : 2019-01-27 - Debugger-Befehlszeile |
| # Die Option " | # Die Option " | ||
| # das ausgeführt werden soll, sofern der Postfix Daemon mit der | # das ausgeführt werden soll, sofern der Postfix Daemon mit der | ||
| Zeile 2918: | Zeile 2944: | ||
| ## ZUSTÄNDIGKEITEN, | ## ZUSTÄNDIGKEITEN, | ||
| # | # | ||
| - | # Django : 2014-10-15 - Hostname auf " | + | # Django : 2019-01-27 - Hostname auf " |
| # default: myhostname = FQDN | # default: myhostname = FQDN | ||
| - | myhostname = mx01.nausch.org | + | myhostname = mx1.nausch.org |
| - | # Django : 2014-10-15 - Domainpart der lokal generierten Nachrichten gesetzt | + | # Django : 2019-01-27 - Domainpart der lokal generierten Nachrichten gesetzt |
| # default: myorigin = $myhostname | # default: myorigin = $myhostname | ||
| myorigin = $mydomain | myorigin = $mydomain | ||
| - | # Django : 2014-10-15 - Für welche Domains ist unser Mailserver zuständig, | + | # Django : 2019-01-27 - Für welche Domains ist unser Mailserver zuständig, |
| # also final destination? | # also final destination? | ||
| # auch noch Nachrichten für die beiden Sub-Domains lists.nausch.org | # auch noch Nachrichten für die beiden Sub-Domains lists.nausch.org | ||
| # (Mailman) und dmarc.nausch.org (DMARC-Reportmails) annehmen. | # (Mailman) und dmarc.nausch.org (DMARC-Reportmails) annehmen. | ||
| # default: mydestination = $myhostname, | # default: mydestination = $myhostname, | ||
| - | mydestination = | + | mydestination = |
| $myhostname | $myhostname | ||
| localhost.$mydomain | localhost.$mydomain | ||
| Zeile 2938: | Zeile 2964: | ||
| dmarc.nausch.org | dmarc.nausch.org | ||
| - | # default: unbekannte | + | # Django |
| - | # temporären Fehler 450 abgewiesen werden. | + | # |
| - | unknown_local_recipient_reject_code = 550 | + | # default: |
| + | # unverified_recipient_reject_code = 450 | ||
| + | unverified_recipient_reject_code = 577 | ||
| - | # Django : 2014-10-15 - Soll bei einem unbekanntem Ziel der genaue Tabellenname | + | # Django : 2019-01-27 - Soll bei einem unbekanntem Ziel der genaue Tabellenname |
| # bei der Ablehnung genannt werden? | # bei der Ablehnung genannt werden? | ||
| # default: show_user_unknown_table_name = yes | # default: show_user_unknown_table_name = yes | ||
| show_user_unknown_table_name = no | show_user_unknown_table_name = no | ||
| - | # Django : 2014-10-15 - auf allen Interfaces und Protokollen (IPv4 und IPv6) | + | # Django : 2019-01-27 - auf allen Interfaces und Protokollen (IPv4 und IPv6) |
| # soll gelauscht werden | # soll gelauscht werden | ||
| # default: inet_interfaces = all | # default: inet_interfaces = all | ||
| # default: inet_protocols = all | # default: inet_protocols = all | ||
| - | # Django : 2014-10-15 - Grundsätzlich soll erst einmal unser Mailserver nur dem | + | # Django : 2019-01-27 - Grundsätzlich soll erst einmal unser Mailserver nur dem |
| # eigenen Host trauen, sonst niemanden! | # eigenen Host trauen, sonst niemanden! | ||
| # default: mynetworks_style = subnet | # default: mynetworks_style = subnet | ||
| Zeile 2961: | Zeile 2989: | ||
| [::1]/128 | [::1]/128 | ||
| 10.0.0.0/24 | 10.0.0.0/24 | ||
| - | 10.0.10.0/26 | + | 10.0.10.0/25 |
| - | 130.185.109.34/ | + | |
| - | 130.185.109.87/ | + | |
| - | # Django : 2015-10-15 - Backup-Mailserver explizit erlauben | + | # Django : 2019-01-27 - Backup-Mailserver explizit erlauben |
| # default: permit_mx_backup_networks = | # default: permit_mx_backup_networks = | ||
| permit_mx_backup_networks = 88.217.171.167/ | permit_mx_backup_networks = 88.217.171.167/ | ||
| - | ################################################################################ | + | ############################################################################### |
| - | ## ROUTING | + | ## ROUTING |
| # | # | ||
| - | # Django : 2014-10-15 - Relayhost: Alle Nachrichten werden an den Relayhost | + | # Django : 2019-01-27 - Relayhost: Alle Nachrichten werden an den Relayhost |
| # smtp-out.dmz.nausch.org gesendet. | # smtp-out.dmz.nausch.org gesendet. | ||
| # default: relayhost = | # default: relayhost = | ||
| # relayhost = [smtp-out.dmz.nausch.org] | # relayhost = [smtp-out.dmz.nausch.org] | ||
| - | # Django : 2014-10-15 - Backup-Relayhost: | + | # Django : 2019-01-27 - Backup-Relayhost: |
| # sein, soll sich unser MTA an den backup-relayhost | # sein, soll sich unser MTA an den backup-relayhost | ||
| # smtp-backup.dmz.nausch.org senden | # smtp-backup.dmz.nausch.org senden | ||
| Zeile 2984: | Zeile 3010: | ||
| # smtp_fallback_relay = [smtp-backup.dmz.nausch.org] | # smtp_fallback_relay = [smtp-backup.dmz.nausch.org] | ||
| - | # Django : 2014-10-15 - Relay Domains: Postfix als eingehendes Mailrelay vor | + | # Django : 2019-01-27 - Relay Domains: Postfix als eingehendes Mailrelay vor |
| # einem anderen Server | # einem anderen Server | ||
| # default: relay_domains = $mydestination | # default: relay_domains = $mydestination | ||
| relay_domains = btree:/ | relay_domains = btree:/ | ||
| - | # Django : 2014-10-15 - Nachrichten für eine bestimmte Richtung sollen | + | # Django : 2019-01-27 - Nachrichten für eine bestimmte Richtung sollen |
| # abweichend von den MX-Definitionen im DNS an dedizierte Ziele | # abweichend von den MX-Definitionen im DNS an dedizierte Ziele | ||
| # geroutet/ | # geroutet/ | ||
| Zeile 2995: | Zeile 3021: | ||
| transport_maps = btree:/ | transport_maps = btree:/ | ||
| - | # Django : 2014-10-15 - Definition zur Erreichbarkeit unseres MDA-Servers | + | # Django : 2019-01-27 - Definition zur Erreichbarkeit unseres MDA-Servers |
| # Dovecot-IMAP | # Dovecot-IMAP | ||
| # default: virtual_transport = virtual | # default: virtual_transport = virtual | ||
| - | virtual_transport = lmtp:[10.0.0.77]:24 | + | virtual_transport = lmtp:[imap.dmz.nausch.org]:24 |
| Zeile 3004: | Zeile 3030: | ||
| ## QUEUEING-VERHALTEN | ## QUEUEING-VERHALTEN | ||
| # | # | ||
| - | # Django : 2014-10-18 - Queue-Lifetime auf 3 Tage heruntersetzen, | + | # Django : 2019-01-27 - Queue-Lifetime auf 3 Tage heruntersetzen, |
| # die maximale Zeit, die der MX versuchen darf, eine Nachricht zuzu- | # die maximale Zeit, die der MX versuchen darf, eine Nachricht zuzu- | ||
| # stellen | # stellen | ||
| # default: maximal_queue_lifetime = 5d | # default: maximal_queue_lifetime = 5d | ||
| maximal_queue_lifetime = 3d | maximal_queue_lifetime = 3d | ||
| - | + | ||
| - | # Django : 2014-03-17- Bounce-Queue-Lifetime auf 3 Tage heruntersetzen, | + | # Django : 2019-01-27- Bounce-Queue-Lifetime auf 3 Tage heruntersetzen, |
| # der MTA versuchen soll eine Bouncenachricht zuzustellen. | # der MTA versuchen soll eine Bouncenachricht zuzustellen. | ||
| # default: bounce_queue_lifetime = 5d | # default: bounce_queue_lifetime = 5d | ||
| Zeile 3019: | Zeile 3045: | ||
| ## NACHRICHTENGROESSE UND ZUSTELLVERSUCHE/ | ## NACHRICHTENGROESSE UND ZUSTELLVERSUCHE/ | ||
| # | # | ||
| - | # Django : 2014-10-18 Maximale Nachrichtengröße festlegen. Maximale Nachrichten- | + | # Django : 2019-01-27 Maximale Nachrichtengröße festlegen. Maximale Nachrichten- |
| # größe einer Nachricht incl. der Headerinformationen darf maximal | # größe einer Nachricht incl. der Headerinformationen darf maximal | ||
| # 50 MB ( 52428800 = 50*1024*1024 ) betragen, darüber verweigert | # 50 MB ( 52428800 = 50*1024*1024 ) betragen, darüber verweigert | ||
| Zeile 3026: | Zeile 3052: | ||
| message_size_limit = 52428800 | message_size_limit = 52428800 | ||
| - | # Django : 2014-10-18 Maximale Mailboxgröße einer einzelnen Mailbox bzw. | + | # Django : 2019-01-27 Maximale Mailboxgröße einer einzelnen Mailbox bzw. |
| - | # Maildir-Fiels. Der Wert darf nicht kleiner als die maximale | + | # Maildir-Files. Der Wert darf nicht kleiner als die maximale |
| # Nachrichtengröße (message_size_limit) sein. | # Nachrichtengröße (message_size_limit) sein. | ||
| # default: mailbox_size_limit = 10240000 | # default: mailbox_size_limit = 10240000 | ||
| mailbox_size_limit = 52428800 | mailbox_size_limit = 52428800 | ||
| - | # Django : 2010-10-28 - Rate Limiting (DOS-Attacken verhindern) maximale | + | # Django : 2019-01-27 - Rate Limiting (DOS-Attacken verhindern) maximale |
| # Zustellung limitieren (Kapitel 24 des Buches Postfix) | # Zustellung limitieren (Kapitel 24 des Buches Postfix) | ||
| # (Kapitel 13.14 Rate-Limiting gegenüber Clients durchsetzen) | # (Kapitel 13.14 Rate-Limiting gegenüber Clients durchsetzen) | ||
| Zeile 3054: | Zeile 3080: | ||
| # Maximale Anzahl von erlaubten Anzahl von eMails je definierter Zeit- | # Maximale Anzahl von erlaubten Anzahl von eMails je definierter Zeit- | ||
| # einheit (anvil_rate_time_unit) pro einliefernden Host | # einheit (anvil_rate_time_unit) pro einliefernden Host | ||
| - | # deafault: smtpd_client_message_rate_limit = 0 | + | # default: smtpd_client_message_rate_limit = 0 |
| smtpd_client_message_rate_limit = 50 | smtpd_client_message_rate_limit = 50 | ||
| # | # | ||
| - | # Welche | + | # Welche |
| # Default sind dies alle Clients aus dem eigenen Netzwerk $mynetworks | # Default sind dies alle Clients aus dem eigenen Netzwerk $mynetworks | ||
| # default: smtpd_client_event_limit_exceptions = | # default: smtpd_client_event_limit_exceptions = | ||
| Zeile 3078: | Zeile 3104: | ||
| # Ausgehende Nachrichten des MAilinglistenservers auf 2,5 Minuten | # Ausgehende Nachrichten des MAilinglistenservers auf 2,5 Minuten | ||
| # setzen | # setzen | ||
| - | smtp_destination_rate_delay = 150s | + | #smtp_destination_rate_delay = 150s |
| Zeile 3084: | Zeile 3110: | ||
| ## RÜCKMELDUNGEN BEEINFLUSSEN UND INDIVIDUALISIEREN | ## RÜCKMELDUNGEN BEEINFLUSSEN UND INDIVIDUALISIEREN | ||
| # | # | ||
| - | # Django : 2014-10-18 - Greeting Banner bei der 220er Begrüßung des MTA | + | # Django : 2019-01-27 - Greeting Banner bei der 220er Begrüßung des MTA |
| smtpd_banner = $myhostname ESMTP $mail_name | smtpd_banner = $myhostname ESMTP $mail_name | ||
| - | # Django : 2014-10-16 - Extra-Footer | + | # Django : 2019-01-27 - Extra-Footer |
| # anfügen | # anfügen | ||
| smtpd_reject_footer = \c. Contact your postmaster/ | smtpd_reject_footer = \c. Contact your postmaster/ | ||
| - | # Django : 2014-10-16 - Anzeige des Tabellen-Namens, | + | # Django : 2019-01-27 - Anzeige des Tabellen-Namens, |
| # nicht gefunden wurde. Das unterdrücken macht unter Umständen die | # nicht gefunden wurde. Das unterdrücken macht unter Umständen die | ||
| # Fehlersuche etwas aufwändiger, | # Fehlersuche etwas aufwändiger, | ||
| Zeile 3098: | Zeile 3124: | ||
| show_user_unknown_table_name = no | show_user_unknown_table_name = no | ||
| - | # Django : 2014-10-24 - Adressverifikationsdetails unterdrücken | + | # Django : 2019-01-27 - Adressverifikationsdetails unterdrücken |
| # Weder den numerischen SMTP-reply-Code, | # Weder den numerischen SMTP-reply-Code, | ||
| # zurückgeben. Lediglich " | # zurückgeben. Lediglich " | ||
| Zeile 3104: | Zeile 3130: | ||
| unverified_recipient_reject_reason = Recipient address lookup failed | unverified_recipient_reject_reason = Recipient address lookup failed | ||
| - | # Django : 2014-10-24 - Adressverifikationsdetails unterdrücken | + | # Django : 2019-01-27 - Adressverifikationsdetails unterdrücken |
| # Weder den numerischen SMTP-reply-Code, | # Weder den numerischen SMTP-reply-Code, | ||
| # zurückgeben. Lediglich " | # zurückgeben. Lediglich " | ||
| Zeile 3110: | Zeile 3136: | ||
| unverified_sender_reject_reason = Sender address lookup failed | unverified_sender_reject_reason = Sender address lookup failed | ||
| - | # Django : 2014-10-18 Definition der benutzerspezifischen und individualisierten | + | # Django : 2019-01-27 Definition der benutzerspezifischen und individualisierten |
| # Bounce-Nachrichten mit deutsch- und englischsprachigen Texten aktiviert | # Bounce-Nachrichten mit deutsch- und englischsprachigen Texten aktiviert | ||
| # default: bounce_template_file = | # default: bounce_template_file = | ||
| bounce_template_file = / | bounce_template_file = / | ||
| - | # Django : 2014-10-18 - Delivery Status Notification (DSN) selectiv sperren | + | # Django : 2019-01-27 - Delivery Status Notification (DSN) selectiv sperren |
| # oder freigeben | # oder freigeben | ||
| # default: smtpd_discard_ehlo_keyword_address_maps = | # default: smtpd_discard_ehlo_keyword_address_maps = | ||
| smtpd_discard_ehlo_keyword_address_maps = cidr:/ | smtpd_discard_ehlo_keyword_address_maps = cidr:/ | ||
| - | # Django : 2014-10-18 - SMTP-Kommando VRFY sperren, mit dem eine einfache und | + | # Django : 2019-01-27 - SMTP-Kommando VRFY sperren, mit dem eine einfache und |
| # schnelle Addressverifizierung möglich ist. | # schnelle Addressverifizierung möglich ist. | ||
| # default: disable_vrfy_command = no | # default: disable_vrfy_command = no | ||
| disable_vrfy_command = yes | disable_vrfy_command = yes | ||
| - | # Django : 2015-10-08 - Fehlercode bei Verwendung der Option | + | # Django : 2019-01-27 - Fehlercode bei Verwendung der Option |
| # reject_plaintext_session beim Einsatz von verpflichtender | # reject_plaintext_session beim Einsatz von verpflichtender | ||
| - | # TLS-Transportverschlüsselung. | + | # TLS-Transportverschlüsselung. |
| # https:// | # https:// | ||
| # default: plaintext_reject_code = 450 | # default: plaintext_reject_code = 450 | ||
| - | # plaintext_reject_code = 573 | + | plaintext_reject_code = 571 |
| Zeile 3136: | Zeile 3162: | ||
| ## LOOKUP-TABELLEN | ## LOOKUP-TABELLEN | ||
| # | # | ||
| - | # Django : 2014-10-15 - default Datenbank Typ für die Befehle newaliases, | + | # Django : 2019-01-27 - default Datenbank Typ für die Befehle newaliases, |
| # postalias und postmap auf das performantere btree umgestellt. | # postalias und postmap auf das performantere btree umgestellt. | ||
| # default default_database_type = hash | # default default_database_type = hash | ||
| - | default_database_type = btree | + | default_database_type = |
| - | # Django : 2014-10-15 - Trennzeichen zwischen Usernamen und Adresserweiterung | + | # Django : 2019-01-27 - Trennzeichen zwischen Usernamen und Adresserweiterung |
| # default: recipient_delimiter = | # default: recipient_delimiter = | ||
| recipient_delimiter = + | recipient_delimiter = + | ||
| - | # Django : 2014-10-15 - Alias-Tabelle für die Zustellung von lokalen Nachrichten | + | # Django : 2019-01-27 - Alias-Tabelle für die Zustellung von lokalen Nachrichten |
| # durch den MDA (Mail Delivery Agent) " | # durch den MDA (Mail Delivery Agent) " | ||
| # Tabelle / | # Tabelle / | ||
| # notwendig! | # notwendig! | ||
| # default: alias_maps = hash:/ | # default: alias_maps = hash:/ | ||
| - | alias_maps = hash:/ | + | alias_maps = hash:/ |
| - | # btree:/ | + | # |
| - | alias_database = hash:/ | + | alias_database = hash:/ |
| - | # Django : 2014-10-15 - Optionale Lookup Tabelle mit allen gültigen Empfängern | + | # Django : 2019-01-27 - Optionale Lookup Tabelle mit allen gültigen Empfängern |
| # der in $relay_domains aufgeführten Domains | # der in $relay_domains aufgeführten Domains | ||
| # default: relay_recipient_maps = | # default: relay_recipient_maps = | ||
| relay_recipient_maps = | relay_recipient_maps = | ||
| - | # | + | |
| - | # | + | # |
| - | # Django : 2014-10-15 - virtuelle Mail-Domains und Mailboxen mit Anbindung an | + | # Django : 2019-01-27 - virtuelle Mail-Domains und Mailboxen mit Anbindung an |
| # das mySQL-Datenbankbackend (Verwaltung mit Hilfe von postfixadmin) | # das mySQL-Datenbankbackend (Verwaltung mit Hilfe von postfixadmin) | ||
| # default: virtual_mailbox_domains = $virtual_mailbox_maps | # default: virtual_mailbox_domains = $virtual_mailbox_maps | ||
| Zeile 3175: | Zeile 3201: | ||
| proxy: | proxy: | ||
| - | # Django : 2014-10-15 - BCC-Adress Lookup Tabelle mit deren Hilfe Nachrichten | + | # Django : 2019-01-27 - BCC-Adress Lookup Tabelle mit deren Hilfe Nachrichten |
| # einzelner oder mehrerer Empfänger automatisch an einen weiteren | # einzelner oder mehrerer Empfänger automatisch an einen weiteren | ||
| # Empfänger geschickt werden. | # Empfänger geschickt werden. | ||
| Zeile 3181: | Zeile 3207: | ||
| recipient_bcc_maps = btree:/ | recipient_bcc_maps = btree:/ | ||
| - | # Django : 2014-10-15 - BCC-Adress Lookup Tabelle mit deren Hilfe Nachrichten | + | # Django : 2019-01-27 - BCC-Adress Lookup Tabelle mit deren Hilfe Nachrichten |
| # einzelner oder mehrerer Absender automatisch an einen weiteren | # einzelner oder mehrerer Absender automatisch an einen weiteren | ||
| # Empfänger geschickt werden. | # Empfänger geschickt werden. | ||
| sender_bcc_maps = btree:/ | sender_bcc_maps = btree:/ | ||
| - | # Django : 2014-10-16 - SMTP Lookup Tabelle mit deren Hilfe eMail-Adressen der | + | # Django : 2019-01-27 - SMTP Lookup Tabelle mit deren Hilfe eMail-Adressen der |
| # Empfänger im SMTP-Envelope und im Header der eMail beim Verlassen | # Empfänger im SMTP-Envelope und im Header der eMail beim Verlassen | ||
| # des MTA via SMTP umgeschrieben werden können. | # des MTA via SMTP umgeschrieben werden können. | ||
| Zeile 3192: | Zeile 3218: | ||
| smtp_generic_maps = btree:/ | smtp_generic_maps = btree:/ | ||
| - | # Django : 2014-10-16 - LMTP Lookup Tabelle mit deren Hilfe eMail-Adressen der | + | # Django : 2019-01-27 - LMTP Lookup Tabelle mit deren Hilfe eMail-Adressen der |
| # Empfänger im SMTP-Envelope und im Header der eMail beim Verlassen | # Empfänger im SMTP-Envelope und im Header der eMail beim Verlassen | ||
| # des MTA zum MDA via LMTP umgeschrieben werden können. | # des MTA zum MDA via LMTP umgeschrieben werden können. | ||
| Zeile 3198: | Zeile 3224: | ||
| lmtp_generic_maps = btree:/ | lmtp_generic_maps = btree:/ | ||
| - | # Django : 2014-10-16 - Lookup-Tabelle zum Umschreibungen von Absender-eMail- | + | # Django : 2019-01-27 - Lookup-Tabelle zum Umschreibungen von Absender-eMail- |
| # -Adressen im SMTP-Envelop und/oder im Header der eMail. | # -Adressen im SMTP-Envelop und/oder im Header der eMail. | ||
| # default: sender_canonical_maps = | # default: sender_canonical_maps = | ||
| sender_canonical_maps = btree:/ | sender_canonical_maps = btree:/ | ||
| # SRS - Sender Rewriting Scheme mit postsrsd | # SRS - Sender Rewriting Scheme mit postsrsd | ||
| - | # tcp: | + | |
| # Definition welche Adressen umgeschrieben werden sollen | # Definition welche Adressen umgeschrieben werden sollen | ||
| # default: sender_canonical_classes = envelope_sender, | # default: sender_canonical_classes = envelope_sender, | ||
| sender_canonical_classes = envelope_sender | sender_canonical_classes = envelope_sender | ||
| + | # | ||
| - | # Django : 2014-10-16 - Lookup-Tabelle zum Umschreibungen von Empfänger-eMail- | + | # Django : 2019-01-27 - Lookup-Tabelle zum Umschreibungen von Empfänger-eMail- |
| # -Adressen im SMTP-Envelop und/oder im Header der eMail. | # -Adressen im SMTP-Envelop und/oder im Header der eMail. | ||
| # default: recipient_canonical_maps = | # default: recipient_canonical_maps = | ||
| recipient_canonical_maps = btree:/ | recipient_canonical_maps = btree:/ | ||
| - | # | + | # SRS - Sender Rewriting Scheme mit postsrsd |
| - | # tcp: | + | |
| # Definition welche Adressen umgeschrieben werden sollen | # Definition welche Adressen umgeschrieben werden sollen | ||
| # default: recipient_canonical_classes = envelope_recipient, | # default: recipient_canonical_classes = envelope_recipient, | ||
| recipient_canonical_classes = envelope_recipient | recipient_canonical_classes = envelope_recipient | ||
| + | # | ||
| - | # Django : 2014-10-16 - Lookup-Tabelle zum Aktivieren von " | + | # Django : 2019-01-27 - Lookup-Tabelle zum Aktivieren von " |
| # an den Absender einer eMail über nicht existierende eMail-Adressen | # an den Absender einer eMail über nicht existierende eMail-Adressen | ||
| # mit Angabe der neu zu nutzenden eMailadresse des Empfängers. | # mit Angabe der neu zu nutzenden eMailadresse des Empfängers. | ||
| Zeile 3224: | Zeile 3252: | ||
| relocated_maps = btree:/ | relocated_maps = btree:/ | ||
| - | # Django : 2015-10-15 - Ergebnisse der Adress-Verification cachen | + | # Django : 2019-01-27 - Ergebnisse der Adress-Verification cachen |
| # Kapitel 12.2.2 Dynamische Empfänger-Verifizierung | # Kapitel 12.2.2 Dynamische Empfänger-Verifizierung | ||
| # Kapitel 9.5.5 envelope sender überprüfen | # Kapitel 9.5.5 envelope sender überprüfen | ||
| # default: address_verify_map = btree: | # default: address_verify_map = btree: | ||
| + | # | ||
| ################################################################################ | ################################################################################ | ||
| ## SMTP RECIPIENT RESTRICTIONS | ## SMTP RECIPIENT RESTRICTIONS | ||
| # | # | ||
| - | # Django : 2014-10-29 - Schutz unserer Empfänger mit Hilfe der Recipient | + | # Django : 2019-01-27 - Schutz unserer Empfänger mit Hilfe der Recipient |
| # Restrictions | # Restrictions | ||
| # default: smtpd_recipient_restrictions = | # default: smtpd_recipient_restrictions = | ||
| Zeile 3260: | Zeile 3288: | ||
| # Greylisting via postgrey checken via Unix-Socket | # Greylisting via postgrey checken via Unix-Socket | ||
| # (Kapitel 9.2.5 postgrey installieren) | # (Kapitel 9.2.5 postgrey installieren) | ||
| - | # check_policy_service unix: | + | |
| # Policyd-Weight check over TCP-Connection | # Policyd-Weight check over TCP-Connection | ||
| Zeile 3291: | Zeile 3319: | ||
| ## SMTP RELAY RESTRICTIONS | ## SMTP RELAY RESTRICTIONS | ||
| # | # | ||
| - | # Django : 2014-10-27 - Definition, wer über unseren MX relayen darf oder nicht. | + | # Django : 2019-01-27 - Definition, wer über unseren MX relayen darf oder nicht. |
| # http:// | # http:// | ||
| # default: smtpd_relay_restrictions = permit_mynetworks, | # default: smtpd_relay_restrictions = permit_mynetworks, | ||
| Zeile 3304: | Zeile 3332: | ||
| # alles andere an relaying verbieten, d.h. mit einem finalen error 550 abweisen | # alles andere an relaying verbieten, d.h. mit einem finalen error 550 abweisen | ||
| | | ||
| + | |||
| </ | </ | ||
| ===== Konfiguration aktivieren ===== | ===== Konfiguration aktivieren ===== | ||
| Zeile 3313: | Zeile 3342: | ||
| Wir können aber auch den Status unseres Mailservers abfragen. | Wir können aber auch den Status unseres Mailservers abfragen. | ||
| # systemctl status postfix | # systemctl status postfix | ||
| - | < | + | |
| - | | + | <html>< |
| - | | + | <font style=" |
| - | Process: | + | |
| - | Process: | + | |
| - | Process: 3236 ExecStart=/ | + | Process: |
| - | Process: | + | Process: |
| - | Process: | + | Process: |
| - | Main PID: 3309 (master) | + | Process: |
| + | Main PID: 5761 (master) | ||
| | | ||
| - | | + | |
| - | | + | |
| - | | + | |
| - | Nov 03 22:35:17 vml000087.dmz.nausch.org systemd[1]: Starting Postfix Mail Transport Agent... | + | Jan 27 22:53:51 vml000080.dmz.nausch.org systemd[1]: Stopped Postfix Mail Transport Agent. |
| - | Nov 03 22:35:18 vml000087.dmz.nausch.org postfix/ | + | Jan 27 22:53:51 vml000080.dmz.nausch.org systemd[1]: Starting Postfix Mail Transport Agent... |
| - | Nov 03 22:35:18 vml000087.dmz.nausch.org systemd[1]: Started Postfix Mail Transport Agent. | + | Jan 27 22:53:52 vml000080.dmz.nausch.org postfix/ |
| - | </code> | + | Jan 27 22:53:52 vml000080.dmz.nausch.org postfix/ |
| + | Jan 27 22:53:52 vml000080.dmz.nausch.org systemd[1]: Started Postfix Mail Transport Agent.</ | ||
| + | </pre> | ||
| + | </ | ||
| + | |||
| + | \\ \\ \\ | ||
| + | <WRAP center round todo 30%> | ||
| + | FIXME FIXME FIXME | ||
| + | * //**do geds weida!**// | ||
| + | FIXME FIXME FIXME | ||
| + | </ | ||
| + | \\ \\ \\ | ||
| ====== Links ====== | ====== Links ====== | ||
| Zeile 3339: | Zeile 3380: | ||
| * **[[http:// | * **[[http:// | ||
| - | /* ~~AUTOTWEET: | ||