I have the following set in the main level of my dovecot.conf file:
mail_location = maildir:/var/mail/virtual/%u
I decided to enable the lda protocol for local delivery from postfix,
so I could use sieve plugins. The lda protocol seems to ignore
settings in the rest of the dovecot.conf file, however, such as the
above. Unless lda has a pre-existing maildir mailbox, it can't
create one. How do I give lda defaults to follow, if the above
statement doesn't do it?
Here is the output of dovecot -n
Thanks!
----
# /etc/dovecot/dovecot.conf
log_timestamp: %Y-%m-%d %H:%M:%S
protocols: imap pop3 imaps pop3s
listen: 127.0.0.1
ssl_listen: [::]
ssl_cert_file: /etc/ssl/private/mail.antsclimbtree.com.pem
ssl_key_file: /etc/ssl/private/mail.antsclimbtree.com.pem
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
valid_chroot_dirs: /var/mail
verbose_proctitle: yes
first_valid_uid: 8
last_valid_uid: 8
first_valid_gid: 8
last_valid_gid: 8
mail_extra_groups: mail
mail_location: maildir:/var/mail/virtual/%u
maildir_copy_with_hardlinks: yes
mail_executable(default): /usr/lib/dovecot/imap
mail_executable(imap): /usr/lib/dovecot/imap
mail_executable(pop3): /usr/lib/dovecot/pop3
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
imap_client_workarounds(default): outlook-idle delay-newmail
imap_client_workarounds(imap): outlook-idle delay-newmail
imap_client_workarounds(pop3): outlook-idle
pop3_uidl_format(default):
pop3_uidl_format(imap):
pop3_uidl_format(pop3): %08Xu%08Xv
pop3_client_workarounds(default):
pop3_client_workarounds(imap):
pop3_client_workarounds(pop3): outlook-no-nuls oe-ns-eoh
namespace:
type: private
separator: /
inbox: yes
auth default:
mechanisms: plain login
username_format: %Lu
verbose: yes
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/private/auth
mode: 432
user: postfix
group: postfix
master:
path: /var/run/dovecot/auth-master
mode: 384
user: mail
group: mail
On Wed, 2007-06-20 at 00:18 -0700, Mark Edwards wrote:> I have the following set in the main level of my dovecot.conf file: > > mail_location = maildir:/var/mail/virtual/%u > > I decided to enable the lda protocol for local delivery from postfix, > so I could use sieve plugins. The lda protocol seems to ignore > settings in the rest of the dovecot.conf file, however, such as the > above. Unless lda has a pre-existing maildir mailbox, it can't > create one. How do I give lda defaults to follow, if the above > statement doesn't do it?Sounds like it's using a wrong config file. Try running explicitly with deliver -c /etc/dovecot/dovecot.conf Or set mail_debug=yes and check what it writes to logs. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20070627/ef3e6ef0/attachment-0002.bin>
On Jun 27, 2007, at 1:30 PM, Timo Sirainen wrote:> On Wed, 2007-06-20 at 00:18 -0700, Mark Edwards wrote: >> I have the following set in the main level of my dovecot.conf file: >> >> mail_location = maildir:/var/mail/virtual/%u >> >> I decided to enable the lda protocol for local delivery from postfix, >> so I could use sieve plugins. The lda protocol seems to ignore >> settings in the rest of the dovecot.conf file, however, such as the >> above. Unless lda has a pre-existing maildir mailbox, it can't >> create one. How do I give lda defaults to follow, if the above >> statement doesn't do it? > > Sounds like it's using a wrong config file. Try running explicitly > with > deliver -c /etc/dovecot/dovecot.conf > > Or set mail_debug=yes and check what it writes to logs.Well, deliver is clearly seeing /etc/dovecot/dovecot.conf because other settings are obviously influencing it, and if it can't read that file it errors out. But, just for good measure I followed your suggestions. Unless I specifically have /var/mail/virtual returned as home in the ldap lookup, deliver can't find the directory. In other words, it doesn't seem to respect the above mail_location setting. In addition, if I don't have a pre-existing maildir in the target directory, deliver complains it doesn't know what format to use, further evidence that it is ignoring mail_location. Is deliver really supposed to be reading that setting? It seems to ignore it in my case, even though the setting is correctly read by dovecot for purposes of reading and manipulating the mailboxes. Here's a sample log: Jun 27 18:56:52 mini deliver(mark at antsclimbtree.com): Loading modules from directory: /usr/lib/dovecot/modules/lda Jun 27 18:56:52 mini deliver(mark at antsclimbtree.com): Module loaded: / usr/lib/dovecot/modules/lda/lib90_cmusieve_plugin.so Jun 27 18:56:52 mini deliver(mark at antsclimbtree.com): auth input: mark at antsclimbtree.com Jun 27 18:56:52 mini deliver(mark at antsclimbtree.com): auth input: mail=mark Jun 27 18:56:52 mini deliver(mark at antsclimbtree.com): auth input: uid=8 Jun 27 18:56:52 mini deliver(mark at antsclimbtree.com): auth input: gid=8 Jun 27 18:56:52 mini deliver(mark at antsclimbtree.com): maildir autodetect: stat(mark/cur) failed: No such file or directory Jun 27 18:56:52 mini deliver(mark at antsclimbtree.com): mbox autodetect: data=mark Jun 27 18:56:52 mini deliver(mark at antsclimbtree.com): mbox autodetect: INBOX file: stat(mark) failed: No such file or directory Jun 27 18:56:52 mini deliver(mark at antsclimbtree.com): mbox autodetect: has .imap/: stat(mark/.imap) failed: No such file or directory Jun 27 18:56:52 mini deliver(mark at antsclimbtree.com): mbox autodetect: has inbox: stat(mark/inbox) failed: No such file or directory Jun 27 18:56:52 mini deliver(mark at antsclimbtree.com): mbox autodetect: has mbox: stat(mark/mbox) failed: No such file or directory Jun 27 18:56:52 mini deliver(mark at antsclimbtree.com): dbox autodetect: stat(mark/inbox/dbox-Mails) failed: No such file or directory Jun 27 18:56:52 mini deliver(mark at antsclimbtree.com): Ambiguous mail location setting, don't know what to do with it: mark (try prefixing it with mbox: or maildir:) Jun 27 18:56:52 mini deliver(mark at antsclimbtree.com): Failed to create storage for 'mark at antsclimbtree.com' with mail 'mark' -- Mark Edwards