Am 03.03.2011 15:33, schrieb Pascal Volk: > On 03/03/2011 02:55 PM Reindl Harald wrote: >> we do quotas this with dbmail-lmtp on the mda-side >> >> in this case postfix delivers every message via lmtp >> and if the mailbox is full dbmail-lmtp is giving >> a error back for this unique rcpt > > What exactly does that mean? Posfix accepts the message addressed to > a.u...@exmaple.com and b.u...@example.com. Then the delivering client > disconnects from the Postfix SMTP server. > After that the Postfix LMTP client delivers the message via dbmail-lmtp? > > And when a.u...@exmaple.com is over quota the message will be bounced?
Here a example on my homeserver with set quota down to 10 MB while 50 MB are in the inbox for this test-case. You see the same message-id so i sent one message to two rcpt while one of them was over quota rcpt 1: all ok, message accepted rcpt 2: over qutoa -> bounced Mar 3 15:37:54 srv-rhsoft postfix/smtpd[7106]: connect from rh.thelounge.net[91.118.73.99] Mar 3 15:37:54 srv-rhsoft postfix/smtpd[7106]: Anonymous TLS connection established from rh.thelounge.net[91.118.73.99]: TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits) Mar 3 15:37:55 srv-rhsoft dovecot: auth: mysql: Connected to /var/lib/mysql/mysql.sock (dbmail) Mar 3 15:37:55 srv-rhsoft postfix/smtpd[7106]: 3B868332: client=rh.thelounge.net[91.118.73.99], sasl_method=CRAM-MD5, sasl_username=rhs...@test.rh Mar 3 15:37:55 srv-rhsoft postfix/cleanup[7122]: 3B868332: message-id=<4d6fa7c2.2080...@test.rh> Mar 3 15:37:55 srv-rhsoft postfix/qmgr[4688]: 3B868332: from=<rhs...@test.rh>, size=721, nrcpt=2 (queue active) Mar 3 15:37:55 srv-rhsoft postfix/smtpd[7106]: disconnect from rh.thelounge.net[91.118.73.99] Mar 3 15:37:55 srv-rhsoft postfix/lmtp[7125]: 3B868332: to=<f...@test.rh>, relay=127.0.0.1[127.0.0.1]:24, delay=0.15, delays=0.09/0.01/0/0.05, dsn=2.0.0, status=sent (215 Recipient <f...@test.rh> OK) Mar 3 15:37:55 srv-rhsoft postfix/lmtp[7125]: 3B868332: to=<rhs...@test.rh>, relay=127.0.0.1[127.0.0.1]:24, delay=0.18, delays=0.09/0.01/0/0.09, dsn=5.0.0, status=bounced (host 127.0.0.1[127.0.0.1] said: 522 Recipient <rhs...@test.rh> Permanent Failure Mailbox Status Mailbox full (in reply to end of DATA command)) _______________________ this is the bounce message where you see only the one address with the exceeded qutoa and this is what i would expect from a mailserver Mar 3 15:42:55 srv-rhsoft postfix/cleanup[7205]: 7CDCE335: message-id=<20110303144255.7cdce...@srv-rhsoft.rhsoft.net> Mar 3 15:42:55 srv-rhsoft postfix/bounce[7204]: 3B868332: sender non-delivery notification: 7CDCE335 Mar 3 15:42:55 srv-rhsoft postfix/qmgr[4688]: 7CDCE335: from=<>, size=2975, nrcpt=1 (queue active) Mar 3 15:42:55 srv-rhsoft postfix/qmgr[4688]: 3B868332: removed Mar 3 15:42:55 srv-rhsoft postfix/lmtp[7125]: 7CDCE335: to=<rhs...@test.rh>, relay=127.0.0.1[127.0.0.1]:24, delay=0.13, delays=0.05/0.01/0/0.07, dsn=2.0.0, status=sent (215 Recipient <rhs...@test.rh> OK) <rhs...@test.rh>: host 127.0.0.1[127.0.0.1] said: 522 Recipient <rhs...@test.rh> Permanent Failure Mailbox Status Mailbox full (in reply to end of DATA command) Reporting-MTA: dns; srv-rhsoft.rhsoft.net X-Postfix-Queue-ID: 3B868332 X-Postfix-Sender: rfc822; rhs...@test.rh Arrival-Date: Thu, 3 Mar 2011 15:37:55 +0100 (CET) Final-Recipient: rfc822; rhs...@test.rh Original-Recipient: rfc822;rhs...@test.rh Action: failed Status: 5.0.0 Remote-MTA: dns; 127.0.0.1 Diagnostic-Code: smtp; 522 Recipient <rhs...@test.rh> Permanent Failure Mailbox Status Mailbox full > I'm writing my policy_service because Postfix doesn't know anything of > the quota stuff. But my policy_service will know the quota stuff. yes but the MDA is a straighter way because so no component of postfix must know anything about quota
signature.asc
Description: OpenPGP digital signature