> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:amavis-user-
> [EMAIL PROTECTED] On Behalf Of Mark Martinec
> Sent: Thursday, December 14, 2006 5:45 PM
> To: amavis-user@lists.sourceforge.net
> Subject: Re: [AMaViS-user] time gap between amavis and postfix/smtp in
> thelogs?
> 
> Leon,
> 
> > 1) What's the meaning of these lines "do_notify_and_quarantine:
> > rec_ccat=(1,0), ccat=(1,1) [EMAIL PROTECTED]" ?
> 
> It comes from:
> 
>     do_log(2,"do_notify_and_quarantine: rec_ccat=(%d,%d), ccat=(%d,%s),
> %s",
>            $rec_ccat, $rec_ccat_min, $ccat, $ccat_min, $rec)
>            if $rec_ccat != $ccat || $rec_ccat_min != $ccat_min;
> 
> The rec_ccat is a by-recipient contents category (major and minor),
> in this case 1=CC_CLEAN, with minor category 0, i.e. nothing noteworthy.
> 
> The ccat in this log message is a by-message contents category
> (major,minor),
> which somehow summarizes by-recipient c.categories for each recipient of a
> multi-recipient message. The log entry appears when not all recipients
> agree on their verdict. In this case ccat=(1,1) means CC_CLEAN, with minor
> c.category 1, which happens when at least one recipient hit his tag level.
> 
> In other words, message was clean for all recipients, but at least one
> (and not all) recipient ([EMAIL PROTECTED]) didn't have a score above
> his tag level.
> 

OK, Thanks.
> > 2) As I see it:
> > When amavis at 16:32:27 sending the mail (12137-03) back to postfix
> > (id=12137-03), postfix/smtp queue it as 252431BA8F at 14:32:27,
> 
> Yes.
> 
> > Then it sends the message with pipe transport (at least this is
> > how I understand this) at 16:32:28
> 
> Yes, to your cyrus.
> 
> > Why there is two hour gap (14:32 and 16:32) in between amavis and
> > postfix/smtp transport (cause I can see that postfix/pipe is showing
> right
> > time in the logs)?
> 
> Looks like a discrepancy in time zone.
> Perhaps your postfix/smtp service is running chrooted,
> and you have not correctly set up a chroot jail
> regarding time zones.
> 

I've suspected that there is something connected to timezone, but had no
clue what exactly, and by the way my postfix is not chrooted.

Googled one more time and fount the solution I'd like to share.

Taken form here: http://www.afp548.com/article.php?story=20041004001014397

The problem is that Postfix doesn't know what timezone you are in. It's
compounded by the fact that Postfix, for security reasons, doesn't want to
read things outside of it's directory. However you can fix this by copying
the timezone files to a directory in /var/spool/postfix/

cd /var/spool/postfix/
mkdir etc 

cp -p /etc/localtime /var/spool/postfix/etc/
 
postfix check
postfix reload


I've made a test and I can see now that there is no time gap now in the log.

>   Mark
> 
> 

Leon



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
AMaViS-user mailing list
AMaViS-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/

Reply via email to