On Tuesday 05 February 2013 13:12:29 absolutely_free@libero.it wrote:
Hi, I'm using RC .0.8.4, MTA is Postfix (on Centos 6). There is a way to limit number of messages that a particular user can send at one time? For example: not more than 10 recipient for single message
// Maximum number of recipients per message. Default: 0 (no limit)
$rcmail_config['max_recipients'] = 0;
or not more that 50 message/hour?
// How many seconds must pass between emails sent by a user
$rcmail_config['sendmail_delay'] = 20;
On postfix side:
# # The maximal number of recipients that the Postfix SMTP server accepts per message delivery request. smtpd_recipient_limit = 100
# The maximum number of message delivery requests that an SMTP client may make
in the time interval specified with anvil_rate_time_unit (default: 60s).
smtpd_client_message_rate_limit = 10