[Dovecot] is it possible to fetch messages for multiple users using a single account?

Tony Smith tony.smith.124 at googlemail.com
Wed Oct 7 12:19:42 EEST 2009


Dear list,

I am running dovecot with LDAP. Each account has email in form
abc at example.com, and messages are stored at /var/vmail/abc/Maildir.
This is an external mail server, and I would like to use a cron job to
fetch all messages to an internal server which has slow internet
connection.
It seems getmail supports multidrop retriever which might fit the
bill. However I could not figure out how to set up an account that can
be used to fetch all messages for all virtual accounts. Is it possible
at all?

thanks,
Tony

PS: here is my config:
# dovecot -n
# 1.1.13: /etc/dovecot/dovecot.conf
# OS: Linux 2.6.26-2-openvz-amd64 i686 Debian 5.0.3
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_cert_file: /etc/ssl/certs/cert.pem
ssl_key_file: /etc/ssl/private/key.pem
disable_plaintext_auth: no
login_dir: /var/run/dovecot/login
login_executable(default): /usr/lib/dovecot/imap-login
login_executable(imap): /usr/lib/dovecot/imap-login
login_executable(pop3): /usr/lib/dovecot/pop3-login
login_executable(managesieve): /usr/lib/dovecot/managesieve-login
mail_uid: 1000
mail_gid: 1000
mail_location: maildir:/%Lh/Maildir/:INDEX=/%Lh/Maildir/
mail_executable(default): /usr/lib/dovecot/imap
mail_executable(imap): /usr/lib/dovecot/imap
mail_executable(pop3): /usr/lib/dovecot/pop3
mail_executable(managesieve): /usr/lib/dovecot/managesieve
mail_plugins(default): quota imap_quota zlib
mail_plugins(imap): quota imap_quota zlib
mail_plugins(pop3): quota zlib
mail_plugins(managesieve):
mail_plugin_dir(default): /usr/lib/dovecot/modules/imap
mail_plugin_dir(imap): /usr/lib/dovecot/modules/imap
mail_plugin_dir(pop3): /usr/lib/dovecot/modules/pop3
mail_plugin_dir(managesieve): /usr/lib/dovecot/modules/managesieve
pop3_client_workarounds(default):
pop3_client_workarounds(imap):
pop3_client_workarounds(pop3): outlook-no-nuls oe-ns-eoh
pop3_client_workarounds(managesieve):
sieve_storage(default):
sieve_storage(imap):
sieve_storage(pop3):
sieve_storage(managesieve): /var/vmail/sieve/%Ld/%Ln/
sieve(default):
sieve(imap):
sieve(pop3):
sieve(managesieve): dovecot.sieve
auth default:
  mechanisms: plain login
  default_realm: river-valley.com
  user: vmail
  passdb:
    driver: ldap
    args: /etc/dovecot/dovecot-ldap.conf
  userdb:
    driver: ldap
    args: /etc/dovecot/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/bin/dovecot-quota-warning.sh 85
  quota_warning2: storage=90%% /usr/bin/dovecot-quota-warning.sh 90
  quota_warning3: storage=95%% /usr/bin/dovecot-quota-warning.sh 95
  quota: maildir
  quota_rule: *:storage=100M
  expire: Trash 7 Trash/* 7 Junk 30
  expire_dict: proxy::expire
  auth_socket_path: /var/run/dovecot/auth-master
dict:
  expire: db:/var/lib/dovecot/expire/expire.db


More information about the dovecot mailing list