Postby ebag » Thu Jun 08, 2006 6:27 pm
Do you mean ALL mail as in:
-the mail sent by the mailclients of the Scalix server
-the mail coming from the internet, destined for a domain hosted by the Scalix server
-the mail sent by the Scalix Web Access clients
Because the first two are relatively easy to implement. For the mailcliets, just configure them to use the gateway as SMTP server. For the internet mails, just point your MX records to your mailgateway.
The third is a bit tricky though, as there is no option in scalix to force the SWA clients to use a different SMTP server than the Scalix server AFAIK.
Ofcourse it's possible to add an option in smtpd.cfg saying SMTPFILTER=TRUE, that should give you the possibility of configuring senmail and sendmail-milter. But I can't tell you anything on how that works, since I chose to run mail mailgateway on a different machine with postfix (wich I prefer over sendmail)
As I probably won't have to tell you, adding a mailfitering gateway between the internet and your mailserver requires some delicate relay configuration, as it is really easy to accidently create an open relay this way. I have configured it this way:
-The mailgateway only acceps mail for the domains hosted by the scalix server OR coming from the local (internal) network.
-The Scalix server only accepts mail from the local networks OR from roaming users on the internet when they have authenticated.
My mailclients use the Scalix server as SMTP, because in my situation, scanning of internal mail is not required.