Reject incoming email to over quota mailbox

mbrother

Member
Oct 29, 2021
16
5
8
40
Hello,

I use Proxmox Mail Gateway in front of a primary email server. When emails are sent to over quota mailbox on primary email server, I want to reject them.

I wonder why Proxmox Mail Gateway reject email to over quota mailbox with this maibox but queue email with other over quota maibox?

How can I reject all emails to over quota mailbox?

Thank you!



mailbox_over_quota.png
 
Last edited:
I think the issue here is the following:
* the first mail (anhnt@..) was rejected by PMG, because the recipient could not be verified (I assume you have enabled recipient verification)
* the second mail got deferred because PMG has cached that the recipient does indeed exist

In general mailboxes being over quota are temporary/transient errors (thus the reply with a 4xx response code of you primary server) - PMG will try to deliver the mail for 5 days and will succeed if the user frees up some space in their mailbox - hence it makes no sense to reject the mail directly.
(after 5 days PMG(postfix) gives up and discards the mail)

I hope this explains it!
 
Hello Stoiko,

Thank you for your answer. You're right,I enabled recipient verification option.

I think both of two mails, PMG has cached that the recipient does indeed exist. Because if the recipient does not exist, "in reply to RCPT TO command" can not be "Mailbox size limit exceeded", It will be "No such user here" as image attachment.
Screenshot_13.png I am really confused when PMG action differently for the same error as "Mailbox size limit exceeded". Could I reject all emails to over quota mailbox?
 
could you please post the complete log regarding the messages (and only anonymize what's really necessary) - else it's not really possible to get a picture of what is going on here
 
Hello Stoiko,

There are detail logs:

+ For reject email:
Code:
Nov 2 12:57:11 a postfix/smtpd[16075]: connect from mail-ed1-f48.google.com[209.85.208.48]
Nov 2 12:57:12 a postfix/smtpd[16075]: NOQUEUE: reject: RCPT from mail-ed1-f48.google.com[209.85.208.48]: 450 4.1.1 <anhxxx@hoaxxxx.com>: Recipient address rejected: unverified address: host xx.xx.xx.xx[xx.xx.xx.xx] said: 452 <anhxxx@hoaxxxx.com> Mailbox size limit exceeded (in reply to RCPT TO command); from=<hoaibao@shxxxx.com> to=<anhxxx@hoaxxxx.com> proto=ESMTP helo=<mail-ed1-f48.google.com>
Nov 2 12:57:13 a postfix/smtpd[16075]: disconnect from mail-ed1-f48.google.com[209.85.208.48] ehlo=1 mail=1 rcpt=0/1 bdat=0/1 quit=1 commands=3/5

+ For queued/deferred emai:
Code:
Nov 2 12:58:17 a postfix/smtpd[19534]: connect from localhost.localdomain[127.0.0.1]
Nov 2 12:58:17 a postfix/smtpd[19534]: 98453222FE: client=localhost.localdomain[127.0.0.1], orig_client=mail-ot1-f50.google.com[209.85.210.50]
Nov 2 12:58:17 a postfix/cleanup[19429]: 98453222FE: message-id=<CAAfVYG2Hkxkte+niuicFe0DzAua6Pz4WgiqK3xYPuCGwXnrBdQ@mail.gmail.com>
Nov 2 12:58:17 a postfix/qmgr[341]: 98453222FE: from=<ngoanxxx@xxxx.vn>, size=47911, nrcpt=1 (queue active)
Nov 2 12:58:17 a postfix/smtpd[19534]: disconnect from localhost.localdomain[127.0.0.1] ehlo=1 xforward=1 mail=1 rcpt=1 data=1 commands=5
Nov 2 12:58:17 a postfix/smtp[20563]: 98453222FE: to=<support2@xxxx.vn>, relay=xx.xx.xx.xx[xx.xx.xx.xx]:25, delay=0.04, delays=0.01/0/0.01/0.02, dsn=4.0.0, status=deferred (host xx.xx.xx.xx[xx.xx.xx.xx] said: 452 <support2@xxxx.vn> Mailbox size limit exceeded (in reply to RCPT TO command))
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!