[Dovecot] Override config in deliver command line

2008-08-25 Thread dovecot
Hi all

In dovecot deliver LDA, is there a way to override some configuration
settings for particular users?

Tha full story is: I have a simple postfix/dovecot setup. No virtual users,
delivery is done in /home/mail/%u. For a specific user, I would like to
deliver to a maildir. Since mail_location is not explicitly configured, I
simply created ~/Maildir for that user, relying on the default automatic
mailbox location procedure used by dovecot. But I would like to be able to
override this setting: for example if I wanted to use a name different from
Maildir, this trick would not be sufficient. So it would be nice to have
some way to change mail_location (and why not, other config parameters) only
for particular users (and for me, doing this on the command line would be
good: something like Postfix where you can override config parameters simply
writing the new settings in master.cf on the daemon's command line).
I noticed the -c command line switch, but I would prefer not to have
entirely different configuration files for my users, where a single change
must be manually propagated on all the files.

I use dovecot-1.0.15 on CentOS5.

Maybe this question can be read as a feature request too.

Thanks
Luigi



Re: [Dovecot] Override config in deliver command line

2008-08-25 Thread Andrew Schulman
 In dovecot deliver LDA, is there a way to override some configuration
 settings for particular users?

No, I don't believe there is a way to do that at present.  And yes, it would be
a very useful and probably simple feature to add.  I'll add my voice to the
feature request for this.

I also needed to do this.  I ended up working around it by writing a script to
create a new temporary config file, with the settings replaced.  It's not
pretty, but it works.

Andrew.



[Dovecot] LOCALSTATEDIR

2008-08-25 Thread Radomir Zoltowski

Hi

I'm doing a network install of Dovecot 1.1.2. All is fine apart from a 
little annoying mistake I've found:


I do this:
 ./configure --prefix=/appli/tools_Linux/dovecot/1.1.2 
--localstatedir=/var  make  make install


however, since the --localstatedir is equal to a default value, it is 
still being constructed as PREFIX/var for some reason and in effect 
produces binary with following strings being built-in:


 strings dovecot | grep var
/appli/tools/dovecot/1.1.2/var/lib/dovecot
/appli/tools/dovecot/1.1.2/var/run/dovecot
/appli/tools/dovecot/1.1.2/var/lib/dovecot/ssl-parameters.dat
/appli/tools/dovecot/1.1.2/var/lib/dovecot/ssl-parameters.dat
var-expand.c
var_expand_table_build

So, the question is, is this a bug or my understanding wrong? I just 
need a network install, using local /var directiories for runtime data. 
Imagine that I have no write permissions to the installation (--prefix) 
folder.


If you can reproduce it, this should be it, if you can't let me know to 
email you all the environment details.


Regards,
Radomir Zoltowski
--
_

Radomir Zoltowski [EMAIL PROTECTED]
Applications Engineer
Silicon  Software Systems Ltd., IT Department
South County Business Park, Leopardstown, Dublin 18, IRELAND
Tel.: +353 1 291 1224, Fax: +353 1 291 1001
_


The information contained in this e-mail and in any attachments is confidential 
and is designated solely for the attention of the intended recipient(s). If you 
are not an intended recipient, you must not use, disclose, copy, distribute or 
retain this e-mail or any part thereof. If you have received this e-mail in 
error, please notify the sender by return e-mail and delete all copies of this 
e-mail from your computer system(s).
Please direct any additional queries to: [EMAIL PROTECTED]
Thank You.
Silicon and Software Systems Limited. Registered in Ireland no. 378073.
Registered Office: South County Business Park, Leopardstown, Dublin 18

[Dovecot] LOCALSTATEDIR

2008-08-25 Thread Radomir Zoltowski

Hi

 make distclean

between builds solved the issue. Apologies for the noise.

Regards,
Radomir Zoltowski
--
_

Radomir Zoltowski [EMAIL PROTECTED]
Applications Engineer
Silicon  Software Systems Ltd., IT Department
South County Business Park, Leopardstown, Dublin 18, IRELAND
Tel.: +353 1 291 1224, Fax: +353 1 291 1001
_


The information contained in this e-mail and in any attachments is confidential 
and is designated solely for the attention of the intended recipient(s). If you 
are not an intended recipient, you must not use, disclose, copy, distribute or 
retain this e-mail or any part thereof. If you have received this e-mail in 
error, please notify the sender by return e-mail and delete all copies of this 
e-mail from your computer system(s).
Please direct any additional queries to: [EMAIL PROTECTED]
Thank You.
Silicon and Software Systems Limited. Registered in Ireland no. 378073.
Registered Office: South County Business Park, Leopardstown, Dublin 18

[Dovecot] Dovecot 1.1.2

2008-08-25 Thread Lauri Jesmin
Hello, 

I upgraded dovecot to 1.1.2 this weekend and i get those errors: 
grep dovecot /var/log/net/maillog |grep Panic | cut -d   -f 11-100|
sort | uniq -c | sort -rn
   7547 file index-sync.c: line 39: assertion failed:
(seq_range_exists(ibox-recent_flags, uid))
 89 file index-mail.c: line 1091: assertion failed: (!
mail-data.destroying_stream)
 18 file mbox-sync-rewrite.c: line 590: assertion failed:
(mails[idx].from_offset == start_offset)
  5 file ostream-file.c: line 533: assertion failed: ((size_t)ret ==
total_size || !fstream-file)
  5 file mbox-lock.c: line 675: assertion failed: (lock_type ==
F_RDLCK || mbox-mbox_lock_type != F_RDLCK)
  1 file message-parser.c: line 684: assertion failed:
(ctx-part-physical_pos = ctx-input-v_offset)


My setup is this: 
3 servers, all Solaris, running dovecot, share home directiories via
NFS, mbox format mailboxes in home directories. Indexes are separate in
every server, not shared via NFS. About 20 000 users total.

When old indexes (1.0.15) were present, mailboxes with UID validity
problems did not fix themselves, but after i removed index directories
in all machines, seems like it started to repair uid validity problems.
The first panic seems to be tied to UID validity problems.

Some locking problems may be, because i renamed index directory and
created new while dovecot was running. 

-- 
Lauri Jesmin [EMAIL PROTECTED]
Tartu Ülikool



[Dovecot] Issue with: Sendmail, Dovecot and Sieve: -- TECRA_A9 --

2008-08-25 Thread dovecot
sendmail -- Version 8.14.2
 Compiled with: DNSMAP LOG MAP_REGEX MATCHGECOS MILTER MIME7TO8 MIME8TO7
NAMED_BIND NETINET NETINET6 NETUNIX NEWDB NIS PIPELINING SASLv2
SCANF STARTTLS TCPWRAPPERS USERDB XDEBUG

dovecot-1.0.7   Secure and compact IMAP and POP3 servers
dovecot-sieve-1.0.2 A sieve plugin for the Dovecot LDA called 'deliver'

With focus on the installed version of sieve, shown above, the 
following rule is within our ~.dovecot.sieve:

}
elsif header :is X-Original-To dovecot@dovecot.org {
  discard;
  stop;
}

The above rule is the seventh and last rule in the file, however the 
following mail is 'not being discarded'.  Should this not be the 
appropriate forum, please direct me to the proper list and/or forum.

Respectfully yours,

dovecot_user


Re: [Dovecot] Dovecot 1.1.2

2008-08-25 Thread CJ Keist
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Lauri,
   This is a known bug. You can search the dovecot mailing list for
assertion.  I'm running on Solaris 10 and see the same errors.  So far
it doesn't look to be causing my users any problems.  I also did apply
the patch:


http://hg.dovecot.org/dovecot-1.1/rev/d674c05d725d


Lauri Jesmin wrote:
 Hello, 
 
 I upgraded dovecot to 1.1.2 this weekend and i get those errors: 
 grep dovecot /var/log/net/maillog |grep Panic | cut -d   -f 11-100|
 sort | uniq -c | sort -rn
7547 file index-sync.c: line 39: assertion failed:
 (seq_range_exists(ibox-recent_flags, uid))
  89 file index-mail.c: line 1091: assertion failed: (!
 mail-data.destroying_stream)
  18 file mbox-sync-rewrite.c: line 590: assertion failed:
 (mails[idx].from_offset == start_offset)
   5 file ostream-file.c: line 533: assertion failed: ((size_t)ret ==
 total_size || !fstream-file)
   5 file mbox-lock.c: line 675: assertion failed: (lock_type ==
 F_RDLCK || mbox-mbox_lock_type != F_RDLCK)
   1 file message-parser.c: line 684: assertion failed:
 (ctx-part-physical_pos = ctx-input-v_offset)
 
 
 My setup is this: 
 3 servers, all Solaris, running dovecot, share home directiories via
 NFS, mbox format mailboxes in home directories. Indexes are separate in
 every server, not shared via NFS. About 20 000 users total.
 
 When old indexes (1.0.15) were present, mailboxes with UID validity
 problems did not fix themselves, but after i removed index directories
 in all machines, seems like it started to repair uid validity problems.
 The first panic seems to be tied to UID validity problems.
 
 Some locking problems may be, because i renamed index directory and
 created new while dovecot was running. 
 

- --
C. J. Keist Email: [EMAIL PROTECTED]
UNIX/Network ManagerPhone: 970-491-0630
Engineering Network ServicesFax:   970-491-5569
College of Engineering, CSU
Ft. Collins, CO 80523-1301

All I want is a chance to prove 'Money can't buy happiness'
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFIsuUGA29OFr7C6jcRAsDEAKCk62HGyMsVeJvqNmgzCkLml2Qo9wCfZJES
OAUleDB2+nFRT2XLSj8YdKM=
=hoCU
-END PGP SIGNATURE-


[Dovecot] auth failed, 0 attempts

2008-08-25 Thread Bruce Bodger

Does anyone have any ideas what this may be?

Aug 25 12:19:01 G520X2 dovecot: imap-login: Disconnected (auth  
failed, 0 attempts): rip=192.168.1.1, lip=192.168.1.10
Aug 25 12:19:01 G520X2 dovecot: imap-login: Disconnected (auth  
failed, 0 attempts): rip=192.168.1.1, lip=192.168.1.10


Hits the server every minute.

Running v 1.1.2 on OS X
192.168.1.1 is the router
192.168.1.10 is the server on which dovecot is running.

Just started noticing it.

Thanks,
B. Bodger




Re: [Dovecot] Issue with: Sendmail, Dovecot and Sieve: -- TECRA_A9 --

2008-08-25 Thread Christopher J. Buckley

[EMAIL PROTECTED] wrote:

sendmail -- Version 8.14.2
 Compiled with: DNSMAP LOG MAP_REGEX MATCHGECOS MILTER MIME7TO8 MIME8TO7
NAMED_BIND NETINET NETINET6 NETUNIX NEWDB NIS PIPELINING SASLv2
SCANF STARTTLS TCPWRAPPERS USERDB XDEBUG

dovecot-1.0.7   Secure and compact IMAP and POP3 servers
dovecot-sieve-1.0.2 A sieve plugin for the Dovecot LDA called 'deliver'

With focus on the installed version of sieve, shown above, the 
following rule is within our ~.dovecot.sieve:


}
elsif header :is X-Original-To dovecot@dovecot.org {
  discard;
  stop;
}


Try:

} elsif header :contains X-Original-To dovecot@dovecot.org {
   discard;
   stop;
  }

The above rule is the seventh and last rule in the file, however the 
following mail is 'not being discarded'. 


Can you paste your whole sieve rulset?

--
Kind Regards,   ::   http://www.cjbuckley.net/
Chris Buckley   ::   http://photos.cjbuckley.net/


Re: [Dovecot] Issue with: Sendmail, Dovecot and Sieve: -- TECRA_A9 --

2008-08-25 Thread dovecot
On Mon, Aug 25, 2008 at 07:00:16PM +0100, Christopher J. Buckley wrote:
 [EMAIL PROTECTED] wrote:
 sendmail -- Version 8.14.2
  Compiled with: DNSMAP LOG MAP_REGEX MATCHGECOS MILTER MIME7TO8 MIME8TO7
 NAMED_BIND NETINET NETINET6 NETUNIX NEWDB NIS PIPELINING 
 SASLv2
 SCANF STARTTLS TCPWRAPPERS USERDB XDEBUG
 
 dovecot-1.0.7   Secure and compact IMAP and POP3 servers
 dovecot-sieve-1.0.2 A sieve plugin for the Dovecot LDA called 'deliver'
 
 With focus on the installed version of sieve, shown above, the 
 following rule is within our ~.dovecot.sieve:
 
 }
 elsif header :is X-Original-To dovecot@dovecot.org {
   discard;
   stop;
 }
 
 Try:
 
 } elsif header :contains X-Original-To dovecot@dovecot.org {
discard;
stop;
   }

Initially we though of do that but optioned out because as we understand
it, :contains would allow a 'substring match'. 


 
 The above rule is the seventh and last rule in the file, however the 
 following mail is 'not being discarded'. 
 
 Can you paste your whole sieve rulset?
 
 -- 
 Kind Regards,   ::   http://www.cjbuckley.net/
 Chris Buckley   ::   http://photos.cjbuckley.net/


Re: [Dovecot] auth failed, 0 attempts RESOLVED

2008-08-25 Thread Bruce Bodger


On Aug 25, 2008, at 1:23 PM, Bruce Bodger wrote:


Does anyone have any ideas what this may be?

Aug 25 12:19:01 G520X2 dovecot: imap-login: Disconnected (auth  
failed, 0 attempts): rip=192.168.1.1, lip=192.168.1.10
Aug 25 12:19:01 G520X2 dovecot: imap-login: Disconnected (auth  
failed, 0 attempts): rip=192.168.1.1, lip=192.168.1.10


Figured it out.  Some user had inadvertently removed their password  
from their mail setup.


Sorry for the noise.

B. Bodger
New York



Re: [Dovecot] auth failed, 0 attempts RESOLVED

2008-08-25 Thread Scott Silva

snip


Figured it out.  Some user had inadvertently removed their password from 
their mail setup.


Sorry for the noise.


Evil users!  ;-P



--
MailScanner is like deodorant...
You hope everybody uses it, and
you notice quickly if they don't



signature.asc
Description: OpenPGP digital signature


Re: [Dovecot] Proxy logging destuser

2008-08-25 Thread Paul Gamble - MWEB
Hi Timo

The patch you provided to allow Dovecot-as-proxy's login processes to
log the destuser only does so for successful authentications/logins.
What is the possibility that this information could additionally be
logged for successful lookups, but failed authentication, e.g. valid
user-name/invalid password? 

The patch mentioned is:
http://hg.dovecot.org/dovecot-1.1/raw-rev/5d0406541434

Regards

-Original Message-
From: Timo Sirainen [mailto:[EMAIL PROTECTED] 
Sent: 14 August 2008 10:22 PM
To: Paul Gamble - MWEB
Cc: Dovecot Mailing List
Subject: Re: [Dovecot] Proxy logging destuser
New from MWEB: Cellphone and Internet bundles! Bundle your Internet access with 
your cellular contract from R75 per month. 
Call 08600 32000 or click 
here(http://www.mweb.co.za/productsservices/MTALKMobile/tabid/1223/Default.aspx)
 for more info on the great deals available.

MWEB :-)  JUST LIKE THAT


[Dovecot] multiple password schemes and sql?

2008-08-25 Thread R A
Hello all.

Just about to migrate from courier to dovecot, and figured I would as
well try and get
this working so I could use non plaintext mechanisms as well.

I would like to offer at least: plain login digest-md5 cram-md5
and maybe more

Everything works but this and have a testdb in sql with passwords like
userid, password

But get Password query returned multiple matches which indicates it
doesnt try using any prefix and just
get a hit on all passwords for that user.

Is there any variable I can use in the sql query to use an extra field
that contains the password type?

plain and login should be stored in some crypted form, probably as md5
or sha256 hashes.

Thankful for any insight into this...