Linux - Server This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
12-08-2008, 03:50 PM
#1
Member
Registered: Nov 2003
Location: Northern Utah
Distribution: OpenBSD, Ubuntu, Linux Mint, Knoppix
Posts: 53
Rep:
Amavis is blocking my own e-mails
My Amavis is blocking my outgoing mail:
Code:
Dec 8 10:50:22 mail amavis[8845]: (08845-01) Blocked SPAM,
LOCAL [192.168.0.5] [192.168.0.5]
<emailaddy@example.com> -> <emaildestination@gmail.com>,
quarantine: b/spam-bpn+Pzr3WsMt.gz,
Message-ID: <20081208104955.29781t2w3x4fjqzo@horde.example.com>,
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 192.168.0.5 address? How can I keep that from happening?
These are the only configuration lines I've changed:
Code:
$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:
Code:
@local_domains_acl = qw(.);
$log_level = 1;
$syslog_priority = 'info';
$sa_kill_level_deflt = 8.0;
@local_domains_maps = ( [".$mydomain", "example.com"] );
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?
Thanks!
12-08-2008, 05:01 PM
#2
Guru
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678
Rep:
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
example.com
sender@example.com
[numeric.sender.IP.here]
HTH
Edit - you could PASS it, but I'd up the kill level.
Last edited by billymayday; 12-08-2008 at 05:03 PM .
12-08-2008, 05:19 PM
#3
Member
Registered: Nov 2003
Location: Northern Utah
Distribution: OpenBSD, Ubuntu, Linux Mint, Knoppix
Posts: 53
Original Poster
Rep:
Thanks! That whitelist isn't a bad idea, but I'd like to see if there's another way.
Here's the headers:
Code:
Return-Path: <emailaddy@example.com>
Delivered-To: spam-quarantine
X-Envelope-From: <emailaddy@example.com>
X-Envelope-To: <destinationaddress@gmail.com>
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 ([127.0.0.1])
by localhost (mail.domain.local [127.0.0.1]) (amavisd-new, port 10024)
with ESMTP id bpn+Pzr3WsMt for <destinationaddress@gmail.com>;
Mon, 8 Dec 2008 10:50:19 -0700 (MST)
Received: from 192.168.0.50 (horde.example.com [192.168.0.5])
by mail.example.com (Postfix) with ESMTPA id 8560738372
for <destinationaddress@gmail.com>; Mon, 8 Dec 2008 10:50:19 -0700 (MST)
Received: from ns1.example.com (ns1.example.com
[192.168.0.4]) by horde.example.com (Horde Framework) with HTTP;
Mon, 08 Dec 2008 10:49:55 -0700
Message-ID: <20081208104955.29781t2w3x4fjqzo@horde.example.com>
Date: Mon, 08 Dec 2008 10:49:55 -0700
From: Sean Phelps <emailaddy@example.com>
To: destination@gmail.com
Subject: asdf
MIME-Version: 1.0
Content-Type: text/plain;
charset=ISO-8859-1;
DelSp="Yes";
format="flowed"
Content-Disposition: inline
Content-Transfer-Encoding: 7bit
User-Agent: Dynamic Internet Messaging Program (DIMP) H3 (1.1)
Thread Tools
Search this Thread
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
All times are GMT -5. The time now is 02:10 AM .
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know .
Latest Threads
LQ News