For testing I replaced
/usr/local/libexec/dovecot/dovecot-lda -d $USER with
/usr/sbin/sendmail $USER in the quota-warning.sh script. Now
the mail is delivered when 80% or 95% of quota is reached.
Any idea, why dovecot-lda doesn't deliver the warning mail?
Regards,
Thomas.
> Hi,
> I setup a new mailserver with dovecot 2.0.12. Everything is working
> fine (including quota) - except of sending quota warning mails.
>
> When running
> /usr/local/bin/quota-warning.sh 95 user at domain.de
> manually as root or user vmail, the mail is delivered.
>
> content of /usr/local/bin/quota-warning.sh
>
> #!/bin/sh
> PERCENT=$1
> USER=$2
> logger -p mail.info "$PERCENT% Quota-warning sent to $USER"
> cat << EOF | /usr/local/libexec/dovecot/dovecot-lda -d $USER -o
> "plugin/quota=maildir:User quota:noenforcing"
> From: postmaster at domain.de
> Subject: $PERCENT% Mail quota warning
> Content-Type: text/plain; charset=ISO-8859-15; format=flowed
> Content-Transfer-Encoding: 8bit
>
> Der Speicherplatz Ihres E-Mail-Postfaches ist zu $PERCENT% gef?llt.
> Bitte l?schen Sie alte und unerw?nschte E-Mails vom Server, um den
> Emfang neuer E-Mails aufgrund Speicherplatzmangels nicht zu behindern.
>
> Your mailbox with us is now more than $PERCENT% full.
> To avoid mail loss due to lack of sufficient space, please remove
> old and unwanted mails from the server.
> EOF
>
> Because of line 4 of the script I see in maillog, that the script is
> executed, but no mail is delivered? Any ideas?
>
> Regards,
> Tom.