Re: [Dovecot] mbox to Maildir conversion

2008-10-22 Thread Kyle Wheeler

On Wednesday, October 22 at 11:35 PM, quoth Albert E. Whale:
I am currently testing a single user, and have successfully converted 
the mail messages from mbox to Maildir format, and now I am setting up 
the procmail tool to place the messages into the correct folder.  I have 
been following the http://wiki.dovecot.org/Migration/MailFormat formula, 
but now have a question.


New Messages are now being placed into the ~user/Maildir/new folder.


Procmail understands Maildir natively; you don't have to tell it to 
put messages into the "new" folder, you should just tell it to put 
things into the Maildir folder and end the line with a /, like so:


# correct!
:0
~user/Maildir/

# incorrect
:0
~user/Maildir/new/

# also incorrect
:0
~user/Maildir/new

If you specify the "new" directory, you're either telling procmail to 
treat that directory like an MH folder, which is wrong, or you're 
telling procmail that the "new" directory is a Maildir, in which case 
it will create another "new" directory within that directory (along 
with a "tmp" and "cur" directories).


~Kyle
--
As an adolescent I aspired to lasting fame, I craved factual 
certainty, and I thirsted for a meaningful vision of human life. So I 
became a scientist. This is like becoming an archbishop so you can 
meet girls.

-- M. Cartmill


pgpSBFWoHw1df.pgp
Description: PGP signature


Re: [Dovecot] displaying IMAP folders that are in ~/mail/ at same level as inbox

2008-10-22 Thread David London




> El Miércoles, 22 de Octubre de 2008 a las 04:04, David London escribió:
>> Thanks Laurent (and Charles re the age of the dovecot software),
>>
>> It looks like we've got what you say is needed (see configuration file
>> below).  In addition the test accounts are brand new ones on the test
>> system, not ones that have been moved over so .mailboxlist is not there -
>> just .subscriptions
>>
>> Maybe what I'm trying to do is just not possible ...
>
> You can get it in the client. For example, in thunderbird, in Server
> settings->advanced should be something like "IMAP server directory" (I'm
> using an spanish version of thunderbird, so don't know the exact english name
> for the option). Similar options exists for other clients.
>
> HTH.
> --
> Joseba Torre. CIDIR Bizkaia.

Thanks Jose,

Yes
in the advanced options on email clients there is always a place to put
the root folder path or (some similar name) and on the old server I
used ~/mail/ in all of the email clients (thunderbird, outlook,
seamonkey etc) and that worked fine.

Doing that on the new
dovecot based server produces the effect I've described - a folder
called mail visible at the same level as inbox and the other IMAP
folders inside that.  On the older imapd based server doing the same
thing produced a view of inbox with no mail folder ... just the IMAP
folders in it displayed at the same level as inbox.

Regards,

David


_



[Dovecot] mbox to Maildir conversion

2008-10-22 Thread Albert E. Whale
I've been running a mbox solution using UW's IMAP server.  I've run it
for years.

Now do to heavy message volumes, I've decided to to take the plunge to
convert to the Maildir format.

I am currently testing a single user, and have successfully converted
the mail messages from mbox to Maildir format, and now I am setting up
the procmail tool to place the messages into the correct folder.  I have
been following the http://wiki.dovecot.org/Migration/MailFormat formula,
but now have a question.

New Messages are now being placed into the ~user/Maildir/new folder. 
However, when I attempt to retrieve those messages, Dovecot does not
find them.  Why not?
-- 
Albert E. Whale, CHS CISA CISSP
Sr. Security, Network, Risk Assessment and Systems Consultant

ABS Computer Technology, Inc.  - Email,
Internet and Security Consultants
SPAMZapper  - No-JunkMail.com
 - *True Spam Elimination*.


[Dovecot] Possible header parsing problem

2008-10-22 Thread Eric Stadtherr

Hi,

I ran into a problem wherein my mail client (RoundCube) would not 
display a message from a Dovecot IMAP server (claiming that the message 
had no content). The raw source of the message looked fine, but the body 
structure returned by Dovecot only had the first text/plain part and not 
the alternative text/html part. The message looks like:


   ... headers removed ...
   X-Mailer: Lotus Notes Release 6.5.1 January 21, 2004
   Message-ID: <...>
   From: [EMAIL PROTECTED]
   Date: Mon, 20 Oct 2008 14:15:55 -0600
   Content-Type: multipart/alternative; boundary="=_alternative
 006F3A73872574E8_="

   This is a multipart message in MIME format.
   --=_alternative 006F3A73872574E8_=
   Content-Transfer-Encoding: 7bit
   Content-Type: text/plain;
 charset=us-ascii

   blah blah blah

   --=_alternative 006F3A73872574E8_=
   Content-Transfer-Encoding: 7bit
   Content-Type: text/html;
 charset=us-ascii


   blah blah blah in HTML

   --=_alternative 006F3A73872574E8_=--


I did a little bit of tracing through the parsing code 
(message-header-parser.c:message_parse_header_next()) and it appeared 
that the boundary in the Content-Type header was not parsed correctly, 
evidently because the header line was folded in the middle of the 
boundary string. RFC 822 appears to allow folding in a quoted string 
like this (§3.3 "quoted-string"), so I'm curious whether the parsing is 
working correctly.


Thanks for your help!

Here is my Dovecot information:
version: 1.1.4
"dovecot -n" output:
# 1.1.4: /usr/local/etc/dovecot.conf
Warning: fd limit 256 is lower than what Dovecot can use under full load 
(more than 384). Either grow the limit or change 
login_max_processes_count and max_mail_processes settings

base_dir: /var/dovecot/
info_log_path: /var/log/dovecot.log
listen: *, [::]
ssl_cert_file: /System/Library/OpenSSL/certs/imapd.pem
ssl_key_file: /System/Library/OpenSSL/certs/privkey.out
login_dir: /var/dovecot/login
login_executable: /usr/local/libexec/dovecot/imap-login
max_mail_processes: 256
mail_location: maildir:%h/Maildir
namespace:
  type: private
  separator: /
  inbox: yes
  list: yes
  subscriptions: yes
namespace:
  type: shared
  separator: /
  prefix: Shared/
  location: maildir:/Users/Shared/Maildir
  list: yes
  subscriptions: yes
auth default:
  passdb:
driver: pam
args: imap
  userdb:
driver: passwd



--
*Eric Stadtherr*
[EMAIL PROTECTED] 


Re: [Dovecot] Dovecot+PostfixAdmin+PostgreSQL on FreeBSD 7

2008-10-22 Thread Erdenebat Gantumur
Hi dear, Timo

When I execute dovecot -F then it doesn't exiting. During this time when
try to telnet 110 port it shows

Escape character is '^]'.
+OK Dovecot ready.
^]
telnet> quit

Also i've set log and log_info path. In dovecot_info.log it's showing:

dovecot: 2008-10-23 01:23:39 Info: Dovecot v1.1.3 starting up
dovecot: 2008-10-23 01:23:39 Info: auth(default): pgsql: Connected to
postfix
dovecot: 2008-10-23 01:25:09 Info: pop3-login: Disconnected (no auth
attempts): rip=x.x.x.x, lip=x.x.x.x, secured
dovecot: 2008-10-23 01:25:27 Info: imap-login: Disconnected (no auth
attempts): rip=x.x.x.x, lip=x.x.x.x, secured
dovecot: 2008-10-23 01:25:51 Info: pop3-login: Disconnected (no auth
attempts): rip=x.x.x.x, lip=x.x.x.x, secured

What does it mean? How can I run dovecot just like common way
/usr/local/etc/rc.d/dovecot start? When I execute that command it
doesn't start. Thank you.

Timo Sirainen wrote:
> On Wed, 2008-10-22 at 22:56 +0800, Erdenebat Gantumur wrote:
>   
>> Hi dear All,
>>
>> Currently I'm configuring Dovecot+PostfixAdmin+PostgreSQL on FreeBSD 7
>> Stable and using Dovecot v1.1.3. I hope I've configured everything. But
>> when I run /usr/local/etc/rc.d/dovecot start then dovecot doesn't seems
>> to running. /var/log/maillog is only showing following.
>> 
>
> Start Dovecot using "dovecot -F". If it doesn't exit, then it's running.
> If it does exit, what does it say?
>
>   



[Dovecot] mail_location & NFS mounted home dirs

2008-10-22 Thread Roger Hale

Hi,

I'm fairly new to Dovecot, migrating from a POP-only system with /var/mail only 
mailboxes. I'm currently on version 1.0.10 on Solaris 10, but I don't think 
that's relevant to the question. 

I'm a little overwhelmed by the number of configuration options at the moment. 
I took the "standard" 

mail_location = mbox:~/mail:INBOX=/var/mail/%u

setting in dovecot.conf. This mostly works fine, but home dirs are NFS mounted 
and in the event that an NFS server is down users cannot read their mail. This 
is the case even for users who only use POP. 

So, my question is, do folks on this list have good suggestions for optimum 
ways to deal with this so that users (perhaps only POP users) can read their 
mail independent of home directories being available? I think I can make 
something up, but I'd rather take a standard approach if there is one. If this 
has already been discussed I apologise - just point me to it as I didn't find 
it.

Thx,
Roger

_
X Factor: latest video, features and more. Click here!
http://clk.atdmt.com/GBL/go/115454063/direct/01/

Re: [Dovecot] dovecot-deliver occasionally fails to deliver, leaving no clues

2008-10-22 Thread Lucas Madar


On Oct 22, 2008, at 11:09 AM, Timo Sirainen wrote:



BTW. The bug showed up only because you had
auth_worker_max_request_count set to non-zero. Is there a reason why
this isn't zero? It was only meant for fixing problems with PAM, but
you're not using PAM.



I figured that any bugs that might crop up (either in dovecot or  
mysql) might be mitigated by the auth worker eventually restarting  
itself. It seemed like the only negative consequence would be  
performance, and with such a low volume I wasn't concerned.


Thanks for a wonderful program and awesome tech support!
- Lucas


Re: [Dovecot] dovecot and postfix with tls and dovecot sasl issues for smtp clients

2008-10-22 Thread Timo Sirainen

On Oct 22, 2008, at 10:19 PM, Charles Marcus wrote:


Wietse said:

"Postfix passes the information in the SMTP client's AUTH command.
This is how I got the Dovecot extension from Timo. If someone is
willing to monitor his docs for changes, then they are welcome to
do so. I won't."

So... did he get all of the correct info on the extension from Timo?
Only Timo can say...


I wrote the initial implementation and it didn't support all the  
features. Wietse changed the code a bit and added it to Postfix. I  
think since then there have been a few small changes by some people,  
but I don't know why features like sending local/remote IP still  
aren't supported. People have requested those before and I also  
remember seeing patches. Maybe it's just that no-one (including me..)  
has cared enough to try to really get those features included.




PGP.sig
Description: This is a digitally signed message part


Re: [Dovecot] dovecot and postfix with tls and dovecot sasl issues for smtp clients

2008-10-22 Thread Charles Marcus
On 10/22/2008 2:54 PM, Harondel J. Sibble wrote:
> 
> On 22 Oct 2008 at 21:01, Timo Sirainen wrote:
>  
>> A quick look shows that Exim apparently sends the valid-client-cert
>> parameter. Maybe it wouldn't be too difficult to modify Postfix's
>> sources either.

> I see there's been some discussion about this a few years ago
> 
> http://www.dovecot.org/list/dovecot/2008-August/032732.html
> http://www.nabble.com/sasl-parameters-missing-td18820817.html

I guess you meant a few MONTHS ago - those were from August 2008...

Wietse said:

"Postfix passes the information in the SMTP client's AUTH command.
This is how I got the Dovecot extension from Timo. If someone is
willing to monitor his docs for changes, then they are welcome to
do so. I won't."

So... did he get all of the correct info on the extension from Timo?
Only Timo can say...

-- 

Best regards,

Charles


Re: [Dovecot] dovecot and postfix with tls and dovecot sasl issues for smtp clients

2008-10-22 Thread Harondel J. Sibble


On 22 Oct 2008 at 21:01, Timo Sirainen wrote:
 
> A quick look shows that Exim apparently sends the valid-client-cert
> parameter. Maybe it wouldn't be too difficult to modify Postfix's
> sources either.

I see there's been some discussion about this a few years ago

http://www.dovecot.org/list/dovecot/2008-August/032732.html
http://www.nabble.com/sasl-parameters-missing-td18820817.html

I guess I'll have to look at Exim in the interim.
-- 
Harondel J. Sibble 
Sibble Computer Consulting
Creating Solutions for the small and medium business computer user.
[EMAIL PROTECTED] (use pgp keyid 0x3AD5C11D) http://www.pdscc.com
(604) 739-3709 (voice/fax)  (604) 686-2253 (pager)



Re: [Dovecot] Released v1.1.5 and v1.2.alpha3

2008-10-22 Thread Robert Schetterer
Timo Sirainen schrieb:
> http://dovecot.org/releases/1.1/dovecot-1.1.5.tar.gz
> http://dovecot.org/releases/1.1/dovecot-1.1.5.tar.gz.sig
> 
> http://dovecot.org/releases/1.2/alpha/dovecot-1.2.alpha3.tar.gz
> http://dovecot.org/releases/1.2/alpha/dovecot-1.2.alpha3.tar.gz.sig
> 
> A combined release announcement for a change. :)
> 
> Largest changes since v1.1.4:
> 
>   * Dovecot prints an informational message about authentication problems
> at startup. The message goes away after the first successful
> authentication. This hopefully reduces the number of "Why doesn't
> my authentication work?" questions.
> 
>   + Maildir/dbox: Try harder to assign unique UIDVALIDITY values to
> mailboxes to avoid potential problems when recreating or renaming
> mailboxes. The UIDVALIDITY is tracked using dovecot-uidvalidity*
> files in the mail root directory.
>   + Many logging improvements
>   - In some conditions Dovecot could have stopped using existing cache
> file and never used it again until it was deleted.
>   - pop3 + Maildir: Make sure virtual sizes are always written to
> dovecot-uidlist. This way if the indexes are lost Dovecot will never
> do a huge amount of work to recalculate them.
>   - mbox: Fixed listing mailboxes in namespaces with prefix beginning
> with '~' or '/' (i.e. UW-IMAP compatibility namespaces didn't work).
>   - dict quota: Don't crash when recalculating quota (when quota warnings
> enabled).
>   - Fixes to handling "out of disk space/quota" failures.
>   - Blocking passdbs/userdbs (e.g. PAM, MySQL) could have failed lookups
> sometimes when auth_worker_max_request_count was non-zero.
>   - Fixed compiling with OpenBSD
> 
> Largest changes since v1.2.alpha2:
> 
>   + Added userdb checkpassword (by Sascha Wilde)
>   + Autocreate plugin: http://wiki.dovecot.org/Plugins/Autocreate
>   + Listescape plugin: http://wiki.dovecot.org/Plugins/Listescape
>   - All the same fixes as for v1.1.5
> 



> I was thinking about waiting for Kolab people's work for shared mailbox
> support to get done, get that code to v1.2 tree and then release
> v1.2.beta1 with feature freeze.

Hi Timo, i think this is a good idea

-- 
Best Regards

MfG Robert Schetterer

Germany/Munich/Bavaria


Re: [Dovecot] Released v1.1.5 and v1.2.alpha3

2008-10-22 Thread Charles Marcus
On 10/22/2008, Timo Sirainen ([EMAIL PROTECTED]) wrote:
> I was thinking about waiting for Kolab people's work for shared mailbox
> support to get done, get that code to v1.2 tree and then release
> v1.2.beta1 with feature freeze.

+5 ! :)


-- 

Best regards,

Charles


[Dovecot] Released v1.1.5 and v1.2.alpha3

2008-10-22 Thread Timo Sirainen
http://dovecot.org/releases/1.1/dovecot-1.1.5.tar.gz
http://dovecot.org/releases/1.1/dovecot-1.1.5.tar.gz.sig

http://dovecot.org/releases/1.2/alpha/dovecot-1.2.alpha3.tar.gz
http://dovecot.org/releases/1.2/alpha/dovecot-1.2.alpha3.tar.gz.sig

A combined release announcement for a change. :)

Largest changes since v1.1.4:

* Dovecot prints an informational message about authentication problems
  at startup. The message goes away after the first successful
  authentication. This hopefully reduces the number of "Why doesn't
  my authentication work?" questions.

+ Maildir/dbox: Try harder to assign unique UIDVALIDITY values to
  mailboxes to avoid potential problems when recreating or renaming
  mailboxes. The UIDVALIDITY is tracked using dovecot-uidvalidity*
  files in the mail root directory.
+ Many logging improvements
- In some conditions Dovecot could have stopped using existing cache
  file and never used it again until it was deleted.
- pop3 + Maildir: Make sure virtual sizes are always written to
  dovecot-uidlist. This way if the indexes are lost Dovecot will never
  do a huge amount of work to recalculate them.
- mbox: Fixed listing mailboxes in namespaces with prefix beginning
  with '~' or '/' (i.e. UW-IMAP compatibility namespaces didn't work).
- dict quota: Don't crash when recalculating quota (when quota warnings
  enabled).
- Fixes to handling "out of disk space/quota" failures.
- Blocking passdbs/userdbs (e.g. PAM, MySQL) could have failed lookups
  sometimes when auth_worker_max_request_count was non-zero.
- Fixed compiling with OpenBSD

Largest changes since v1.2.alpha2:

+ Added userdb checkpassword (by Sascha Wilde)
+ Autocreate plugin: http://wiki.dovecot.org/Plugins/Autocreate
+ Listescape plugin: http://wiki.dovecot.org/Plugins/Listescape
- All the same fixes as for v1.1.5

I was thinking about waiting for Kolab people's work for shared mailbox
support to get done, get that code to v1.2 tree and then release
v1.2.beta1 with feature freeze.


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


Re: [Dovecot] dovecot-deliver occasionally fails to deliver, leaving no clues

2008-10-22 Thread Timo Sirainen
On Wed, 2008-10-22 at 09:59 -0700, Lucas Madar wrote:
> On Oct 21, 2008, at 3:48 PM, Timo Sirainen wrote:
> 
> >>> On Tue, 2008-10-21 at 14:47 -0700, Lucas Madar wrote:
>  deliver([EMAIL PROTECTED]): Oct 21 09:51:55 Error: Auth lookup returned 
>  failure
> 
>  The auth process is not logging any errors.
> >>>
> >>> ...
> > Sorry, the other one of the patches didn't work right. Apply this:
> > http://hg.dovecot.org/dovecot-1.1/rev/147a57cd312f
> >
> 
> This patch appears to have fixed the problem entirely. :)

BTW. The bug showed up only because you had
auth_worker_max_request_count set to non-zero. Is there a reason why
this isn't zero? It was only meant for fixing problems with PAM, but
you're not using PAM.



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


Re: [Dovecot] dovecot and postfix with tls and dovecot sasl issues for smtp clients

2008-10-22 Thread Timo Sirainen
On Wed, 2008-10-22 at 10:57 -0700, Harondel J. Sibble wrote:
> 
> On 22 Oct 2008 at 20:37, Timo Sirainen wrote:
> 
> > I don't think Postfix ever sends the "valid-cert" parameter that's
> > required for Dovecot to treat the authentication as valid.
> 
> Bummer, any suggested workarounds or should I be looking at a different MTA 
> that is known to work with Dovecot's SASL implementation.

A quick look shows that Exim apparently sends the valid-client-cert
parameter. Maybe it wouldn't be too difficult to modify Postfix's
sources either.



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


Re: [Dovecot] dovecot and postfix with tls and dovecot sasl issues for smtp clients

2008-10-22 Thread Harondel J. Sibble


On 22 Oct 2008 at 20:37, Timo Sirainen wrote:

> I don't think Postfix ever sends the "valid-cert" parameter that's
> required for Dovecot to treat the authentication as valid.

Bummer, any suggested workarounds or should I be looking at a different MTA 
that is known to work with Dovecot's SASL implementation.
-- 
Harondel J. Sibble 
Sibble Computer Consulting
Creating Solutions for the small and medium business computer user.
[EMAIL PROTECTED] (use pgp keyid 0x3AD5C11D) http://www.pdscc.com
(604) 739-3709 (voice/fax)  (604) 686-2253 (pager)



Re: [Dovecot] Dovecot+PostfixAdmin+PostgreSQL on FreeBSD 7

2008-10-22 Thread Timo Sirainen
On Wed, 2008-10-22 at 22:56 +0800, Erdenebat Gantumur wrote:
> Hi dear All,
> 
> Currently I'm configuring Dovecot+PostfixAdmin+PostgreSQL on FreeBSD 7
> Stable and using Dovecot v1.1.3. I hope I've configured everything. But
> when I run /usr/local/etc/rc.d/dovecot start then dovecot doesn't seems
> to running. /var/log/maillog is only showing following.

Start Dovecot using "dovecot -F". If it doesn't exit, then it's running.
If it does exit, what does it say?



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


Re: [Dovecot] logging IMAP username rather than UNIX username

2008-10-22 Thread Timo Sirainen
On Wed, 2008-10-22 at 12:00 +0200, Dale Gallagher wrote:
> Hi there
> 
> I'd like to change my setup to log the _actual_ IMAP user's login,
> rather than the UNIX username. My system uses a virtual uid setup with
> qmail, where the mailboxes are owned by the 'vmail' user and
> authentication is via checkpassword using user%domain (ie email, just
> with % instead of @). So dovecot is recording _all_ logins as:
> 
> imap-login: Login: user=, method=PLAIN, rip=127.0.0.1,
> lip=127.0.0.1, secured

That means your authentication changes the username.

>   passdb checkpassword {
> args = /var/qmail/bin/qmail-vauth
>   }

Most likely qmail-vauth changes USER environment to vmail. If you can't
edit qmail-vauth directly, create a wrapper script that unsets the USER
environment before calling Dovecot's checkpassword-reply.



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


Re: [Dovecot] dovecot and postfix with tls and dovecot sasl issues for smtp clients

2008-10-22 Thread Timo Sirainen
On Tue, 2008-10-21 at 17:18 -0700, Harondel J. Sibble wrote:
> Using the same self created CA that generates and certifies the ssl client 
> certs in Postfix and using Dovecot SASL, I always get client didn't send 
> proper ssl cert when trying to do a tls based smtp connection from either the 
> e61i or tbird.

I don't think Postfix ever sends the "valid-cert" parameter that's
required for Dovecot to treat the authentication as valid.



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


Re: [Dovecot] dovecot 1.0 to 1.1 upgrade and filesystem separators

2008-10-22 Thread Timo Sirainen
On Wed, 2008-10-22 at 13:43 +0100, Ian Thurlbeck wrote:
> #define MAILDIR_FS_SEP ';'
> #define MAILDIR_FS_SEP_S ";"
> 
> so I can get some mail folder hierarchy and '.'s in
> folder names - this all worked perfectly.
> 
> Under 1.1.4 the MAILDIR_FS_SEP lines are no longer present.
> 
> What is the current practice for doing what I was doing before ?

src/lib-storage/list/mailbox-list-maildir.c

struct mailbox_list maildir_mailbox_list = {
MEMBER(name) MAILBOX_LIST_NAME_MAILDIRPLUSPLUS,
MEMBER(hierarchy_sep) '.',

Change hierarchy_sep to ';'.

A better long-term plan would be to use listescape plugin:
http://dovecot.org/patches/1.1/listescape-plugin.c

That of course requires that you rename all the existing maildirs.


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


Re: [Dovecot] New userdb backend for checkpassword like programs

2008-10-22 Thread Timo Sirainen
On Wed, 2008-10-22 at 16:15 +0200, Sascha Wilde wrote:
> Timo Sirainen <[EMAIL PROTECTED]> writes:
> > On Oct 21, 2008, at 5:27 PM, Sascha Wilde wrote:
> >> Sascha Wilde <[EMAIL PROTECTED]> writes:
> >>> [userdb-checkpassword]
> 
> > The code is now in dovecot-1.2 tree.
> 
> Thank you, that's great!  The only thing I'm missing is the addition to
> the example.conf I made.  (I have to admit it was only a stub, though)

http://hg.dovecot.org/dovecot-1.2/rev/4497c58eaca8 adds some other
missing changes too. I also decided to change AUTHORIZED=YES to
AUTHORIZED=1 initially. I did also think about yes -> done or yes ->
userdb or something similar, but 1 -> 2 seemed the best.

> There are more than 250LOC in deliver/auth-client.c and I wonder if
> there is already a higher level api for auth clients?  I would have
> expected something like this in lib-auth, but the stuff in there seems
> not to be what I'm looking for.  Any hints?

plugins/expire-tool/auth-client.c has copy&pasted that code also.. So it
would be nice if it was put to lib-auth :)


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


Re: [Dovecot] dovecot-deliver occasionally fails to deliver, leaving no clues

2008-10-22 Thread Lucas Madar


On Oct 21, 2008, at 3:48 PM, Timo Sirainen wrote:


On Tue, 2008-10-21 at 14:47 -0700, Lucas Madar wrote:

deliver([EMAIL PROTECTED]): Oct 21 09:51:55 Error: Auth lookup returned failure

The auth process is not logging any errors.


...

Sorry, the other one of the patches didn't work right. Apply this:
http://hg.dovecot.org/dovecot-1.1/rev/147a57cd312f



This patch appears to have fixed the problem entirely. :)

Thanks!
- Lucas


Re: [Dovecot] dovecot delivery log

2008-10-22 Thread jalal
2008/10/22 Eduardo M KALINOWSKI <[EMAIL PROTECTED]>:
> jalal escreveu:
>> Trying to debug a delivery problem recently (with Postfix) and I
>> realized that Dovecot wasn't logging any of the delivery information.
>> I'm using Postfix to recieve mail, which is passing it on to Dovecot's
>> deliver to actually deliver the emails into the mail boxes.
>>
>> In dovecot.conf, I have:
>> protocol lda {
>>   log_path = /var/tmp/dovecot-deliver.log
>> }
>>
>> Any clues as to how I can have a delivery log?
>>
>
> That file will only log errors and abnormal conditions. To get
> information on all deliveries, set info_log_path to the file you want.

Ah yes, I see it now. It's kind of buried in a bunch of POP3 and IMAP
login messages, but yes, it is there.

Thanks.


Re: [Dovecot] dovecot delivery log

2008-10-22 Thread Eduardo M KALINOWSKI
jalal escreveu:
> Trying to debug a delivery problem recently (with Postfix) and I
> realized that Dovecot wasn't logging any of the delivery information.
> I'm using Postfix to recieve mail, which is passing it on to Dovecot's
> deliver to actually deliver the emails into the mail boxes.
>
> In dovecot.conf, I have:
> protocol lda {
>   log_path = /var/tmp/dovecot-deliver.log
> }
>
> Any clues as to how I can have a delivery log?
>   

That file will only log errors and abnormal conditions. To get
information on all deliveries, set info_log_path to the file you want.

-- 
Eduardo M Kalinowski
[EMAIL PROTECTED]



[Dovecot] dovecot delivery log

2008-10-22 Thread jalal
Trying to debug a delivery problem recently (with Postfix) and I
realized that Dovecot wasn't logging any of the delivery information.
I'm using Postfix to recieve mail, which is passing it on to Dovecot's
deliver to actually deliver the emails into the mail boxes.

In dovecot.conf, I have:
protocol lda {
  log_path = /var/tmp/dovecot-deliver.log
}

[root]# dir /var/tmp/
total 2
drwxrwxrwt  2 root root 1024 Oct 22 12:30 .
drwxr-xr-x 24 root root 1024 Aug  5 08:03 ..
-rw---  1 vmailvmail   0 Oct 22 12:11 dovecot-deliver.log

The log file gets created OK, but then stays at zero size.

Using:
Postfix 2.3.3
Dovecot 1.1.4 (and previously 1.0.9)

Any clues as to how I can have a delivery log?


Re: [Dovecot] Dovecot+PostfixAdmin+PostgreSQL on FreeBSD 7

2008-10-22 Thread Erdenebat Gantumur
Also forgot to tell additional info. The FreeBSD 7 stable is actually
jail. Is someone faced with this issue running dovecot on jail? Thank you.

Erdenebat Gantumur wrote:
> Hi dear All,
>
> Currently I'm configuring Dovecot+PostfixAdmin+PostgreSQL on FreeBSD 7
> Stable and using Dovecot v1.1.3. I hope I've configured everything. But
> when I run /usr/local/etc/rc.d/dovecot start then dovecot doesn't seems
> to running. /var/log/maillog is only showing following.
>
> Oct 22 13:37:10 mail dovecot: Dovecot v1.1.3 starting up
> Oct 22 13:37:10 mail dovecot: auth(default): pgsql: Connected to postfix
> Oct 22 13:37:10 mail dovecot: auth-worker(default): pgsql: Connected to
> postfix
>
> Here is my current dovecot configuration. Please someone help me. What
> did I do wrong and what is the problem is? Thank you.
>
> mail# dovecot -n
> # 1.1.3: /usr/local/etc/dovecot.conf
> log_path: /var/log/dovecot.log
> info_log_path: /var/log/dovecot_info.log
> log_timestamp: %Y-%m-%d %H:%M:%S
> protocols: imap pop3
> listen(default): x.x.x.x:143
> listen(imap): x.x.x.x:143
> listen(pop3): x.x.x.x:110
> ssl_disable: yes
> disable_plaintext_auth: no
> login_dir: /var/run/dovecot/login
> login_executable(default): /usr/local/libexec/dovecot/imap-login
> login_executable(imap): /usr/local/libexec/dovecot/imap-login
> login_executable(pop3): /usr/local/libexec/dovecot/pop3-login
> login_greeting_capability(default): yes
> login_greeting_capability(imap): yes
> login_greeting_capability(pop3): no
> verbose_proctitle: yes
> first_valid_uid: 1983
> first_valid_gid: 1983
> mail_privileged_group: vmail
> mail_location: maildir:/var/vmail/%d/%n
> maildir_copy_preserve_filename: yes
> mail_executable(default): /usr/local/libexec/dovecot/imap
> mail_executable(imap): /usr/local/libexec/dovecot/imap
> mail_executable(pop3): /usr/local/libexec/dovecot/pop3
> mail_plugin_dir(default): /usr/local/lib/dovecot/imap
> mail_plugin_dir(imap): /usr/local/lib/dovecot/imap
> mail_plugin_dir(pop3): /usr/local/lib/dovecot/pop3
> imap_client_workarounds(default): delay-newmail netscape-eoh
> tb-extra-mailbox-sep
> imap_client_workarounds(imap): delay-newmail netscape-eoh
> tb-extra-mailbox-sep
> imap_client_workarounds(pop3):
> pop3_enable_last(default): no
> pop3_enable_last(imap): no
> pop3_enable_last(pop3): yes
> pop3_client_workarounds(default):
> pop3_client_workarounds(imap):
> pop3_client_workarounds(pop3): outlook-no-nuls oe-ns-eoh
> auth default:
>   mechanisms: plain login
>   username_format: %Lu
>   passdb:
> driver: sql
> args: /usr/local/etc/dovecot-sql.conf
>   userdb:
> driver: sql
> args: /usr/local/etc/dovecot-sql.conf
>   socket:
> type: listen
> client:
>   path: /var/run/dovecot/auth-client
>   mode: 432
> master:
>   path: /var/run/dovecot/auth-master
>   mode: 384
>
>
>
>   



[Dovecot] Dovecot+PostfixAdmin+PostgreSQL on FreeBSD 7

2008-10-22 Thread Erdenebat Gantumur
Hi dear All,

Currently I'm configuring Dovecot+PostfixAdmin+PostgreSQL on FreeBSD 7
Stable and using Dovecot v1.1.3. I hope I've configured everything. But
when I run /usr/local/etc/rc.d/dovecot start then dovecot doesn't seems
to running. /var/log/maillog is only showing following.

Oct 22 13:37:10 mail dovecot: Dovecot v1.1.3 starting up
Oct 22 13:37:10 mail dovecot: auth(default): pgsql: Connected to postfix
Oct 22 13:37:10 mail dovecot: auth-worker(default): pgsql: Connected to
postfix

Here is my current dovecot configuration. Please someone help me. What
did I do wrong and what is the problem is? Thank you.

mail# dovecot -n
# 1.1.3: /usr/local/etc/dovecot.conf
log_path: /var/log/dovecot.log
info_log_path: /var/log/dovecot_info.log
log_timestamp: %Y-%m-%d %H:%M:%S
protocols: imap pop3
listen(default): x.x.x.x:143
listen(imap): x.x.x.x:143
listen(pop3): x.x.x.x:110
ssl_disable: yes
disable_plaintext_auth: no
login_dir: /var/run/dovecot/login
login_executable(default): /usr/local/libexec/dovecot/imap-login
login_executable(imap): /usr/local/libexec/dovecot/imap-login
login_executable(pop3): /usr/local/libexec/dovecot/pop3-login
login_greeting_capability(default): yes
login_greeting_capability(imap): yes
login_greeting_capability(pop3): no
verbose_proctitle: yes
first_valid_uid: 1983
first_valid_gid: 1983
mail_privileged_group: vmail
mail_location: maildir:/var/vmail/%d/%n
maildir_copy_preserve_filename: yes
mail_executable(default): /usr/local/libexec/dovecot/imap
mail_executable(imap): /usr/local/libexec/dovecot/imap
mail_executable(pop3): /usr/local/libexec/dovecot/pop3
mail_plugin_dir(default): /usr/local/lib/dovecot/imap
mail_plugin_dir(imap): /usr/local/lib/dovecot/imap
mail_plugin_dir(pop3): /usr/local/lib/dovecot/pop3
imap_client_workarounds(default): delay-newmail netscape-eoh
tb-extra-mailbox-sep
imap_client_workarounds(imap): delay-newmail netscape-eoh
tb-extra-mailbox-sep
imap_client_workarounds(pop3):
pop3_enable_last(default): no
pop3_enable_last(imap): no
pop3_enable_last(pop3): yes
pop3_client_workarounds(default):
pop3_client_workarounds(imap):
pop3_client_workarounds(pop3): outlook-no-nuls oe-ns-eoh
auth default:
  mechanisms: plain login
  username_format: %Lu
  passdb:
driver: sql
args: /usr/local/etc/dovecot-sql.conf
  userdb:
driver: sql
args: /usr/local/etc/dovecot-sql.conf
  socket:
type: listen
client:
  path: /var/run/dovecot/auth-client
  mode: 432
master:
  path: /var/run/dovecot/auth-master
  mode: 384




Re: [Dovecot] displaying IMAP folders that are in ~/mail/ at same level as inbox

2008-10-22 Thread Charles Marcus
David,

Please fix your mailer... your reply was unreadable...

On 10/22/2008 9:37 AM, David London wrote:
>> El Miércoles, 22 de Octubre de 2008 a las 04:04, David London escribió:> > 
>> Thanks Laurent (and Charles re the age of the dovecot software),> >> > It 
>> looks like we've got what you say is needed (see configuration file> > 
>> below).  In addition the test accounts are brand new ones on the test> > 
>> system, not ones that have been moved over so .mailboxlist is not there -> > 
>> just .subscriptions> >> > Maybe what I'm trying to do is just not possible 
>> ...> > You can get it in the client. For example, in thunderbird, in Server 
>> > settings->advanced should be something like "IMAP server directory" (I'm > 
>> using an spanish version of thunderbird, so don't know the exact english 
>> name > for the option). Similar options exists for other clients.> > HTH.> 
>> -- > Joseba Torre. CIDIR Bizkaia.Thanks Jose,  Yes in the advanced options 
>> on email clients there is always a place to put the root folder path or 
>> (some similar name) and on the old server I used ~/mail/ in all of the email 
>> clients (thunder
bird, outlook, seamonkey etc) and that worked fine. Doing that on the new 
dovecot based server produces the effect I've described - a folder called mail 
visible at the same level as inbox and the other IMAP folders inside that.  On 
the older imapd based server doing the same thing produced a view of inbox with 
no mail folder ... just the IMAP folders in it displayed at the same level as 
inbox. Regards, David


-- 

Best regards,

Charles


[Dovecot] Dovecot+PostfixAdmin+PostgreSQL on FreeBSD 7

2008-10-22 Thread Erdenebat Guntomor
Hi dear All,

Currently I'm configuring Dovecot+PostfixAdmin+PostgreSQL on FreeBSD 7
Stable and using Dovecot v1.1.3. I hope I've configured everything. But
when I run /usr/local/etc/rc.d/dovecot start then dovecot doesn't seems
to running. /var/log/maillog is only showing following.

Oct 22 13:37:10 mail dovecot: Dovecot v1.1.3 starting up
Oct 22 13:37:10 mail dovecot: auth(default): pgsql: Connected to postfix
Oct 22 13:37:10 mail dovecot: auth-worker(default): pgsql: Connected to
postfix

Here is my current dovecot configuration. Please someone help me. What
did I do wrong and what is the problem is? Thank you.

mail# dovecot -n
# 1.1.3: /usr/local/etc/dovecot.conf
log_path: /var/log/dovecot.log
info_log_path: /var/log/dovecot_info.log
log_timestamp: %Y-%m-%d %H:%M:%S
protocols: imap pop3
listen(default): x.x.x.x:143
listen(imap): x.x.x.x:143
listen(pop3): x.x.x.x:110
ssl_disable: yes
disable_plaintext_auth: no
login_dir: /var/run/dovecot/login
login_executable(default): /usr/local/libexec/dovecot/imap-login
login_executable(imap): /usr/local/libexec/dovecot/imap-login
login_executable(pop3): /usr/local/libexec/dovecot/pop3-login
login_greeting_capability(default): yes
login_greeting_capability(imap): yes
login_greeting_capability(pop3): no
verbose_proctitle: yes
first_valid_uid: 1983
first_valid_gid: 1983
mail_privileged_group: vmail
mail_location: maildir:/var/vmail/%d/%n
maildir_copy_preserve_filename: yes
mail_executable(default): /usr/local/libexec/dovecot/imap
mail_executable(imap): /usr/local/libexec/dovecot/imap
mail_executable(pop3): /usr/local/libexec/dovecot/pop3
mail_plugin_dir(default): /usr/local/lib/dovecot/imap
mail_plugin_dir(imap): /usr/local/lib/dovecot/imap
mail_plugin_dir(pop3): /usr/local/lib/dovecot/pop3
imap_client_workarounds(default): delay-newmail netscape-eoh
tb-extra-mailbox-sep
imap_client_workarounds(imap): delay-newmail netscape-eoh
tb-extra-mailbox-sep
imap_client_workarounds(pop3):
pop3_enable_last(default): no
pop3_enable_last(imap): no
pop3_enable_last(pop3): yes
pop3_client_workarounds(default):
pop3_client_workarounds(imap):
pop3_client_workarounds(pop3): outlook-no-nuls oe-ns-eoh
auth default:
  mechanisms: plain login
  username_format: %Lu
  passdb:
driver: sql
args: /usr/local/etc/dovecot-sql.conf
  userdb:
driver: sql
args: /usr/local/etc/dovecot-sql.conf
  socket:
type: listen
client:
  path: /var/run/dovecot/auth-client
  mode: 432
master:
  path: /var/run/dovecot/auth-master
  mode: 384



Re: [Dovecot] New userdb backend for checkpassword like programs

2008-10-22 Thread Sascha Wilde
Timo Sirainen <[EMAIL PROTECTED]> writes:
> On Oct 21, 2008, at 5:27 PM, Sascha Wilde wrote:
>> Sascha Wilde <[EMAIL PROTECTED]> writes:
>>> [userdb-checkpassword]

> The code is now in dovecot-1.2 tree.

Thank you, that's great!  The only thing I'm missing is the addition to
the example.conf I made.  (I have to admit it was only a stub, though)

> I did some minor changes, mostly
> related to getting coding style consistent with the rest of Dovecot.
> It probably would have been possible to have the passdb and userdb
> share more code, but it's good enough now. :)

I agree.  Unfortunately I had no time to factor out the more tricky
parts.  (There is still a bunch of features we have to implement till
November...)

Apropos implementing features: 

I had a look at the deliver code to figure out how to get userdb data
From the auth server (I need this in shared-storage.c to implement %%h).

There are more than 250LOC in deliver/auth-client.c and I wonder if
there is already a higher level api for auth clients?  I would have
expected something like this in lib-auth, but the stuff in there seems
not to be what I'm looking for.  Any hints?

cheers
sascha
-- 
Sascha Wilde  OpenPGP key: 4BB86568
http://www.intevation.de/~wilde/  http://www.intevation.de/
Intevation GmbH, Neuer Graben 17, 49074 Osnabrück; AG Osnabrück, HR B 18998
Geschäftsführer:   Frank Koormann,  Bernhard Reiter,  Dr. Jan-Oliver Wagner


pgpeioTxhEHDm.pgp
Description: PGP signature


Re: [Dovecot] displaying IMAP folders that are in ~/mail/ at same level as inbox

2008-10-22 Thread David London

> El Miércoles, 22 de Octubre de 2008 a las 04:04, David London escribió:> > 
> Thanks Laurent (and Charles re the age of the dovecot software),> >> > It 
> looks like we've got what you say is needed (see configuration file> > 
> below).  In addition the test accounts are brand new ones on the test> > 
> system, not ones that have been moved over so .mailboxlist is not there -> > 
> just .subscriptions> >> > Maybe what I'm trying to do is just not possible 
> ...> > You can get it in the client. For example, in thunderbird, in Server > 
> settings->advanced should be something like "IMAP server directory" (I'm > 
> using an spanish version of thunderbird, so don't know the exact english name 
> > for the option). Similar options exists for other clients.> > HTH.> -- > 
> Joseba Torre. CIDIR Bizkaia.Thanks Jose,  Yes in the advanced options on 
> email clients there is always a place to put the root folder path or (some 
> similar name) and on the old server I used ~/mail/ in all of the email 
> clients (thunderbird, outlook, seamonkey etc) and that worked fine. Doing 
> that on the new dovecot based server produces the effect I've described - a 
> folder called mail visible at the same level as inbox and the other IMAP 
> folders inside that.  On the older imapd based server doing the same thing 
> produced a view of inbox with no mail folder ... just the IMAP folders in it 
> displayed at the same level as inbox. Regards, David
_



[Dovecot] dovecot 1.0 to 1.1 upgrade and filesystem separators

2008-10-22 Thread Ian Thurlbeck


Dear All

I have a test system where I am trying out 1.1.4
On the old 1.0rc6 (!) system I had edited:

src/lib-storage/index/maildir/mail-storage.h

to change:

#define MAILDIR_FS_SEP ';'
#define MAILDIR_FS_SEP_S ";"

so I can get some mail folder hierarchy and '.'s in
folder names - this all worked perfectly.

Under 1.1.4 the MAILDIR_FS_SEP lines are no longer present.

What is the current practice for doing what I was doing before ?

Many thanks!

Ian
--
Ian Thurlbeckhttp://www.stams.strath.ac.uk/
Statistics and Modelling Science, University of Strathclyde
Livingstone Tower, 26 Richmond Street, Glasgow, UK,  G1 1XH
Tel: +44 (0)141 548 3667   Fax: +44 (0)141 552 2079

The University of Strathclyde is a charitable body,
registered in Scotland, number SC015263.


Re: [Dovecot] Permission issues with subscriptions

2008-10-22 Thread Eric A. Bonney
Thanks Timo!

I didn't realize that the umask = 0777 was actually subtracting the digits 
from the permissions. Once I made the change to this line and we are back to 
being able to add and delete folders again.

Thanks for the help!

-Eric

On Tuesday 21 October 2008 17:47:32 Timo Sirainen wrote:
> On Tue, 2008-10-21 at 10:58 -0400, Eric A. Bonney wrote:
> > My users can not create folders at all from their email clients nor from
> > the web interface. I have noticed that each time I try to create a folder
> > the subscriptions files permissions are set to 000. If I go back and
> > reset the permissions to rw-r--r-- then everything is fine until I try to
> > add another folder.
> >
> > running dovecot -n produces the following:
> > # 1.0.10: /etc/dovecot/dovecot.conf
> > umask: 511
>
> 511 decimal = 0777 = created files have permissions set to 000.




Re: [Dovecot] Proxying pop3 sessions into an imap one.

2008-10-22 Thread Diego Liziero
On Wed, Oct 22, 2008 at 12:49 PM, Sotiris Tsimbonis
<[EMAIL PROTECTED]> wrote:
>
> I don't think that you'll find any piece of software that internally
> 'translates' pop3 commands to imap ..

Unless it saves a local copy of the mailbox...

> Pop3 sessions are usually locked, so multiple sessions are not possible..
> Unless something like the following is set in dovecot.conf
>
>  # Keep the mailbox locked for the entire POP3 session.
>  pop3_lock_session = no
>
> but this is dovecot specific (does this mail provider use dovecot?).

No idea about the provider.

> Also, I believe that behaviour will probably by uncertain if, say, multiple
> pop3 clients try to modify the same (single) mbox file.. So it also depends
> on the mailbox format you are trying to access, maybe Maildir or dbox are
> better..
>
> [..]
>
> Again.. Many people using pop3.. Depends on mail server software and mailbox
> format.. IMAP does multiple sessions better.

Just thinking aloud...

Could be a solution if I keep a local copy of the mailbox fetching it
somehow through imap or pop3 from the provider and then use dovecot
with  "pop3_lock_session = no" to serve the clients?

I'm not sure of it just because I don't know how the certified email
internally works.

Thank you for your help,
Diego.


Re: [Dovecot] Proxying pop3 sessions into an imap one.

2008-10-22 Thread Sotiris Tsimbonis

On 10/21/2008 10:18 PM, Diego Liziero wrote:

I know it seems at least unusual.

But I would like to know if someone knows a software that can proxy
multiple pop3 and imap connections to the same account and use only
imap connections to the real server.



I don't think that you'll find any piece of software that internally 
'translates' pop3 commands to imap ..



- 1 - A certified mail provider that states something that I would
like to know if it's really true, or if it's worth keeping like a
funny signature: "multiple imap sessions are possible. When an imap
session is active, no pop3 connections are possible on the same
account; when no imap connection is active, only one pop3 connection
at a time is possible on the same account. This is a limitation of the
pop3 protocol."


Pop3 sessions are usually locked, so multiple sessions are not 
possible.. Unless something like the following is set in dovecot.conf


  # Keep the mailbox locked for the entire POP3 session.
  pop3_lock_session = no

but this is dovecot specific (does this mail provider use dovecot?).

Also, I believe that behaviour will probably by uncertain if, say, 
multiple pop3 clients try to modify the same (single) mbox file.. So it 
also depends on the mailbox format you are trying to access, maybe 
Maildir or dbox are better..



- 2 - A software written to deal with certified mails that supports
only pop3 used by many people on the same account, (and the same
account is used also by multiple imap mail readers).


Again.. Many people using pop3.. Depends on mail server software and 
mailbox format.. IMAP does multiple sessions better.


Sot.


Re: [Dovecot] dovecot and postfix with tls and dovecot sasl issues for smtp clients

2008-10-22 Thread Eduardo M KALINOWSKI
Harondel J. Sibble wrote:
> dovecot -n
>
> # 1.1.4: /etc/dovecot.conf
> protocols: imaps pop3s
> ssl_listen(default): *:993
> ssl_listen(imap): *:993
> ssl_listen(pop3): *:995
> ssl_ca_file: /etc/openvpn/easy-rsa/keys/combined-ca-and-crl.crt
> ssl_cert_file: /etc/pki/dovecot/certs/dovecot-chained.cert
> ssl_key_file: /etc/pki/tls/private/server.myserver.net.key
> ssl_verify_client_cert: yes
> ssl_require_client_cert = yes
> verbose_ssl: yes
> login_dir: /var/run/dovecot/login
> login_executable(default): /usr/libexec/dovecot/imap-login
> login_executable(imap): /usr/libexec/dovecot/imap-login
> login_executable(pop3): /usr/libexec/dovecot/pop3-login
> mail_location: 
> mbox:~/mail:INBOX=/var/spool/mail/%u:INDEX=~/mail/.imap/indexes
> mail_debug: yes
> mail_executable(default): /usr/libexec/dovecot/imap
> mail_executable(imap): /usr/libexec/dovecot/imap
> mail_executable(pop3): /usr/libexec/dovecot/pop3
> mail_plugin_dir(default): /usr/lib/dovecot/imap
> mail_plugin_dir(imap): /usr/lib/dovecot/imap
> mail_plugin_dir(pop3): /usr/lib/dovecot/pop3
> auth default:
>   mechanisms: plain login
>   debug: yes
>   debug_passwords: yes
>   ssl_require_client_cert: yes
>   passdb:
> driver: pam
>   userdb:
> driver: passwd
>   socket:
> type: listen
> client:
>   path: /var/spool/postfix/private/auth
>   mode: 432
>   user: postfix
>   group: postfix
>
> Interestingly enough the mode line in the dovecot.conf file is set as 0660, 
> not 432 as noted above?!?!?
>   
0660 (octal) = 432 (decimal), so the setting is OK.

-- 
Esperto é o homem que acredita em apenas metade do que lhe dizem.
Genial é o homem que sabe em que metade acreditar.

Eduardo M KALINOWSKI
[EMAIL PROTECTED]
http://move.to/hpkb



Re: [Dovecot] logging IMAP username rather than UNIX username

2008-10-22 Thread Dale Gallagher
My auth section config is:

auth default {
  mechanisms = plain
  passdb checkpassword {
args = /var/qmail/bin/qmail-vauth
  }
  userdb prefetch {
  }
  user = auth
}

2008/10/22 Dale Gallagher <[EMAIL PROTECTED]>:
> Hi there
>
> I'd like to change my setup to log the _actual_ IMAP user's login,
> rather than the UNIX username. My system uses a virtual uid setup with
> qmail, where the mailboxes are owned by the 'vmail' user and
> authentication is via checkpassword using user%domain (ie email, just
> with % instead of @). So dovecot is recording _all_ logins as:
>
>imap-login: Login: user=, method=PLAIN, rip=127.0.0.1,
> lip=127.0.0.1, secured
>
> I have the following log format specified:
>
>login_log_format_elements = user=<%u> method=%m rip=%r lip=%l %c
>
> I have also tried:
>
>login_log_format_elements = user=<[EMAIL PROTECTED]> method=%m rip=%r 
> lip=%l %c
>
> However, this results in a log file entry of:
>
>imap-login: Login: user=, method=PLAIN, rip=127.0.0.1,
> lip=127.0.0.1, secured
>
> How do I configure dovecot to log the _actual_ username which the
> client supplies during authentication?
>
> Thanks
> Dale
>


[Dovecot] logging IMAP username rather than UNIX username

2008-10-22 Thread Dale Gallagher
Hi there

I'd like to change my setup to log the _actual_ IMAP user's login,
rather than the UNIX username. My system uses a virtual uid setup with
qmail, where the mailboxes are owned by the 'vmail' user and
authentication is via checkpassword using user%domain (ie email, just
with % instead of @). So dovecot is recording _all_ logins as:

imap-login: Login: user=, method=PLAIN, rip=127.0.0.1,
lip=127.0.0.1, secured

I have the following log format specified:

login_log_format_elements = user=<%u> method=%m rip=%r lip=%l %c

I have also tried:

login_log_format_elements = user=<[EMAIL PROTECTED]> method=%m rip=%r 
lip=%l %c

However, this results in a log file entry of:

imap-login: Login: user=, method=PLAIN, rip=127.0.0.1,
lip=127.0.0.1, secured

How do I configure dovecot to log the _actual_ username which the
client supplies during authentication?

Thanks
Dale


Re: [Dovecot] Too many open files

2008-10-22 Thread Antonio Casado Rodríguez

Quey escribió:

On 22/10/08 08:09:23, Antonio Casado Rodríguez wrote:

I forgot something,  i use dovecot 1.0.15 in RedHat Enterprise Linux 5.0

Do you know the problem?



Timo has already pointed this out to you.

Perfect.
In your, hrmm not used RH servers in years being a Skackware'r, but I 
think its in file /etc/init.d/dovecot ?

At the top of this file, right after the shell declaration, put in

ulimit -n 8192

Ok, I put it in /etc/init.d/dovecotand now i have:

# more /proc/`cat /var/run/dovecot/master.pid`/limits
Limit Soft Limit   Hard Limit   Units
Max cpu time  unlimitedunlimitedseconds
Max file size unlimitedunlimitedbytes
Max data size unlimitedunlimitedbytes
Max stack size10485760 unlimitedbytes
Max core file size0unlimitedbytes
Max resident set  unlimitedunlimitedbytes
Max processes 8191981919
processes

Max open files8192 8192 files
Max locked memory 3276832768bytes
Max address space unlimitedunlimitedbytes
Max file locksunlimitedunlimitedlocks
Max pending signals   8191981919signals
Max msgqueue size 819200   819200   bytes
Max nice priority 00
Max realtime priority 00


Thanks you.


Re: [Dovecot] Too many open files

2008-10-22 Thread Quey

On 22/10/08 08:09:23, Antonio Casado Rodríguez wrote:
I forgot something,  i use dovecot 1.0.15 in RedHat Enterprise  
Linux 5.0


Do you know the problem?



Timo has already pointed this out to you..

In your, hrmm not used RH servers in years being a Skackware'r, but I  
think its in file /etc/init.d/dovecot ?

At the top of this file, right after the shell declaration, put in

ulimit -n 8192




Re: [Dovecot] Too many open files

2008-10-22 Thread Quey

On 22/10/08 07:43:49, Timo Sirainen wrote:



What Dovecot version are you using? If v1.1+, doesn't it give a
warning
at startup that your limit is too low?



Just so you know dovecot does what you coded it to, yes it gives  
warning, dovecot -n in normal shell shows it, adn I think once I was  
lazy and started it without the rc file and was warned as well.


Re: [Dovecot] Too many open files

2008-10-22 Thread Antonio Casado

I forgot something,  i use dovecot 1.0.15 in RedHat Enterprise Linux 5.0

Do you know the problem?

Thank you.

Antonio Casado Rodríguez escribió:

Hi, other error in "open files":

dovecot: Oct 20 10:52:36 Fatal: 
execv(/usr/local/sbin/post-login-imap-dovecot) failed: Too many open 
files
dovecot: Oct 20 10:52:36 Error: child 1038 (imap) returned error 84 
(exec() failed)
dovecot: Oct 20 10:55:51 Fatal: 
execv(/usr/local/sbin/post-login-imap-dovecot) failed: Too many open 
files
dovecot: Oct 20 10:55:51 Error: child 4853 (imap) returned error 84 
(exec() failed)
dovecot: Oct 20 10:55:53 Fatal: 
execv(/usr/local/sbin/post-login-imap-dovecot) failed: Too many open 
files
dovecot: Oct 20 10:55:53 Error: child 4898 (imap) returned error 84 
(exec() failed)
dovecot: Oct 20 10:55:54 Fatal: 
execv(/usr/local/sbin/post-login-imap-dovecot) failed: Too many open 
files
dovecot: Oct 20 10:55:54 Error: child 4906 (imap) returned error 84 
(exec() failed)


# ulimit -a
core file size  (blocks, -c) 0
data seg size   (kbytes, -d) unlimited
scheduling priority (-e) 0
file size   (blocks, -f) unlimited
pending signals (-i) 81919
max locked memory   (kbytes, -l) 32
max memory size (kbytes, -m) unlimited
open files  (-n) 1024
pipe size(512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority  (-r) 0
stack size  (kbytes, -s) 10240
cpu time   (seconds, -t) unlimited
max user processes  (-u) 81919
virtual memory  (kbytes, -v) unlimited
file locks  (-x) unlimited

We work in "High-performance mode" with
login_max_processes_count = 256

Our script "post-login-imap-dovecot" is:
#!/bin/sh
touch ~/.last_login
exec /usr/libexec/dovecot/imap

Now, we have this:
# lsof -p `cat /var/run/dovecot/master.pid` | wc -l
1018

¿Any idea? Thanks a lot.

Bye.





Re: [Dovecot] displaying IMAP folders that are in ~/mail/ at same level as inbox

2008-10-22 Thread Joseba Torre
El Miércoles, 22 de Octubre de 2008 a las 04:04, David London escribió:
> Thanks Laurent (and Charles re the age of the dovecot software),
>
> It looks like we've got what you say is needed (see configuration file
> below).  In addition the test accounts are brand new ones on the test
> system, not ones that have been moved over so .mailboxlist is not there -
> just .subscriptions
>
> Maybe what I'm trying to do is just not possible ...

You can get it in the client. For example, in thunderbird, in Server 
settings->advanced should be something like "IMAP server directory" (I'm 
using an spanish version of thunderbird, so don't know the exact english name 
for the option). Similar options exists for other clients.

HTH.
-- 
Joseba Torre. CIDIR Bizkaia.


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