>Otherwise you can try to use the smtp_reply_filter feature. This is an 
>incedibly sharp knife for desperate situations. Use at your own risk.
>
>Untested example:
>
>/etc/postfix/main.cf:
>    smtp_reply_filter = /etc/postfix/smtp_reply_filter.pcre
>
>/etc/postfix/smtp_reply_filter.pcre:
>    # This assumes that the reply is one line only.
>    /^451 PLESK reply text here/ 551 5.2.2 Mailbox full
>
>Make the PCRE pattern as specific as possible, so that it matches only PLESK 
>responses.

I must be missing something, but with the following pcre-entry

/^451 4.5.1 Mailbox full/551 5.2.2 Mailbox full

Everything gets rejected with:
Sep 20 23:19:03 laundromat postfix/smtpd[4083]: NOQUEUE: reject: RCPT from 
rsuk-mta190.anpdm.com[91.227.208.190]: 451 4.3.5 Server configuration problem; 
from=<3ec.c.241437546.j154097-4525...@ikea.anpdm.com> to=<margar...@mbirath.se> 
proto=ESMTP helo=<rsuk-mta190.anpdm.com>

The log lines are like this (yes, I masked the receiving end)
Sep 17 23:07:50 laundromat postfix/smtp[9382]: CF7AB3AA86: 
to=<address-removed...@protect-the-innocent.net>, relay= 
plesk.host.com[X.X.X.X]:25, conn_use=11, delay=302356, delays=302350/0.38/1/4, 
dsn=4.5.1, status=deferred (host plesk.host.com[X.X.X.X] said: 451 4.5.1 
Mailbox full (in reply to end of DATA command))

Reply via email to