On Sun, Oct 25, 2009 at 02:34:01PM -0700, Davide Libenzi wrote: > On Fri, 23 Oct 2009, Nils Doormann wrote: > > > On Fri, Oct 23, 2009 at 08:56:31AM -0700, Davide Libenzi wrote: > > > On Fri, 23 Oct 2009, Nils Doormann wrote: > > > > > > > Hello list, > > > > > > > > I am using xmail 1.25-4 in conjunction with dovecot-imapd 1:1.2.4-2 and > > > > spamassassin 3.2.5-6. > > > > > > > > The install packages come from Debian squeeze/sid and everything works > > > > fine so far. > > > > > > > > However, I wonder how xmail delivers mail to final Maildirs and how a > > > > different Maildir based on, say as-spam-tagged content, can be selected. > > > > > > > > My intention is to set up sieve for dovecot-imap, but this requires to > > > > modify the local mail delivery agent. This is possible for exim, > > > > postfix and others through their configuration files as mentioned in > > > > http://wiki.dovecot.org/LDA. How can this be achieved in XMail? > > > > > > > > Does xmail use procmail for that? > > > > > > Can you explain better what this alternative delivery method will have to > > > do? > > > > Hi Davide, thanks for your quick reply. > > > > I use sa_filter.pl filter script in filters.in.tab from > > http://www.drakeconsult.com/xmail/ to invoke spamassassin, which modifies > > the mail in the way that it adds an "X-Spam-Flag: YES" header entry in case > > of the message detected as spam. > > > > My intention now is to directly deliver the tagged mails directly to a > > Maildir "subfolder" like > > > > ...spool/xmail/domains/domain.tld/%u/Maildir/Spam > > > > instead of > > > > ...spool/xmail/domains/domain.tld/%u/Maildir > > > > 1. While in postfix for example this can be easily modified through an > > entry its master.cf configuration file I dont know where to configure xmail > > accordingly. > > > > 2. Using dovecot-imapd with sieve mailfilter can handle direct mail > > delivery to other maildir directories than the default of > > .../domains/domain.tld/%u/Maildir, as describerd in > > http://wiki.dovecot.org/LDA/Sieve#SpamAssassin_tagged_mail_filtering . As > > far as I understood this is accomplished by "deliver", a local delivery > > agent that comes with dovecot and runs in place of the lda provided by the > > mta, say postfix's sendmail/procmail or whatever. > > > > 3. For this to set up the program/method for local delivery has to be > > replaced by "deliver" which in turn handles mail filtering through sieve. > > > > Maybe this can be easyer achieved through a filter.in.tab entry and I'm > > thinking too "dovecot"... If so, I havent found a way to do yet. > > > > I hope, I've expressed myself more precisely now :) > > Actually, you may be better off using a "filter" command inside the users > mailproc.tab for that. > Hi Davide,
only for feedback. I solved this for me very easily in modifying the above mentioned sa_filter.pl to let it return a value of 6 (reject mail with sender notification) when detecting spam through spamc. It turned out that spamassassin is doing a very good job at that point which the mail users can rely on. So, for now there's no need to futher collect spam anymore... I meanwhile played a little with a mailproc.tab filter but this could be another issue one day. ;-) Thanks for your help. Regards, Nils
signature.asc
Description: Digital signature
_______________________________________________ xmail mailing list [email protected] http://xmailserver.org/mailman/listinfo/xmail
