1

Topic: Dovecot tracking user

dear all, how i can track dovecot login info (pop3/imap) ?

i configured [1]

[1]Referance : http://www.iredmail.org/forum/topic379- … tocol.html

Thanks,Regards.

my dovecot -n output

# 1.2.17: /etc/dovecot.conf
# OS: Linux 2.6.18-308.16.1.el5.centos.plus x86_64 CentOS release 5.9 (Final)
log_path: /var/log/dovecot.log
protocols: pop3 pop3s imap imaps managesieve
listen(default): *
listen(imap): *
listen(pop3): *
listen(managesieve): 127.0.0.1:2000
ssl_ca_file: /etc/postfix/ssl/cacert.pem
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
login_executable(managesieve): /usr/libexec/dovecot/managesieve-login
last_valid_uid: 500
mail_uid: 500
mail_gid: 500
mail_location: maildir:/%Lh/Maildir/:INDEX=/%Lh/Maildir/
mail_drop_priv_before_exec(default): yes
mail_drop_priv_before_exec(imap): yes
mail_drop_priv_before_exec(pop3): yes
mail_drop_priv_before_exec(managesieve): no
mail_executable(default): /usr/bin/trackLastLogin.sh imap
mail_executable(imap): /usr/bin/trackLastLogin.sh imap
mail_executable(pop3): /usr/bin/trackLastLogin.sh pop3
mail_executable(managesieve): /usr/libexec/dovecot/managesieve
mail_process_size: 1024
mail_plugins(default): quota imap_quota autocreate mail_log
mail_plugins(imap): quota imap_quota autocreate mail_log
mail_plugins(pop3): quota
mail_plugins(managesieve):
mail_plugin_dir(default): /usr/lib64/dovecot/imap
mail_plugin_dir(imap): /usr/lib64/dovecot/imap
mail_plugin_dir(pop3): /usr/lib64/dovecot/pop3
mail_plugin_dir(managesieve): /usr/lib64/dovecot/managesieve
mail_log_max_lines_per_sec: 0
pop3_client_workarounds(default):
pop3_client_workarounds(imap):
pop3_client_workarounds(pop3): outlook-no-nuls oe-ns-eoh
pop3_client_workarounds(managesieve):
namespace:
  type: private
  separator: /
  inbox: yes
  list: yes
  subscriptions: yes
namespace:
  type: shared
  separator: /
  prefix: Shared/%%u/
  location: maildir:/%%Lh/Maildir/:INDEX=/%%Lh/Maildir/Shared/%%u
  list: children
  subscriptions: yes
lda:
  postmaster_address: root
  auth_socket_path: /var/run/dovecot/auth-master
  mail_plugins: quota sieve autocreate
  sieve_global_path: /mail/sieve/dovecot.sieve
  log_path: /var/log/sieve.log
auth default:
  mechanisms: plain login
  user: vmail
  passdb:
    driver: ldap
    args: /etc/dovecot-ldap.conf
  userdb:
    driver: ldap
    args: /etc/dovecot-ldap.conf
  socket:
    type: listen
    client:
      path: /var/spool/postfix/dovecot-auth
      mode: 438
      user: postfix
      group: postfix
    master:
      path: /var/run/dovecot/auth-master
      mode: 438
      user: vmail
      group: vmail
plugin:
  quota_warning: storage=85%% /usr/local/bin/dovecot-quota-warning.sh 85
  quota_warning2: storage=90%% /usr/local/bin/dovecot-quota-warning.sh 90
  quota_warning3: storage=95%% /usr/local/bin/dovecot-quota-warning.sh 95
  quota_warning4: storage=99%% /usr/local/bin/dovecot-quota-warning.sh 99
  mail_log_fields: uid box msgid size subject from
  quota: dict:user::proxy::quotadict
  quota_rule: *:storage=0
  expire: Trash 7 Trash/* 7 Junk 30
  expire_dict: proxy::expire
  auth_socket_path: /var/run/dovecot/auth-master
  sieve: /mail/sieve/%Ld/%Ln/dovecot.sieve
  autocreate: INBOX
  autocreate2: Sent
  autocreate3: Trash
  autocreate4: Drafts
  autocreate5: Junk
  autosubscribe: INBOX
  autosubscribe2: Sent
  autosubscribe3: Trash
  autosubscribe4: Drafts
  autosubscribe5: Junk
  acl: vfile
  acl_shared_dict: proxy::acl
  sieve: /mail/sieve/%Ld/%Ln/dovecot.sieve
  sieve_dir: /mail/sieve/%Ld/%Ln/
dict:
  expire: db:/var/lib/dovecot/expire/expire.db
  quotadict: mysql:/etc/dovecot-used-quota.conf
  acl: mysql:/etc/dovecot-share-folder.conf

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: Dovecot tracking user

Please turn on debug mode in Dovecot, then test again, and post related log here.

3

Re: Dovecot tracking user

Mar 19 17:19:59 dovecot: Info: Dovecot v1.2.17 starting up (core dumps disabled)
Mar 19 17:20:00 pop3-login: Info: Login: user=<murat@murat.tc>, method=PLAIN, rip=192.168.1.1, lip=192.168.1.2
Mar 19 17:20:00 POP3(murat@murat.tc): Info: Loading modules from directory: /usr/lib64/dovecot/pop3
Mar 19 17:20:00 POP3(murat@murat.tc): Info: Module loaded: /usr/lib64/dovecot/pop3/lib10_quota_plugin.so
Mar 19 17:20:00 POP3(murat@murat.tc): Info: Effective uid=500, gid=500, home=/mail
Mar 19 17:20:00 POP3(murat@murat.tc): Info: Quota root: name=user backend=dict args=:proxy::quotadict
Mar 19 17:20:00 POP3(murat@murat.tc): Info: Quota rule: root=user mailbox=* bytes=2147483648 messages=0
Mar 19 17:20:00 POP3(murat@murat.tc): Info: Quota warning: bytes=1825361100 (85%) messages=0 command=/usr/local/bin/dovecot-quota-warning.sh 85
Mar 19 17:20:00 POP3(murat@murat.tc): Info: Quota warning: bytes=1932735283 (90%) messages=0 command=/usr/local/bin/dovecot-quota-warning.sh 90
Mar 19 17:20:00 POP3(murat@murat.tc): Info: Quota warning: bytes=2040109465 (95%) messages=0 command=/usr/local/bin/dovecot-quota-warning.sh 95
Mar 19 17:20:00 POP3(murat@murat.tc): Info: Quota warning: bytes=2126008811 (99%) messages=0 command=/usr/local/bin/dovecot-quota-warning.sh 99
Mar 19 17:20:00 POP3(murat@murat.tc): Info: dict quota: user=murat@murat.tc, uri=proxy::quotadict, noenforcing=0
Mar 19 17:20:00 POP3(murat@murat.tc): Info: Namespace: type=private, prefix=, sep=/, inbox=yes, hidden=no, list=yes, subscriptions=yes
Mar 19 17:20:00 POP3(murat@murat.tc): Info: maildir: data=~/vmail1/murat-2011.02.22.12.04//Maildir/
Mar 19 17:20:00 POP3(murat@murat.tc): Info: maildir++: root=/mail/vmail1/murat-2011.02.22.12.04//Maildir, index=, contr
ol=, inbox=/mail/vmail1/murat-2011.02.22.12.04//Maildir
Mar 19 17:20:00 POP3(murat@murat.tc): Info: Namespace: type=shared, prefix=Shared/%u/, sep=/, inbox=no, hidden=no, list=children, subscriptions=yes
Mar 19 17:20:00 POP3(murat@murat.tc): Info: shared: root=, index=, control=, inbox=
Mar 19 17:20:00 POP3(murat@murat.tc): Info: Namespace : Using permissions from /mail/vmail1/murat-2011.02.22.12.04//Mai
ldir: mode=0700 gid=-1

4

Re: Dovecot tracking user

No error in your pasted log.

5

Re: Dovecot tracking user

yes. i have no error. I check it. But not working.

6

Re: Dovecot tracking user

What do you mean "not working"? It doesn't update related LDAP/SQL records?

7

Re: Dovecot tracking user

yes. right. it doesnt update LDAP records. I check password, dn or another something.

8

Re: Dovecot tracking user

*) Do you have correct LDAP bind dn/password, base dn in the post login script?
*) Can you bind to LDAP server with this bind dn/password?
*) Show us the track script you're running.