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 25th November 2009, 10:13
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 and mail logs question

Hi,
Im integrating amavis into Postfix on Debian Lenny with system users, without Ispconfig, and it seems to work, but Ive some questions Id like to clarify:
The first question is about /etc/spamassassin/local.cf file
Code:
mail:~# cat /etc/spamassassin/local.cf
[]
#dcc
use_dcc 1
dcc_path /usr/local/bin/dccproc
#dcc_add_header 1
#dcc_dccifd_path /usr/local/bin/dccifd
#dcc_dccifd_path /var/dcc/libexec/dccifd

#pyzor
use_pyzor 1
pyzor_path /usr/bin/pyzor
#pyzor_add_header 1

#razor
use_razor2 1
razor_config /etc/razor/razor-agent.conf
[]
If uncommenting either lines under #dcc or #pyzor spamassassin --lint gives errors. Are those lines no longer needed on Lenny?

Another question is about de mail logs.
When sending mails out I see logs like this:
Code:
mail:~# tail -f /var/log/mail.log
[]
Nov 25 10:15:11 mail postfix/cleanup[7893]: E21F148037: message-id=<307873dfd1982fbecd5d5b56f3407fae.squirrel@www.ustm.mz>
Nov 25 10:15:11 mail postfix/qmgr[2903]: E21F148037: from=<tito@ustm.mz>, size=3591, nrcpt=1 (queue active)
Nov 25 10:15:11 mail postfix/smtpd[7823]: disconnect from localhost.localdomain[127.0.0.1]
Nov 25 10:15:11 mail amavis[7826]: (07826-02) Passed CLEAN, LOCAL [127.0.0.1] [196.28.239.21] <tito@ustm.mz> -> <lucia@gmail.com>, Message-ID: <307873dfd1982fbecd5d5b56f3407fae.squirrel@www.ustm.mz>, mail_id: L3vM+FnbyohV, Hits: -1.179, size: 3136, queued_as: E21F148037, 7086 ms
Nov 25 10:15:15 mail postfix/smtp[7988]: E21F148037: to=<lucia@gmail.com>, relay=gmail-smtp-in.l.google.com[216.239.59.27]:25, delay=3.5, delays=0.01/0.01/2.6/0.84, dsn=2.0.0, status=sent (250 2.0.0 OK 1259136916 m5si12852518gve.27)
Nov 25 10:15:15 mail postfix/qmgr[2903]: E21F148037: removed
[]
When receiving:
Code:
[]
Nov 25 10:25:38 mail postfix/cleanup[8227]: 0664C48037: message-id=<c1d5fbf70911250025q6b727eb3x2a7aee1e32e33944@mail.gmail.com>
Nov 25 10:25:38 mail postfix/qmgr[2903]: 0664C48037: from=<muchanga@gmail.com>, size=13573, nrcpt=1 (queue active)
Nov 25 10:25:38 mail postfix/smtpd[8237]: disconnect from localhost.localdomain[127.0.0.1]
Nov 25 10:25:38 mail postfix/local[8238]: 0664C48037: to=<muchanga@ustm.mz>, relay=local, delay=0.02, delays=0.01/0.01/0/0, dsn=2.0.0, status=sent (delivered to maildir)
Nov 25 10:25:38 mail postfix/qmgr[2903]: 0664C48037: removed

Nov 25 10:25:38 mail amavis[7826]: (07826-06) Passed CLEAN, [209.85.217.223] [209.85.217.223] <muchanga@gmail.com> -> <muchanga@ustm.mz>, Message-ID: <c1d5fbf70911250025q6b727eb3x2a7aee1e32e33944@mail.gmail.com>, mail_id: tk-uc0SXks0l, Hits: 0, size: 13120, queued_as: 0664C48037, 7682 ms
Nov 25 10:25:38 mail postfix/smtp[8232]: 35E3D48036: to=<muchanga@ustm.mz>, relay=127.0.0.1[127.0.0.1]:10024, delay=28, delays=21/0.01/0/7.7, dsn=2.0.0, status=sent (250 2.0.0 Ok, id=07826-06, from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as 0664C48037)
[]
I wonder about the order in which reports about amavis filtering appear. When receiving mails, reports about amavis appear after mail being reported as delivered to maildir. Is that the normal operation?

TIA
thavaht
Reply With Quote
Sponsored Links
  #2  
Old 26th November 2009, 17:05
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

Quote:
Originally Posted by thavaht View Post
If uncommenting either lines under #dcc or #pyzor spamassassin --lint gives errors. Are those lines no longer needed on Lenny?
Correct, these lines aren't needed anymore.
__________________
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
The Following User Says Thank You to falko For This Useful Post:
thavaht (27th November 2009)
  #3  
Old 27th November 2009, 07:32
thavaht thavaht is offline
HowtoForge Supporter
 
Join Date: Apr 2007
Location: Maputo - Mozambique
Posts: 53
Thanks: 7
Thanked 2 Times in 2 Posts
Default

And what about the mail logs? Is it not supposed the order in which the logs follow to reflect the order in which the message is processed?
Reply With Quote
  #4  
Old 28th November 2009, 12:59
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

I guess these are two different mails. The one that is delivered to Maildir has the ID 0664C48037, and the other one that is processed by amavisd has the ID 35E3D48036.
__________________
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 28th November 2009, 16:07
thavaht thavaht is offline
HowtoForge Supporter
 
Join Date: Apr 2007
Location: Maputo - Mozambique
Posts: 53
Thanks: 7
Thanked 2 Times in 2 Posts
 
Default

I made a test sendig (only) one message from muchanga@gmail.com to muchanga@ustm.mz. The message seems to take two different IDs on the same time.
In muchanga@ustm.mz inbox a received only one message. I even checked the message header. The two IDs are there, but this time logs order looks different.
Any way, since I configured Amavis and RBL following your howtos, I stoped receiving Viagra adds. Im still looking to hear from my colleagues that were complaining too much. Tanks for the howtos.


The logs:

Nov 28 16:29:34 mail postfix/cleanup[5474]: 54113EA6E3: message-id=<c1d5fbf70911280629y5971244aw4e7aeed6e19da72@ma il.gmail.com>
Nov 28 16:29:35 mail postfix/qmgr[2909]: 54113EA6E3: from=<muchanga@gmail.com>, size=25555, nrcpt=1 (queue active)
Nov 28 16:29:48 mail postfix/smtpd[5480]: connect from localhost.localdomain[127.0.0.1]
Nov 28 16:29:48 mail postfix/smtpd[5480]: 5806BEA6E4: client=localhost.localdomain[127.0.0.1]
Nov 28 16:29:48 mail postfix/cleanup[5474]: 5806BEA6E4: message-id=<c1d5fbf70911280629y5971244aw4e7aeed6e19da72@ma il.gmail.com>
Nov 28 16:29:48 mail postfix/qmgr[2909]: 5806BEA6E4: from=<muchanga@gmail.com>, size=26008, nrcpt=1 (queue active)
Nov 28 16:29:48 mail postfix/smtpd[5480]: disconnect from localhost.localdomain[127.0.0.1]
Nov 28 16:29:48 mail amavis[1233]: (01233-19) Passed CLEAN, [209.85.210.184] [209.85.210.184] <muchanga@gmail.com> -> <muchanga@ustm.mz>, Message-ID: <c1d5fbf70911280629y5971244aw4e7aeed6e19da72@mail. gmail.com>, mail_id: euvuBWpEBpSK, Hits: 0, size: 25555, queued_as: 5806BEA6E4, 12644 ms
Nov 28 16:29:48 mail postfix/local[5481]: 5806BEA6E4: to=<muchanga@ustm.mz>, relay=local, delay=0.03, delays=0.01/0.01/0/0.01, dsn=2.0.0, status=sent (delivered to maildir)
Nov 28 16:29:48 mail postfix/qmgr[2909]: 5806BEA6E4: removed
Nov 28 16:29:48 mail postfix/smtp[5475]: 54113EA6E3: to=<muchanga@ustm.mz>, relay=127.0.0.1[127.0.0.1]:10024, delay=37, delays=24/0.01/0/13, dsn=2.0.0, status=sent (250 2.0.0 Ok, id=01233-19, from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as 5806BEA6E4)
Nov 28 16:29:48 mail postfix/qmgr[2909]: 54113EA6E3: removed
Nov 28 16:30:06 mail postfix/smtpd[5471]: disconnect from mail-yx0-f184.google.com[209.85.210.184]


The message header:

Return-Path: <muchanga@gmail.com>
X-Original-To: muchanga@ustm.mz
Delivered-To: muchanga@ustm.mz
Received: from localhost (localhost.localdomain [127.0.0.1])
by mail.ustm.mz (Postfix) with ESMTP id 5806BEA6E4
for <muchanga@ustm.mz>; Sat, 28 Nov 2009 16:29:48 +0200 (CAT)
X-Virus-Scanned: Debian amavisd-new at ustm.mz
Received: from mail.ustm.mz ([127.0.0.1])
by localhost (mail.ustm.mz [127.0.0.1]) (amavisd-new, port 10024)
with ESMTP id euvuBWpEBpSK for <muchanga@ustm.mz>;
Sat, 28 Nov 2009 16:29:35 +0200 (CAT)
Received: from mail-yx0-f184.google.com (mail-yx0-f184.google.com [209.85.210.184])
by mail.ustm.mz (Postfix) with ESMTP id 54113EA6E3
for <muchanga@ustm.mz>; Sat, 28 Nov 2009 16:29:11 +0200 (CAT)
Received: by yxe14 with SMTP id 14so1903621yxe.7
for <muchanga@ustm.mz>; Sat, 28 Nov 2009 06:29:16 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=gamma;
h=domainkey-signature:mime-version:received:in-reply-to:references
:date:message-id:subject:from:to:content-type;
bh=/7Q0t7DpCIlKfgRU/YgL+BYViwvZBIMU2iPMc4/JD/M=;
b=NwDCSeFChYtAY7ChyBGQ09eu077haUBGFJ3Qv86v6YxTkCE4 8ap2k0BxTFq6dvAhA2
63Tv4DAhPXFYms0JDaKxITGw+YWe79f+Iq+wLCs+rrsFyC0Hlq ENK7QjYKocWt2qVHAb
CkpDP/Gcy/3qJDs6kH77H4teeC+JvHgEgkaR4=
DomainKey-Signature: a=rsa-sha1; c=nofws;
d=gmail.com; s=gamma;
h=mime-version:in-reply-to:references:date:message-id:subject:from:to
:content-type;
b=cWQ9kQ4nZYNZfvAy3hKaPt4+o0YRqFrFssevVfloBl+eawyL VMKoQo31gfW86UA512
CmK2elSOZEK4qyvgov3jFPiVMfIKo9HwSjuCEybMDPAvHx/6+adAuAOkftNk2J37QMeC
CLX0pVMpZRDK395VtflEm+0j5roS4DRPKs6mE=
MIME-Version: 1.0
Received: by 10.101.213.35 with SMTP id p35mr950144anq.72.1259418556388; Sat,
28 Nov 2009 06:29:16 -0800 (PST)
In-Reply-To: <4116479.1248966877713.JavaMail.developer@mcel_bil l_mon>
References: <4116479.1248966877713.JavaMail.developer@mcel_bil l_mon>
Date: Sat, 28 Nov 2009 16:29:16 +0200
Message-ID: <c1d5fbf70911280629y5971244aw4e7aeed6e19da72@mail. gmail.com>
Subject: Invoice for 16/07/2009
From: =?ISO-8859-1?Q?Aleixo_Sim=E3o_Muchanga?= <muchanga@gmail.com>
To: muchanga@ustm.mz
Content-Type: multipart/mixed; boundary=001636c92b3aad595604796f3b72
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 problem and few questions Gimly Installation/Configuration 12 7th July 2009 16:27
just the last step...and it works. Postfix...need help config. ubuntusr Installation/Configuration 1 5th January 2009 09:50
Postfix & mail forwarding loop varnik Server Operation 21 9th December 2008 15:13
the problem about clamav-new and amavis wonhow Server Operation 2 5th September 2008 03:38
Filtering emails using Spamassassin and Clamav for Exchange 2000 Server Rocky Server Operation 19 11th March 2008 08:27


All times are GMT +2. The time now is 02:09.


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