MAILSCANNER WITH SPAMASSASSIN + CLAMAV ON THE SAME SERVER

Discuss the Scalix Server software

Moderators: ScalixSupport, admin

axsom1
Posts: 69
Joined: Tue Aug 17, 2004 12:31 pm

Postby axsom1 » Fri Mar 17, 2006 5:59 pm

Florian,

If I have a smart host setup in sendmail, shouldn't sendmail be forwarding mail on to our smart host when we have SMTPFILTER=TRUE set in our scalix smtpd.cfg?

Thanks,
John

ScalixSupport
Scalix
Scalix
Posts: 5503
Joined: Thu Mar 25, 2004 8:15 pm

Postby ScalixSupport » Fri Mar 17, 2006 6:15 pm

The rules that the Scalix installation adds to sendmail.cf ensure that the look up in the SYSTEM directory is done before anything else. This means that if there is a match in the SYSTEM directory, the Scalix mailer (unix.in ) will be used.

The SmartHost setting will only be used if the recipient address is not local. So, if you've configured /etc/mail/local-host-names to included your mail domain, the smart host will not be used.

Cheers

Dave

axsom1
Posts: 69
Joined: Tue Aug 17, 2004 12:31 pm

Postby axsom1 » Fri Mar 17, 2006 7:24 pm

Is there any easy way to circumvent that?

I could live with the extra delay of going through mailscanner for inter-office mail.

John

florian
Scalix
Scalix
Posts: 3852
Joined: Fri Dec 24, 2004 8:16 am
Location: Frankfurt, Germany
Contact:

Postby florian » Sat Mar 18, 2006 6:12 pm

Hi John,

what are you trying to circumvent? Once you add MailScanner to your sendmail config, all mail passing through sendmail, internal or external, will be scanned. The whole thread here was just about the mail routing.

-- F.
Florian von Kurnatowski, Die Harder!

axsom1
Posts: 69
Joined: Tue Aug 17, 2004 12:31 pm

Postby axsom1 » Mon Mar 20, 2006 4:07 pm

Hi Florian,

I already have a mailscanner box running as our relay, so I was just curious if I could force scalix to send internal mail through that relay.

Two reasons, one, the mailwatch program is alot faster and easier to lookup emails passed from the system (for management) and two, to use mailscanner's virus checking capabilities rather than the scalix omvscan.map file.

It's not a big deal really...everything works great the way it is...I just misunderstood the original post.

Cheers!
John Axsom

hwall
Posts: 11
Joined: Fri Feb 24, 2006 8:26 am

Postby hwall » Sat Mar 25, 2006 11:36 pm

Hi all,

I'm not sure who this will help, but I have a Mailscanner, Clamav, Spamassassin on Postfix setup with Mailwatch also. All I have done is setup postfix and mailscanner as per normal indtruction. Then just relay all domains to the Scalix server on the same machine but sitting on a differnt port. It all works very nice.
It may be completly wrong and I may be missing a big security problem. But I'm a half baked newbie. I have did some lock downs to the best of my ability and tested with outside relay site's etc and it (seems) to be ok.

I'm only running it for personal use anyway. But it works well and I love it..

Sorry if this way off and helps no one, but I just thought I'd share..

Hayden

tony.hillaire

Postby tony.hillaire » Wed Apr 12, 2006 12:43 pm

Would anyone care to post their MailScanner.conf and smtpd.cfg? I need all 3 items Clam, SA and disclaimers... I will be RTFMing today but anything to save time ;)

jimmythehuman

Postby jimmythehuman » Wed May 03, 2006 6:08 am

treedstang.

Any chance of writing a quickie how to on the intergration of mailscanner an scalix - if you do i will happily test it thoroghly and format it for MailScanner's wiki.

I have been using it for years, but on postfix, not sendmail.

tonyric

Postby tonyric » Tue Jul 25, 2006 6:18 pm

I am missing one small piece. The unix.in transport that is supposed to go into /etc/mail/sendmail.cf. Where is this exact code section for this file?

I "believe* I have MailScanner configured properly, I know I can send email fine. My MX records are changing as we speak and mail is being held upstream for me in another relay. But, as it is configured right now, sendmail is delivering locally (to root and my local account) instead of passing the mail BACK to scalix.

If I have MailScanner configured incorrectly, so be it, I will work on it after I get this last piece working with scalix.

I saw two lines in another thread, but am unsure if they are correct or if it matters where in the .cf file they go. I am coming to sendmail from postfix and now am wondering if I should have done this on postfix. lol

I got this:

[Quote:]

If you look at the mailer definitions for these mailers you can see what programs are used, e.g.

# grep '^Mscalix' /etc/mail/sendmail.cf
Mscalix, P=/opt/scalix/bin/unix.in, E=\n, F=PDFMXmnu, A=unix.in -s $h

# grep '^Momxport' /etc/mail/sendmail.cf
Momxport, P=/opt/scalix/bin/xport.in, F=LMn, A=xport.in -s $h $u

So, for mail destined for a local Scalix user either the SMTP relay talks directly to unix.in or sendmail does, depending on what is listening on port 25.

[/Quote]

from here: http://www.scalix.com/community/viewtop ... d68cba4362

I have SMTPFILTER=TRUE in my smtpd.cfg and mail is being routed back to sendmail just fine. However, it is not getting out of sendmail and back to scalix.

What am I missing?

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

Can't get mailscanner to work

Postby archie » Mon Aug 28, 2006 11:25 am

Hi,
I've got a fresh install of Ubuntu 6, sendmail 8.13.5-3ubuntu1.1, scalix 10

I installed scalix using the ubuntu make file.
I installed mailscanner with apt, modified the config file to:
Mailscanner.conf
Incoming Queue Dir = /var/spool/mqueue-client
Outgoing Queue Dir = /var/spool/mqueue
# User to run as (not normally used for sendmail)
#Run as user
# Group to run as (not normally used for sendmail)
#Run as group
Sendmail2 = /usr/sbin/sendmail
MTA = sendmail

changed permissions on the /var/spool/Mailscanner, /var/run/Mailscanner, /var/lock/subsys/Mailscanner to mail:mail

added SMTPFILTER=TRUE to /var/opt/scalix/sys/smtpd.cfg after the RELAY commands

ran omsendin to reconfigure sendmail

mailscanner isn't parsing the mail. I am receiving my mail with fetchmail from a pop server. I can send and receive mail from the net, but the headers don't show that mailscanner has touched it.

Any help would be appreciated
Joe Archibald

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

Think I got it

Postby archie » Mon Aug 28, 2006 12:36 pm

I changed in /etc/mail/sendmail.conf
DAEMON_PARMS="";

to

DAEMON_PARMS="-OPrivacyOptions=noetrn -ODeliveryMode=queueonly -OQueueDirectory=/var/spool/mqueue.in";

and in Mailscanner.conf
Incoming Queue Dir = /var/spool/mqueue.in

this sets sendmail to receive mail and put it in /var/spool/mqueue.in and then mailscanner picks it up, scans it and puts it in /var/spool/mqueue, where sendmail then processes and delivers.
Joe Archibald


Return to “Scalix Server”



Who is online

Users browsing this forum: No registered users and 9 guests