Hi, I am using dovecot deliver as lda for sendmail. My problem is that when a user account is over quota, deliver program sends message in the logs, but the message is not bounced back to sender informing that their is disk quota problem at the recipient side. Further message remains in the mail queue. Details are below. Plz suggest how to figure out the problems: 1. Message should be removed from queue if quota is exceeded 2. Sender should get a proper response. Regards -Azher Apr 14 11:31:41 wm sm-mta[22712]: l3EFVKQY022711: to=<azher at wm.niit.edu.pk>, delay=00:00:00, xdelay=00:00:00, mailer=local, pri=130864, dsn=4.0.0, stat=Deferred: local mailer (/usr/dovecot/libexec/dovecot/deliver) exited with EX_TEMPFAIL -------- wm:/etc/mail# mailq MSP Queue status... /var/spool/mqueue-client is empty Total requests: 0 MTA Queue status... /var/spool/mqueue (1 request) -----Q-ID----- --Size-- -----Q-Time----- ------------Sender/Recipient----------- l3EFVKQY022711 99722 Sat Apr 14 20:31 <azher at niit.edu.pk> (Deferred: local mailer (/usr/dovecot/libexec/dovecot/deliver) <azher at wm.niit.edu.pk> Total requests: 1 ----------------------------- Sendmail.mc ========LOCAL_CONFIG FEATURE(`masquerade_envelope')dnl FEATURE(`allmasquerade')dnl FEATURE(`always_add_domain')dnl LOCAL_CONFIG FEATURE(`use_cw_file')dnl FEATURE(`use_ct_file')dnl FEATURE(`nouucp', `reject')dnl FEATURE(`bestmx_is_local')dnl FEATURE(`mailertable')dnl FEATURE(`smrsh')dnl FEATURE(`local_procmail', `/usr/dovecot/libexec/dovecot/deliver',`deliver -d $u') dnl # FEATURE(local_procmail) MAILER_DEFINITIONS MAILER(local)dnl MAILER(smtp)dnl MODIFY_MAILER_FLAGS(`LOCAL', `-f') MAILER(procmail)dnl LOCAL_CONFIG -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.
On Sat, 2007-04-14 at 20:44 +0500, Azher Amin wrote:> Hi, > > I am using dovecot deliver as lda for sendmail. My problem is that when > a user account is over quota, deliver program sends message in the logs, > but the message is not bounced back to sender informing that their is > disk quota problem at the recipient side. Further message remains in the > mail queue. Details are below. Plz suggest how to figure out the problems:..> Apr 14 11:31:41 wm sm-mta[22712]: l3EFVKQY022711: > to=<azher at wm.niit.edu.pk>, delay=00:00:00, xdelay=00:00:00, > mailer=local, pri=130864, dsn=4.0.0, stat=Deferred: local mailer > (/usr/dovecot/libexec/dovecot/deliver) exited with EX_TEMPFAILIt failed with EX_TEMPFAIL, so Dovecot didn't properly handle the out-of-quota condition. You're using filesystem quota I guess? If you're also using maildir, that won't work if your control files are in quota partition. See http://wiki.dovecot.org/Quota/FS -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20070414/19e101a3/attachment.bin>
Hi Timo, Thnx for quick suggestions, however i am still in trouble. I am using FS Quota and mbox. After looking at the Quota/FS, I changed the mail_location to below. Few of my dovecot.conf settings are: mail_location = mbox:~/mail:INBOX=/home/%u/mail/INBOX:INDEX=/var/mail/indexes/%u protocol lda { # Address to use when sending rejection mails. postmaster_address = postmaster at localhost mail_plugins = quota } Plz suggest what to do next ...... Regards -Azher Timo Sirainen wrote:> On Sat, 2007-04-14 at 20:44 +0500, Azher Amin wrote: > >> Hi, >> >> I am using dovecot deliver as lda for sendmail. My problem is that when >> a user account is over quota, deliver program sends message in the logs, >> but the message is not bounced back to sender informing that their is >> disk quota problem at the recipient side. Further message remains in the >> mail queue. Details are below. Plz suggest how to figure out the problems: >> > .. > >> Apr 14 11:31:41 wm sm-mta[22712]: l3EFVKQY022711: >> to=<azher at wm.niit.edu.pk>, delay=00:00:00, xdelay=00:00:00, >> mailer=local, pri=130864, dsn=4.0.0, stat=Deferred: local mailer >> (/usr/dovecot/libexec/dovecot/deliver) exited with EX_TEMPFAIL >> > > It failed with EX_TEMPFAIL, so Dovecot didn't properly handle the > out-of-quota condition. You're using filesystem quota I guess? If you're > also using maildir, that won't work if your control files are in quota > partition. See http://wiki.dovecot.org/Quota/FS > >-- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.
Hi Timo, Finally I got it working. Thnx for excellent software. Thnx -Azher Amin Timo Sirainen wrote:> On Sat, 2007-04-14 at 20:44 +0500, Azher Amin wrote: > >> Hi, >> >> I am using dovecot deliver as lda for sendmail. My problem is that when >> a user account is over quota, deliver program sends message in the logs, >> but the message is not bounced back to sender informing that their is >> disk quota problem at the recipient side. Further message remains in the >> mail queue. Details are below. Plz suggest how to figure out the problems: >> > .. > >> Apr 14 11:31:41 wm sm-mta[22712]: l3EFVKQY022711: >> to=<azher at wm.niit.edu.pk>, delay=00:00:00, xdelay=00:00:00, >> mailer=local, pri=130864, dsn=4.0.0, stat=Deferred: local mailer >> (/usr/dovecot/libexec/dovecot/deliver) exited with EX_TEMPFAIL >> > > It failed with EX_TEMPFAIL, so Dovecot didn't properly handle the > out-of-quota condition. You're using filesystem quota I guess? If you're > also using maildir, that won't work if your control files are in quota > partition. See http://wiki.dovecot.org/Quota/FS > >-- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.