Home |
Comics |
Gallery |
wishlist |
Donations |
Impressum |
The Book of Postfix |
Postfix - Einrichtung, Betrieb und Wartung |
Blog |
38.107.179.210 |
Postfix smtpd_restriction_classes für DummiesKann ich einen Absender immer nur dann blocken, wenn es an einen bestimmten Empfänger gehen soll?
|
Postfix smtpd_restriction_classes for DummiesCan I block mail from a specific sender if sent to a particular recipient?
|
In main.cf:
smtpd_recipient_restrictions = ... bla ... check_recipient_access hash:/etc/postfix/recipients ... bla ... in /etc/postfix/recipients: some.guy@ourdomain.com some.guy_restriktionen
|
|
| Daher wird some.guy_restriktionen als restriction_class erkannt, aber nur, wenn diese zuvor in der main.cf bekanntgegeben wurden: | some.guy_restriktionen will be recognized as restriction_class only if you specify it in main.cf |
smtpd_restriction_classes = some.guy_restriktionen |
|
Was bedeutet nun "some.guy_restriktionen"?Wir definieren sie in main.cf z.B. als: |
What is the meaning of "some.guy_restriktionen"?We define them in main.cf e.g. as: |
some.guy_restriktionen = check_sender_access hash:/etc/postfix/peikertdoesntlike reject_unauth_destination in /etc/postfix/peikertdoesntlike:
boeser@absender.com REJECT |
|
ErklärungDas heisst:Wenn der Recipient some.guy@ourdomain.com ist, dann benutze some.guy_restriktionen, welche definiert sind als: |
ExplanationThat means:If the recipient is some.guy@ourdomain.com, then use some.guy_restriktionen, which are defined as: |
check_sender_access hash:/etc/postfix/peikertdoesntlike reject_unauth_destination
|
|
|
Eigentlich bedeutet dies folgendes: Die Restriktionen in |
Actually this means the following: The restrictions in
|
smtpd_recipient_restrictions = ... irgendwo in ihnen ist ... check_recipient_access hash:/etc/postfix/recipients ... mehr ... |
|
| werden quasi durch eine "bedingte Verzeigung" zu: | become -- using some sort of "conditional branching" to: |
smtpd_recipient_restrictions = ... irgendwo in ihnen ist ... check_sender_access hash:/etc/postfix/peikertdoesntlike check_relay_domains |
|
| weil durch check_recipient_access ... andere Restriktionen abgearbeitet werden. | since check_recipient_access ... causes different restrictions being used. |
|
© by Ralf Hildebrandt This document contains links to external information sources that I do neither monitor nor control. I explicitly disclaim any liabilities in respect to external references. You are getting this document without any guarantees. Any methods shown above are meant as demonstration and may be wrong in some place. You may damage your system if you try to follow my hints and instructions. You do this at your own risk! |
This file was last modified 02. May 2007 by root