hi, i'm using the howto to install postfix mail with spamassassin and clamav. Everything goes well, i follow the guide quite strictly, except that the messages are not filtered by spamassassin (clamav is working, i think) this is the header of an email sent using my system: Code: Return-Path: <[email protected]> X-Original-To: [email protected] Delivered-To: [email protected] Received: from localhost (localhost [127.0.0.1]) by pfmail.fithanu.vn (Postfix) with ESMTP id CE76E92C9B for <[email protected]>; Thu, 1 Oct 2009 02:08:13 -0400 (EDT) X-Virus-Scanned: Debian amavisd-new at pfmail.fithanu.vn Received: from pfmail.fithanu.vn ([127.0.0.1]) by localhost (pfmail.fithanu.vn [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id uqjt5jbt1VEp for <[email protected]>; Thu, 1 Oct 2009 02:07:25 -0400 (EDT) Received: from [127.0.0.1] (unknown [1.1.1.1]) (Authenticated sender: [email protected]) by pfmail.fithanu.vn (Postfix) with ESMTPSA id C461592C9A for <[email protected]>; Thu, 1 Oct 2009 02:07:22 -0400 (EDT) Message-ID: <[email protected]> Date: Fri, 02 Oct 2009 13:10:08 +0700 From: minh <[email protected]> User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) MIME-Version: 1.0 To: [email protected] Subject: hello world Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Here we see "X-Virus-Scanned", which means, the email has been scanned for virus. But there's no sign of SpamAssassin Does anybody know why i SA cant be integrated to Postfix?
This one, postfix on Debian: http://www.howtoforge.com/virtual-users-domains-postfix-courier-mysql-squirrelmail-debian-lenny
Can you restart amavisd and then post an excerpt of your mail log? amavisd logs what modules are enabled when it is restarted.
if that's mail.log so here's the ending of the logging: Code: Oct 6 06:14:03 pfmail amavis[13647]: starting. /usr/sbin/amavisd-new at pfmail.fithanu.vn amavisd-new-2.6.1 (20080629), Unicode aware, LANG="en_US.UTF-8" Oct 6 06:14:03 pfmail amavis[13647]: Perl version 5.010000 Oct 6 06:14:06 pfmail amavis[13655]: Net::Server: Group Not Defined. Defaulting to EGID '119 119' Oct 6 06:14:06 pfmail amavis[13655]: Net::Server: User Not Defined. Defaulting to EUID '111' Oct 6 06:14:06 pfmail amavis[13655]: Module Amavis::Conf 2.103 Oct 6 06:14:06 pfmail amavis[13655]: Module Archive::Zip 1.18 Oct 6 06:14:06 pfmail amavis[13655]: Module BerkeleyDB 0.34 Oct 6 06:14:06 pfmail amavis[13655]: Module Compress::Zlib 2.012 Oct 6 06:14:06 pfmail amavis[13655]: Module Convert::TNEF 0.17 Oct 6 06:14:06 pfmail amavis[13655]: Module Convert::UUlib 1.11 Oct 6 06:14:06 pfmail amavis[13655]: Module DBD::mysql 4.007 Oct 6 06:14:06 pfmail amavis[13655]: Module DBI 1.605 Oct 6 06:14:06 pfmail amavis[13655]: Module DB_File 1.816_1 Oct 6 06:14:06 pfmail amavis[13655]: Module Digest::MD5 2.36_01 Oct 6 06:14:06 pfmail amavis[13655]: Module Digest::SHA 5.45 Oct 6 06:14:06 pfmail amavis[13655]: Module Digest::SHA1 2.11 Oct 6 06:14:06 pfmail amavis[13655]: Module IO::Socket::INET6 2.54 Oct 6 06:14:06 pfmail amavis[13655]: Module MIME::Entity 5.427 Oct 6 06:14:06 pfmail amavis[13655]: Module MIME::Parser 5.427 Oct 6 06:14:06 pfmail amavis[13655]: Module MIME::Tools 5.427 Oct 6 06:14:06 pfmail amavis[13655]: Module Mail::Header 2.03 Oct 6 06:14:06 pfmail amavis[13655]: Module Mail::Internet 2.03 Oct 6 06:14:06 pfmail amavis[13655]: Module Mail::SPF v2.005 Oct 6 06:14:06 pfmail amavis[13655]: Module Mail::SpamAssassin 3.002005 Oct 6 06:14:06 pfmail amavis[13655]: Module Net::DNS 0.63 Oct 6 06:14:06 pfmail amavis[13655]: Module Net::Server 0.97 Oct 6 06:14:06 pfmail amavis[13655]: Module NetAddr::IP 4.007 Oct 6 06:14:06 pfmail amavis[13655]: Module Razor2::Client::Version 2.84 Oct 6 06:14:06 pfmail amavis[13655]: Module Socket6 0.20 Oct 6 06:14:06 pfmail amavis[13655]: Module Time::HiRes 1.9711 Oct 6 06:14:06 pfmail amavis[13655]: Module URI 1.35 Oct 6 06:14:06 pfmail amavis[13655]: Module Unix::Syslog 1.1 Oct 6 06:14:06 pfmail amavis[13655]: Amavis::DB code loaded Oct 6 06:14:06 pfmail amavis[13655]: Amavis::Cache code loaded Oct 6 06:14:06 pfmail amavis[13655]: SQL base code NOT loaded Oct 6 06:14:06 pfmail amavis[13655]: SQL::Log code NOT loaded Oct 6 06:14:06 pfmail amavis[13655]: SQL::Quarantine NOT loaded Oct 6 06:14:06 pfmail amavis[13655]: Lookup::SQL code NOT loaded Oct 6 06:14:06 pfmail amavis[13655]: Lookup::LDAP code NOT loaded Oct 6 06:14:06 pfmail amavis[13655]: AM.PDP-in proto code loaded Oct 6 06:14:06 pfmail amavis[13655]: SMTP-in proto code loaded Oct 6 06:14:06 pfmail amavis[13655]: Courier proto code NOT loaded Oct 6 06:14:06 pfmail amavis[13655]: SMTP-out proto code loaded Oct 6 06:14:06 pfmail amavis[13655]: Pipe-out proto code NOT loaded Oct 6 06:14:06 pfmail amavis[13655]: BSMTP-out proto code NOT loaded Oct 6 06:14:06 pfmail amavis[13655]: Local-out proto code loaded Oct 6 06:14:06 pfmail amavis[13655]: OS_Fingerprint code NOT loaded Oct 6 06:14:06 pfmail amavis[13655]: ANTI-VIRUS code loaded Oct 6 06:14:06 pfmail amavis[13655]: ANTI-SPAM code loaded Oct 6 06:14:06 pfmail amavis[13655]: ANTI-SPAM-SA code loaded Oct 6 06:14:06 pfmail amavis[13655]: Unpackers code loaded Oct 6 06:14:06 pfmail amavis[13655]: DKIM code NOT loaded Oct 6 06:14:06 pfmail amavis[13655]: Tools code NOT loaded Oct 6 06:14:06 pfmail amavis[13655]: Found $file at /usr/bin/file Oct 6 06:14:06 pfmail amavis[13655]: No $dspam, not using it Oct 6 06:14:06 pfmail amavis[13655]: No $altermime, not using it Oct 6 06:14:06 pfmail amavis[13655]: Internal decoder for .mail Oct 6 06:14:06 pfmail amavis[13655]: No decoder for .F Oct 6 06:14:06 pfmail amavis[13655]: Found decoder for .Z at /bin/uncompress Oct 6 06:14:06 pfmail amavis[13655]: Internal decoder for .gz Oct 6 06:14:06 pfmail amavis[13655]: Found decoder for .bz2 at /bin/bzip2 -d Oct 6 06:14:06 pfmail amavis[13655]: Found decoder for .lzo at /usr/bin/lzop -d Oct 6 06:14:06 pfmail amavis[13655]: No decoder for .rpm tried: rpm2cpio.pl, rpm2cpio Oct 6 06:14:06 pfmail amavis[13655]: Found decoder for .cpio at /usr/bin/pax Oct 6 06:14:06 pfmail amavis[13655]: Found decoder for .tar at /usr/bin/pax Oct 6 06:14:06 pfmail amavis[13655]: Found decoder for .deb at /usr/bin/ar Oct 6 06:14:06 pfmail amavis[13655]: Internal decoder for .zip Oct 6 06:14:06 pfmail amavis[13655]: No decoder for .7z tried: 7zr, 7za, 7z Oct 6 06:14:06 pfmail amavis[13655]: No decoder for .rar Oct 6 06:14:06 pfmail amavis[13655]: No decoder for .arj tried: arj, unarj Oct 6 06:14:06 pfmail amavis[13655]: Found decoder for .arc at /usr/bin/nomarch Oct 6 06:14:06 pfmail amavis[13655]: Found decoder for .zoo at /usr/bin/zoo Oct 6 06:14:06 pfmail amavis[13655]: No decoder for .lha Oct 6 06:14:06 pfmail amavis[13655]: No decoder for .doc tried: ripole Oct 6 06:14:06 pfmail amavis[13655]: No decoder for .cab tried: cabextract Oct 6 06:14:06 pfmail amavis[13655]: No decoder for .tnef Oct 6 06:14:06 pfmail amavis[13655]: Internal decoder for .tnef Oct 6 06:14:06 pfmail amavis[13655]: No decoder for .exe tried: arj, unarj Oct 6 06:14:06 pfmail amavis[13655]: Using primary internal av scanner code for ClamAV-clamd Oct 6 06:14:06 pfmail amavis[13655]: Using primary internal av scanner code for check-jpeg Oct 6 06:14:06 pfmail amavis[13655]: Found secondary av scanner ClamAV-clamscan at /usr/bin/clamscan Oct 6 06:14:06 pfmail amavis[13655]: Creating db in /var/lib/amavis/db/; BerkeleyDB 0.34, libdb 4.6
Looks as if SpamAssassin gets loaded. Can you send an email to the server and then post what happens in your mail log?
here we go: Code: Oct 6 14:44:01 pfmail imapd-ssl: Connection, ip=[::ffff:127.0.0.1] Oct 6 14:44:01 pfmail imapd-ssl: LOGIN, [email protected], ip=[::ffff:127.0.0.1], port=[58591], protocol=IMAP Oct 6 14:44:01 pfmail imapd-ssl: LOGOUT, [email protected], ip=[::ffff:127.0.0.1], headers=0, body=0, rcvd=25, sent=180, time=0, starttls=1 Oct 6 14:44:02 pfmail imapd-ssl: Connection, ip=[::ffff:127.0.0.1] Oct 6 14:44:02 pfmail imapd-ssl: LOGIN, [email protected], ip=[::ffff:127.0.0.1], port=[58592], protocol=IMAP Oct 6 14:44:02 pfmail imapd-ssl: LOGOUT, [email protected], ip=[::ffff:127.0.0.1], headers=248, body=0, rcvd=310, sent=1306, time=0, starttls=1 Oct 6 14:44:03 pfmail imapd-ssl: Connection, ip=[::ffff:127.0.0.1] Oct 6 14:44:03 pfmail imapd-ssl: LOGIN, [email protected], ip=[::ffff:127.0.0.1], port=[58593], protocol=IMAP Oct 6 14:44:03 pfmail imapd-ssl: LOGOUT, [email protected], ip=[::ffff:127.0.0.1], headers=0, body=0, rcvd=61, sent=369, time=0, starttls=1 Oct 6 14:44:05 pfmail imapd-ssl: Connection, ip=[::ffff:127.0.0.1] Oct 6 14:44:05 pfmail imapd-ssl: LOGIN, [email protected], ip=[::ffff:127.0.0.1], port=[58594], protocol=IMAP Oct 6 14:44:05 pfmail imapd-ssl: LOGOUT, [email protected], ip=[::ffff:127.0.0.1], headers=0, body=0, rcvd=10, sent=83, time=0, starttls=1 Oct 6 14:44:05 pfmail imapd-ssl: Connection, ip=[::ffff:127.0.0.1] Oct 6 14:44:06 pfmail imapd-ssl: LOGIN, [email protected], ip=[::ffff:127.0.0.1], port=[58595], protocol=IMAP Oct 6 14:44:06 pfmail imapd-ssl: LOGOUT, [email protected], ip=[::ffff:127.0.0.1], headers=0, body=0, rcvd=10, sent=83, time=0, starttls=1 Oct 6 14:44:23 pfmail imapd-ssl: Connection, ip=[::ffff:127.0.0.1] Oct 6 14:44:23 pfmail imapd-ssl: LOGIN, [email protected], ip=[::ffff:127.0.0.1], port=[58596], protocol=IMAP Oct 6 14:44:24 pfmail postfix/smtpd[16774]: connect from localhost[127.0.0.1] Oct 6 14:44:24 pfmail postfix/trivial-rewrite[16777]: warning: do not list domain fithanu.vn in BOTH virtual_mailbox_domains and relay_domains Oct 6 14:44:24 pfmail postfix/trivial-rewrite[16777]: warning: do not list domain fithanu.vn in BOTH virtual_mailbox_domains and relay_domains Oct 6 14:44:24 pfmail postfix/smtpd[16774]: ED5F092619: client=localhost[127.0.0.1] Oct 6 14:44:24 pfmail postfix/cleanup[16780]: ED5F092619: message-id=<a45c8ab337f0bea593aa08e2f1d8958c@localhost> Oct 6 14:44:25 pfmail postfix/qmgr[15849]: ED5F092619: from=<[email protected]>, size=539, nrcpt=1 (queue active) Oct 6 14:44:25 pfmail postfix/smtpd[16774]: disconnect from localhost[127.0.0.1] Oct 6 14:44:25 pfmail imapd-ssl: LOGOUT, [email protected], ip=[::ffff:127.0.0.1], headers=0, body=0, rcvd=414, sent=132, time=2, starttls=1 Oct 6 14:44:27 pfmail imapd-ssl: Connection, ip=[::ffff:127.0.0.1] Oct 6 14:44:27 pfmail imapd-ssl: LOGIN, [email protected], ip=[::ffff:127.0.0.1], port=[58603], protocol=IMAP Oct 6 14:44:27 pfmail imapd-ssl: LOGOUT, [email protected], ip=[::ffff:127.0.0.1], headers=248, body=0, rcvd=287, sent=1013, time=0, starttls=1 Oct 6 14:44:28 pfmail imapd-ssl: Connection, ip=[::ffff:127.0.0.1] Oct 6 14:44:28 pfmail imapd-ssl: LOGIN, [email protected], ip=[::ffff:127.0.0.1], port=[58604], protocol=IMAP Oct 6 14:44:28 pfmail imapd-ssl: LOGOUT, [email protected], ip=[::ffff:127.0.0.1], headers=0, body=0, rcvd=10, sent=83, time=0, starttls=1 Oct 6 14:45:09 pfmail postfix/smtpd[16794]: connect from localhost[127.0.0.1] Oct 6 14:45:09 pfmail postfix/trivial-rewrite[16796]: warning: do not list domain fithanu.vn in BOTH virtual_mailbox_domains and relay_domains Oct 6 14:45:09 pfmail postfix/trivial-rewrite[16796]: warning: do not list domain fithanu.vn in BOTH virtual_mailbox_domains and relay_domains Oct 6 14:45:09 pfmail postfix/smtpd[16794]: CFC4592C9A: client=localhost[127.0.0.1] Oct 6 14:45:09 pfmail postfix/cleanup[16780]: CFC4592C9A: message-id=<a45c8ab337f0bea593aa08e2f1d8958c@localhost> Oct 6 14:45:09 pfmail postfix/qmgr[15849]: CFC4592C9A: from=<[email protected]>, size=985, nrcpt=1 (queue active) Oct 6 14:45:09 pfmail postfix/trivial-rewrite[16796]: warning: do not list domain fithanu.vn in BOTH virtual_mailbox_domains and relay_domains Oct 6 14:45:09 pfmail postfix/smtpd[16794]: disconnect from localhost[127.0.0.1] Oct 6 14:45:09 pfmail amavis[13664]: (13664-02) Passed CLEAN, LOCAL [127.0.0.1] [127.0.0.1] <[email protected]> -> <[email protected]>, Message-ID: <a45c8ab337f0bea593aa08e2f1d8958c@localhost>, mail_id: ehJ2bK19EXvw, Hits: -1.34, size: 539, queued_as: CFC4592C9A, 44815 ms Oct 6 14:45:09 pfmail postfix/smtp[16781]: ED5F092619: to=<[email protected]>, relay=127.0.0.1[127.0.0.1]:10024, delay=45, delays=0.15/0.02/0.09/45, dsn=2.0.0, status=sent (250 2.0.0 Ok, id=13664-02, from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as CFC4592C9A) Oct 6 14:45:09 pfmail postfix/qmgr[15849]: ED5F092619: removed Oct 6 14:45:09 pfmail postfix/virtual[16797]: CFC4592C9A: to=<[email protected]>, relay=virtual, delay=0.15, delays=0.03/0.08/0/0.04, dsn=2.0.0, status=sent (delivered to maildir) Oct 6 14:45:09 pfmail postfix/qmgr[15849]: CFC4592C9A: removed Oct 6 14:45:28 pfmail imapd-ssl: Connection, ip=[::ffff:127.0.0.1] Oct 6 14:45:28 pfmail imapd-ssl: LOGIN, [email protected], ip=[::ffff:127.0.0.1], port=[58611], protocol=IMAP Oct 6 14:45:28 pfmail imapd-ssl: LOGOUT, [email protected], ip=[::ffff:127.0.0.1], headers=0, body=0, rcvd=31, sent=346, time=0, starttls=1 Oct 6 14:45:52 pfmail imapd-ssl: Connection, ip=[::ffff:127.0.0.1] Oct 6 14:45:52 pfmail imapd-ssl: LOGIN, [email protected], ip=[::ffff:127.0.0.1], port=[58612], protocol=IMAP Oct 6 14:45:52 pfmail imapd-ssl: LOGOUT, [email protected], ip=[::ffff:127.0.0.1], headers=0, body=0, rcvd=25, sent=180, time=0, starttls=1 Oct 6 14:45:53 pfmail imapd-ssl: Connection, ip=[::ffff:127.0.0.1] Oct 6 14:45:53 pfmail imapd-ssl: LOGIN, [email protected], ip=[::ffff:127.0.0.1], port=[58613], protocol=IMAP Oct 6 14:45:54 pfmail imapd-ssl: LOGOUT, [email protected], ip=[::ffff:127.0.0.1], headers=5377, body=0, rcvd=636, sent=13171, time=1, starttls=1 Oct 6 14:45:55 pfmail imapd-ssl: Connection, ip=[::ffff:127.0.0.1] Oct 6 14:45:56 pfmail imapd-ssl: LOGIN, [email protected], ip=[::ffff:127.0.0.1], port=[58614], protocol=IMAP Oct 6 14:45:56 pfmail imapd-ssl: LOGOUT, [email protected], ip=[::ffff:127.0.0.1], headers=0, body=0, rcvd=10, sent=83, time=0, starttls=1 Oct 6 14:45:56 pfmail imapd-ssl: Connection, ip=[::ffff:127.0.0.1] Oct 6 14:45:56 pfmail imapd-ssl: LOGIN, [email protected], ip=[::ffff:127.0.0.1], port=[58615], protocol=IMAP Oct 6 14:45:56 pfmail imapd-ssl: LOGOUT, [email protected], ip=[::ffff:127.0.0.1], headers=0, body=21, rcvd=135, sent=634, time=0, starttls=1 Oct 6 14:45:56 pfmail imapd-ssl: Connection, ip=[::ffff:127.0.0.1] Oct 6 14:45:56 pfmail imapd-ssl: LOGIN, [email protected], ip=[::ffff:127.0.0.1], port=[58616], protocol=IMAP Oct 6 14:45:56 pfmail imapd-ssl: LOGOUT, [email protected], ip=[::ffff:127.0.0.1], headers=0, body=0, rcvd=31, sent=358, time=0, starttls=1 Oct 6 14:46:00 pfmail imapd-ssl: Connection, ip=[::ffff:127.0.0.1] Oct 6 14:46:00 pfmail imapd-ssl: LOGIN, [email protected], ip=[::ffff:127.0.0.1], port=[58617], protocol=IMAP Oct 6 14:46:00 pfmail imapd-ssl: LOGOUT, [email protected], ip=[::ffff:127.0.0.1], headers=0, body=1040, rcvd=71, sent=1493, time=0, starttls=1 Oct 6 14:46:28 pfmail imapd-ssl: Connection, ip=[::ffff:127.0.0.1] Oct 6 14:46:28 pfmail imapd-ssl: LOGIN, [email protected], ip=[::ffff:127.0.0.1], port=[58618], protocol=IMAP Oct 6 14:46:28 pfmail imapd-ssl: LOGOUT, [email protected], ip=[::ffff:127.0.0.1], headers=0, body=0, rcvd=31, sent=346, time=0, starttls=1 Oct 6 14:46:55 pfmail imapd-ssl: Connection, ip=[::ffff:127.0.0.1] Oct 6 14:46:56 pfmail imapd-ssl: LOGIN, [email protected], ip=[::ffff:127.0.0.1], port=[58619], protocol=IMAP Oct 6 14:46:56 pfmail imapd-ssl: LOGOUT, [email protected], ip=[::ffff:127.0.0.1], headers=0, body=0, rcvd=31, sent=358, time=0, starttls=1 Oct 6 14:47:28 pfmail imapd-ssl: Connection, ip=[::ffff:127.0.0.1] Oct 6 14:47:28 pfmail imapd-ssl: LOGIN, [email protected], ip=[::ffff:127.0.0.1], port=[58620], protocol=IMAP Oct 6 14:47:28 pfmail imapd-ssl: LOGOUT, [email protected], ip=[::ffff:127.0.0.1], headers=0, body=0, rcvd=31, sent=346, time=0, starttls=1 Oct 6 14:47:56 pfmail imapd-ssl: Connection, ip=[::ffff:127.0.0.1] Oct 6 14:47:56 pfmail imapd-ssl: LOGIN, [email protected], ip=[::ffff:127.0.0.1], port=[58621], protocol=IMAP Oct 6 14:47:56 pfmail imapd-ssl: LOGOUT, [email protected], ip=[::ffff:127.0.0.1], headers=0, body=0, rcvd=31, sent=358, time=0, starttls=1 Oct 6 14:48:28 pfmail imapd-ssl: Connection, ip=[::ffff:127.0.0.1] Oct 6 14:48:28 pfmail imapd-ssl: LOGIN, [email protected], ip=[::ffff:127.0.0.1], port=[38631], protocol=IMAP Oct 6 14:48:28 pfmail imapd-ssl: LOGOUT, [email protected], ip=[::ffff:127.0.0.1], headers=0, body=0, rcvd=31, sent=346, time=0, starttls=1
it's quite long but below's how it looks: Code: # See /usr/share/postfix/main.cf.dist for a commented, more complete version # Debian specific: Specifying a file name will cause the first # line of that file to be used as the name. The Debian default # is /etc/mailname. #myorigin = /etc/mailname smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU) biff = no # appending .domain is the MUA's job. append_dot_mydomain = no # Uncomment the next line to generate "delayed mail" warnings #delay_warning_time = 4h readme_directory = /usr/share/doc/postfix # TLS parameters smtpd_tls_cert_file = /etc/postfix/smtpd.cert smtpd_tls_key_file = /etc/postfix/smtpd.key smtpd_use_tls = yes smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache # See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for # information on enabling SSL in the smtp client. myhostname = pfmail.fithanu.vn alias_maps = hash:/etc/aliases alias_database = hash:/etc/aliases myorigin = /etc/mailname mydestination = server1.fithanu.vn, localhost, localhost.localdomain relayhost = mynetworks = 127.0.0.0/8 mailbox_command = procmail -a "$EXTENSION" mailbox_size_limit = 0 recipient_delimiter = + inet_interfaces = all relay_domains = fithanu.vn, fit.vn html_directory = /usr/share/doc/postfix/html inet_protocols = all message_size_limit = 30720000 virtual_alias_domains = virtual_alias_maps = proxy:mysql:/etc/postfix/mysql-virtual_forwardings.cf, mysql:/etc/postfix/mysql-virtual_email2email.cf virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql-virtual_domains.cf virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailboxes.cf virtual_mailbox_base = /home/vmail virtual_uid_maps = static:5000 virtual_gid_maps = static:5000 smtpd_sasl_auth_enable = yes broken_sasl_auth_clients = yes smtpd_sasl_authenticated_header = yes smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination transport_maps = proxy:mysql:/etc/postfix/mysql-virtual_transports.cf virtual_create_maildirsize = yes virtual_maildir_extended = yes virtual_mailbox_limit_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailbox_limit_maps.cf virtual_mailbox_limit_override = yes virtual_maildir_limit_message = "The user you are trying to reach is over quota." virtual_overquota_bounce = yes proxy_read_maps = $local_recipient_maps $mydestination $virtual_alias_maps $virtual_alias_domains $virtual_mailbox_maps $virtual_mailbox_domains $relay_recipient_maps $relay_domains $canonical_maps $sender_canonical_maps $recipient_canonical_maps $relocated_maps $transport_maps $mynetworks $virtual_mailbox_limit_maps content_filter = amavis:[127.0.0.1]:10024 receive_override_options = no_address_mappings
well, nothing different in the header, no sign of SA Code: Return-Path: <[email protected]> X-Original-To: [email protected] Delivered-To: [email protected] Received: from localhost (localhost [127.0.0.1]) by pfmail.fithanu.vn (Postfix) with ESMTP id DD16292C9A for <[email protected]>; Thu, 8 Oct 2009 05:23:47 -0400 (EDT) X-Virus-Scanned: Debian amavisd-new at pfmail.fithanu.vn Received: from pfmail.fithanu.vn ([127.0.0.1]) by localhost (pfmail.fithanu.vn [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id hsjb37Mt-Dh6 for <[email protected]>; Thu, 8 Oct 2009 05:23:27 -0400 (EDT) Received: from postfix (localhost [127.0.0.1]) by pfmail.fithanu.vn (Postfix) with ESMTPS id 3E28392619 for <[email protected]>; Thu, 8 Oct 2009 05:23:25 -0400 (EDT) MIME-Version: 1.0 Date: Thu, 08 Oct 2009 05:23:23 -0400 From: <[email protected]> To: Minhfk <[email protected]> Subject: hello world Message-ID: <6130c09c6330d7761cf66de1ae336798@localhost> X-Sender: [email protected] User-Agent: RoundCube Webmail/0.3-stable Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8
yeah, they're relly gone. but I still don't see any sign of spamassassing being involved in the content filtering, while clamav is. so the amavis will pipe messages thru port 10024 so that they can be scanned for virus and spam by clamav and SA, right? i don't know why only clamav works here by the way, what is the meaning of these command, added to master.cf file in the step 2 Code: amavis unix - - - - 2 smtp -o smtp_data_done_timeout=1200 -o smtp_send_xforward_command=yes 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
this is my latest mail log, after i restarted the entire system: Code: Oct 9 09:52:04 pfmail authdaemond: stopping authdaemond children Oct 9 09:52:05 pfmail postfix/master[23836]: terminating on signal 15 Oct 9 09:52:27 pfmail postfix/postfix-script[28144]: fatal: the Postfix mail system is not running Oct 9 09:53:27 pfmail postfix/postfix-script[2063]: fatal: the Postfix mail system is not running Oct 9 09:53:36 pfmail amavis[2108]: starting. /usr/sbin/amavisd-new at pfmail.fithanu.vn amavisd-new-2.6.1 (20080629), Unicode aware Oct 9 09:53:36 pfmail amavis[2108]: Perl version 5.010000 Oct 9 09:53:40 pfmail amavis[2113]: Net::Server: Group Not Defined. Defaulting to EGID '119 119' Oct 9 09:53:40 pfmail amavis[2113]: Net::Server: User Not Defined. Defaulting to EUID '111' Oct 9 09:53:40 pfmail amavis[2113]: Module Amavis::Conf 2.103 Oct 9 09:53:40 pfmail amavis[2113]: Module Archive::Zip 1.18 Oct 9 09:53:40 pfmail amavis[2113]: Module BerkeleyDB 0.34 Oct 9 09:53:40 pfmail amavis[2113]: Module Compress::Zlib 2.012 Oct 9 09:53:40 pfmail amavis[2113]: Module Convert::TNEF 0.17 Oct 9 09:53:40 pfmail amavis[2113]: Module Convert::UUlib 1.11 Oct 9 09:53:40 pfmail amavis[2113]: Module DBD::mysql 4.007 Oct 9 09:53:40 pfmail amavis[2113]: Module DBI 1.605 Oct 9 09:53:40 pfmail amavis[2113]: Module DB_File 1.816_1 Oct 9 09:53:40 pfmail amavis[2113]: Module Digest::MD5 2.36_01 Oct 9 09:53:40 pfmail amavis[2113]: Module Digest::SHA 5.45 Oct 9 09:53:40 pfmail amavis[2113]: Module Digest::SHA1 2.11 Oct 9 09:53:40 pfmail amavis[2113]: Module IO::Socket::INET6 2.54 Oct 9 09:53:40 pfmail amavis[2113]: Module MIME::Entity 5.427 Oct 9 09:53:40 pfmail amavis[2113]: Module MIME::Parser 5.427 Oct 9 09:53:40 pfmail amavis[2113]: Module MIME::Tools 5.427 Oct 9 09:53:40 pfmail amavis[2113]: Module Mail::Header 2.03 Oct 9 09:53:40 pfmail amavis[2113]: Module Mail::Internet 2.03 Oct 9 09:53:40 pfmail amavis[2113]: Module Mail::SPF v2.005 Oct 9 09:53:40 pfmail amavis[2113]: Module Mail::SpamAssassin 3.002005 Oct 9 09:53:40 pfmail amavis[2113]: Module Net::DNS 0.63 Oct 9 09:53:40 pfmail amavis[2113]: Module Net::Server 0.97 Oct 9 09:53:40 pfmail amavis[2113]: Module NetAddr::IP 4.007 Oct 9 09:53:40 pfmail amavis[2113]: Module Razor2::Client::Version 2.84 Oct 9 09:53:40 pfmail amavis[2113]: Module Socket6 0.20 Oct 9 09:53:40 pfmail amavis[2113]: Module Time::HiRes 1.9711 Oct 9 09:53:40 pfmail amavis[2113]: Module URI 1.35 Oct 9 09:53:40 pfmail amavis[2113]: Module Unix::Syslog 1.1 Oct 9 09:53:40 pfmail amavis[2113]: Amavis::DB code loaded Oct 9 09:53:40 pfmail amavis[2113]: Amavis::Cache code loaded Oct 9 09:53:40 pfmail amavis[2113]: SQL base code NOT loaded Oct 9 09:53:40 pfmail amavis[2113]: SQL::Log code NOT loaded Oct 9 09:53:40 pfmail amavis[2113]: SQL::Quarantine NOT loaded Oct 9 09:53:40 pfmail amavis[2113]: Lookup::SQL code NOT loaded Oct 9 09:53:40 pfmail amavis[2113]: Lookup::LDAP code NOT loaded Oct 9 09:53:40 pfmail amavis[2113]: AM.PDP-in proto code loaded Oct 9 09:53:40 pfmail amavis[2113]: SMTP-in proto code loaded Oct 9 09:53:40 pfmail amavis[2113]: Courier proto code NOT loaded Oct 9 09:53:40 pfmail amavis[2113]: SMTP-out proto code loaded Oct 9 09:53:40 pfmail amavis[2113]: Pipe-out proto code NOT loaded Oct 9 09:53:40 pfmail amavis[2113]: BSMTP-out proto code NOT loaded Oct 9 09:53:40 pfmail amavis[2113]: Local-out proto code loaded Oct 9 09:53:40 pfmail amavis[2113]: OS_Fingerprint code NOT loaded Oct 9 09:53:40 pfmail amavis[2113]: ANTI-VIRUS code loaded Oct 9 09:53:40 pfmail amavis[2113]: ANTI-SPAM code loaded Oct 9 09:53:40 pfmail amavis[2113]: ANTI-SPAM-SA code loaded Oct 9 09:53:40 pfmail amavis[2113]: Unpackers code loaded Oct 9 09:53:40 pfmail amavis[2113]: DKIM code NOT loaded Oct 9 09:53:40 pfmail amavis[2113]: Tools code NOT loaded Oct 9 09:53:40 pfmail amavis[2113]: Found $file at /usr/bin/file Oct 9 09:53:40 pfmail amavis[2113]: No $dspam, not using it Oct 9 09:53:40 pfmail amavis[2113]: No $altermime, not using it Oct 9 09:53:40 pfmail amavis[2113]: Internal decoder for .mail Oct 9 09:53:40 pfmail amavis[2113]: No decoder for .F Oct 9 09:53:40 pfmail amavis[2113]: Found decoder for .Z at /bin/uncompress Oct 9 09:53:40 pfmail amavis[2113]: Internal decoder for .gz Oct 9 09:53:40 pfmail amavis[2113]: Found decoder for .bz2 at /bin/bzip2 -d Oct 9 09:53:40 pfmail amavis[2113]: Found decoder for .lzo at /usr/bin/lzop -d Oct 9 09:53:40 pfmail amavis[2113]: No decoder for .rpm tried: rpm2cpio.pl, rpm2cpio Oct 9 09:53:40 pfmail amavis[2113]: Found decoder for .cpio at /usr/bin/pax Oct 9 09:53:40 pfmail amavis[2113]: Found decoder for .tar at /usr/bin/pax Oct 9 09:53:40 pfmail amavis[2113]: Found decoder for .deb at /usr/bin/ar Oct 9 09:53:40 pfmail amavis[2113]: Internal decoder for .zip Oct 9 09:53:40 pfmail amavis[2113]: No decoder for .7z tried: 7zr, 7za, 7z Oct 9 09:53:40 pfmail amavis[2113]: No decoder for .rar Oct 9 09:53:40 pfmail amavis[2113]: No decoder for .arj tried: arj, unarj Oct 9 09:53:40 pfmail amavis[2113]: Found decoder for .arc at /usr/bin/nomarch Oct 9 09:53:40 pfmail amavis[2113]: Found decoder for .zoo at /usr/bin/zoo Oct 9 09:53:40 pfmail amavis[2113]: No decoder for .lha Oct 9 09:53:40 pfmail amavis[2113]: No decoder for .doc tried: ripole Oct 9 09:53:40 pfmail amavis[2113]: No decoder for .cab tried: cabextract Oct 9 09:53:40 pfmail amavis[2113]: No decoder for .tnef Oct 9 09:53:40 pfmail amavis[2113]: Internal decoder for .tnef Oct 9 09:53:40 pfmail amavis[2113]: No decoder for .exe tried: arj, unarj Oct 9 09:53:40 pfmail amavis[2113]: Using primary internal av scanner code for ClamAV-clamd Oct 9 09:53:40 pfmail amavis[2113]: Using primary internal av scanner code for check-jpeg Oct 9 09:53:40 pfmail amavis[2113]: Found secondary av scanner ClamAV-clamscan at /usr/bin/clamscan Oct 9 09:53:40 pfmail amavis[2113]: Creating db in /var/lib/amavis/db/; BerkeleyDB 0.34, libdb 4.6 Oct 9 09:53:46 pfmail spamd[2248]: logger: removing stderr method Oct 9 09:53:55 pfmail dccproc[2696]: no working DCC servers dcc1.dcc-servers.net dcc2.dcc-servers.net dcc3.dcc-servers.net ... at 127.0.0.1 Oct 9 09:53:56 pfmail spamd[2289]: spamd: server started on port 783/tcp (running version 3.2.5) Oct 9 09:53:56 pfmail spamd[2289]: spamd: server pid: 2289 Oct 9 09:53:56 pfmail spamd[2289]: spamd: server successfully spawned child process, pid 2700 Oct 9 09:53:56 pfmail spamd[2289]: spamd: server successfully spawned child process, pid 2701 Oct 9 09:53:56 pfmail spamd[2289]: prefork: child states: II Oct 9 09:53:57 pfmail authdaemond: modules="authmysql", daemons=5 Oct 9 09:53:57 pfmail authdaemond: Installing libauthmysql Oct 9 09:53:57 pfmail authdaemond: Installation complete: authmysql Oct 9 09:54:04 pfmail postfix/master[2950]: daemon started -- version 2.5.5, configuration /etc/postfix
aww, seems like we get stuck here, a deadlock. maybe i'll try installing the whole system... shouldn't take too much time... thank you falko, you're really enthusiastic. your howtos are still great. thank you very much
i've reinstalled the whole system but there's still no sign of SA working anyone failed to set it work too? or SA doesn't change to header if the email is spam-free (i don't think so)