<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[iRedMail — Email alert to admin When users mailbox quota exceeds the limit.]]></title>
	<link rel="self" href="http://www.iredmail.org/forum/feed-atom-topic3740.xml" />
	<updated>2013-01-29T12:26:50Z</updated>
	<generator>PunBB</generator>
	<id>http://www.iredmail.org/forum/topic3740-email-alert-to-admin-when-users-mailbox-quota-exceeds-the-limit.html</id>
		<entry>
			<title type="html"><![CDATA[Re: Email alert to admin When users mailbox quota exceeds the limit.]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post20090.html#p20090" />
			<content type="html"><![CDATA[<p>- Please paste output of command &quot;dovecot -n&quot;, your script, and related dovecot/sieve log (/var/log/dovecot.log, /var/log/sieve.log) here to help troubleshoot.<br />- We set Dovecot to execute quota warning script when mailbox is 85%, 90% or 95% full. Check your dovecot config file please.</p>]]></content>
			<author>
				<name><![CDATA[ZhangHuangbin]]></name>
				<uri>http://www.iredmail.org/forum/user2.html</uri>
			</author>
			<updated>2013-01-29T12:26:50Z</updated>
			<id>http://www.iredmail.org/forum/post20090.html#p20090</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Email alert to admin When users mailbox quota exceeds the limit.]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post20051.html#p20051" />
			<content type="html"><![CDATA[<p>this not working for me either, and without changes the script is not even sending warnings to the users, when is the script being executed?</p>]]></content>
			<author>
				<name><![CDATA[gibzon]]></name>
				<uri>http://www.iredmail.org/forum/user31541.html</uri>
			</author>
			<updated>2013-01-28T11:34:14Z</updated>
			<id>http://www.iredmail.org/forum/post20051.html#p20051</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Email alert to admin When users mailbox quota exceeds the limit.]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post19797.html#p19797" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>cedbiella wrote:</cite><blockquote><p>i have the same problem with pro version.<br />If i lanch the script all works, so i suppose that the script is ok<br />What i&#039;ve to do for work?</p></blockquote></div><br /><p>Still not function, any idea.</p><p>dovecot.conf is different, because i&#039;ve dovecot 2.x installed</p>]]></content>
			<author>
				<name><![CDATA[cedbiella]]></name>
				<uri>http://www.iredmail.org/forum/user31496.html</uri>
			</author>
			<updated>2013-01-10T08:31:07Z</updated>
			<id>http://www.iredmail.org/forum/post19797.html#p19797</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Email alert to admin When users mailbox quota exceeds the limit.]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post18154.html#p18154" />
			<content type="html"><![CDATA[<p>i have the same problem with pro version.<br />If i lanch the script all works, so i suppose that the script is ok<br />What i&#039;ve to do for work?</p>]]></content>
			<author>
				<name><![CDATA[cedbiella]]></name>
				<uri>http://www.iredmail.org/forum/user31496.html</uri>
			</author>
			<updated>2012-09-11T13:53:26Z</updated>
			<id>http://www.iredmail.org/forum/post18154.html#p18154</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Email alert to admin When users mailbox quota exceeds the limit.]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post17580.html#p17580" />
			<content type="html"><![CDATA[<p>Why not simply copy the code in the script to send to admin?</p>]]></content>
			<author>
				<name><![CDATA[ZhangHuangbin]]></name>
				<uri>http://www.iredmail.org/forum/user2.html</uri>
			</author>
			<updated>2012-08-13T06:55:28Z</updated>
			<id>http://www.iredmail.org/forum/post17580.html#p17580</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Email alert to admin When users mailbox quota exceeds the limit.]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post17578.html#p17578" />
			<content type="html"><![CDATA[<p>Hi Zhang,</p><p>I have set BCC to admin@mydomain.com in dovecot-quota-warning.sh file.</p><p>Only perticular user is getting email alert not to admin@mydomain.com.</p><p>Kindly advise me how it can be achieved.</p><p>Thanks &amp; regards,</p><p>PineMail11</p><br /><p> </p><div class="quotebox"><cite>ZhangHuangbin wrote:</cite><blockquote><p>iRedMail enables Dovecot plugin and service &quot;quota_warning&quot; by default, you can find settings in dovecot.conf like below:<br /></p><div class="codebox"><pre><code>plugins {
    ...
    # Quota warning.                                                               
    # If user suddenly receives a huge mail and the quota jumps from               
    # 85% to 95%, only the 95% script is executed.                                 
    quota_warning = storage=85%% quota-warning 85 %u                                                                          
    quota_warning2 = storage=90%% quota-warning 90 %u                              
    quota_warning3 = storage=95%% quota-warning 95 %u     
    ...
}

service quota-warning {
    executable = script /usr/local/bin/dovecot-quota-warning.sh
    ...
}</code></pre></div><p>Please edit /usr/local/bin/dovecot-quota-warning.sh, insert a BCC header above &quot;Subject:&quot; line like below:<br /></p><div class="quotebox"><blockquote><p>From: no-reply@demo.iredmail.org<br /><span style="color: red">BCC: postmaster@your_domain.com</span><br />Subject: Mailbox Quota Warning: ${PERCENT}% Full.</p><p>Your mailbox is now ${PERCENT}% full, please clean up some mails for<br />further incoming mails.</p></blockquote></div><p>Let me know whether it works for you or not. If it doesn&#039;t work, you can also add similar command in dovecot-quota-warning.sh to send an email to admin.</p></blockquote></div>]]></content>
			<author>
				<name><![CDATA[PineMail11]]></name>
				<uri>http://www.iredmail.org/forum/user2632.html</uri>
			</author>
			<updated>2012-08-13T06:53:16Z</updated>
			<id>http://www.iredmail.org/forum/post17578.html#p17578</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Email alert to admin When users mailbox quota exceeds the limit.]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post17328.html#p17328" />
			<content type="html"><![CDATA[<p>iRedMail enables Dovecot plugin and service &quot;quota_warning&quot; by default, you can find settings in dovecot.conf like below:<br /></p><div class="codebox"><pre><code>plugins {
    ...
    # Quota warning.                                                               
    # If user suddenly receives a huge mail and the quota jumps from               
    # 85% to 95%, only the 95% script is executed.                                 
    quota_warning = storage=85%% quota-warning 85 %u                                                                          
    quota_warning2 = storage=90%% quota-warning 90 %u                              
    quota_warning3 = storage=95%% quota-warning 95 %u     
    ...
}

service quota-warning {
    executable = script /usr/local/bin/dovecot-quota-warning.sh
    ...
}</code></pre></div><p>Please edit /usr/local/bin/dovecot-quota-warning.sh, insert a BCC header above &quot;Subject:&quot; line like below:<br /></p><div class="quotebox"><blockquote><p>From: no-reply@demo.iredmail.org<br /><span style="color: red">BCC: postmaster@your_domain.com</span><br />Subject: Mailbox Quota Warning: ${PERCENT}% Full.</p><p>Your mailbox is now ${PERCENT}% full, please clean up some mails for<br />further incoming mails.</p></blockquote></div><p>Let me know whether it works for you or not. If it doesn&#039;t work, you can also add similar command in dovecot-quota-warning.sh to send an email to admin.</p>]]></content>
			<author>
				<name><![CDATA[ZhangHuangbin]]></name>
				<uri>http://www.iredmail.org/forum/user2.html</uri>
			</author>
			<updated>2012-07-31T05:15:28Z</updated>
			<id>http://www.iredmail.org/forum/post17328.html#p17328</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Email alert to admin When users mailbox quota exceeds the limit.]]></title>
			<link rel="alternate" href="http://www.iredmail.org/forum/post17324.html#p17324" />
			<content type="html"><![CDATA[<p>==== Provide required information ====<br />- iRedMail version and backend (LDAP/MySQL/PGSQL):<br />- Linux/BSD distribution name and version:<br />- Any related log? Log is helpful for troubleshooting.<br />==== </p><p>Hi Zhang,<br />How to get Email alert to admin and users when users mailbox quota exceeds the limit for dovecot ldap backend.</p><p>please advise.</p><p>Regards,<br />PineMail11</p>]]></content>
			<author>
				<name><![CDATA[PineMail11]]></name>
				<uri>http://www.iredmail.org/forum/user2632.html</uri>
			</author>
			<updated>2012-07-31T04:18:52Z</updated>
			<id>http://www.iredmail.org/forum/post17324.html#p17324</id>
		</entry>
</feed>
