How to Enforce Mail Size Limits in AXIGEN

How to enforce mail size limits in AXIGEN

Solution

The AXIGEN Mail Server can receive e-mails in a number of ways
- via SMTP traffic from external MTAs or from local accounts with the use of e-mail clients
- via the built-in WebMail interface
- with the use of the sendmail wrapper if configured.
Note: The sendmail wrapper is designed as to permit interaction with external scripts/applications specially configured by the administrator to make use of such an approach for sending e-mails

Both SMTP traffic and e-mails sent via WebMail can support size restrictions from the administrator side as to suit specific implementation needs.

Note.
The default size limit for e-mail received via SMTP connections is of 10MB.
For the WebMail interface, the default restrictions allow sending e-mails of  maximum 10MB having a maximum number of 10 attachments and each attachment being no more than 1MB

2. Setting message size limit for SMTP traffic.
a) How to set a global rule for SMTP traffic
Modifying the already existing mail size rule for SMTP traffic can be done from the WebAdmin interface -> Security & Filtering context -> Acceptance & Routing section -> Acceptance Basic Settings. By modifying the Limit message size to  value to one that matches your needs, this new global limit for all SMTP traffic will be applied for your AXIGEN Mail Server.
These changes should also be saved by selecting the Save configuration button.

b) How to set specific rules for specific for certain IP addresses or senders
Besides defining a global rule for SMTP traffic, you can also create special rules on specific IP addresses or senders as needed. In order to assign a new rule that will apply a different mail size limit for certain IPs/senders from the WebAdmin interface -> Security & Filtering context -> Acceptance & Routing -> Advanced Settings section, Add New Acceptance / Routing Rule.
In the Conditions section make sure to add a new rule matching your explicit requirements. The Actions section should have defined the mail size limitation by selecting from the drop-down box Settings -> Maximum message size and adding it as a new action.
After making sure that the rules match your criteria, define a suggestive name for the rule and Save configuration

3. Enforcing limits on WebMail based traffic
Such restrictions can be imposed as a general rule on the domain/account configuration,or if your setup makes use of account classes from that context also.
a) For such limits on a domain basis, access from WebAdmin -> Domains & Accounts -> Manage Domains context, Edit the domain needed -> Account
Defaults -> Quotas and Restrictions
. At the Webmail section you can define the rules that match your requirements.

b) At the account level, the rules can be set from WebAdmin -> Domains & Accounts -> Manage Accounts context, selecting the corresponding domain and account and Editing the WebMail settings from the Quotas and Restrictions section.

c) For a given Account Class, these options can be enabled from WebAdmin -> Domains & Accounts -> Account Classes, and Edit for the given account class -> Quotas and Restrictions, under the corresponding Webmail section

Note:
For all the above contexts, after adding the changes make sure to Save configuration for the new settings to take effect.
OS: LinuxWindowsFreeBSDNetBSDOpenBSDSolaris