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 but "mail from" - is a dovecot user but I want see in "mail from" postmaster of my domain.

Sotiris Tsimbonis wrote:
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" $TO -f [EMAIL PROTECTED]

exit 0
----------

But im still got this message with mail from "[EMAIL PROTECTED]" *dmail it is user dovecot deliver runnig from*

If im run quota-warning.sh cript by hands - im got [EMAIL PROTECTED] in mail from. What im do wrong?..


I'm not sure that you can have that multiline echo ...
Anyway, try the following which uses sendmail -f to set the From Address..

--
Best regards,
Proskruin Kirill

Reply via email to