[Dovecot] proxy logging

diego bugtraq at md5.com.ar
Fri Jan 25 03:38:23 EET 2008


Hi, I'm testing dovecot 1.1.beta14 on two debian etch with 
drbd+ocfs2[active/active], I use qmail+vpopmail(userdb) and three 
front-end with openbsd 4.2 with dovecot 1.1.beta14 as proxy with passdb 
sql through vpopmail database.
Is posible to add logs into vpopmail.vlog from proxys?, like "update 
vlog blah blah..." or in other sql database?
I tried with post login scripting but I don't recibe any variable.

Please, sorry my poor english.

Regards,.

debian backend servers:
# 1.1.beta14: /etc/dovecot.conf
log_path: /var/log/dovecot.log
info_log_path: /var/log/dovecot.log
protocols: imap pop3
ssl_disable: yes
disable_plaintext_auth: no
login_dir: /usr/local/dovecot/var/run/dovecot/login
login_executable(default): /usr/local/dovecot/libexec/dovecot/imap-login
login_executable(imap): /usr/local/dovecot/libexec/dovecot/imap-login
login_executable(pop3): /usr/local/dovecot/libexec/dovecot/pop3-login
login_process_per_connection: no
mail_max_userip_connections: 2048
verbose_proctitle: yes
mail_debug: yes
mmap_disable: yes
mail_executable(default): /usr/local/dovecot/libexec/dovecot/imap
mail_executable(imap): /usr/local/dovecot/libexec/dovecot/imap
mail_executable(pop3): /usr/local/dovecot/libexec/dovecot/pop3
mail_plugins(default): quota imap_quota
mail_plugins(imap): quota imap_quota
mail_plugins(pop3):
mail_plugin_dir(default): /usr/local/dovecot/lib/dovecot/imap
mail_plugin_dir(imap): /usr/local/dovecot/lib/dovecot/imap
mail_plugin_dir(pop3): /usr/local/dovecot/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_client_workarounds(default):
pop3_client_workarounds(imap):
pop3_client_workarounds(pop3): outlook-no-nuls oe-ns-eoh
auth default:
   verbose: yes
   debug: yes
   debug_passwords: yes
   passdb:
     driver: vpopmail
   userdb:
     driver: vpopmail
plugin:
   quota: maildir


openbsd frontend servers:
# 1.1.beta14: /etc/dovecot.conf
log_path: /var/log/dovecot.log
info_log_path: /var/log/dovecot.log
protocols: imaps pop3s
ssl_cert_file: /etc/ssl/dovecot.pem
verbose_ssl: yes
login_dir: /usr/local/dovecot/var/run/dovecot/login
login_executable(default): /usr/local/dovecot/libexec/dovecot/imap-login
login_executable(imap): /usr/local/dovecot/libexec/dovecot/imap-login
login_executable(pop3): /usr/local/dovecot/libexec/dovecot/pop3-login
login_user: _dovecot
verbose_proctitle: yes
mail_debug: yes
fsync_disable: yes
mail_drop_priv_before_exec: yes
mail_executable(default): /usr/local/dovecot/libexec/dovecot/imap
mail_executable(imap): /usr/local/dovecot/libexec/dovecot/imap
mail_executable(pop3): /usr/local/dovecot/libexec/dovecot/pop3
mail_plugin_dir(default): /usr/local/dovecot/lib/dovecot/imap
mail_plugin_dir(imap): /usr/local/dovecot/lib/dovecot/imap
mail_plugin_dir(pop3): /usr/local/dovecot/lib/dovecot/pop3
mail_log_max_lines_per_sec: 0
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_client_workarounds(default):
pop3_client_workarounds(imap):
pop3_client_workarounds(pop3): outlook-no-nuls oe-ns-eoh
auth default:
   user: nobody
   verbose: yes
   debug: yes
   debug_passwords: yes
   passdb:
     driver: sql
     args: /etc/dovecot-sql.conf
   userdb:
     driver: static
     args: uid=0 gid=0
plugin:
   quota: maildir
   mail_log_events: delete undelete expunge copy mailbox_delete 
mailbox_rename
   mail_log_fields: uid box msgid size

/etc/dovecot-sql.conf:
password_query = SELECT pw_clear_passwd AS password, pw_domain AS 
domain, '192.168.224.2' AS host, 'Y' AS nologin, 'Y' AS nodelay, 'Y' AS 
proxy FROM vpopmail WHERE pw_name = '%n' AND pw_domain = '%d' limit 1


More information about the dovecot mailing list