[opensuse] Amavis>clamd>spamd
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. Thanks for any help. Jim f -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Tue, May 24, 2011 at 11:11 AM, Jim Flanagan <linuxjim@jjfiii.com> 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.
Do you already set amavis service and port in your master.cf and also content_filter in your main.cf? Using smtpd_recipient_restrictions and SPF also help fighting spam in your mail server. I found out that http://workaround.org/ispmail/lenny is easy to understand. Well it's for Lenny, but not so much difficult to implement for openSUSE :-) -- medwinz http://medwinz.blogsome.com -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
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.
That sounds like a postfix config issue - have you configured postfix to route the mail through amavisd? I don't use amavisd myself, so can't help you with the actual config, but assuming postfix receives your mail, somehow it has to pass it to amavisd. -- Per Jessen, Zürich (19.4°C) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
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
participants (4)
-
Jim Flanagan
-
medwinz
-
Per Jessen
-
Sandy Drobic