On 06/23/2011 02:26 PM, Nikolaos Milas wrote:
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.
Can we somehow configure Postfix to directly bounce such mails
(missing the user part of the address) without attempting to forward
them to Dovecot LDA?
Thanks,
Nick
Wont adding :
reject_unknown_recipient_domain, reject_unverified_recipient
to smtpd_recipient_restrictions solve this issue ?
Mihira.