amavis-user October 2010 archive
Main Archive Page > Month Archives  > amavis-user archives
amavis-user: Re: [AMaViS-user] %q in template

Re: [AMaViS-user] %q in template

From: Mark Martinec <Mark.Martinec+amavis_at_nospam>
Date: Tue Oct 12 2010 - 13:46:04 GMT
To: amavis-user@lists.sourceforge.net

Quanah,

> I have virus quarantine enabled on two systems, which have identical
> configurations, but they generate significantly different %q values.

The %q macro identifies the location of a quarantined mail.
Its semantics depend on the quarantine method. In case of
quarantining to file it is a file name. When quarantining to a
mailbox it shows the mailbox e-mail address. On quarantining to sql
it shows mail_id, prepended by a partition id in square brackets.

The quarantine location is normally derived from *_quarantine_to_maps
(a list of per-recipient lookup tables, either static or SQL or LDAP),
unless a quarantine method provides a hard-wired location name
(such as in the case of SQL quarantining).

> The system where quarantine works, generates it in the form of:
> virus-quarantine.e88otn4ql@qa16.lab.zimbra.com
> The system where it does not work, generates it in the form of:
> virus-LiJQvMaTPwkW
> [...]
> In the working case, we can find the quarantined item. In the non working
> case, it does not exist in the specified mailbox.
>
> Also of note, in the working case, the quarantine value is the same as what
> is set as "$virus_quarantine_to" in amavisd.conf.
 
> Oddly, restarting amavis fixed things.

I'm glad.

  Mark

------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3.
Spend less time writing and rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
_______________________________________________
AMaViS-user mailing list
AMaViS-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user
 Please visit http://www.ijs.si/software/amavisd/ regularly
 For administrativa requests please send email to rainer at openantivirus dot org