<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hello everyone,<br>
<br>
I have following configurations (and more) at
/etc/dovecot/local.conf in a "<i>VirtualUserFlatFilesPostfix</i>"
setup :<br>
</p>
<p><font face="monospace">[partial file content begins]<br>
</font></p>
<p><font face="monospace">protocols = imap pop3 lmtp sieve<br>
</font></p>
<p><font face="monospace">mail_location =
maildir:~/<a class="moz-txt-link-freetext" href="data:INBOX=~/data/.INBOX">data:INBOX=~/data/.INBOX</a></font></p>
<p><font face="monospace">service lmtp {<br>
unix_listener /var/spool/postfix/private/dovecot-lmtp {<br>
user = vmail<br>
group = vmail<br>
mode = 0660<br>
}<br>
}<br>
</font></p>
<p><font face="monospace">protocol lmtp {<br>
postmaster_address = <a class="moz-txt-link-abbreviated" href="mailto:postmaster@example.net">postmaster@example.net</a><br>
mail_plugins = $mail_plugins sieve<br>
}<br>
</font></p>
<p><font face="monospace">userdb {<br>
driver = passwd-file<br>
args = username_format=%u
/srv/vmail/domains.d/%d/users.d/%n/etc/passwd<br>
}<br>
</font></p>
<p><font face="monospace">passdb {<br>
driver = passwd-file<br>
args = username_format=%u
/srv/vmail/domains.d/%d/users.d/%n/etc/shadow.%Ls<br>
}</font></p>
<p><font face="monospace">service auth {<br>
unix_listener /var/spool/postfix/private/auth {<br>
user = postfix<br>
group = postfix<br>
mode = 0660<br>
}<br>
}<br>
</font></p>
<p>[/partial file content ends]</p>
<p>Everyting works (IMAP mail is stored, IMAP/POP3 mail is
retrieved, incoming SMTP mail from Postfix is delivered, Outgoing
SMTP senders are authenticated from Postfix~SASL) BUT:</p>
<p>When incoming mail goes to a mailbox that does not exist, an
error is logged by Dovecot, letter remains at Postfix queue, and
no rejection message to sender (here host is <i>mail.example.net</i>):</p>
<p><font face="monospace">[partial]$ cat /var/log/mail.log</font></p>
<font face="monospace">2022-01-28T08:52:00.851751+01:00 correo
postfix/smtpd[1853]: CFDA63A174B: client=mail.example.com[1.2.3.4]<br>
2022-01-28T08:52:00.872248+01:00 correo postfix/cleanup[1881]:
CFDA63A174B:
message-id=<a class="moz-txt-link-rfc2396E" href="mailto:83c79ee1-6e2e-4e15-307e-17cdc7e2b814@example.com"><83c79ee1-6e2e-4e15-307e-17cdc7e2b814@example.com></a><br>
2022-01-28T08:52:00.884100+01:00 correo postfix/qmgr[1529]:
CFDA63A174B: from=<a class="moz-txt-link-rfc2396E" href="mailto:johndoe@example.com"><johndoe@example.com></a>, size=854, nrcpt=1
(queue active)<br>
2022-01-28T08:52:00.884507+01:00 correo postfix/smtpd[1853]:
disconnect from mail.example.com[1.2.3.4] ehlo=2 starttls=1 mail=1
rcpt=1 data=1 quit=1 commands=7<br>
2022-01-28T08:52:00.969275+01:00 correo postfix/lmtp[1882]:
CFDA63A174B: to=<a class="moz-txt-link-rfc2396E" href="mailto:wronguser@example.net"><wronguser@example.net></a>,
relay=mail.example.net[private/dovecot-lmtp], delay=0.43,
delays=0.35/0.02/0.02/0.05, dsn=4.3.0, status=deferred (host
mail.example.net[private/dovecot-lmtp] said: 451 4.3.0
<a class="moz-txt-link-rfc2396E" href="mailto:wronguser@example.net"><wronguser@example.net></a> Temporary internal error (in reply
to RCPT TO command))<br>
</font>
<p><font face="monospace">[partial]$ cat /var/log/dovecot.log<br>
</font></p>
<p><font face="monospace">2022-01-28 08:52:00 lmtp(1883): Info:
Connect from local<br>
2022-01-28 08:52:00 auth: Error:
passwd-file(<a class="moz-txt-link-abbreviated" href="mailto:wronguser@example.net">wronguser@example.net</a>):
stat(/srv/vmail/domains.d/example.net/users.d/wronguser/etc/passwd)
failed: Address family not supported by protocol<br>
2022-01-28 08:52:00
lmtp(<a class="moz-txt-link-abbreviated" href="mailto:wronguser@example.net">wronguser@example.net</a>)<1883><xbrsNqCg82FbBwAAzZSvjA>:
Error: user <a class="moz-txt-link-abbreviated" href="mailto:wronguser@example.net">wronguser@example.net</a>: Auth USER lookup failed<br>
2022-01-28 08:52:00 lmtp(1883): Error: Failed to lookup user
<a class="moz-txt-link-abbreviated" href="mailto:wronguser@example.net">wronguser@example.net</a>: Internal error occurred. Refer to server
log for more information.<br>
2022-01-28 08:52:00 lmtp(1883): Info: Disconnect from local:
Client has quit the connection (state=READY)</font><br>
</p>
<p>Thank you for any help in debugging configuration or suggestion
to enhance Postfix/Dovecot parameters.</p>
<p>Postfix 3.4</p>
<p>Dovecot 2.3<br>
</p>
<pre class="moz-signature" cols="72">--
Narcis Garcia
__________
I'm using this dedicated address because personal addresses aren't masked enough at this mail public archive. Public archive administrator should fix this against automated addresses collectors.</pre>
</body>
</html>