Re: procmail revisited
On Mon, 2003-02-10 at 12:31, Louis LeBlanc wrote: > Just a couple questions, you call procmail from sendmail using the $h, > $f, and $u variables. I understand $u is the logname, or username, > and $h is the plussed address extension, but what is $f? I've looked > for some explanation of these variables in the sendmail docs, but > can't find it. $f is the envelope sender (from) address. I'm just using the default procmail settings, from cf/README > Also, are you able to use user specific spamassassin settings? This Yes. User configs work fine. The files under /etc/mail/spamassassin/ are still used, then the user configs are applied. I'm not a sendmail guru, but I think that procmail is run suid from sendmail when it's used as the local delivery agent. > recipient, but SA still uses the global configs and whitelists - which > I really want to eliminate in favor of a ~/.spamassassin/ config for > each user. That sounds like the correct behavior. All the default rules are stored in one location, then user specific changes in ~/.spamassassin. Get rid of the global configs if you don't want them to do anything. -B -- Brandon High [EMAIL PROTECTED] Epinions, Inc. Unix System Administrator Character is what you are. Reputation is what people think you are.
Re: procmail revisited
On Sat, 2003-02-08 at 21:21, Louis LeBlanc wrote: > Anyway, I have procmail being called from sendmail using the > following: > > define(`CYRUS_MAILER_FLAGS',`SA5@|:/w') > define(`CYRUS_MAILER_PATH',`/usr/local/bin/procmail') > define(`CYRUS_MAILER_USER',`cyrus:mail') > > define(`CYRUS_MAILER_ARGS',`procmail -Y -m /etc/procmailrc $u $h') > define(`CYRUS_MAILER_MAX',`eval(5*1024*1024)') I'm using sendmail -> procmail -> SpamAssassin -> deliver as well... I set up sendmail with the following: define(`LOCAL_MAILER_FLAGS',`SPhnu9') define(`LOCAL_MAILER_ARGS',`procmail -Y -m $h $f $u') FEATURE(local_procmail,/usr/local/bin/procmail) In other words, sendmail doesn't know a thing about Cyrus. It just uses procmail for local delivery. My /etc/procmailrc contains: DROPPRIVS=1 COMSAT=no PATH=/usr/local/bin:/tools/bin:$PATH SHELL=/bin/bash DELIVER="/usr/cyrus/bin/deliver -e -a $LOGNAME -m user.$LOGNAME" DEFAULT="$DELIVER" :0 fhw | formail -I 'From ' :0fw: /tmp/${LOGNAME}spamassassin.lock * < 256000 | spamc :0w | $DELIVER -B -- Brandon High [EMAIL PROTECTED] Epinions, Inc. Unix System Administrator Caffeine: It's not just a chemical, it's a way of life.
Re: Move Emails From a unix format to cyrus
On Thu, 2003-02-06 at 18:11, test s wrote: > Hi, > Does anyone know how to Move Emails From a unix format which is on server A > to cyrus which is on server B We migrated from WU-imapd to Cyrus last year... The easiest way is to pipe the mail into deliver. It takes a little custom shell/perl scripting, but nothing too tricky. -B -- Brandon High [EMAIL PROTECTED] Epinions, Inc. Unix System Administrator Better to understand a little than to misunderstand a lot.
ctl_deliver not finishing
I'm having a bit of a problem on our IMAP server. There are several instances of ctl_deliver, some running for over 2 days. # ps -ef|grep deliver cyrus 331 303 27 Jan 29 ? 2671:33 ctl_deliver -E 3 cyrus 6736 303 26 12:48:32 ? 112:04 ctl_deliver -E 3 cyrus 2647 303 27 Jan 30 ? 1281:16 ctl_deliver -E 3 Looking at /var/adm/messages, process 331 generated the following error: Jan 29 12:48:40 ix ctl_deliver[331]: DBERROR db4: DB_ENV->log_flush: LSN past current end-of-log The system is Solaris 5.7, cyrus-imapd-2.1.5, cyrus-sasl-2.1.5, db-4.0.14 Any idea on recovering the problem gracefully? What might be causing it, and any fixes? Thanks -B -- Brandon High [EMAIL PROTECTED] Epinions, Inc. Unix System Administrator He who laughs last thinks slowest.