[Dovecot] recipient_delimiter
Can I enable $recipient_delimiter = ‘+’ for only the virtual sql users?
$ doveconf -n
# 2.2.5: /usr/local/etc/dovecot/dovecot.conf
# OS: FreeBSD 9.1-RELEASE i386
auth_mechanisms = PLAIN LOGIN
disable_plaintext_auth = no
first_valid_uid = 89
login_log_format_elements = user=<%u> %r %m %c
mail_location = maildir:~/Maildir
mail_max_userip_connections = 90
managesieve_notify_capability = mailto
managesieve_sieve_capability = fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variables body enotify environment mailbox date ihave
namespace inbox {
inbox = yes
location =
mailbox Drafts {
special_use = \Drafts
}
mailbox Junk {
auto = subscribe
special_use = \Junk
}
mailbox NotJunk {
auto = subscribe
}
mailbox Sent {
special_use = \Sent
}
mailbox "Sent Messages" {
special_use = \Sent
}
mailbox Trash {
special_use = \Trash
}
prefix =
}
passdb {
driver = pam
}
passdb {
args = /etc/dovecot/dovecot-sql.conf.ext
driver = sql
}
protocols = imap sieve
service auth {
unix_listener /var/spool/postfix/private/auth {
mode = 0666
}
}
service imap-login {
inet_listener imaps {
port = 993
ssl = yes
}
}
ssl_cert =
My pam users all have .procmailrc, and I do not want to interfere with those.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Wed, 25 Sep 2013, LuKreme wrote:
Can I enable $recipient_delimiter = ‘+’ for only the virtual sql users?
let it blank in the default config, but return a field "plugin/recipient_delimiter" from SQL.
Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux)
iQEVAwUBUkRcP13r2wJMiz2NAQKC+wgAvfelpDQl8iUBMZ4IiyTNGy+3KI4kW82o Mlmgd9F2akNwr4Ow3OgBWIdBpXiAHhcteVTU7QEbLiCUw21TfX62lud1qBwpaXfL yPQiEwfuabCsgk6+VNKu0eNxkbVjfNR0ajsXDxY7eEAyiyfOMNvViyo6DBJr+5pH p1aY5TqhQ3Had2mMz/lgGQWErjjaswlZP+Kd60T6+Klf4q1B9okNpEDX4YDm8KR4 3T8h2CPVEdSHjcaleifPOS7ICE5x7yxswsfwwdyb4PeHSfcwcz3oPFMVu7hMUzR/ ZH6Shfu+qrVhWw/ViLJrl9vJz5RfUAkWwBWlNo1utFJizmYIXDUX8w== =G8/L -----END PGP SIGNATURE-----
On 26 Sep 2013, at 10:09 , Steffen Kaiser skdovecot@smail.inf.fh-brs.de wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Wed, 25 Sep 2013, LuKreme wrote:
Can I enable $recipient_delimiter = ‘+’ for only the virtual sql users?
let it blank in the default config, but return a field "plugin/recipient_delimiter" from SQL.
Something like this:
userdb { args = /etc/dovecot/dovecot-sql.conf.ext default_fields = uid=vpopmail gid=vchkpw mail_location=/usr/local/virtual/%u mail=maildir:/usr/local/virtual/%u recipient_delimiter='+' driver = sql }
??
-- The Earth is like a tiny grain of sand, only much, much heavier.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Thu, 26 Sep 2013, LuKreme wrote:
On 26 Sep 2013, at 10:09 , Steffen Kaiser skdovecot@smail.inf.fh-brs.de wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Wed, 25 Sep 2013, LuKreme wrote:
Can I enable $recipient_delimiter = ‘+’ for only the virtual sql users?
let it blank in the default config, but return a field "plugin/recipient_delimiter" from SQL.
Something like this:
userdb { args = /etc/dovecot/dovecot-sql.conf.ext default_fields = uid=vpopmail gid=vchkpw mail_location=/usr/local/virtual/%u mail=maildir:/usr/local/virtual/%u recipient_delimiter='+' driver = sql }
I thought you need:
default_fields = uid=vpopmail gid=vchkpw mail_location=/usr/local/virtual/%u mail=maildir:/usr/local/virtual/%u plugin/recipient_delimiter='+'
but http://wiki2.dovecot.org/UserDatabase/ExtraFields
"Any unknown setting is placed into plugin {} section (e.g. foo=bar will be parsed as if it were plugin { foo=bar })."
suggests you need no "plugin/" prefix.
You can name a settings by "section/subsection/.../setting":
"If you want to override settings inside sections, you can separate the section name and key with '/'. For example:
namespace default { inbox = yes }
The inbox setting can be overridden by returning namespace/default/inbox=yes extra field."
Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux)
iQEVAwUBUkUrwl3r2wJMiz2NAQIU3Qf/X5EkaPI+45ZEYw/pVGlfciDtiK7z1vUh UYBoXBOnT+vp3LxXdrWlfxUYp3X/FTBaeKHz3zEx2A7UDGYhbSe9taf2FIyqUfl0 OQIeeDLnbnfmZYINrnAZhGoNf/IYTf+2mNv42IN/vEqebDdONlXZCaF+1IvmQxS7 gMQzly8X92OABchM0WpjdOSbywgsFGpx7sKwncjXY4YkvIOkNtN2t9hckboWn7sz T2BfOQLs4ODwxA1DuEIUt/RXLrtlxgUvJ+cDIi6AiwWxQFI0PkQ9MoNhyRi7ubVE 02CVhCTivyXlCbfsAnemGa1JGY2ybxJRDbCIh+tJAF1x5KH108g8ng== =w1aY -----END PGP SIGNATURE-----
participants (2)
-
LuKreme
-
Steffen Kaiser