This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
how_to:smtp_rule_example_-_restrict_who_can_send_to_a_local_email_address [2014/11/24 11:28] – created paul | how_to:smtp_rule_example_-_restrict_who_can_send_to_a_local_email_address [2018/11/14 10:45] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 37: | Line 37: | ||
====If you only want a few users to be able to send to this address==== | ====If you only want a few users to be able to send to this address==== | ||
+ | |||
+ | For this example, say you have a distribution list called // | ||
+ | |||
+ | ===Simple way, using multiple rules=== | ||
+ | Create three SMTP rules as below: | ||
+ | |||
+ | {{: | ||
+ | {{: | ||
+ | {{: | ||
+ | |||
+ | The last rule must come after the others to block all other senders from sending to the list. | ||
+ | |||
+ | If you want to allow more senders, just add more rules like the first one. So, for one or two addresses, this is fine, but if you have many addresses, it will soon become unwieldy | ||
+ | |||
+ | ===Short way, using two rules=== | ||
+ | You need one rule to block all other senders from sending to the list, then second rule to allow anyone not matched by the first rule. | ||
+ | |||
+ | Create two SMTP rules as below: | ||
+ | |||
+ | {{: | ||
+ | |||
+ | Here we have used De Morgan' | ||
+ | |||
+ | {{: | ||
+ | |||
+ | This rule **must come after** the above rule, and will allow messages to the list, if they were not rejected by the previous rule - so this will allow messages to the list by the allowed senders. | ||
+ | |||
+ | If you want to add more allowed senders, just add them to the first rule, as in the examples there. | ||