Tom wrote:
> Tom wrote:

>> i never entered that line. its not there.
>> the amavis settings are in master.cf NOT main.cf

>> Have you commented out the
>> content_filter = smtp-amavis:[127.0.0.1]:10024
>> in postfix main.cf?

>> thanks

> If you followed the Scott Henderson HOWTO, this is how you would call
> amavisd-new. If you don't have a 'content_filter' setting at all, then
> this is probably the correct setting, and the reason nothing happens.
> If you do have some sort of 'content_filter' setting, tell us what it
> is.
> remember to 'postfix reload'
> Then tail -f /var/log/maillog and send an email through.

> You know you can simply set up an email client's outgoing SMTP server
> to your RHEL3 box and send real mail through it.

> thats weird.
> i entered it and it works.
> last time i didn't have that line in main.cf only the master.cf stuff and it 
> worked.
> Thats really bizzare.
> now the only error i get is -
>  ClamAV-clamd: Can't connect to UNIX socket /tmp/clamd: Connection refused, 
> retrying (2)
> clamav user is a member of amavis group and amavis user and group have full 
> rights on that file
> Thanks

My suggested configuration, as far as where the Unix socket file
should go.

http://www200.pair.com/mecham/spam/clamav-amavisd-new.html
http://www200.pair.com/mecham/spam/clamav-redhat-amavis.html

mkdir /var/run/clamav
chown -R clamav:clamav /var/run/clamav

in clamd.conf:

LocalSocket /var/run/clamav/clamd.sock
PidFile /var/run/clamav/clamd.pid

In amavisd.conf:

  ['Clam Antivirus-clamd',
     \&ask_daemon, ["CONTSCAN {}\n", '/var/run/clamav/clamd.sock'],
     qr/\bOK$/, qr/\bFOUND$/,
     qr/^.*?: (?!Infected Archive)(.*) FOUND$/ ],

Gary V



-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
AMaViS-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/

Reply via email to