Email is rejected during SMTP session if mailbox is full

Created:

2016-11-16 13:17:31 UTC

Modified:

2017-03-15 11:58:22 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Email is rejected during SMTP session if mailbox is full

Symptoms

An email is rejected during SMTP session if a mailbox is full. How does this feature work?

Resolution

This feature disables the Plesk mail server's bounce response, which is sent when a user's mailbox is full to prevent mass spamming.

Description of the feature can be found here .

In /usr/local/psa/var/log/maillog , the corresponding entries can be found:

 Apr 24 08:40:08 a10-52-46-174 qmail-queue-handlers[15273]: Handlers Filter before-queue for qmail started ...
Apr 24 08:40:08 a10-52-46-174 qmail-queue-handlers[15273]: from=mail1@example.com
Apr 24 08:40:08 a10-52-46-174 qmail-queue-handlers[15273]: to=mail1@example.com
Apr 24 08:40:08 a10-52-46-174 qmail-queue-handlers[15273]: handlers_stderr: DATA Mailbox full#015
Apr 24 08:40:08 a10-52-46-174 qmail-queue-handlers[15273]: handlers_stderr: DEFER
Apr 24 08:40:08 a10-52-46-174 qmail-queue-handlers[15273]: DEFER during call 'check-quota' handler

If the feature is disabled:

Apr 24 08:55:33 a10-52-46-174 postfix/pipe[18487]: C5B7420080: to=<mail1@a10-52-46-174.example.com>, relay=plesk_virtual, delay=0.08, delays=0.02/0.01/0/0.04, dsn=5.7.1, status=bounced (Mail quota exceeded )

For successful delivery (when mailbox quota is not exceeded):

Apr 24 09:29:07 a10-52-46-174 /usr/lib/plesk-9.0/psa-pc-remote[18365]: handlers_stderr: SKIP
Apr 24 09:29:07 a10-52-46-174 /usr/lib/plesk-9.0/psa-pc-remote[18365]: SKIP during call 'check-quota' handler

There are not any messages in the maillog for successful delivery (if mailbox quota is not exceeded) when the feature is disabled.

Possible negative effects of the feature:

  1. Email to multiple recipients is rejected if the mailbox of one recipient is full .

  2. With Plesk versions released prior to 10.4.4 MU#27, when sending email to an external email address, the following record appears in the /var/log/maillog :

    Apr 24 08:40:08 a10-52-46-174 check-quota filter[15306]: Failed to run '/usr/sbin/postalias -q mail1@example.com hash:/var/spool/postfix/plesk/virtual', rc = 1

Note that this feature is optional and can be disabled with following commands:

# MYSQL_PWD=`cat /etc/psa/.psa.shadow` mysql -u admin psa -e "REPLACE INTO misc VALUES ('reject_mail_when_overquota', 'false')"
# /usr/lib/plesk-9.0/mail_mailbox_restore --handlers-only

to enable it back, use following commands:

# MYSQL_PWD=`cat /etc/psa/.psa.shadow` mysql -u admin psa -e "REPLACE INTO misc VALUES ('reject_mail_when_overquota', 'true')"
# /usr/lib/plesk-9.0/mail_mailbox_restore --handlers-only
Have more questions? Submit a request
Please sign in to leave a comment.