Local Delivery Module |
|||||||||||||||||||||||||||||||||||||||||||
|
Use a Web browser to connect to the CommuniGate Pro administrator port and open the LOCAL page in the Settings section.
When the Router passes an address to the Local Delivery module, the module checks the domain name: if the domain name ends with the string .local, the Local Delivery module accepts the address, removes the .local suffix from the domain name, and stores the message in the Main Domain account with that name. This feature is used to create Unified Domain-Wide Accounts.
Sometimes, a Unified Domain-Wide Account should be created in a Secondary Domain, rather than in the Server Main Domain. Use the .domain suffix to direct mail to an account in a secondary domain. The last component of the address "local part" will be used to specify the name of the Secondary Domain account:
When the Router calls the Local Delivery module for "first attempt", the module does not process any other addresses.
When the Router calls the Local Delivery module for "final delivery" attempt, it accepts all addresses with an empty domain name part or with the domain part equal to the name of a secondary domain, and it routes the messages to the account specified with the "local part" of the address.
To provide the domain-only routing feature used within the HTTP module, the Local Delivery module accepts all addresses with the LoginPage local part, and an empty domain part or a domain part equal to the name of a secondary domain or their aliases.
When the Local Delivery module decides that an E-mail address is a local address, it checks that the account with the specified name exists. Each domain (the main one and each secondary domain) has a setting that instructs the Local Delivery module on what to do if a specified account does not exist.
If the selected option is "Rejected", all messages sent to unknown accounts are rejected, and the error message "unknown account" is returned to the sender.
If the selected option is "Discard", all messages sent to unknown accounts are rerouted to the NULL address, and the Server discards them without generating any error messages.
If you select the "Reroute to" option, all messages sent to unknown accounts will be rerouted to the specified address. That address can be a name of a registered local account, or it can be an E-mail address of an account on another server: the unknown account address is substituted with the specified address, and the Router restarts the address processing procedure.
The specified "rerouting" address may contain the asterisk sign. In this case the name of the unknown local account is used to substitute the asterisk sign.
The Router can route an entire domain to a certain local account, if the .local domain suffix is used (see above).
Unified domain-wide accounts are useful if the client systems retrieves messages from your server using the CommuniGate POP, the CommuniGate Pro RPOP, or similar software that distributes retrieved messages locally. Alternatively, the client system can use a regular single-user mailer and then distribute retrieved messages manually.
While the information in the local part of the client1.com addresses is not used for routing, it is not discarded. When the Local Delivery module stores the message in the Cl1 account, it stores the local parts of the addresses in the X-Real-To: message header field (or other field specified in the Local Delivery module settings).
Note: the
<*@client1.com>= Cl1
foreign alias record also
stores all messages sent to the client1.com
domain in the Cl1 account, but if such a record is used, the information
about the local part (account name) would be lost, and no X-Real-To: head
fields would be generated. The client software that retrieves messages
from this Unified account would have to rely on the To: and Cc: message
header fields. Those fields do not always contain the correct information,
and they never reflect any change in the local part of the address you
could have done with some additional routing records.
The POP module allows individual users to retrieve mail from a Unified Account, by hiding out all messages that do not contain the specified username in the X-Real-To header field.
You usually create Unified Domain-Wide Accounts in the Main Domain.
Use the .domain suffix to create an UDWA in a Secondary domain.
Messages routed to xxxx%accountname@domainname.domain will
be stored in the accountname account in the domainname domain, with the xxx
address being added to the message headers as the X-Real-To field.
For example, a Domain Administrator for the company.com domain may use the setting:
Mail To Unknown Addresses is Redirected to:*%Unknowns@company.com.domain
and messages to unregistered domain accounts will be stored in the account Unknowns, with
all those unknown addresses stored in the message X-Real-To fields.
After an address is accepted with the Local Delivery module, the message is queued to the Module queue. The Module process(es) takes messages from that queue, open the addresses account and check if the account has Automated Rules specified.
If the account has the Automated Rules specified, these Rules are applied: for each rule its conditions are checked, and if they are met, the specified Rule actions are performed. As a result of those actions, the message can be copied to some mailbox, it can be redirected to some other address(es), an automatic reply can be generated, etc.
You can use a more detailed Log Level for the LOCAL module to see which Rules are applied to messages, why some conditions are not met, and what actions have been taken when all Rule conditions have been met.
After account Rules (if any) have been applied, and these Rules have not specified that the message should be discarded, the message is stored in the account INBOX.
The Local Delivery module checks the current size of the account mailboxes and rejects a message if the account storage quota would be exceeded.
The Account-Level rules are NOT applied if such an address is used.
You can use Direct Mailbox Addressing in the Router Table:
; store messages to sales@maindomain ; in the sales mailbox in the account public@maindomain <sales> = sales#public ; ; store messages to support@client.com ; in the requests mailbox in the account staff in the hq.client.com domain <support@client.com> = "requests#staff"@hq.client.com
Note: remember that mailbox names are case-sensitive.
Note: the Direct Mailbox Addressing feature can be used via the POP module, too. With the sample Router records listed above, when a user logs in using the name sales, the client POP mailer is connected to the mailbox sales in the public account (if the user has provided the correct password for the public account).
Note: the individual Account Rules are not applied to messages sent to the all address.
The alldomains@maindomain address can be used to send messages to all accounts in all domains.
If, for example, the abuse and postmaster@maindomain.dom addresses are entered into the All-Domain Aliases table (as shown above), then all messages directed to any abuse@domain.dom address (where domain.com is any of the CommuniGate Pro domains) are rerouted to the postmaster@maindomain.com.
Note: it's easy to create routing loops using these records: if you enter