Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 12-08-2008, 03:50 PM   #1
Registered: Nov 2003
Location: Seattle
Distribution: OpenBSD, Ubuntu
Posts: 60

Rep: Reputation: 16
Amavis is blocking my own e-mails

My Amavis is blocking my outgoing mail:

Dec  8 10:50:22 mail amavis[8845]: (08845-01) Blocked SPAM, 
LOCAL [] [] 
<> -> <>, 
quarantine: b/spam-bpn+Pzr3WsMt.gz, 
Message-ID: <>,
mail_id: bpn+Pzr3WsMt, Hits: 9.254, size: 959, 3071 ms
Obviously, to prevent real spam I've obfuscated the real e-mail addresses.

Why is this happening? I'm guess it has something to do with the address? How can I keep that from happening?

These are the only configuration lines I've changed:
$final_virus_destiny      = D_DISCARD;  # (data not lost, see virus quarantine)
$final_banned_destiny     = D_DISCARD;   # D_REJECT when front-end MTA
$final_spam_destiny       = D_DISCARD;
$final_bad_header_destiny = D_PASS;     # False-positive prone (for spam)
and in the 50-user file:
@local_domains_acl = qw(.); 
$log_level = 1; 
$syslog_priority = 'info'; 
$sa_kill_level_deflt = 8.0; 
@local_domains_maps = ( [".$mydomain", ""] );
One more question: if I wanted spam to be sent to the user but just tagged as spam, would I just change $final_spam_destiny to D_PASS?

Old 12-08-2008, 05:01 PM   #2
LQ Guru
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
To work out what is triggering amavis, you should post the headers from the email that will have the spamassassin tests that are being hit.

Easiest way to stop amavis from checking outgoing mail is to whitelist it, something like

read_hash(\%whitelist_sender, '/var/amavis/whitelist');

in amavisd.conf, then the file itself is just lines like


Edit - you could PASS it, but I'd up the kill level.

Last edited by billymayday; 12-08-2008 at 05:03 PM.
Old 12-08-2008, 05:19 PM   #3
Registered: Nov 2003
Location: Seattle
Distribution: OpenBSD, Ubuntu
Posts: 60

Original Poster
Rep: Reputation: 16
Thanks! That whitelist isn't a bad idea, but I'd like to see if there's another way.

Here's the headers:
Return-Path: <>
Delivered-To: spam-quarantine
X-Envelope-From: <>
X-Envelope-To: <>
X-Quarantine-ID: <bpn+Pzr3WsMt>
X-Spam-Flag: YES
X-Spam-Score: 9.254
X-Spam-Level: *********
X-Spam-Status: Yes, score=9.254 tag=2 tag2=6.31 kill=8
        tests=[ALL_TRUSTED=-1.44, PYZOR_CHECK=2.834, TVD_RCVD_IP=1.617,
        TVD_RCVD_IP4=3.344, TVD_SPACE_RATIO=2.899]
Received: from mail.domain.local ([])
        by localhost (mail.domain.local []) (amavisd-new, port 10024)
        with ESMTP id bpn+Pzr3WsMt for <>;
        Mon,  8 Dec 2008 10:50:19 -0700 (MST)
Received: from ( [])
        by (Postfix) with ESMTPA id 8560738372
        for <>; Mon,  8 Dec 2008 10:50:19 -0700 (MST)
Received: from (
        []) by (Horde Framework) with HTTP;
        Mon, 08 Dec 2008 10:49:55 -0700
Message-ID: <>
Date: Mon, 08 Dec 2008 10:49:55 -0700
From: Sean Phelps <>
Subject: asdf
MIME-Version: 1.0
Content-Type: text/plain;
Content-Disposition: inline
Content-Transfer-Encoding: 7bit
User-Agent: Dynamic Internet Messaging Program (DIMP) H3 (1.1)



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
AMAVIS: filter mails with certain characters t0bias Linux - Server 2 10-27-2008 05:44 AM
Blocking mails from specific email addresses/domains in postfix jomy Linux - Networking 1 07-15-2008 08:32 PM
Banned mails by amavis because of decipherable content hypernetics Linux - Software 2 02-14-2008 01:35 PM
Amavis "makes SPAM" of my Mails liqui Linux - Software 1 12-02-2005 03:44 AM
Blocking JUnk Mails in postfix jomy Linux - Networking 1 12-29-2004 12:07 PM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 06:54 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration