I wish to develop an application that needs to scan messages while they are on an IMail server set up as a gateway. To be more precise, I wish to run a filter to block spam, scan for viruses, hadle attachements, etc. and I wish to implement this with my IMail server acting as a gateway for other servers on other domains.
The way I wish to accomplish this is by changing the MX of the other domain so that mail for othercompany.com is sent through mydomain.com. I have set up my IMail server to be a gateway as you have explained very well in your KB. Mail for otherdomain.com now passes through mydomain.com as it should. However, I am unable to 'catch' the messages as they pass through. Since both servers are online 24/7 (or should be) mail is instantly relayed to othercompany.com the second it arrives. My question is, is it possible, and if so, how, to 'stop' ot trigger some event when a message arrives at mydomain.com for mydomain.com and before sending to othercompany.com? The functionality of program aliases would be great, but I have not found a way to do this for the entire queue. My only solution so far is building av filesystemwatcher, remove the file as it enters the spool dir, filter it, and reinsert the file into the queue after filtering. Although this is a fairly trivial solution to create, I am not sure about how stable, accurate and scalable it would be. I could relay any 'uncaught' mail to a requeing server, but that would only waste loads of bandwidth. Any suggestions? Y.s. Bj�rn Ps. Setting up accounts or aliases for othercompany.com at mydomain.com is not an option, although I doubt that would help. To Unsubscribe: http://www.ipswitch.com/support/mailing-lists.html List Archive: http://www.mail-archive.com/imail_forum%40list.ipswitch.com/ Knowledge Base/FAQ: http://www.ipswitch.com/support/IMail/
