milter postfix virtualmin error

Hello,

I've run milter with 100 emails per hour limit on my server, I can see the following errors in /var/log/maillog after each each email is sent:

Feb 19 21:51:19 sv milter-greylist: smfi_getsymval failed for {daemon_port}, using default smtp port
 
 
Feb 19 21:51:19 sv milter-greylist: 6668140124: skipping greylist because this is the default action, (from=USER@FQDN.com, rcpt=DESTEMAIL@yahoo.com, addr=localhost[127.0.0.1]) ACL 66
 
 
Feb 19 21:51:59 sv milter-greylist: smfi_getsymval failed for {i}

What are these?! I found :

http://www.postfix.org/MILTER_README.html#workarounds

Status: 
Active

Comments

Howdy -- that message should be harmless.

Are you experiencing a problem of any sort?

Mostafa's picture
Submitted by Mostafa on Sat, 02/22/2014 - 10:48

No emails is sent from the server after the defined limit (I set it to 100 emails/hour) is reached, I wonder why the email counter doesn't reset each hour ... :

Feb 22 19:56:04 sv postfix/pickup[17245]: 539AB40118: uid=555 from=<USER@HOSTNAME>
Feb 22 19:56:04 sv milter-greylist: smfi_getsymval failed for {daemon_port}, using default smtp port
Feb 22 19:56:04 sv postfix/cleanup[22649]: 539AB40118: message-id=<5f5e22aebeae1fce9353cfc8910cd38b@DOMAIN>
Feb 22 19:56:04 sv milter-greylist: ratelimit overflow for class virtualmin_limit: 5389, limit is 100 recipients / 3600 sec, key = "127.0.0.1"
Feb 22 19:56:04 sv milter-greylist: 539AB40118: addr localhost[127.0.0.1] from USER@HOSTNAME to DEST-EMAIL@yahoo.com blacklisted (ACL 65)
Feb 22 19:56:04 sv postfix/cleanup[22649]: 539AB40118: milter-reject: RCPT from localhost[127.0.0.1]: 5.7.1 Message quota exceeded; from=<USER@HOSTNAME> to=<DEST-EMAIL@yahoo.com>
Feb 22 19:56:04 sv postfix/cleanup[22649]: warning: 52D1440118: milter configuration error: can't reject recipient in non-smtpd(8) submission
Feb 22 19:56:04 sv postfix/cleanup[22649]: warning: 52D1440118: deferring delivery of this message

Now I've ~ 340 emails deferred and I can see them using mailq command...

There's something wrong with virtualmin mail limit ....

I suspect the total email limit may be set a bit too low there... it sounds like more email is trying to send than the rate limit queue can handle.

Due to the way postgrey-milter handles email generated locally, locally generated email does still end up in the mail queue, even when it's being rate limited. And then Postfix continues to try to resend all those emails, which I believe postgrey-milter will count towards the limits.

Due to that, if the queue grows too large, you may need to manually intervene to correct it.

If all the email in your queue is legitimate, you may want to temporarily increase the rate limit in order to clear out the queue... but if you run into that issue a lot it may mean that the limit needs to be set higher.