1 (edited by emiliojl 2016-09-01 04:59:10)

Topic: Throttle for outbound emails error, policy bypass by user.

==== Required information ====
- iRedMail version (check /etc/iredmail-release):  iRedMail-0.9.5-1
- Linux/BSD distribution name and version: Ubuntu 14
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):  MySQL
- Web server (Apache or Nginx): Apache
- Manage mail accounts with iRedAdmin-Pro? iRedAdmin-Pro-SQL-2.4.0
- Related log if you're reporting an issue:
====

Setup Throttle for some users and they continue sending mail without any restriction.

Bug? errors? Can help me to troubleshoot the problem?

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: Throttle for outbound emails error, policy bypass by user.

Could you please turn on debug mode in iRedAPD, then send one more testing email to trigger the throttle, and extract full log related to your testing email from /var/log/iredapd/iredapd.log?

Also, output of "postconf -n" command is required.

3

Re: Throttle for outbound emails error, policy bypass by user.

Forgot to give you the tutorial to enable debug mode in iRedAPD:
http://www.iredmail.org/docs/debug.iredapd.html

4

Re: Throttle for outbound emails error, policy bypass by user.

Log shows to me that throttle not count mails.

==============================================================================
2016-08-29 10:31:39 INFO [200.42.69.169] sender throttle, ventas.vicentelopez@sportclub.com.ar -> max_msgs (0/50, period: 3600 seconds, time left: 40 minutes, 44 seconds)
2016-08-29 10:31:39 INFO [200.42.69.169] RCPT, ventas.vicentelopez@sportclub.com.ar => francogq@gmail.com, DUNNO
2016-08-29 10:31:40 INFO debug left 2: ['40 minutes', '44 seconds']
2016-08-29 10:31:40 INFO [200.42.69.169] sender throttle, ventas.vicentelopez@sportclub.com.ar -> max_msgs (0/50, period: 3600 seconds, time left: 40 minutes, 44 seconds)
2016-08-29 10:31:40 INFO [200.42.69.169] RCPT, ventas.vicentelopez@sportclub.com.ar => gabi84@outlook.com, DUNNO
2016-08-29 10:31:40 INFO debug left 2: ['40 minutes', '44 seconds']
2016-08-29 10:31:40 INFO [200.42.69.169] sender throttle, ventas.vicentelopez@sportclub.com.ar -> max_msgs (0/50, period: 3600 seconds, time left: 40 minutes, 44 seconds)
2016-08-29 10:31:40 INFO [200.42.69.169] RCPT, ventas.vicentelopez@sportclub.com.ar => garcesvaleria@gmail.com, DUNNO
2016-08-29 10:31:40 INFO debug left 2: ['40 minutes', '44 seconds']
2016-08-29 10:31:40 INFO [200.42.69.169] sender throttle, ventas.vicentelopez@sportclub.com.ar -> max_msgs (0/50, period: 3600 seconds, time left: 40 minutes, 44 seconds)
2016-08-29 10:31:40 INFO [200.42.69.169] RCPT, ventas.vicentelopez@sportclub.com.ar => gpetrochelli.ims@gmail.com, DUNNO
2016-08-29 10:31:40 INFO debug left 2: ['40 minutes', '44 seconds']
2016-08-29 10:31:40 INFO [200.42.69.169] sender throttle, ventas.vicentelopez@sportclub.com.ar -> max_msgs (0/50, period: 3600 seconds, time left: 40 minutes, 44 seconds)
2016-08-29 10:31:40 INFO [200.42.69.169] RCPT, ventas.vicentelopez@sportclub.com.ar => hueteroorganico@gmail.com, DUNNO
2016-08-29 10:31:40 INFO debug left 2: ['40 minutes', '44 seconds']
2016-08-29 10:31:40 INFO [200.42.69.169] sender throttle, ventas.vicentelopez@sportclub.com.ar -> max_msgs (0/50, period: 3600 seconds, time left: 40 minutes, 44 seconds)
2016-08-29 10:31:40 INFO [200.42.69.169] RCPT, ventas.vicentelopez@sportclub.com.ar => issisteresa@gmail.com, DUNNO
2016-08-29 10:31:41 INFO debug left 2: ['40 minutes', '44 seconds']
2016-08-29 10:31:41 INFO [200.42.69.169] sender throttle, ventas.vicentelopez@sportclub.com.ar -> max_msgs (0/50, period: 3600 seconds, time left: 40 minutes, 44 seconds)
2016-08-29 10:31:41 INFO [200.42.69.169] RCPT, ventas.vicentelopez@sportclub.com.ar => javier_pagano@hotmail.com, DUNNO
2016-08-29 10:31:41 INFO debug left 2: ['40 minutes', '44 seconds']
2016-08-29 10:31:41 INFO [200.42.69.169] sender throttle, ventas.vicentelopez@sportclub.com.ar -> max_msgs (0/50, period: 3600 seconds, time left: 40 minutes, 44 seconds)
2016-08-29 10:31:41 INFO [200.42.69.169] RCPT, ventas.vicentelopez@sportclub.com.ar => jugador-1979@hotmail.com, DUNNO
2016-08-29 10:31:41 INFO debug left 2: ['40 minutes', '44 seconds']
2016-08-29 10:31:41 INFO [200.42.69.169] sender throttle, ventas.vicentelopez@sportclub.com.ar -> max_msgs (0/50, period: 3600 seconds, time left: 40 minutes, 44 seconds)
2016-08-29 10:31:41 INFO [200.42.69.169] RCPT, ventas.vicentelopez@sportclub.com.ar => juliafrontoni2001@yahoo.com.ar, DUNNO
2016-08-29 10:31:41 INFO debug left 2: ['40 minutes', '44 seconds']
2016-08-29 10:31:41 INFO [200.42.69.169] sender throttle, ventas.vicentelopez@sportclub.com.ar -> max_msgs (0/50, period: 3600 seconds, time left: 40 minutes, 44 seconds)
2016-08-29 10:31:41 INFO [200.42.69.169] RCPT, ventas.vicentelopez@sportclub.com.ar => laura_bahit@yahoo.com.ar, DUNNO
2016-08-29 10:31:42 INFO debug left 2: ['40 minutes', '44 seconds']
2016-08-29 10:31:42 INFO [200.42.69.169] sender throttle, ventas.vicentelopez@sportclub.com.ar -> max_msgs (0/50, period: 3600 seconds, time left: 40 minutes, 44 seconds)
2016-08-29 10:31:42 INFO [200.42.69.169] RCPT, ventas.vicentelopez@sportclub.com.ar => lidiaferreyra5@hotmail.com, DUNNO
2016-08-29 10:31:42 INFO debug left 2: ['40 minutes', '44 seconds']
2016-08-29 10:31:42 INFO [200.42.69.169] sender throttle, ventas.vicentelopez@sportclub.com.ar -> max_msgs (0/50, period: 3600 seconds, time left: 40 minutes, 44 seconds)
2016-08-29 10:31:42 INFO [200.42.69.169] RCPT, ventas.vicentelopez@sportclub.com.ar => lublazquez@hotmail.com, DUNNO
2016-08-29 10:31:42 INFO debug left 2: ['40 minutes', '44 seconds']

==============================================================================

Any idea?

5

Re: Throttle for outbound emails error, policy bypass by user.

Could you please turn on debug mode in iRedAPD, then send one more testing email to trigger the throttle, and extract full log related to your testing email from /var/log/iredapd/iredapd.log?
http://www.iredmail.org/docs/debug.iredapd.html

6

Re: Throttle for outbound emails error, policy bypass by user.

Debug mode on.

A user with "Throttle for outbound emails" could be sent in less than an hour 1000 mails.

I read the "/var/log/iredapd/iredapd.log" and could not find any related record.

Another user, can send 50 mails when Throttle is set to 20 per hour.

I found related records.

Throttle counts 20 mails and then restarts count.

Any idea?  how throttle works?

7

Re: Throttle for outbound emails error, policy bypass by user.

If you don't understand the debug log, please paste the FULL log related to your testing email here.

8

Re: Throttle for outbound emails error, policy bypass by user.

Can you access google drive?

Log
https://drive.google.com/open?id=0B3nvw … 1UtVExGbDg

Dashboard
https://drive.google.com/open?id=0B3nvw … GQtd0VNWjA

9

Re: Throttle for outbound emails error, policy bypass by user.

*) Which log lines are related to your testing? Please help narrow down the log lines to reduce my workload.
*) You didn't enable debug in iRedAPD, there's no detailed debug at all, it's hard for me to help troubleshoot.

10

Re: Throttle for outbound emails error, policy bypass by user.

Don't bother looking.
There's no trace of that email account in the entire log.

About the debug, I have enabled it after your previous post.

You checked the logs and didn't see the debug?

11

Re: Throttle for outbound emails error, policy bypass by user.

emiliojl wrote:

You checked the logs and didn't see the debug?

No debug log at all.
Do you have "log_level = 'debug'" in /opt/iredapd/settings.py? And restarted iredapd service?

12

Re: Throttle for outbound emails error, policy bypass by user.

I have..

# Log level: info, debug.
log_level = "debug"

Quotes problem? my original settings.py has doble quotes.

13

Re: Throttle for outbound emails error, policy bypass by user.

Either single/double quotes are ok. Did you restart iRedAPD service after updated /opt/iredapd/settings.py? I cannot see any debug log in your log file.

14

Re: Throttle for outbound emails error, policy bypass by user.

I can saw debug line.

I can add log and specific case.

New user bypass Throttle.

Attach
iredpad.log
https://drive.google.com/open?id=0B3nvw … C1YX2x3REE

User cofig
https://drive.google.com/open?id=0B3nvw … 3p2MTV1bTA

User Top Sender
https://drive.google.com/open?id=0B3nvw … nBiR0dqTVE

15

Re: Throttle for outbound emails error, policy bypass by user.

i see you set the throttle to send max 10 messages in one hour, need your confirm:

1) did you send only ONE email with (more than) 10 recipients?
2) or sending 10 emails with one recipient in each email?

According to iRedAPD log, seems it's #1, this is a known bug in the latest iRedAPD-1.9.1, and fixed in the latest development edition.

2016-09-19 17:35:41 INFO [200.42.x.x] sender throttle, rominaiglesias@domain.com -> max_msgs (1/10, period: 3600 seconds, time left: 1 hours)
2016-09-19 17:35:42 INFO [200.42.x.x] sender throttle, rominaiglesias@domain.com -> max_msgs (1/10, period: 3600 seconds, time left: 1 hours)
2016-09-19 17:35:42 INFO [200.42.x.x] sender throttle, rominaiglesias@domain.com -> max_msgs (1/10, period: 3600 seconds, time left: 1 hours)
2016-09-19 17:35:42 INFO [200.42.x.x] sender throttle, rominaiglesias@domain.com -> max_msgs (1/10, period: 3600 seconds, time left: 1 hours)
2016-09-19 17:35:42 INFO [200.42.x.x] sender throttle, rominaiglesias@domain.com -> max_msgs (1/10, period: 3600 seconds, time left: 1 hours)
2016-09-19 17:35:43 INFO [200.42.x.x] sender throttle, rominaiglesias@domain.com -> max_msgs (1/10, period: 3600 seconds, time left: 1 hours)
2016-09-19 17:35:43 INFO [200.42.x.x] sender throttle, rominaiglesias@domain.com -> max_msgs (1/10, period: 3600 seconds, time left: 1 hours)
2016-09-19 17:35:43 INFO [200.42.x.x] sender throttle, rominaiglesias@domain.com -> max_msgs (1/10, period: 3600 seconds, time left: 1 hours)
2016-09-19 17:35:43 INFO [200.42.x.x] sender throttle, rominaiglesias@domain.com -> max_msgs (1/10, period: 3600 seconds, time left: 1 hours)
2016-09-19 17:35:43 INFO [200.42.x.x] sender throttle, rominaiglesias@domain.com -> max_msgs (1/10, period: 3600 seconds, time left: 1 hours)
2016-09-19 17:35:44 INFO [200.42.x.x] sender throttle, rominaiglesias@domain.com -> max_msgs (1/10, period: 3600 seconds, time left: 1 hours)
2016-09-19 17:35:44 INFO [200.42.x.x] sender throttle, rominaiglesias@domain.com -> max_msgs (1/10, period: 3600 seconds, time left: 1 hours)
2016-09-19 17:35:44 INFO [200.42.x.x] sender throttle, rominaiglesias@domain.com -> max_msgs (1/10, period: 3600 seconds, time left: 1 hours)
2016-09-19 17:35:44 INFO [200.42.x.x] sender throttle, rominaiglesias@domain.com -> max_msgs (1/10, period: 3600 seconds, time left: 1 hours)

The timestamp is almost same, just 1-2 seconds further. So i guess this is one email with 14 recipients. right?

16

Re: Throttle for outbound emails error, policy bypass by user.

Yes i configure 10 mails per hour.

Option 1, one mail with multiple recipient, CCO, sent with outlook 2010.

17

Re: Throttle for outbound emails error, policy bypass by user.

This is a known bug in the latest iRedAPD-1.9.1, and fixed in the latest development edition.

18

Re: Throttle for outbound emails error, policy bypass by user.

Thanks, Any workaround? db?

19

Re: Throttle for outbound emails error, policy bypass by user.

You have few options:

1) Wait for our upcoming iRedAPD stable release, then upgrade.
2) Check out the latest iRedAPD source code and upgrade.

The latest development edition is considered as stable enough, you can give it a try:
https://bitbucket.org/zhb/iredapd/downloads?tab=tags

Download the "tip" edition, uncompress downloaded file, rename the directory from "zhb-iredapd-xxx" to "iRedAPD-1.9.2", then follow our tutorial to upgrade it:
http://www.iredmail.org/docs/upgrade.iredapd.html