Re: [Dovecot] quota-warning.sh mail from

2008-10-21 Thread Proskurin Kirill
Sotiris Tsimbonis wrote: Ok, fair enough (my "mail" does not understand -f to set From)... Maybe you've got different "mail" executables in your path and the script's default path? See output of "whereis mail" .. Even better, run "which mail" on your shell, and put the full path in your scr

Re: [Dovecot] quota-warning.sh mail from

2008-10-21 Thread Sotiris Tsimbonis
Proskurin Kirill wrote, On 10/21/2008 11:36 AM: Sotiris Tsimbonis wrote: Proskurin Kirill wrote, On 10/20/2008 06:27 PM: Oh. I make my question more short. In example on wiki we see such command: /usr/sbin/sendmail "$USER" As I understand $USER - it is system env mean current login user. I c

Re: [Dovecot] quota-warning.sh mail from

2008-10-21 Thread Proskurin Kirill
Sotiris Tsimbonis wrote: Proskurin Kirill wrote, On 10/20/2008 06:27 PM: Oh. I make my question more short. In example on wiki we see such command: /usr/sbin/sendmail "$USER" As I understand $USER - it is system env mean current login user. I could not understand still how dovecot understand

Re: [Dovecot] quota-warning.sh mail from

2008-10-21 Thread Sotiris Tsimbonis
Proskurin Kirill wrote, On 10/20/2008 06:27 PM: Oh. I make my question more short. In example on wiki we see such command: /usr/sbin/sendmail "$USER" As I understand $USER - it is system env mean current login user. I could not understand still how dovecot understand to whom deliver a mail? I

Re: [Dovecot] quota-warning.sh mail from

2008-10-20 Thread Proskurin Kirill
Oh. I make my question more short. In example on wiki we see such command: /usr/sbin/sendmail "$USER" As I understand $USER - it is system env mean current login user. I could not understand still how dovecot understand to whom deliver a mail? I dont see it on this example. My script work bu

Re: [Dovecot] quota-warning.sh mail from

2008-10-20 Thread Sotiris Tsimbonis
On 10/20/2008 10:28 AM, Proskurin Kirill wrote: #cat quota-warning.sh: #!/bin/sh PERCENT=$1 TO=$2 echo "Your mailbox is $PERCENT% full. If it overfill - you will can not get new email. Please clean up your mailbox. -- Mail Administator" | /usr/bin/mail -s "Email mailbox is $PERCENT% full"

Re: [Dovecot] quota-warning.sh mail from

2008-10-20 Thread Proskurin Kirill
Timo Sirainen wrote: In conf: quota_warning = storage=80%% /usr/local/bin/quota-warning.sh 80 [EMAIL PROTECTED] You probably want just %u since it has both [EMAIL PROTECTED] In logs: IQuota warning: bytes=168611020 (80%) messages=0 (0%) command=/usr/local/bin/quota-warning.sh 80 dump-capab

Re: [Dovecot] quota-warning.sh mail from

2008-10-18 Thread Timo Sirainen
On Thu, 2008-10-16 at 18:00 +0400, Proskurin Kirill wrote: > Hello all > > How Dovecot 1.1.3 quota script understand to who send a mail? > > In try to do this: > > In conf: > quota_warning = storage=80%% /usr/local/bin/quota-warning.sh 80 [EMAIL > PROTECTED] You probably want just %u since it

[Dovecot] quota-warning.sh mail from

2008-10-16 Thread Proskurin Kirill
Hello all How Dovecot 1.1.3 quota script understand to who send a mail? In try to do this: In conf: quota_warning = storage=80%% /usr/local/bin/quota-warning.sh 80 [EMAIL PROTECTED] In logs: IQuota warning: bytes=168611020 (80%) messages=0 (0%) command=/usr/local/bin/quota-warning.sh 80 dump