Hello,
I am trying to solve a problem with error mails clogging my queue on a
system with the following components:
Incoming mail -> Postfix -> DSpam -> reinjection back to postfix queue
-> Dovecot LDA
The system also handles outgoing mail for non-local users, for any mail
address not found in a table of local users, Postfix just tries to
deliver it according to the MX records.
However, the Postfix handling the incoming messages for local users
(before DSpam) has incomplete information whether the local delivery
will be successful. I would like to immediately reject mails for
mailboxes that are full, for example, but the Postfix does not have this
information. That means that the mail is initially accepted, passed to
DSPam, and only the Dovecot LDA founds out that the mailbox is full, and
generates an error mail message, that is often not deliverable and clogs
the mailqueue.
I would like to reject as many mails as possible during the intial SMTP
session, as a part of the "check_recipient_access" phase. Is there any
way for Postfix to ask dovecot-lda "Will you be able to locally deliver
a message to this user"? I have read dovecot-lda man page, but did not
find any option of "dry" or test delivery. I understand that Postfix can
use a "policy server" - an external script or daemon that could query
dovecot for this information, but so far I have failed to find a proper
way to query dovecot to find out if a specific mail would be deliverable.
I know I will be probably referred to Dovecot mailing lists, but I
thought some of you could know the answer.
Thank you in advance for any hint or advice.
--
S pozdravem,
Daniel Ryšlink
System Administrator
Dial Telecom a. s.
Křižíkova 36a/237
186 00 Praha 3, Česká Republika
Tel.:+420.226204627
[email protected]
-----------------------------------------------
www.dialtelecom.cz
Dial Telecom, a.s.
Jednoduše se připojte
-----------------------------------------------