Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > HOWTO-Related Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 6th March 2008, 07:23
pheniks pheniks is offline
Junior Member
Join Date: Mar 2008
Location: USA, Texas
Posts: 8
Thanks: 0
Thanked 1 Time in 1 Post
Default ClamAV Milter Issues - Virtual Hosting Howto With Virtualmin On CentOS 5.1

After following this How To, I ran into some problems with Postfix and the ClamAV Milter. I pm'ed topdog on the issues and thought that maybe someone might benefit from the exchange we have had so far and that we might solve the issue below is the communication thus far:

Originally Posted by pheniks
I am having issues with the clamav-milter setup as described in your how to. As almost every issue that I have come across has been my missing a detail, I am sure that this is what has occurred. However, I am unable to locate why I am getting the following messages in the mail log and am unable to test sending email via the telnet tests suggested.

Mail Log Messages
Mar 5 19:52:39 ares postfix/cleanup[8498]: 0B47FEB0319: milter-reject: CONNECT from localhost[]: 4.7.1 Service unavailable - try again later; from=<root@pheniks.net> Mar 5 19:52:42 ares postfix/smtpd[8708]: NOQUEUE: milter-reject: MAIL from tx-67-76-233-45.sta.embarqhsd.net[]: 451 4.7.1 Service unavailable - try again later; proto=SMTP helo=<me> Mar 5 19:52:52 ares postfix/smtpd[8708]: NOQUEUE: milter-reject: UNKNOWN from tx-67-76-233-45.sta.embarqhsd.net[]: 451 4.7.1 Service unavailable - try again later; proto=SMTP helo=<me> Mar 5 19:52:55 ares postfix/smtpd[8708]: disconnect from tx-67-76-233-45.sta.embarqhsd.net[] Mar 5 19:53:39 ares postfix/pickup[8494]: BC325EB0319: uid=0 from=<root> Mar 5 19:53:39 ares postfix/cleanup[8496]: warning: connect to Milter service unix:/var/clamav/clmilter.socket: Permission denied Mar 5 19:53:39 ares postfix/cleanup[8496]: BC325EB0319: milter-reject: CONNECT from localhost[]: 4.7.1 Service unavailable - try again later; from=<root@pheniks.net>
I will get you any configuration information you request.
Thanks in advance,
Hi Aaron,
This is usually a permissions problem with the socket file. It seems to be a problem with the startup of the milter, at times when started the socket delays in being created meaning the command that changes the sockets ownership to the mail user is run before the socket is created.

Please try restarting the milter. Please send me the output of
ls -l /var/clamav/clmilter.socket
Output of ls -l /var/clamav/clmilter.socket:
srwxrwxr-x 1 clamav postfix 0 Mar 5 16:08 /var/clamav/clmilter.socket
Additionally, on service clamav-milter restart, I receive the following:
Stopping Clamav Milter Daemon: [ OK ] Starting Clamav Milter Daemon: Your LANG environment variable is set to 'en_US.UTF-8' This is known to cause problems for some clamav-milter installations. If you get failures with temporary files, please try again with LANG unset. Loaded ClamAV 0.92.1/6136/Wed Mar 5 03:32:22 2008 ClamAV: Protecting against 243377 viruses [ OK ]

Originally Posted by topdog
Does that fix the issue ? Yes you can go for that, i have noticed that it happens on startup. I will try look at the source to see if it can be patched to set the group on the socket file.
That did not solve the issue. Are the user and group correct on the socket file? Should the config files be using unix vs. local.

On Page 3 of your How To, there is a section of the config file /etc/postfix/main.cf that goes like this:
smtpd_milters = unix:/var/clamav/clmilter.socket unix:/var/run/spamass.sock non_smtpd_milters = unix:/var/clamav/clmilter.socket unix:/var/run/spamass.sock
While on Page 5, the config file /etc/sysconfig/clamav-milter reads:
. . . SOCKET_ADDRESS="local:/var/clamav/clmilter.socket"
I changed both to the local: prefix and still have the issue. Should it be the unix: prefix?
Now, I have changed both to the unix: prefix and have not resolved the issue.
Reply With Quote
Sponsored Links


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Getting e-mail working hansoffate Installation/Configuration 29 13th August 2008 17:33
Centos 5.1 Virtual Mail Server Issues tmaleshafske HOWTO-Related Questions 7 19th February 2008 06:34
Virtual Users And Domains With Postfix, Courier And MySQL (CentOS 5.1) mexus HOWTO-Related Questions 10 29th January 2008 21:18
Virtual Users With Postfix, PostfixAdmin, Courier, Mailscanner, ClamAV On CentOS fchevitarese HOWTO-Related Questions 5 4th September 2007 13:58
CentOS Mail Server with Virtual Domains Howto morenz Server Operation 2 23rd March 2007 10:03

All times are GMT +2. The time now is 10:03.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.