Amavisd - Socket Error

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

Moderator: ScalixSupport

shaun33

Amavisd - Socket Error

Postby shaun33 » Wed May 28, 2008 7:16 pm

Hi.
I have installed AMAVISD as per the Wiki on a new sx install on Cent OS 5.
All went well except i am getting an error when I start Sendmail that the socket can't be found. And then in the logs when i mail it sayign that its unsafe. I am assuming this is a perms issue.

Starting Sendmail

Code: Select all

[root@lion amavis]# sudo service sendmail restart                               
Shutting down sm-client:                                   [  OK  ]
Shutting down sendmail:                                    [FAILED]
Starting sendmail: WARNING: XMilter-amavis: local socket name /var/amavis/amavisd-milter.sock' missing
                                                           [  OK  ]
Starting sm-client:                                        [  OK  ]





Sendmail Logs

Code: Select all

May 29 09:22:37 lion sendmail[16750]: m4SNMbHp016750: Milter (Milter-amavis): local socket name /var/amavis/amavisd-milter.sock' unsafe
May 29 09:22:37 lion sendmail[16750]: m4SNMbHp016750: Milter (Milter-amavis): to error state


ls -la /var/smavisd/

Code: Select all

[root@lion amavis]# ls -la /var/amavis/
total 72
drwxr-x---  6 amavis amavis 4096 May 29 10:11 .
drwxr-xr-x 27 root   root   4096 May 28 03:09 ..
-rw-r-----  1 amavis amavis    0 May 28 23:47 amavisd.lock
-rw-r--r--  1 amavis amavis    5 May 28 23:48 amavisd-milter.pid
srwxr-xr-x  1 amavis amavis    0 May 28 23:48 amavisd-milter.sock
-rw-r-----  1 amavis amavis    5 May 28 23:47 amavisd.pid
drwxr-x---  2 amavis amavis 4096 May 28 23:47 db
drwx------  2 amavis amavis 4096 May 28 23:47 .spamassassin
drwxr-x---  2 amavis amavis 4096 Mar 14 06:29 tmp
drwxr-x---  2 amavis amavis 4096 Mar 14 06:29 var

bikerider
Posts: 103
Joined: Fri May 09, 2008 1:16 pm

Postby bikerider » Thu May 29, 2008 10:10 am

My sendmail.mc

INPUT_MAIL_FILTER(`milter-amavis', `S=local:/var/run/clamav/clamd.sock, F=T, T=S:10m;R:10m;E:10m')dnl

use the clamd sock and NOT amavisd , make sure your sendmail.mc and your clamd.conf setting match

more /etc/sysconfig/clamav-milter

SOCKET_ADDRESS="local:/var/run/clamav/clamd.sock"

your almost there !
__O
=\ \
(=)/(=)

idea=`grep -i clue /dev/brain` ; test -z "$idea" && echo "sorry, init 6 in progress" || sh ./answer-the-forum

shaun33

Postby shaun33 » Thu May 29, 2008 12:24 pm

bikerider wrote:My sendmail.mc

INPUT_MAIL_FILTER(`milter-amavis', `S=local:/var/run/clamav/clamd.sock, F=T, T=S:10m;R:10m;E:10m')dnl

use the clamd sock and NOT amavisd , make sure your sendmail.mc and your clamd.conf setting match

more /etc/sysconfig/clamav-milter

SOCKET_ADDRESS="local:/var/run/clamav/clamd.sock"

your almost there !



The clam av milter isn't even installed, my understanding is that the amavisd controlls the clamav and the spamassisan. Wouldn't handings it to clamav mean that only the virus is getting done.

im trying to follow http://www.scalix.com/wiki/index.php?ti ... os/Amavisd

bikerider
Posts: 103
Joined: Fri May 09, 2008 1:16 pm

Postby bikerider » Thu May 29, 2008 1:05 pm

yes I tried to follow that too, I used all teh rpms from dagg (that were not part of the distro's) folow dagg's setup to add teh repo
and fire it up. (fixes pesky dependency issues)
Way easier IMHO

I also have spamd-milter line
in my sendmail.mc , so I could process X headers and
be very clear about spam controls.

BTW sendmail even without Scalix NEEDS milter(ing)

My preference

Hope this helps
__O
=\ \
(=)/(=)

idea=`grep -i clue /dev/brain` ; test -z "$idea" && echo "sorry, init 6 in progress" || sh ./answer-the-forum

shaun33

Postby shaun33 » Thu May 29, 2008 2:58 pm

bikerider wrote:yes I tried to follow that too, I used all teh rpms from dagg (that were not part of the distro's) folow dagg's setup to add teh repo
and fire it up. (fixes pesky dependency issues)
Way easier IMHO

I also have spamd-milter line
in my sendmail.mc , so I could process X headers and
be very clear about spam controls.

BTW sendmail even without Scalix NEEDS milter(ing)

My preference

Hope this helps


so u just forgot the whole amavid idea and put spamassisan and clamd in speratly using their own milters.
This may be the way i go yet

shaun33

Found it

Postby shaun33 » Fri May 30, 2008 2:38 am

Ok while installing clam and giving up on maavisd i found this

http://www.issociate.de/board/goto/7220 ... sages.html

more importantly

You have broken quoting in your .mc file, probably using ' rather than `
for the opening quotes. Note that it is complaining about
"clamav-milter.sock''" rather than "clamav-milter.sock" - the former
presumably doesn't exist. Also the milter definition name is "clamva''"
rather than "clamva" (or "clamav":-).


i to was using ' not `. The first bing key beside enter the later being the tilda key.
Trick for windoze users.


Return to “Third Party Integration”



Who is online

Users browsing this forum: No registered users and 2 guests