User Tools

Site Tools


how_to:smtp_rule_example_-_restrict_who_can_send_to_a_local_email_address

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Last revisionBoth sides next revision
how_to:smtp_rule_example_-_restrict_who_can_send_to_a_local_email_address [2014/11/24 11:28] – created paulhow_to:smtp_rule_example_-_restrict_who_can_send_to_a_local_email_address [2014/11/24 11:39] – [If you only want a few users to be able to send to this address] paul
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 //directors// and you want no one to be able to send to this list except for //usera@companya.com// and //userb@companyb.com//
 +
 +===Simple way, using multiple rules===
 +Create three SMTP rules as below:
 +
 +{{:how_to:smtprule2_aa.png|}}
 +{{:how_to:smtprule2_bb.png|}}
 +{{:how_to:smtprule2_aabb.png|}}
 +
 +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:
 +
 +{{:how_to:smtprule2_aabb1.png|}}
 +
 +Here we have used De Morgan's law to convert the rule to a **REJECT** rule which will block messages to the list as long as it is **not** one of the allowed senders.
 +
 +{{:how_to:smtprule2_aabb2.png|}}
 +
 +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.
  
how_to/smtp_rule_example_-_restrict_who_can_send_to_a_local_email_address.txt · Last modified: 2018/11/14 10:45 by 127.0.0.1