On Thu, Jun 23, 2011 at 11:56:22AM +0300, Nikolaos Milas wrote:
> dovecot unix - n n - - pipe
> flags=DRhu user=vmail:vmail argv=/usr/libexec/dovecot/dovecot-lda -f
> ${sender} -d ${user}
>
> Obviously this happens because in this case there is no ${user} data.
It is not clear how the message entered your queue, recipient validation
in the SMTP server should be able to reject such mail. The transport
mapping to "dovecot" could also be per-user or implemented for a
"synthetic" domain to which valid user addresses are rewritten.
However, if none of the above is useful, you can I believe use:
-d ${user:no-such-user}
this may not be documented in the pipe(8) manual page, if sothink this
is a rare documentation oversight. Almost universally, undocumented
Postfix behaviour is not a "hidden" feature, but rather an implementation
artifact, that is subject to change.
--
Viktor.