MailWasher not scanning mails from Scalix SMTPd

Best practice information from Scalix users relating to integration of Scalix with other products.

Moderator: ScalixSupport

ElectrInfo
Posts: 16
Joined: Mon Aug 14, 2006 5:10 pm
Location: Switzerland
Contact:

MailWasher not scanning mails from Scalix SMTPd

Postby ElectrInfo » Thu Dec 28, 2006 12:48 pm

Hi,

After some tries, I got my scalix server running with a MailWasher (I followed the Wiki HowTo with some Googling for the parts not working).

At this time, outgoing mail (via the SWA) are scanned by MWserver (as long as they are not destined to a domain that my scalix server deservs himself (no internal mail scan).
Incomming mail is scanned only if it is destined to a "machine user":

mail to root@mail.mydomain.com will be checks by MWserver but not mail to *@mydomain.com.

I set up a catchall in smtp.cfg:

Code: Select all

[root@mail sys]# grep -v "^#" smtpd.cfg | cat -vet
$
$
$
EXTENSIONS=$
GREETING=SMTPd$
$
$
CATCH @mydomain.com sxadmin-scalix@mydomain.com^I$
$
$
RELAY accept 127.0.0.1$
RELAY accept .mydomain.com$
RELAY Log_Reject ALL$
$
RECIPIENT Log_Reject *@*@*$
RECIPIENT Log_Reject *%*$
RECIPIENT Log_Reject *!*$
RECIPIENT Log_Reject *#*@*$
$
[SUBMIT]$
ANONYMOUS Log_Reject ALL$
$
$
$
[LMTP]$
LISTEN=localhost:24$
SMTPFILTER=TRUE$


Seems that Scalix transfers to the sendmail-mwserver only mail destined to the machine and the one that are going outside.

I don't know how to interpret the following result....

Code: Select all

]# lsof -i :25
COMMAND    PID USER   FD   TYPE DEVICE SIZE NODE NAME
sendmail  5345 root    4u  IPv4  20746       TCP localhost.localdomain:smtp (LISTEN)
omsmtpd  17908 root    4u  IPv4  62419       TCP mail.mydomain.com:smtp (LISTEN)


Scalix SMTPd seems to be ok:
OK, connected to scalix.lanathome.net...
< 220 SMTPd
> HELO edit.dnsvr.com
< 250 mail.mydomain.com Hello mail.dotster.com [64.85.73.124], pleased to meet you
> MAIL FROM:<me@myemail.com>
< 250 me@myemail.com... Sender ok
> RCPT TO:<sxadmin@mydomain.com>
< 250 Ok
> DATA
< 354 Enter mail, end with "." on a line by itself (relay)
> From: me@mydomain.com
> To: sxadmin@mydomain.com
> Subject: ZoneEdit Automated SMTP Test (mail.mydomain.com)
>
> If you received this, then the mail server (mail.mydomain.com) is probably working.
> Sent at 2006-12-28 08:45:21 by 84.XX.XX.XX using Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.8.1.1) Gecko/20061204 Firefox/2.0.0.1
> .
< 250 Ok


And I do receive the mail, but it doesn't pass within MailWasher test...

Thanks in advance for your help in those days of holyday !!

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

Postby florian » Thu Dec 28, 2006 2:18 pm

can you move the SMTPFILTER=TRUE line outside of the LMTP block? This block is probably not read - this is only active if it is activated (believe through LISTENER directive at the beginning of the file).

Cheers,
Florian.
Florian von Kurnatowski, Die Harder!

ElectrInfo
Posts: 16
Joined: Mon Aug 14, 2006 5:10 pm
Location: Switzerland
Contact:

that was the trick

Postby ElectrInfo » Thu Dec 28, 2006 2:52 pm

Hi,

Many thanks, that was the trick !!!

For info, you should place it also before the [SUBMIT] block.

Seems that any of those blocks are not parsed if there directive are not set to YES at the begining of the file.

I will try to precise the wiki in that direction.

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

Postby florian » Thu Dec 28, 2006 2:59 pm

yes, that's the case - statements past the respective blocks are dependent on the header. it might make sense, though, to make it conditional to one of the blocks - if you want mail coming in from the outside world running through the scanner, but want to avoid scanning email submitted by SWA or a imap/smtp client.....

so - good to hear it works as designed - i was fearing that the introduciton of the multiple-listener directives might have broken SMTPFILTER support...... ;-)

thanks for the report,
Florian.
Florian von Kurnatowski, Die Harder!

crankshaft
Posts: 37
Joined: Tue Nov 28, 2006 4:25 am

Postby crankshaft » Fri Jan 12, 2007 4:15 am

Hi;

I just moved SMTPFILTER as suggested as previously it was not scanning inbound, so now inbound messages are scanned, but they then get bounced back to the sender with a host not found error.

The mail log reports that the message was accepted for delivery, and the next log states host unknown nameserver xxx.com not found, but if I hostname i get the fqdn and if i comment out the SMTPFILTER then messages are delivered to the recipients so it looks like mailwsher is reading the name server from somewhere other than the resolv file as there is no entry in there for xxx.com !!

Any ideas ???

Thanx

PeterC

kirberich
Posts: 42
Joined: Wed May 23, 2007 9:04 am

Postby kirberich » Wed Jun 27, 2007 3:49 pm

So is it possible to scan only inbound mails for spam?
I really don't want to have a mailwasher banner under every mail my server sends out.


Return to “Third Party Integration”



Who is online

Users browsing this forum: No registered users and 1 guest