Re: [Dovecot] Dovecot + Sieve - and passdb/userdb

2007-09-08 Thread Timo Sirainen
On Fri, 2007-09-07 at 12:26 -0700, Daniel L. Miller wrote:
> > If I were you, I'd make home and mail point to a different
> directory,
> > which could be as simple as home=/var/mail/%d/%n
> > mail=/var/mail/%d/%n/Maildir. This way, dovecot will only look for mail
> > in the $HOME/Maildir, but still can do administrative stuff in $HOME.
> >   
> What "administrative stuff"?

Currently sieve scripts, in future possibly some other files. Don't
think "home" as a traditional user's home directory, but rather as a
directory where Dovecot can safely create whatever files it wants
without having them show up as mailboxes to user.



signature.asc
Description: This is a digitally signed message part


Re: [Dovecot] Dovecot + Sieve - and passdb/userdb

2007-09-08 Thread Nils Vogels
On Fri, Sep 07, 2007 at 12:26:28PM -0700, Daniel L. Miller (DLM) wrote:
DLM> Nils Vogels wrote:
DLM> >Everything that would for some reason go into the users homedir, you
DLM> >would be able to reach via Imap.
DLM> >
DLM> >If I were you, I'd make home and mail point to a different directory,
DLM> >which could be as simple as home=/var/mail/%d/%n
DLM> >mail=/var/mail/%d/%n/Maildir. This way, dovecot will only look for mail
DLM> >in the $HOME/Maildir, but still can do administrative stuff in $HOME.
DLM> >
DLM> What "administrative stuff"?  These directories are used exclusively for 
mail - if any user actually has a local 
DLM> account their home folders are located under "/home" - but I don't want 
that mixed with mail service at all.

Administrative stuff such as sieve filters, possible error logs, textfiles
that are used by other plugins such as vacation (lda-dupes), etc, etc.

This way you won't be able to see those in your subscribe list, which is a
good thing since they aren't mailboxes/dirs :)

Gr,

Nils
-- 
Simple guidelines to happiness:
Work like you don't need the money,
love like your heart has never been broken and 
dance like no one can see you.


pgpbWPK3RPLFs.pgp
Description: PGP signature


Re: [Dovecot] Dovecot + Sieve - and passdb/userdb

2007-09-08 Thread Daniel L. Miller

Nils Vogels wrote:

Daniel L. Miller wrote on 7-9-2007 2:24:
  

userdb static {
   args = uid=5000 gid=8 home=/var/mail/%d/%n mail=/var/mail/%d/%n
allow_all_users=yes
 }
 plugin {
   sieve = sieve
 }

Deliver + sieve is working great.  By setting the sieve variable to
"sieve", a non-hidden file, it doesn't appear in the folder list.  I
made a similar change to pysieved to use a non-hidden folder - in
combination with avelsieve and squirrelmail I now have a
user-maintainable server-side filter solution.  Awesome!

Is there a hidden "gotcha" I'm missing here?  It's doing exactly what
I want!


Everything that would for some reason go into the users homedir, you
would be able to reach via Imap.

If I were you, I'd make home and mail point to a different directory,
which could be as simple as home=/var/mail/%d/%n
mail=/var/mail/%d/%n/Maildir. This way, dovecot will only look for mail
in the $HOME/Maildir, but still can do administrative stuff in $HOME.

Grts,

Nils
  
What "administrative stuff"?  These directories are used exclusively for 
mail - if any user actually has a local account their home folders are 
located under "/home" - but I don't want that mixed with mail service at 
all.


--
Daniel


Re: [Dovecot] Dovecot + Sieve - and passdb/userdb

2007-09-07 Thread Nils Vogels
Daniel L. Miller wrote on 7-9-2007 2:24:
> userdb static {
>args = uid=5000 gid=8 home=/var/mail/%d/%n mail=/var/mail/%d/%n
> allow_all_users=yes
>  }
>  plugin {
>sieve = sieve
>  }
>
> Deliver + sieve is working great.  By setting the sieve variable to
> "sieve", a non-hidden file, it doesn't appear in the folder list.  I
> made a similar change to pysieved to use a non-hidden folder - in
> combination with avelsieve and squirrelmail I now have a
> user-maintainable server-side filter solution.  Awesome!
>
> Is there a hidden "gotcha" I'm missing here?  It's doing exactly what
> I want!
Everything that would for some reason go into the users homedir, you
would be able to reach via Imap.

If I were you, I'd make home and mail point to a different directory,
which could be as simple as home=/var/mail/%d/%n
mail=/var/mail/%d/%n/Maildir. This way, dovecot will only look for mail
in the $HOME/Maildir, but still can do administrative stuff in $HOME.

Grts,

Nils




signature.asc
Description: OpenPGP digital signature


Re: [Dovecot] Dovecot + Sieve - and passdb/userdb

2007-09-07 Thread Steffen Kaiser

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Fri, 7 Sep 2007, Geert Hendrickx wrote:


Other meta-data, like .dovecot.lda-dupes (autoreplied senders db for the
vacation plugin) will still be visible as (corrupted) mailfolders in IMAP.


There was some mail from Timo about this topic, that it is a bad idea to 
have home==maildir.


I'd try sort of:

userdb static {
   args = uid=5000 gid=8 home=/var/mail/%d/%n/home mail=/var/mail/%d/%n 
allow_all_users=yes

}

As far as I know, there is no need (just habbit) to have the Maildir 
located below/in home.


Bye,

- -- 
Steffen Kaiser

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)

iQEVAwUBRuEXSC9SORjhbDpvAQKE3Qf/VejI8j8H2byWv7uy6col0H11Z/FTMD9Z
smtgqJHjzPNbXHOgCINRfr56SnygChs2hqyPNkk0C3ei30uPzcnZwG/GmM42GaWR
N/om4Rp92HcRSyOrWwTBH+HgkeR94uEWq7qvPoz+mOrgBkSAdMU36DkVgpbBktNB
XA9vsOFvGqEsNlcgywHawN4MqxXjadIUdYDU6HV1gjbVvCT75NVsVIE0IFDtcIcY
2RShXD/u5K0eJr96Gy779g/yn5vieUGH/F8NNwkz4zZbGzusMRMbng/lSmdkf0g1
5ehvxWIXQ46au8s7fB27IMZJb8IUGaCl+LV826LJVVamgj1T2zmnEw==
=EpPP
-END PGP SIGNATURE-


Re: [Dovecot] Dovecot + Sieve - and passdb/userdb

2007-09-07 Thread Geert Hendrickx
On Thu, Sep 06, 2007 at 05:24:08PM -0700, Daniel L. Miller wrote:
> Deliver + sieve is working great.  By setting the sieve variable to
> "sieve", a non-hidden file, it doesn't appear in the folder list.  I made
> a similar change to pysieved to use a non-hidden folder - in combination
> with avelsieve and squirrelmail I now have a user-maintainable
> server-side filter solution.  Awesome!
> 
> Is there a hidden "gotcha" I'm missing here?  It's doing exactly what I 
> want!

Other meta-data, like .dovecot.lda-dupes (autoreplied senders db for the
vacation plugin) will still be visible as (corrupted) mailfolders in IMAP.

Geert



Re: [Dovecot] Dovecot + Sieve - and passdb/userdb

2007-09-06 Thread Daniel L. Miller
Thanks to everybody who chipped in.  I came up with a workaround that 
seems fairly simple - I'm actually worried that it's working too well!


I'm using a pure virtual user setup, storing a minimal amount in LDAP.  
The whole mail tree is stored under /var/mail, and it's all owned by 
vmail.mail.  For purely selfish reasons, I'm doing everything possible 
to avoid storing the mail folder in LDAP.  So I came up with the following:


Postfix is capable of generating the mail folder path via LDAP 
manipulation, and I was working on some wrapper scripts for delivery 
agents - but since I've now totally converted to Dovecot's deliver agent 
that's immaterial.


 passdb ldap, just looking up the password.
 userdb static {
   args = uid=5000 gid=8 home=/var/mail/%d/%n mail=/var/mail/%d/%n 
allow_all_users=yes

 }
 plugin {
   sieve = sieve
 }

Deliver + sieve is working great.  By setting the sieve variable to 
"sieve", a non-hidden file, it doesn't appear in the folder list.  I 
made a similar change to pysieved to use a non-hidden folder - in 
combination with avelsieve and squirrelmail I now have a 
user-maintainable server-side filter solution.  Awesome!


Is there a hidden "gotcha" I'm missing here?  It's doing exactly what I 
want!


P.S.  what's the "nice" parameter that can be listed in args?


--
Daniel
A spam trap for your crawler pleasure: [EMAIL PROTECTED]