[Dovecot] How to prevent delivery to mailboxes over quota at SMTP-time

Thomas Leuxner tlx at leuxner.net
Fri Apr 12 17:09:01 EEST 2013


* Ralf Hildebrandt <r at sys4.de> 2013.04.12 15:40:

> > [...]
> > Apr 12 09:22:04 spectre postfix/smtpd[18355]: warning: access table inet:127.0.0.1:10027 entry  has empty value
> > [...]
> 
> Try testing it manually, like this:
> 
> # telnet localhost 12340
> Trying 127.0.0.1...
> Connected to localhost.
> Escape character is '^]'.
> request=smtpd_access_policy
> sender=sentto-19572345-3526-1365773584-mateusz.xxxxx=charite.de at returns.groups.yahoo.com
> recipient=mateusz.xxxxx at charite.de
> size=100
> 
> action=552 5.2.2 Quota exceeded (mailbox for user is full)

That seems to work. Created local over usage and can query that:

$ doveadm quota get -u tlx at leuxner.net
Quota name Type     Value  Limit  %
user       STORAGE 317790 204800  155
user       MESSAGE   5181

$ telnet localhost 10027
Trying ::1...
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
request=smtpd_access_policy
sender=noreply at example.org
recipient=tlx at leuxner.net
size=100

action=552 5.2.2 Quota exceeded (mailbox for user is full)

Still when I point Postfix to use it, it creates the error above and the strange config socket issue in Dovecot:

> Apr 12 09:46:30 spectre dovecot: quota-status(tlx at leuxner.net): Error: user tlx at leuxner.net: Error reading configuration: net_connect_unix(/var/run/dovecot/config) failed: Permission denied
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://dovecot.org/pipermail/dovecot/attachments/20130412/bf9bf946/attachment.bin>


More information about the dovecot mailing list