Hey all! I've been wondering if there's a way to notify users that their mailbox is (almost) over quota through a regular email or something... I've been searching for an answer to this but sofar no luck... Does anyone have any suggestions? Thanks!
Change the line in postfix master.cf: flags=R user=vmail argv=/usr/bin/maildrop -d ${recipient} ${extension} ${recipient} ${user} ${nexthop} ${sender} to: flags=R user=vmail argv=/usr/bin/maildrop -w 90 -d ${recipient} ${extension} ${recipient} ${user} ${nexthop} ${sender} and restart postfix. Now maildrop should sent a warning message when the mailbox is 90% full. The message text is taken from /etc/courier/quotawarnmsg (at least on debian and ubuntu). Create this file if it does not exist.
Hi till, the line that you said to change is different in my installation... it is this one: Code: flags=DRhu user=vmail argv=/usr/bin/maildrop -d vmail ${extension} ${recipient} ${user} ${nexthop} ${sender} as you can see it's different in the flags... Do I need to put the new line that you posted or one with flags=DRhu??? Thanks Michele
I've set the -w 90 flag, but even after 24 hours I get no notifications in my mailbox that is at 95% quota... The mailbox went over quota AFTER setting the flag.
[QUOTA] The message text is taken from /etc/courier/quotawarnmsg [/QUOTA] In which format I can write the message in that file? Can I use html? Thanks Michele
Most likely it is text only. But you might want to take a look into the courier documentation for details.
Ok I'll have a look. Last thing: after the modification of master.cf and after the creation of the file /etc/courier/quotawarnmsg, do I need to restart just postfix? Thanks Michele
Yes. If you edit main.cf or master.cf, you have to restart postfix so that it picks up the new configuration.
O till. I've created the file quotawarnmsg with the warning message. Do I need to setup any special permission on that file? At the moment is just: Code: -rw-r--r-- 1 root root 2119 2010-03-17 11:48 quotawarnmsg Thanks Michele