[Dovecot] global sieve script

2007-10-07 Thread Jorge Salamero Sanz

hi all,

i'm moving from a maildrop+courier setup to lda(sieve)+dovecot setup.

with maildrop i had a global filter for all the users, so i could filter and 
archive into the spam folder spam tagged emails for users without custom 
filters, including them if they exist:

LOGNAME=tolower($LOGNAME)

`test -e $LOGNAME`
if ( $RETURNCODE != 0 )
{
   `maildirmake $LOGNAME`
   `maildirmake $LOGNAME/._spam`
}

`test -f $LOGNAME/mailfilter`
if ( $RETURNCODE == 0 )
{
include $LOGNAME/mailfilter
}

if ( /^X-Spam-Status: YES */)
{
to $LOGNAME/._spam
}
else
{
to $LOGNAME/
}

how could i get this behaviour with dovecot lda and sieve ?

thanks !


[Dovecot] Migration Issues UW-POP3

2007-10-07 Thread Albert E. Whale
I am migrating from UW's POP3 server (mbox), to Dovecote (mbox - maildir).

Anyway, I am concerned about the Logging details offered by Dovecot, as
I manage several details from the logging information provided by UW's
Syslog information.  Here's a sample of the UW information:

Oct  7 22:08:39 ns6 ipop3d[15432]: pop3 service init from 66.207.133.233
Oct  7 22:08:39 ns6 ipop3d[15432]: Auth user=aewhale
host=ns.ABS-CompTech.com [66.207.133.233] nmsgs=0/0
Oct  7 22:08:39 ns6 ipop3d[15432]: Logout user=aewhale
host=ns.ABS-CompTech.com [66.207.133.233] nmsgs=0 ndele=0

The first time I connected to the server to test the information, I got
the following:

Oct  7 20:22:17 ns6 dovecot: Dovecot v1.0.rc26 starting up
Oct  7 20:22:37 ns6 dovecot: pop3-login: Login: user=aewhale,
method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured
Oct  7 20:23:44 ns6 dovecot: POP3(aewhale): Disconnected: Logged out
top=0/0, retr=0/0, del=0/800,size=1576887

None of the other connections reported information about the mailbox or
the connections.  Here is what I see:

Oct  7 20:39:14 ns6 dovecot: pop3-login: Disconnected: method=PLAIN,
rip=66.207.133.233, lip=66.207.133.228
Oct  7 20:59:42 ns6 dovecot: pop3-login: Disconnected: method=LOGIN,
rip=71.162.15.2, lip=66.207.133.228
Oct  7 21:39:12 ns6 dovecot: pop3-login: Disconnected: method=LOGIN,
rip=66.207.133.233, lip=66.207.133.228
Oct  7 21:39:42 ns6 dovecot: pop3-login: Disconnected: method=LOGIN,
rip=71.162.15.2, lip=66.207.133.228

I never see the POP3 or Login messages any more.  Can someone tell me
why?  Is this not correctly working on my server yet?
-- 
Albert E. Whale, CHS CISA CISSP
Sr. Security, Network, Risk Assessment and Systems Consultant

ABS Computer Technology, Inc. http://www.ABS-CompTech.com - Email,
Internet and Security Consultants
SPAMZapper http://www.Spam-Zapper.com - No-JunkMail.com
http://www.No-JunkMail.com - *True Spam Elimination*.