On 24.05.2011 06:11, Jim Flanagan wrote:
Whats the best way to scan for spam on my email server? I'm trying to get amavis working with postfix and clamd and spamd. I have amavis running, as are clamd and spamd. Clamd is running and checking its databases. Freshclam is checking for updates. But nothing is being scanned as far as I can tell.
I have my fqdn set in amavisd.conf, as well as the lines for clamd un-remarked. Not sure what else needs to be done to get the scan working.
First you have to configure Postfix to loop the mail to Amavisd-new: /etc/postfix/master.cf: # sends the mails to amavisd-new listening on port 10024: smtp inet n - n - 200 smtpd -o content_filter=smtp-amavis:[127.0.0.1]:10024 # receives the mails back from amavisd-new: 127.0.0.1:10025 inet n - n - - smtpd -o content_filter= # limits the number of filterprocesses (amavisd-new): smtp-amavis unix - - n - 10 smtp -o smtp_send_xforward_command=yes This is the essential neccessary to make Postfix use amavisd-new to scan mails. If you do not receive mails directly for the internet and use fetchmail to feed the mails to Postfix you might have to set a content_filter for pickup as well. In amavisd-new check these parameters: /etc/amavisd.conf: $inet_socket_bind = '127.0.0.1'; # limit socket bind to loopback interface # (default is '127.0.0.1') @inet_acl = qw( 127.0.0.1 ); # allow SMTP access only from localhost IP # (default is qw( 127.0.0.1 ) ) $mydomain = 'mydomain.tld'; # a convenient default for other settings $myhostname = 'mail.mydomain.tld'; # which port amavisd-new listens on to receive mails (see master.cf to match) $inet_socket_port = 10024; # where to send the mails after scanning (see master.cf to match) $forward_method = 'smtp:[127.0.0.1]:10025'; # number of filter processes (match master.cf): $max_servers = 10; # the domains to filter (only local domains will be scanned for spam): @local_domains_maps = ( [ "mydomain.tld", "domain2.tld" ] ); If these settings are done the mails should be scanned. There are many more settings which should be checked but that should be sufficient to get you started. Sandy -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org