Mailscanner

Discuss installation of Scalix software

Moderators: ScalixSupport, admin

archie
Posts: 12
Joined: Tue Jul 25, 2006 9:10 am
Contact:

Mailscanner

Postby archie » Wed Aug 22, 2007 9:01 am

I've got mailscanner installed with Scalix 11.1 on Ubuntu 7.

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
Joe Archibald

Valerion
Scalix Star
Scalix Star
Posts: 2730
Joined: Thu Feb 26, 2004 7:40 am
Location: Johannesburg, South Africa
Contact:

Postby Valerion » Thu Aug 23, 2007 9:14 am

Is SMTPILTER=TRUE in your smtpd.cfg? If so, maybe post the uncommented lines from there.

archie
Posts: 12
Joined: Tue Jul 25, 2006 9:10 am
Contact:

Fixed

Postby archie » Thu Aug 23, 2007 10:55 am

I got it working, thanks

SMTPFILTER=TRUE
Has to be the line before
RELAY accept 127.0.0.1

I had it at the end of the file
Joe Archibald

albatroz
Posts: 29
Joined: Sat Feb 17, 2007 3:51 pm
Location: Lima, Peru
Contact:

Postby albatroz » Wed Apr 23, 2008 8:11 am

Nice, could you tell us, how is the load on your server?


Return to “Installation”



Who is online

Users browsing this forum: No registered users and 5 guests

cron