Mike Edwards
2013-Sep-26 19:15 UTC
[Dovecot] Using MailDir but local messages still save in mbox format
I am using MailDir format for all my virtual users and it is working well. However, if email comes in to a unix system user, it delivers in Mbox format. This is mostly cron jobs that do this. Mail addressed to my virtual users goes to the MailDir locations just fine. None of these mailboxes have ever been created, they are just incorrect assumed addresses. There should NEVER be any email to username at my.host.name because everything is virtual. Does anyone know how to fix this? Here is my config. # 2.0.9: /etc/dovecot/dovecot.conf # OS: Linux 2.6.32-358.18.1.el6.x86_64 x86_64 CentOS release 6.4 (Final) auth_debug = yes auth_mechanisms = plain login cram-md5 ntlm auth_verbose = yes auth_verbose_passwords = plain disable_plaintext_auth = no listen = * mail_location = maildir:~/Maildir mail_privileged_group = mail managesieve_notify_capability = mailto managesieve_sieve_capability = fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variables body enotify environment mailbox date mbox_write_locks = fcntl passdb { args = /etc/dovecot/conf.d/dovecot-sql.conf.ext driver = sql } plugin { autocreate = Trash autocreate2 = Spam autocreate3 = Drafts autocreate4 = Sent autocreate5 = Archives autosubscribe = Trash autosubscribe2 = Spam autosubscribe3 = Drafts autosubscribe4 = Sent autosubscrube5 = Archives sieve = ~/.dovecot.sieve sieve_before = /home/vmail/movespam.sieve sieve_dir = ~/sieve } protocols = imap pop3 service auth { unix_listener /var/spool/postfix/private/auth { group = postfix mode = 0660 user = postfix } unix_listener auth-master { mode = 0600 user = vmail } } ssl_ca = /etc/pki/dovecot/ca/dovecot.pem ssl_cert = </etc/pki/dovecot/certs/dovecot.pem ssl_key = </etc/pki/dovecot/private/dovecot.pem ssl_cipher_list = HIGH:MEDIUM:+TLSv1:!SSLv2:+SSLv3 userdb { args = uid=vmail gid=vmail home=/home/vmail/%d/%n driver = static } protocol lda { auth_socket_path = /var/run/dovecot/auth-master log_path = /home/vmail/dovecot-deliver.log mail_plugins = " sieve sieve" postmaster_address = postmaster at zeus.deltatechnicalservices.com } protocol lmtp { mail_plugins = " sieve" } protocol imap { mail_plugins = autocreate } protocol sieve { managesieve_implementation_string = Dovecot Pigeonhole } protocol pop3 { pop3_uidl_format = %08Xu%08Xv }
Steffen Kaiser
2013-Sep-27 06:36 UTC
[Dovecot] Using MailDir but local messages still save in mbox format
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Thu, 26 Sep 2013, Mike Edwards wrote:> I am using MailDir format for all my virtual users and it is working well. > However, if email comes in to a unix system user, it delivers in Mbox format. > This is mostly cron jobs that do this. Mail addressed to my virtual users > goes to the MailDir locations just fine. None of these mailboxes have ever > been created, they are just incorrect assumed addresses. There should NEVER > be any email to username at my.host.name because everything is virtual.Er: 1) What is done by "cron jobs"??> passdb { > args = /etc/dovecot/conf.d/dovecot-sql.conf.ext > driver = sql > } > userdb { > args = uid=vmail gid=vmail home=/home/vmail/%d/%n > driver = static > }2) Are the mbox files for the system users located in /home/vmail/... ? What Unix uid/gid do they have? 3) Do you have any entry in the Dovecot logs, that let you assume that messages to system users are delivered through Dovecot? 4) If you do not want, that your MTA accepts messages for username at my.host.name reconfigure it. - -- Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iQEVAwUBUkUnWV3r2wJMiz2NAQKwtQf+IlXqgy2ox7gbFaBmVhz4tUpbG8QzqxEA IyugBD3aZBNagVYBDyxcN10ZKlhxopDyExIKBxDOEd7NAgCY2BaKdwErgF5LMhu7 LX64/k36X0E+w6V7yoyQ7drqn//aKlzQw3knWiKKhvaLLqgdrz63bTarNCTMP3kX Un6UgkIT2U5H8bLjE8gr1cNHWAgE0ZaFbRl5aPZg1/QV2D6yMnSNGVCb2YwKq8hJ fGMub+Hv3RDjKxYcvC8EmKCV7CawdO3dwI1az8ErlQ5uqLV9fXzxmcXAL30d8NNI 8HkiIJDye/SpNPFHhco5S2dA/Hmmx3jVu3yzpn4TSWZmSgqeWfKKdQ==E4EC -----END PGP SIGNATURE-----