Yes the mbox messages are showing up in /home/vmail and the ownership is vmail:vmail
The messages that come from cron and other system stuff that address
messages to root@my.host.name or to ownerOfCronJob@my.host.name
Nobody will ever check those boxes and they are not wanted. We would
like to either redirect them else where ( forward and not leave in the
mbox file) or just block all messages to anyone@my.host.name.
I did just find a way to put in a forward to forward everything to root@my.host.name to a virtual box and now the messages have stopped for that address. I suppose I could put in a forward each time a new mbox shows up but would rather just block all messages addressed to anyone@my.host.name if there is a way.
On 9/26/2013 11:36 PM, Steffen Kaiser wrote:
-----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@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 }
Are the mbox files for the system users located in /home/vmail/... ? What Unix uid/gid do they have?
Do you have any entry in the Dovecot logs, that let you assume that messages to system users are delivered through Dovecot?
If you do not want, that your MTA accepts messages for username@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-----