Mail Receive Rules
Defines the rules by which Lyris determines whether mail should be processed by Lyris or not.
By default, Lyris looks at the username of email it receives to determine whether the message should be processed by Lyris. The host name portion of the mail address is not consulted. Lyris does
this to support any number of virtual hosts without needing to be configured. By default, Lyris will automatically assume the hostname identity of any email it receives which is addressed to a valid
Lyris user name.
This Mail Receive Rules option allows you to change this default behavior, so that Lyris first looks at the rules you have defined, and if the local recipient address does not match a rule, the
message is not processed by Lyris.
The Mail Receive Rules are simple text search rules. For example, to receive any mail addressed to the "shelby.com" domain, the rule would be:
this would allow any of these different addresses to be received:
email@example.com but any address which did not have "shelby.com" in it would be rejected. If your rule was "@shelby.com", only the first example above "firstname.lastname@example.org" would be accepted.
The most common use for this feature is if you are using Lyris in front of another mail server, and you want to make sure that Lyris only accepts mail addressed to itself, and forwards on any mail
addressed otherwise. If you have told Lyris to "Forward non-Lyris Mail" to another location, any mail which does not match a "Mail Receive Rule" will automatically be forwarded on to the
other server. See Forward Mail.
If you do not have "Forward non-Lyris Mail" defined, then mail which does not match a Mail Receive Rule will simply be rejected.
You can define multiple Mail Receive Rules, each on a separate line