Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 29th December 2009, 13:03
thavaht thavaht is offline
HowtoForge Supporter
 
Join Date: Apr 2007
Location: Maputo - Mozambique
Posts: 53
Thanks: 7
Thanked 2 Times in 2 Posts
Default Amavis blocking some outgoing mails

I have Amavis, SpamAssassin and ClamAV integrated into Postfix and it seems to work perfectly.

Unfortunately last times one of my system users has his outgoing mails frequently flagged as SPAM, blocked and quarantined.
A recent example follows:
Code:
Return-Path: <alkandiero@ustm.ac.mz>
Delivered-To: spam-quarantine
X-Envelope-From: <alkandiero@ustm.ac.mz>
X-Envelope-To: <epreservations@gmail.com>
X-Envelope-To-Blocked: <epreservations@gmail.com>
X-Quarantine-ID: <xwe2uV0yNMnY>
X-Spam-Flag: YES
X-Spam-Score: 6.605
X-Spam-Level: ******
X-Spam-Status: Yes, score=6.605 tag=2 tag2=6.31 kill=6.31 tests=[AWL=-1.715,
	DCC_CHECK=1.37, DIGEST_MULTIPLE=0.001, HTML_MESSAGE=0.001,
	MIME_HTML_MOSTLY=0.001, PYZOR_CHECK=2.834, RCVD_IN_SORBS_WEB=1.117,
	RCVD_IN_XBL=2.896, RDNS_NONE=0.1]
Received: from mail.ustm.ac.mz ([127.0.0.1])
	by localhost (mail.ustm.ac.mz [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id xwe2uV0yNMnY for <epreservations@gmail.com>;
	Mon, 28 Dec 2009 10:34:36 +0200 (CAT)
Received: from dod061269 (unknown [196.28.239.21])
	by mail.ustm.ac.mz (Postfix) with ESMTP id 10B4E48080
	for <epreservations@gmail.com>; Mon, 28 Dec 2009 10:34:31 +0200 (CAT)
Reply-To: <alkandiero@ustm.ac.mz>
From: "Agrippah Kandiero" <alkandiero@ustm.ac.mz>
To: "'Noleen Massuco'" <epreservations@gmail.com>
Subject: AK Profile 

[...]

MIME-Version: 1.0
Content-Type: multipart/mixed;
	boundary="----=_NextPart_000_004D_01CA87A9.5AE28D60"
X-Mailer: Microsoft Office Outlook 12.0
Thread-Index: AcqHmJNrjOInD+/dTJmv+Pc1kg1Y1g==
Content-Language: en-us
x-cr-hashedpuzzle: CK3A DjgV Es+H E7xC FVio FZr0 FZ17 Fdto Fpr+ G2Pf G2iZ HMRb HaH1 Hxyb IbWZ JVdR
[ ... ]
I have been trying to find solution on spamassassin documentation, but I found it very hard to understand things like changing the rules, kill levels, setting scores, whitelist and so.

Help please interpreting the pieces in the quarantined mail and as well what can I do in this particular case.

TIA,
thavaht
Reply With Quote
Sponsored Links
  #2  
Old 30th December 2009, 14:32
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,711
Thanks: 1,900
Thanked 2,702 Times in 2,545 Posts
Default

What's the value of $mydomain in your amavisd configuration?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 30th December 2009, 15:12
thavaht thavaht is offline
HowtoForge Supporter
 
Join Date: Apr 2007
Location: Maputo - Mozambique
Posts: 53
Thanks: 7
Thanked 2 Times in 2 Posts
Default

Quote:
Originally Posted by falko View Post
What's the value of $mydomain in your amavisd configuration?
Which configuration file contains $mydomain?
Reply With Quote
  #4  
Old 31st December 2009, 13:02
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,711
Thanks: 1,900
Thanked 2,702 Times in 2,545 Posts
Default

Depends on your distribution. If you use Debian or Ubuntu, it's somewhere in the /etc/amavis/conf.d/ directory, otherwise it's probably /etc/amavisd/amavisd.conf or /etc/amavisd.conf.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 4th January 2010, 09:19
thavaht thavaht is offline
HowtoForge Supporter
 
Join Date: Apr 2007
Location: Maputo - Mozambique
Posts: 53
Thanks: 7
Thanked 2 Times in 2 Posts
Default

Im using Debian Lenny and followed the steps on this tutorial and also considered the "amavisd-new, SpamAssassin, And ClamAV" part on this other one.

BTW, I didnt find any reference to $mydomain variable.

Rgds,

thavaht
Reply With Quote
  #6  
Old 5th January 2010, 12:55
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,711
Thanks: 1,900
Thanked 2,702 Times in 2,545 Posts
Default

What's the output of
Code:
cd /etc/amavis/conf.d/
grep -R mydomain *
?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #7  
Old 5th January 2010, 17:28
thavaht thavaht is offline
HowtoForge Supporter
 
Join Date: Apr 2007
Location: Maputo - Mozambique
Posts: 53
Thanks: 7
Thanked 2 Times in 2 Posts
Default

Quote:
Originally Posted by falko View Post
What's the output of
Code:
cd /etc/amavis/conf.d/
grep -R mydomain *
?
Code:
mail:/etc/amavis/conf.d# grep -R mydomain *
05-domain_id:# $mydomain is used just for convenience in the config files and it is not
05-domain_id:chomp($mydomain = `head -n 1 /etc/mailname`);
05-domain_id:# Default local domains to $mydomain and all subdomains.  Remember to
05-domain_id:# override or redefine this if $mydomain is changed later in the config
05-domain_id:@local_domains_acl = ( ".$mydomain" );
20-debian_defaults:$virus_admin = "postmaster\@$mydomain"; # due to D_DISCARD default
20-debian_defaults:$X_HEADER_LINE = "Debian $myproduct_name at $mydomain";
mail:/etc/amavis/conf.d#
Reply With Quote
  #8  
Old 6th January 2010, 13:28
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,711
Thanks: 1,900
Thanked 2,702 Times in 2,545 Posts
Default

What's in /etc/amavis/conf.d/05-domain_id?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #9  
Old 6th January 2010, 14:59
thavaht thavaht is offline
HowtoForge Supporter
 
Join Date: Apr 2007
Location: Maputo - Mozambique
Posts: 53
Thanks: 7
Thanked 2 Times in 2 Posts
Default

mail:~# cat /etc/amavis/conf.d/05-domain_id
use strict;

# $mydomain is used just for convenience in the config files and it is not
# used internally by amavisd-new except in the default X_HEADER_LINE (which
# Debian overrides by default anyway).

chomp($mydomain = `head -n 1 /etc/mailname`);

# amavisd-new needs to know which email domains are to be considered local
# to the administrative domain. Only emails to "local" domains are subject
# to certain functionality, such as the addition of spam tags.
#
# Default local domains to $mydomain and all subdomains. Remember to
# override or redefine this if $mydomain is changed later in the config
# sequence.

@local_domains_acl = ( ".$mydomain" );

1; # ensure a defined return
mail:~#
Reply With Quote
  #10  
Old 7th January 2010, 15:18
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,711
Thanks: 1,900
Thanked 2,702 Times in 2,545 Posts
 
Default

It takes the mydomain value from /etc/mailname. What's in that file?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Postfix smtp_bind_address with amavis... spr Server Operation 0 22nd November 2009 22:58
Outgoing only sendmail with domain key signing vikigoyal Server Operation 2 30th September 2009 13:37
ISPconfig firewall blocking outgoing connections aglenday General 6 2nd August 2009 12:11
outgoing mails - username@example.com kreya Installation/Configuration 2 12th June 2007 12:31
Postifx - moving incoming and outgoing mails to different account webbies Server Operation 2 4th June 2007 09:41


All times are GMT +2. The time now is 08:07.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.