dovecot quota-warning detection mail

森川 孝司 morikawa-k6 at itec.hankyu-hanshin.co.jp
Wed Oct 28 06:19:34 EET 2020


Hi,Kouga-san

When quota-warning works normally
I'm sending an email to "From: <Postmaster at example.co.jp> to =
<abc-xyz-unyo at example.co.jp>"

When it doesn't work
An email was sent to "From: <Postmaster at example.co.jp> to =
<abc-xyz-unyo-sekkei>"
"Recipient address rejected: User unknown in local recipient table"

It will be.

cat /etc/dovecot/conf.d/90-quota.conf
-------------------------------------------------- ------------
plugin {
   quota_warning = storage = 95 %% quota-warning 95% u
   quota_warning1 = storage = 90 %% quota-warning 90% u
   quota_warning2 = storage = 85 %% quota-warning 85% u
   quota_warning3 = storage = 80 %% quota-warning 80% u
}

service quota-warning {
   executable = script /usr/local/bin/quota-warning.pl
   user = dovecot
   unix_listener quota-warning {
     user = vmail
   }
}
-------------------------------------------------- -------------

And it is set.

Thank you.

-----Original Message-----
From: Koga Hayashi [mailto:hayashi at progdence.co.jp]
Sent: Wednesday, October 28, 2020 12:50 PM
To: 森川 孝司 <morikawa-k6 at itec.hankyu-hanshin.co.jp>; dovecot at dovecot.org
Subject: RE: dovecot quota-warning detection mail

Morikawa,

What do you mean by "logged-in user"?

%u stands for the username.
If, for an example, user "morikawa" exists in your dovecot server (I mean as
local user), your quota warning configuration should be fine.
But if user "morikawa" does not exist in your server, and, dovecot can't
resolve the username to the mail address, then the quota warning mail be
rejected because dovecot can't find the "username" in local recipient table.

A little more information about your server environment will be appreciated.

Kouga
-----Original Message-----
From: dovecot <dovecot-bounces at dovecot.org> On Behalf Of 森川 孝司
Sent: Wednesday, October 28, 2020 10:17 AM
To: dovecot at dovecot.org
Subject: dovecot quota-warning detection mail

Hi, all.
we use quota-warning emails to notify you of quotas.

In rare cases, the email address has changed to the logged-in user.
(Because the address of %u is passed as the logged-in user.)

So I couldn’t send the email with “Recipient address rejected: User
unknown in local recipient table”.

Why does my email address change to a logged-in user?
%u of "quota_warning = storage = 95 %% quota-warning 95% u"
The output is the logged-in user.

By Morikawa



More information about the dovecot mailing list