Things were working well, as I was getting my incoming mail with fetchmail. I recently got the mx record to point directly to the Ubuntu machine and now the mail doesn't get touched by mailscanner.
I have traced it to Sendmail (/etc/mail) works on localhost so incoming and outgoing mail gets delivered to /var/spool/mqueue.in, MailScanner processes it and places it in /var/spool/mquere for delivery.
telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.localdomain.
Escape character is '^]'.
220 mail.archtech.ca ESMTP Sendmail 8.13.8/8.13.8/Debian-3; Wed, 22 Aug 2007 08:56:38 -0400; (No UCE/UBE) logging access from: localhost.localdomain(OK)-localhost.localdomain [127.0.0.1]
Scalix receives mail on address of the network card. It receives mail and places it in /var/spool/mqueue, which by passes MailScanner.
telnet mail.archtech.ca 25
Trying 192.168.100.18...
Connected to mail.archtech.ca.
Escape character is '^]'.
220 mail.archtech.ca ESMTP Wed, 22 Aug 2007 08:57:42 -0400 (EDT)
Oddly enough outgoing mail does get processed by MailScanner. I think that outgoing mail gets sent using the sendmail command which will handle things properly.
Is there any way to configure scalix to drop mail in a different spool folder?
I looked in /var/opt/scalix/xx/s/sys/smtpd.conf and didn't see anything useful
MailScanner is configured as such:
Setting sendmail and mailscanner in Debian is as easy as the
following:
1 - Create /var/spool/mqueue.in with the same permissions than
/var/spool/mqueue
mkdir /var/spool/mqueue.in
chown smmta:smmsp /var/spool/mqueue.in -R
chmod 2750 /var/spool/mqueue.in -R
2 - Edit /etc/mail/sendmail.conf and set DAEMON_PARMS to:
DAEMON_PARMS="-OPrivacyOptions=noetrn -ODeliveryMode=queueonly -OQueueDirectory=/var/spool/mqueue.in";
3 - Goto /etc/mail and type make after changing sendmail.conf in step 2.
cd /etc/mail
make
4 - /etc/init.d/sendmail reload
5 - Edit /etc/MailScanner/MailScanner.conf and change at least the
following:
MTA = sendmail
Incoming Queue Dir = /var/spool/mqueue.in
Outgoing Queue Dir = /var/spool/mqueue
Run As User = root
Run As Group = mail
#Sendmail2 = ...
6 - Change owner and group of MailScanner's spool diretory
chown -R root:mail /var/spool/MailScanner
chown -R root:mail /var/lib/MailScanner
chown -R root:mail /var/run/MailScanner
chown -R root:mail /var/lock/subsys/MailScanner
7 - edit /etc/default/mailscanner
8 - /etc/init.d/mailscanner start
Thanks