bug-mailfromd
[Bug-mailfromd] Postfix and mailfromd
I am trying to implement a setup with mailfromd and postfix. I ran into
a few possible problems and was hoping that somebody might be able to
verify what I am doing wrong.
First of all when compiling the source I received the following error.
tbf_rate.c: In function ‘check_tbf_rate’:
tbf_rate.c:125: error: expected ‘)’ before ‘PRIu64’
tbf_rate.c:125: error: expected ‘)’ before ‘PRIu64’
To continue testing for now I removed the PRIu64 strings, figured this
change should not create a problem for now.
Than wrote a simple configuration file with only a rate check like below
prog envfrom
do
if not rateok($mail_addr "-" $client_addr, interval("5 minutes"), 20)
tempfail 450 4.7.0 "Mail sending rate exceeded. Try again later"
fi
done
Seems to be working except during my tests I don't necessarily get
denied after 20 mails, but sometimes 3 or 5 mails. I guess my sample
with 5 minutes and a limit of 20 is not a very good test for the way
rate module works, is that assumption correct?
I am also getting the following error messages every time I send a mail
through this setup regardless if the mail is accepted or denied.
mailfromd[32426]: State abrt is unreachable from helo
mailfromd[32426]: Ignoring milter command: A
mailfromd[32426]: State quit is unreachable from helo
mailfromd[32426]: Ignoring milter command: Q
Thanks
--
Mehmet