Nikolaos Milas
2011-Jun-23 06:29 UTC
[Dovecot] Error with Dovecot LDA when using recipient address misses user part
Hi, We are using Postfix 2.8.3 with Dovecot 2.0.13 on CentOS 5.6. The problem we have is that sometimes, due to mail sender's error when composing a message, the sender attempts to send an email to "@noa.gr" (without specifying the user part of the address). This results in a Postfix error due to Dovecot LDA use: Jun 22 21:05:31 vmail postfix/pipe[31862]: CC89FC4D210: to=<@noa.gr>, relay=dovecot, delay=0.41, delays=0.24/0.013/0/0.15, dsn=5.3.0, status=bounced (command line usage error. Command output: /usr/libexec/dovecot/dovecot-lda: option requires an argument -- d Usage: dovecot-lda [-c <config file>] [-a <address>] [-d <username>] [-p <path>] [-f <envelope sender>] [-m <mailbox>] [-e] [-k] ) Postfix master.cf is configured as: 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. My question is: Can we somehow configure things in a way so as to avoid this error when someone sends an email with blank sender data? Can Dovecot provide some meaningful message to postfix (like "No user specified") instead of failing with a "command line usage error"? Thanks, Nick -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 6762 bytes Desc: S/MIME Cryptographic Signature URL: <http://dovecot.org/pipermail/dovecot/attachments/20110623/7dce62a3/attachment-0002.bin>
Thomas Leuxner
2011-Jun-23 08:50 UTC
[Dovecot] Error with Dovecot LDA when using recipient address misses user part
> Hi, > > We are using Postfix 2.8.3 with Dovecot 2.0.13 on CentOS 5.6. > > The problem we have is that sometimes, due to mail sender's error when composing a message, the sender attempts to send an email to "@noa.gr" (without specifying the user part of the address). This results in a Postfix error due to Dovecot LDA use:IMHO you should look into fixing this on the Postfix side. You should definitely not allow incomplete addresses to hit Dovecot. Thomas -------------- next part -------------- A non-text attachment was scrubbed... Name: PGP.sig Type: application/pgp-signature Size: 203 bytes Desc: Signierter Teil der Nachricht URL: <http://dovecot.org/pipermail/dovecot/attachments/20110623/98163c1a/attachment-0002.bin>