#1  
Old 30th January 2011, 20:34
wp.rauchholz wp.rauchholz is offline
Junior Member
 
Join Date: Jan 2011
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default Virus not working

My setup: Fedira 14; spamassassin (as daemon), procmail, dovecot, postifx and clamav/clamavsmtp
Spamassassin works just fine, but I cannot get clamav/clamsmtp to work
I am sitting now hours in front of my server and try to debug this, but I give up!!

Error message I get:
an 30 19:31:41 home spamd[29191]: spamd: clean message (0.5/5.0) for nobody:99 in 5.3 seconds, 1746 bytes.
Jan 30 19:31:41 home spamd[29191]: spamd: result: . 0 - DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM ,RCVD_IN_DNSWL_LOW,RDNS_NONE,T_TO_NO_BRKTS_FREEMAI L scantime=5.3,size=1746,user=nobody,uid=99,required _score=5.0,rhost=home.theragafamily.com,raddr=127. 0.0.1,rport=45294,mid=<AANLkTingkJn599Z=RWo6G_6oVD vY4Nz6NzrXpNr7kpYc@mail.gmail.com>,autolearn=no
Jan 30 19:31:41 home postfix/pickup[32464]: 52664E098F: uid=99 from=<wp.rauchholz@gmail.com>
Jan 30 19:31:41 home postfix/cleanup[32529]: 52664E098F: message-id=<AANLkTingkJn599Z=RWo6G_6oVDvY4Nz6NzrXpNr7kpYc@ mail.gmail.com>
Jan 30 19:31:41 home postfix/pipe[32530]: 7FD2AE098D: to=<wp.rauchholz@theragafamily.com>, relay=spamassassin, delay=6, delays=0.7/0.01/0/5.3, dsn=2.0.0, status=sent (delivered via spamassassin service)
Jan 30 19:31:41 home postfix/qmgr[32465]: 7FD2AE098D: removed
Jan 30 19:31:41 home spamd[29190]: prefork: child states: II
Jan 30 19:31:41 home postfix/qmgr[32465]: 52664E098F: from=<wp.rauchholz@gmail.com>, size=2200, nrcpt=1 (queue active)
Jan 30 19:31:41 home clamsmtpd: 100000: accepted connection from: 127.0.0.1
Jan 30 19:31:41 home postfix/smtpd[32553]: initializing the server-side TLS engine
Jan 30 19:31:41 home postfix/smtpd[32553]: connect from home.theragafamily.com[127.0.0.1]
Jan 30 19:31:41 home postfix/smtpd[32553]: 6DC8FE098D: client=home.theragafamily.com[127.0.0.1]
Jan 30 19:31:41 home clamsmtpd: 100000: couldn't open cache file: Permission denied
Jan 30 19:31:41 home clamsmtpd: 100000: from=wp.rauchholz@gmail.com, to=wp.rauchholz@theragafamily.com
Jan 30 19:31:41 home postfix/smtpd[32553]: warning: non-SMTP command from home.theragafamily.com[127.0.0.1]: X-Spam-Checker-Version: SpamAssassin 3.3.2-r929478 (2010-03-31) on
Jan 30 19:31:41 home postfix/smtpd[32553]: disconnect from home.theragafamily.com[127.0.0.1]
Jan 30 19:31:41 home postfix/smtp[32551]: 52664E098F: to=<wp.rauchholz@theragafamily.com>, relay=127.0.0.1[127.0.0.1]:10025, delay=0.14, delays=0.06/0.02/0.06/0, dsn=4.0.0, status=deferred (host 127.0.0.1[127.0.0.1] said: 451 Local Error (in reply to end of DATA command))


clamav and clamsmtpd are up and running
clamsmtp 32134 1 0 19:24 ? 00:00:00 clamd.clamsmtp -c /etc/clamd.d/clamsmtp.conf --pid /var/run/clamd.clamsmtp/clamd.pid
clamav 32231 1 0 19:27 ? 00:00:00 /usr/sbin/clamsmtpd -f /etc/clamsmtpd.conf -p /var/run/clamd.clamsmtp/clamsmtpd.pid


These are my configs
/etc/clamd.conf
LogFile /var/log/clamd.clamsmtpd
LogTime yes
LogSyslog yes
DatabaseDirectory /var/lib/clamav
LocalSocket /var/run/clamd.clamsmtpd/clamd.sock
LogSyslog yes
DatabaseDirectory /var/lib/clamav
LocalSocket /var/run/clamd.clamsmtpd/clamd.sock
FixStaleSocket Yes
TCPAddr 127.0.0.1
User clamav
ScanMail yes

/etc/init.d/clamsmtpd.conf
OutAddress: 127.0.0.1:10026
ClamAddress: /var/run/clamd.clamsmtpd/clamd.sock
User: clamav


/etc/postfix/main.cf
# Configure clamsmtp/clamav into Postix
content_filter = scan:127.0.0.1:10025
receive_override_options = no_address_mappings

/etc/postfix/master.cf
scan unix - - n - 16 smtp
-o smtp_send_xforward_command=yes
# Para la inyeccin de vuelta a postfix desde el filtro
127.0.0.1:10026 inet n - n - 16 smtpd
-o content_filter=
-o receive_override_options=no_unknown_recipient_chec ks,no_header_body_checks,no_address_mappings
-o smtpd_helo_restrictions=
-o smtpd_client_restrictions=
-o smtpd_sender_restrictions=
-o smtpd_recipient_restrictions=permit_mynetworks,rej ect
-o mynetworks_style=host
-o smtpd_authorized_xforward_hosts=127.0.0.0/8


Thanks
Reply With Quote
Sponsored Links
  #2  
Old 31st January 2011, 13:16
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,740 Times in 2,575 Posts
Default

What's the output of
Code:
getenforce
?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 1st February 2011, 19:27
wp.rauchholz wp.rauchholz is offline
Junior Member
 
Join Date: Jan 2011
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by falko View Post
What's the output of
Code:
getenforce
?
[root@home tmp]# getenforce
Disabled
Reply With Quote
  #4  
Old 2nd February 2011, 15:11
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,740 Times in 2,575 Posts
Default

That's ok. According to http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=282734 (which is for Debian) this has to do with wrong permissions of /var/run/clamsmtp. What's the output of
Code:
ls -la /var/run/
?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 2nd February 2011, 19:10
wp.rauchholz wp.rauchholz is offline
Junior Member
 
Join Date: Jan 2011
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

Quote:
Originally Posted by falko View Post
That's ok. According to http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=282734 (which is for Debian) this has to do with wrong permissions of /var/run/clamsmtp. What's the output of
Code:
ls -la /var/run/
?

...amavis amavis amavisd
...clamtsmtp mail clamd.clamsmtp

... I guess I know now what to do
chown amavis,amavis clamd.clamsmtp
Reply With Quote
Reply

Bookmarks

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
Spam Filter not functioning (revisited) Cracklefish Installation/Configuration 7 8th March 2010 12:16
Spam and virus quarantine email forwards not working primal23 Installation/Configuration 12 12th September 2009 12:07
Need help get mail to work (can't recieve and apperently can't send) omega13a Installation/Configuration 19 20th August 2009 21:06
Spam Filter not functioning Cracklefish Installation/Configuration 11 3rd June 2009 13:58
Spam and virus filter stopped working Bvdwiel Installation/Configuration 5 11th February 2008 16:17


All times are GMT +2. The time now is 20:18.


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