Prerequisites
Sofware&Licenses- AXIGEN Mail Server v3.0 license - for the number of mailboxes you would like to host;
- TrendMicro Interscan Messaging Security Suite (IMSS) v5.7 - for the number of mailboxes you would like to protect; it should be the same number of mailboxes as defined in AXIGEN.
- Common available platforms: Linux, the following distributions:
- Redhat Enterprise Linux 3
- SuSE Linux 9.0
Follow the installation procedure from the manual for setting up IMSS. At the end, check that IMSS is working properly by running a telnet on port 10025 on the local machine. The connection should be established and then be closed immediately (due to the fact that IMSS cannot yet connect to the mail server). Wait half a minute before performing this test so that IMSS can properly startup its services.
[root@localhost ~]# telnet localhost 10025If the connection is rejected before being established or a different error is reported, please consult the troubleshooting section of the IMSS manual.
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
421 Internal configuration error
Connection closed by foreign host.
Interconnecting AXIGEN and IMSS
Now that both AXIGEN and IMSS are installed, some configuration steps must be performed to ensure the optimal email flow.1. Reconfigure AXIGEN’s SMTP listener.
- Login to the web administration interface (typically located at http://localhost:9000, if you’re running the browser from the same machine);
- Go to the ‘SMTP-In’ section;
- Click on the ‘Listeners’ property tab;
- Configure one listener with ‘address’: “127.0.0.1:10026”. Make sure no other listeners exist;
- Set the ‘enable’ option to ‘yes’;
- Set the ‘maxIntervalConnections’ parameter to ‘0’ (Unlimited);
- Set the ‘peerMaxConnections’ parameter to ‘200’;
- Set the ‘peerMaxIntervalConnections’ parameter to ‘0’ (Unlimited);
- Click ‘Update’, the ‘Commit’;
- Make sure you save the configuration by going to the ‘Commands’ administration section and clicking ‘Save Config’.
- Using a text editor, open the ‘/opt/trend/imss/config/imss.ini’ file (the location may differ if when you have installed IMSS you have choses a different directory);
- In the ‘[smtp]’ section, comment-out (prefix with hash ‘#’) the ‘smtp_allow_client_ip’ configuration option. This will disable IP address verification for inbound SMTP;
- Locate the ‘proxy_service=SMTP_SERVICE’ line. Modify the ‘proxy_port’ below it to ‘25’ (the default value is 10025). Typically, this parameter is located in the ‘[socket1]’ section of the configuration file;
- Locate the ‘proxy_smtp_server_ip’ configuration option and modify it from ‘127.0.0.1’ (the default) to ‘0.0.0.0’. This will instruct IMSS to listen on all server IP addresses;
- In the ‘[pop3]’ section, set the ‘pop3_enable_proxy’ and ‘pop3_virus_scan’ options to ‘no’. This will disable the POP3 scanning.
3. Restart the IMSS service by running:
# /etc/init.d/S99ISIMSS restart
4. Verify the connection
- Run a telnet on the local machine, on port 25. The connection should open, and two SMTP banners must appear: one from the IMSS and the other from AXIGEN:
# telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
220-TrendMicro IMSS SMTP proxy
220 localhost.localdomain Axigen SMTP ready - Enter the ‘quit’ command in order to close the connection
- Using an SMTP email client (Outlook, Mozilla) already configured to use the AXIGEN Mail Server, send an email to a valid recipient;
- The email must reach the destination mailbox and it must contain the IMSS headers (e.g. X-imss-version).
Configuring IMSS policies
This section describes the behavior of your newly configured solution when a virus/spam is detected. At this point the AXIGEN integration with IMSS is operational.
IMSS relies on a series of hierarchical policies that handle, based on the originator or recipients’ email addresses, the decisions that are to be taken.
Using a web browser, go to the following URL:
https://<server_ip>:8445/IMSS.html
Replace <server_ip> with your actual email server’s IP address. Login (the default is no password) by clicking on Enter.
1. Configure notifications
- Go to the ‘Configuration’ section;
- Open the ‘Event Monitoring’ subsection and click on ‘Notification Settings’;
- Change the administrator’s email address to a valid mailbox on the AXIGEN Mail Server;
- Save the configuration, the click on the red ‘Apply now’ button.
- The policies are located in the ‘Policy Manager’ section of the IMSS web administration interface;
- Please refer to IMSS manual for information on how to configure the policies.
- When a policy’s filter is triggered by the content of an email message, a specific set of actions is performed;
- The administrator can choose out of:
- Delivery options (original message, modified message)
- Notifications
- Archiving
- For information about configuring actions, please refer to the IMSS manual.
Tweaking
1. In the default configuration, IMSS does not advertise the AUTH ESMTP extension. In order to allow the SMTP clients to use the SMTP authentication, the IMSS configuration must be altered.
- Using a text editor, open the ‘/opt/trend/imss/config/imss.ini’ file (the location may differ if when having installed IMSS you have chosen a different directory);
- Locate the ‘[smtp]’ section and, in it, the ‘supported_esmtp_cmds’ option;
- At the end of the line, add the ‘AUTH’ string, separating it with a comma:
supported_esmtp_cmds=PIPELINING,SIZE,VRFY,ETRN,XVERP,8BITMIME,AUTH
- Restart the IMSS service by running:
# /etc/init.d/S99ISIMSS restart
- Login to the AXIGEN web administration interface (typically http://localhost:9000);
- Go to the ‘SMTP-in’ section, then to the ‘Listeners’ tab;
- Edit the listener;
- Configure, as desired, the following parameters:
- ‘maxConnections’
- ‘maxIntervalConnections’
- ‘timeInterval’
- Do not modify the peer-related options since they no longer make sense in this set-up.
Caveats
Although the configuration guidelines provided in this article cover the needs of most users, there are some aspects that one must keep in mind when using the Axige/IMSS combination:
- IMSS does not support TLS. Even though AXIGEN advertises the STARTTLS extension, the IMSS SMTP listener will not advertise, nor support it.
- Emails going in the AXIGEN mail server through channels other than SMTP (e.g webmail) will not pass through IMSS, thus will not be scanned for viruses or spam.
- Since all SMTP connections AXIGEN receives are from IMSS, hence originate from IP 127.0.0.1, configuring IP-based rules in the ‘Clients’ section of the SMTP-In module no longer makes sense.
- As previously said, all the SMTP connections received by AXIGEN originate from the 127.0.0.1 IP. When running the AXIGEN Configuration Wizard, the following code will be added in the SMTP Policy File, in the onEhlo event definition:
if (…iprange (remoteSmtpIp, "127.0.0.0/255.0.0.0")…) {This means that all connections from 127.0.0.1 will allow open relaying which is a crucial security flaw. To correct it, you should remove the specified code lines.
set(remoteDelivery, "all");
} - For the same reason as described above, setting the ‘peerMaxIntervalConnections’ parameter for the SMTP-in listener to a value different than 0 is of no use. Use the ‘maxIntervalConnections’ parameter instead.
- IMSS does not support the BINARYMIME ESMTP extension therefore, even though AXIGEN advertises it, IMSS will not.











