Please help on amavisd

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

Moderator: ScalixSupport

leiw
Posts: 69
Joined: Wed Nov 29, 2006 11:24 am

Please help on amavisd

Postby leiw » Mon May 21, 2007 12:03 am

Hello,

The following is my enviroment:

FC5+scalix 11+amavisd+amavisd-milter+clamav+spamassassin

I was used yum to install amavisd, amavisd-milter and clamav, also can start those

application success, but the amavisd cannot block eicar_com test virus.... ,

the maillog dose not show amaivsd name:

May 21 12:01:56 leiw sendmail[8768]: l4L41ud7008762: to=<wilson@leiw.no-ip.org>, ctladdr=<root@leiw.no-ip.org> (0/0), delay=00:00:00, xdelay=00:00:00, mailer=scalix_mime, pri=120321, relay=leiw, dsn=2.0.0, stat=Sent (Ok)
May 21 12:04:34 leiw sendmail[8815]: l4L44XnV008815: from=<a@abc.com>, size=1365, class=0, nrcpts=1, msgid=<46511761.9000007@abc.com>, proto=ESMTP, relay=root@localhost
May 21 12:04:34 leiw sendmail[8816]: l4L44YWU008816: from=<barry.chan@abc.com>, size=1545, class=0, nrcpts=1, msgid=<46511761.9000007@abc.com>, proto=ESMTP, daemon=MTA, relay=localhost.localdomain [127.0.0.1]
May 21 12:04:34 leiw sendmail[8815]: l4L44XnV008815: to=<wilson@leiw.no-ip.org>, delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=31365, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (l4L44YWU008816 Message accepted for delivery)
May 21 12:04:34 leiw sendmail[8822]: l4L44YWU008816: to=<wilson@leiw.no-ip.org>, delay=00:00:00, xdelay=00:00:00, mailer=scalix_mime, pri=121545, relay=leiw, dsn=2.0.0, stat=Sent (Ok)

Thanks

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

Postby ScalixSupport » Mon May 21, 2007 1:32 am

Hi!

Did you get a chance to review wiki page which has guidelines to configure Amavisd at:
http://www.scalix.com/wiki/index.php?ti ... il_Hygiene

See if this helps.

Thanks,
Subir

leiw
Posts: 69
Joined: Wed Nov 29, 2006 11:24 am

Postby leiw » Mon May 21, 2007 1:58 am

Yes, I follow this guildlines to setup .... but very difficult for me :(

leiw
Posts: 69
Joined: Wed Nov 29, 2006 11:24 am

Postby leiw » Mon May 21, 2007 2:10 am

ok, I want to try Scalix default anit-virus setup solution, but I cannot find the rules
directory.

Thanks

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

Postby ScalixSupport » Mon May 21, 2007 3:57 am

Hi!

In the documentations ~ represents the instance folder that is /var/opt/scalix/??/s. Now if
you are asked to look in ~/rules, we mean look in /var/opt/scalix/??/s/rules. Note ?? is the
first and last letter of the host name for that instance.

Thanks,
Subir

leiw
Posts: 69
Joined: Wed Nov 29, 2006 11:24 am

Postby leiw » Tue May 22, 2007 2:40 am

Can anyone help me config Scalix with clamd and spamassassin, I just setup
the Scalix that cannot reveice email (maillog no any message that I can see).


THanks

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

Postby ScalixSupport » Tue May 22, 2007 2:50 am

Hi!

What do you get in fatal log at /var/opt/scalix/??/s/logs/fatal?

Thanks,
Subir

leiw
Posts: 69
Joined: Wed Nov 29, 2006 11:24 am

Postby leiw » Tue May 22, 2007 2:50 am

After set back to default.... I can receive prior email at same time .... what the happen

is that ? I think have some file configure wrong .


Thnaks

leiw
Posts: 69
Joined: Wed Nov 29, 2006 11:24 am

Postby leiw » Tue May 22, 2007 3:08 am

I checked the ALL-ROUTES.VIR have problem at /var/opt/scalix/sx/s/rules,
if I do not use this file can send and reveice any email, the following is the
ALL-ROUTES.VIR content:

VIRUS-UNCLEANED=1 ACTION=REJECT NDN-INFO=!ndninfo.txt

also the ndninfo.txt at /var/opt/scalix/sx/s/rules.


Thanks

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

Postby ScalixSupport » Tue May 22, 2007 3:26 am

Hi!

The following files are important in anti-virus configuration context:
* ALL-ROUTES.VIR defines the message delivery rules,
* omvscan.map for Mapper Scripts, the router instructs a “mapperâ€

leiw
Posts: 69
Joined: Wed Nov 29, 2006 11:24 am

Postby leiw » Tue May 22, 2007 10:06 am

[quote="ScalixSupport"]Hi!

The following files are important in anti-virus configuration context:
* ALL-ROUTES.VIR defines the message delivery rules,
* omvscan.map for Mapper Scripts, the router instructs a “mapperâ€

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

Postby ScalixSupport » Wed May 23, 2007 12:52 am

Hi!

What is the result that you get when you run the command omshowlog. See if the issue
you have is similar to one in the post below:
viewtopic.php?t=6673

Thanks,
Subir

leiw
Posts: 69
Joined: Wed Nov 29, 2006 11:24 am

Postby leiw » Wed May 23, 2007 1:18 pm


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

Postby ScalixSupport » Thu May 24, 2007 2:24 am

Hi!

Make sure you have done these:
* in file ALL-ROUTES.VIR, each rule is in one line.
* in the file /etc/group, for group clamav, add scalix, the entries for clamav and scalix should
like as below:
scalix:x:101:clamav
clamav:x:102:scalix
* create file /var/opt/scalix/??/s/rules/ndninfo.txt, having a few lines indicating that mail was rejected.
* In /etc/clamd.conf, you need to make two changes,

Code: Select all

AllowSupplementaryGroups yes
TCPAddr 192.168.103.113

Note: the value for property TCPAddr should be your Scalix Server IP address.

Once you have done these, restart clamd service, and restart Service Router using the
commands below:

Code: Select all

omoff -wd 0 sr
omon sr


Now check if the Service Router shows status "Started" in result of the command
"omstat -s".

Thanks,
Subir

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

Postby ScalixSupport » Thu May 24, 2007 2:26 am

Hi!

We have a bug that has been fixed for ClamAV documentation:
http://bugzilla.scalix.com/show_bug.cgi?id=15031

Thanks,
Subir


Return to “Third Party Integration”



Who is online

Users browsing this forum: No registered users and 4 guests