cleanup postlogin hooks in dovecot so they are uniform and always post-login, closes #1632
This commit is contained in:
parent
d8fe94d24b
commit
511653d327
|
@ -192,7 +192,20 @@ protocol imap {
|
||||||
}
|
}
|
||||||
|
|
||||||
service imap {
|
service imap {
|
||||||
executable = /usr/lib/alternc/popimap-log-login.sh /usr/lib/dovecot/imap
|
# tell imap to do post-login lookup using a socket called "imap-postlogin"
|
||||||
|
executable = imap postlogin
|
||||||
|
}
|
||||||
|
|
||||||
|
# The service name below doesn't actually matter.
|
||||||
|
service postlogin {
|
||||||
|
# all post-login scripts are executed via script-login binary
|
||||||
|
executable = script-login /usr/lib/alternc/popimap-log-login.sh
|
||||||
|
|
||||||
|
# the script process runs as the user specified here (v2.0.14+):
|
||||||
|
#user = $default_internal_user
|
||||||
|
# this UNIX socket listener must use the same name as given to imap executable
|
||||||
|
unix_listener postlogin {
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -247,7 +260,8 @@ protocol pop3 {
|
||||||
}
|
}
|
||||||
|
|
||||||
service pop3 {
|
service pop3 {
|
||||||
executable = /usr/lib/alternc/popimap-log-login.sh /usr/lib/dovecot/pop3
|
# tell imap to do post-login lookup using a socket called "imap-postlogin"
|
||||||
|
executable = pop3 postlogin
|
||||||
}
|
}
|
||||||
|
|
||||||
# ----------------------------------------------------------------------------
|
# ----------------------------------------------------------------------------
|
||||||
|
|
|
@ -195,18 +195,22 @@ protocol imap {
|
||||||
}
|
}
|
||||||
|
|
||||||
service imap {
|
service imap {
|
||||||
executable = imap imap-postlogin
|
# tell imap to do post-login lookup using a socket called "postlogin"
|
||||||
|
executable = imap postlogin
|
||||||
vsz_limit = 512M
|
vsz_limit = 512M
|
||||||
}
|
}
|
||||||
|
|
||||||
service imap-postlogin {
|
# The service name below doesn't actually matter.
|
||||||
executable = script-login /usr/lib/alternc/popimap-log-login.sh
|
service postlogin {
|
||||||
|
# all post-login scripts are executed via script-login binary
|
||||||
|
executable = script-login /usr/lib/alternc/popimap-log-login.sh
|
||||||
|
|
||||||
# the script process runs as the user specified here (v2.0.14+):
|
# the script process runs as the user specified here (v2.0.14+):
|
||||||
# user = $default_internal_user
|
#user = $default_internal_user
|
||||||
# this UNIX socket listener must use the same name as given to imap executable
|
# this UNIX socket listener must use the same name as given to imap executable
|
||||||
unix_listener imap-postlogin {
|
unix_listener postlogin {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
# ----------------------------------------------------------------------------
|
# ----------------------------------------------------------------------------
|
||||||
# 20-managesieve.conf
|
# 20-managesieve.conf
|
||||||
|
@ -259,7 +263,8 @@ protocol pop3 {
|
||||||
}
|
}
|
||||||
|
|
||||||
service pop3 {
|
service pop3 {
|
||||||
executable = /usr/lib/alternc/popimap-log-login.sh /usr/lib/dovecot/pop3
|
# tell imap to do post-login lookup using a socket called "postlogin"
|
||||||
|
executable = pop3 postlogin
|
||||||
}
|
}
|
||||||
|
|
||||||
# ----------------------------------------------------------------------------
|
# ----------------------------------------------------------------------------
|
||||||
|
|
Loading…
Reference in New Issue