I set up a mail server with Dovecot, Postfix and AMaViS on Debian Squeeze following the tutorial on workaround.org (ISPmail tutorial for Debian Squeeze). It uses virtual domains and stores the domains, e-mail addresses and accounts in a MySQL database.
Everything works fine – except I am missing some e-mail headers.
(With “real” spam and using the GTUBE via
sendmail email@example.com < /usr/share/doc/spamassassin/examples/sample-spam.txt)
But spam e-mails get their subject changed. So I set up everything correct, didn’t I?
How do I get those missing headers in my mails?
Here my AMaViS configuration file (
use strict; # # Place your configuration directives here. They will override those in # earlier files. # # See /usr/share/doc/amavisd-new/ for documentation and examples of # the directives you can use in this file # # see <http://workaround.org/ispmail/squeeze/content-scanning-amavis> $sa_spam_subject_tag = '*** SPAM *** '; $final_spam_destiny = D_PASS; $sa_tag_level_deflt = -9999; # add spam info headers if at, or above that level $sa_tag2_level_deflt = 6.31; # add 'spam detected' headers at that level @lookup_sql_dsn = ([ 'DBI:mysql:database=mailserver;host=127.0.0.1;port=3306', 'mailuser', 'password' ]); $sql_select_policy = 'SELECT name FROM virtual_domains WHERE CONCAT("@",name) IN (%k)'; #------------ Do not modify anything below this line ------------- 1; # ensure a defined return
If you need more configuration files, log outputs or anything else, please leave a comment below and I will update my post with the information you need :-)