On 03/02/2012 04:47 PM, Casey Price wrote:
Eric - do we have any plans to be using supervise and
multilog/daemontools log format for dovecot in the future? It sure is
nice when all (or at least many) of your components are using the same
logging mechanism/format, and storing them in a standardized location.

No. In fact, I expect QMT will be migrating to systemd and rsyslog at some point in the future. I think it'll be best in the long run if we use dovecot in the same way as it's packaged for the distro, in this case using init scripts and syslog.

Note, dovecot is very sensitive to time. This can be a little problematic on VMs, as timekeeping is trickier there. A simple solution is to run this script as a cron job every minute or so:
service dovecot status >/dev/null 2>&1 || \
service dovecot start  >/dev/null 2>&1

Not to get too far off track here, but while we are on the topic of
dovecot...has anyone had any experience setting up shared/public
namespaces in dovecot for global spam/ham folders?

I do that. Here's part of the dovecot config:
# This namespace can be used for people to dump their spam/ham into.
# A cron job can then use them as input to sa-learn.
# See qmailtoaster-plus for a sample script.
namespace {
  location = maildir:/home/vpopmail/domains/mydomain.com/sa-learn
  prefix = sa-learn.
  separator = .
  type = public
}

I'm trying to figure
out the best way to train spamassassin, and the issue at hand is that
the mailboxes are actually stored on a separate QMT machine, and my SA
boxes simply do the scanning/filtering before passing the mail to the
next hop using smtproutes. Just fishing for some ideas.

The sa-learn program updates the bayes database, using the shared mailboxes as input. Exporting the shared mailboxes via nfs seems suitable to me.

I think the trickier part is having multiple scanners. You'll need some way of replicating the bayes databases between the two. I don't know if a bayes database can be shared at all.

--
-Eric 'shubes'


---------------------------------------------------------------------------------
Qmailtoaster is sponsored by Vickers Consulting Group 
(www.vickersconsulting.com)
   Vickers Consulting Group offers Qmailtoaster support and installations.
     If you need professional help with your setup, contact them today!
---------------------------------------------------------------------------------
    Please visit qmailtoaster.com for the latest news, updates, and packages.
To unsubscribe, e-mail: [email protected]
    For additional commands, e-mail: [email protected]


Reply via email to