iMS MTA SMTP forward to different port

Hey all,

I would like to replace sendmail. Right now we have sendmail running on port 25, accepting all email, then forwarding it to port 26 which is our virus/spam filter daemon which then forwards it to iMS running on port 27. I would like to replace sendmail with iMS's MTA to possibly allow for SMTP auth for outside relay support, and in general to get rid of the sendmail. I would think that I could install a second, stand alone copy of iMS for the MTA support and then configure it to forward all incoming mail to our mail server, but to a specific port. Think it's possible, or will I need a seperate SMTP server?

Thanks

-Chris

[670 byte] By [705693] at [2007-11-25 8:36:48]
# 1
Sorry, forgot: iMS 5.2, and I'm looking for config examples if possible. Thanks - chris
705693 at 2007-7-1 15:11:30 > top of Java-index,E-Mail, Calendar, & Collaboration,Sun Java System Messaging Server...
# 2

OK, once I had a working and tested iMS (iDS 5.1p1, iMS 5.2p1 store config and user/group data in 5.1)

I added an alias to my hosts table (192.168.1.x mail smtp)

I installed iMS again, choosing to store config and user/group data in iDS 5.1, same as before.

Choose to use a smarthost, pointing to the first hostname for the first install of iMS (my case "mail..." I always used FQDN for all hosts, even in hosts table)

Don't forget to install the IMTA AND Store, or else the install will fail.

Edit the first install of iMS's dispatcher.cnf file to change the ports (SMTP, job_controller, dispatcher)

edit the newly installed SMTP only iMS's imta.cnf, add the keyword "port" and the port number after the smarthost entry:

! tcp_local

tcp_local smtp mx daemon mail.fdqn.com port 27 remotehost inner switchchannel identnonelimited subdirs 20 max

jobs 7 pool SMTP_POOL maytlsserver maysaslserver saslswitchchannel tcp_auth

tcp-daemon

! tcp_intranet

tcp_intranet smtp mx single_sys subdirs 20 noreverse port 27 maxjobs 7 pool SMTP_POOL maytlsserver allowswitchchannel sasl

switchchannel tcp_auth

tcp_intranet-daemon

I also had to add port 27 to the intranet entry for internal mail and I suspect I'll have to add it for the rest too.

Don't forget to compile the imta config files (imsimta cnbuild) when you edit the files.

Right now I've only tested internal mail and this demo server isn't attached to anything yet, but it is allowing SMTP auth and forwarding the mail to port 27, which is the mail iMS install with the mailboxes and that part is working. I still have a lot of testing to do and I must get this machine on the internet to test outgoing mail as well. There are a lot of channels that I have to test out to make sure that email won't stop at the doorstep.

705693 at 2007-7-1 15:11:30 > top of Java-index,E-Mail, Calendar, & Collaboration,Sun Java System Messaging Server...