[Dovecot] different login_greeting for pop3 & imap?
Hi,
I have a tiny feature request for Dovecot: could it optionally have different login_greetings for pop3 and imap connections? e.g. I want it to say "Dovecot on pop.mycompany.com ready" on pop3 connections and "Dovecot on imap.mycompany.com ready" on imap connections. Would that be possible?
TIA,
Geert
Just put
protocol pop3 { login_greeting = Hello POP
...}
protocol imap { login_greeting = Hello IMAP ...}
etc.
Best Wishes, Chris
Geert Hendrickx wrote:
Hi,
I have a tiny feature request for Dovecot: could it optionally have different login_greetings for pop3 and imap connections? e.g. I want it to say "Dovecot on pop.mycompany.com ready" on pop3 connections and "Dovecot on imap.mycompany.com ready" on imap connections. Would that be possible?
TIA,
Geert
-- --+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+- Christopher Wakelin, c.d.wakelin@reading.ac.uk IT Services Centre, The University of Reading, Tel: +44 (0)118 378 8439 Whiteknights, Reading, RG6 2AF, UK Fax: +44 (0)118 975 3094
On Fri, May 05, 2006 at 04:47:19PM +0200, Geert Hendrickx wrote:
On Fri, May 05, 2006 at 03:25:28PM +0100, Chris Wakelin wrote:
Just put
protocol pop3 { login_greeting = Hello POP
...}
protocol imap { login_greeting = Hello IMAP ...}
Works like a charm, thanks!
Can I use the same split construction for any dovecot configuration setting? e.g. user/passwd databases? That'd be great (I want to make users with IMAP access a subset of the users with POP3 access).
Geert
On Sun, 2006-05-07 at 23:50 +0200, Geert Hendrickx wrote:
On Fri, May 05, 2006 at 04:47:19PM +0200, Geert Hendrickx wrote:
On Fri, May 05, 2006 at 03:25:28PM +0100, Chris Wakelin wrote:
Just put
protocol pop3 { login_greeting = Hello POP
...}
protocol imap { login_greeting = Hello IMAP ...}
Works like a charm, thanks!
Can I use the same split construction for any dovecot configuration setting? e.g. user/passwd databases?
Pretty much anything except authentication settings.
That'd be great (I want to make users with IMAP access a subset of the users with POP3 access).
There are several other ways you could be able to do that. At least with SQL/LDAP it's simple. With passwd-file you could probably use /etc/passwd.%s where %s expands to imap or pop3.
On Mon, May 08, 2006 at 10:45:04AM +0300, Timo Sirainen wrote:
Can I use the same split construction for any dovecot configuration setting? e.g. user/passwd databases?
Pretty much anything except authentication settings.
A great feature that is!
That'd be great (I want to make users with IMAP access a subset of the users with POP3 access).
There are several other ways you could be able to do that. At least with SQL/LDAP it's simple. With passwd-file you could probably use /etc/passwd.%s where %s expands to imap or pop3.
I'm using PgSQL here. I'd modify the query for imap like "WHERE imap='Y'" (as the pop/imap users are in the same db, the imap users are just a subset). The %s variable is another option I could use somehow (I didn't know about it either ;-)).
Thanks!
Geert
participants (3)
-
Chris Wakelin
-
Geert Hendrickx
-
Timo Sirainen