Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I installed Amavisd-new on my email server running Postfix as the MTA (Debian) and followed some online instructions on amavis.conf parameters and also some main.cf settings. Now that I am done, my question is how do I know if Amavisd is working? I want to use it with ClamAV but have not configured Clam as of yet as I want to make sure all the settings I added to Amavisd are working. Is there a way to know if the settings are working?
I added the following to /etc/amavis/conf.d/50-user
Code:
$sa_tag_level_deflt = -5; # add spam info headers if at, or above that level
$sa_tag2_level_deflt = 4; # add 'spam detected' headers at that level
$sa_kill_level_deflt = 10000; # triggers spam evasive actions
$sa_dsn_cutoff_level = 10; # spam level beyond which a DSN is not sent
$forward_method = 'smtp:[127.0.0.1]:10025';
$notify_method = $forward_method;
$virus_admin = 'formorer@formorer.de'; # due to D_DISCARD default
#inform recipients about a blocked mail
$warnbannedrecip = 1;
$warnvirusrecip = 1;
$final_banned_destiny = D_PASS;
$log_level = 2; # (defaults to 0), -d
and also added the following to main.cf
Code:
content_filter = smtp-amavis:[127.0.0.1]:10024
**In Debian there is no one amavis.conf file but I was told by a Debian/Amavis developer to make changes to 50-user since it is the last file to be read.**
Thanks for the fast reply! Does it matter where I add $DO_SYSLOG = 1; or can I simply append this to the bottom of what I provided above as my amavis config file? Will Amavis still show up in the headers even if no application like Spamassassin or Clamav have been configured yet?
Debian splits the amavisd.conf file into several files. There is a name allocated for user's modifications, but I don't have the name at hand. It is 50* something. Add your modifications there, since the later numbered files are included in order. Its a last-one-wins policy.
Since amavis is acting as an MTA, it will add Received headers as mail passes through, regardless of ClamAV or SA.
OK - Being use to how CentOS / RHEL have one basic /etc/amavis.conf file...I was really confused why Debian had multiple config files and was not sure if this was the way to go but if I can make all my changes in 50-user and not worry about the rest, I should be fine. I will append what you suggested to the end of 50-user and restart amavis to start logs and check received headers.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.