OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
Re: Amavis, ClamAV & SpamAssassin

From: Lydiard (lydiardspamcop.net)
Date: Thu Dec 06 2007 - 16:52:46 CST


Don't top post..

----- Message from dhulldigitaloverload.net ---------
> I'm using amavisd-new on Ubuntu Gutsy gibbon. I would use the
> documentation on the amavisd-new website but it doesn't match what I
> see in /etc/amaivs.
>
> * I don't have an amavisd.conf file
> * I have a directory with lots of config files in it
> o /etc/amaivs/conf.d
>
> I don't know why Ubuntu Gutsy has a different setup.

Because it's Ubuntu and therefore based on Debian which feels the need
to have files in special places (I learnt this the hardway).

Did you install from src/tarball? Or using a packacge manager?

It sounds like you installed with a package manager if you have "lots
of files" in the /etc/amavis/conf.d

One of those - probably 20-* will have a line like

$inet_socket_port = 10024; # default listenting socket

That needs to be uncommented and match the port number in your postfix
main.cf (and master.cf)

Once that's done all the other steps are documented. I.e

postconf -e 'content_filter = smtp-amavis:[127.0.0.1]:10024'

and in master.cf

#The amavis reciever
127.0.0.1:10025 inet n - - - - smtpd
         -o content_filter=
         -o local_recipient_maps=
         -o relay_recipient_maps=
         -o smtpd_restriction_classes=
         -o smtpd_client_restrictions=
         -o smtpd_helo_restrictions=
         -o smtpd_sender_restrictions=
         -o smtpd_recipient_restrictions=permit_mynetworks,reject
         -o mynetworks=127.0.0.0/8
         -o strict_rfc821_envelopes=yes
         -o
receive_override_options=no_unknown_recipient_checks,no_header_body_checks
         -o smtpd_bind_address=127.0.0.1

#the amavis connector, to send to amavis
smtp-amavis unix - - - - 2 smtp
         -o smtp_data_done_timeout=1200
         -o disable_dns_lookups=yes

Lydiard