Conditional Max Recipients
You can create a conditional Max_recipients setting that allows specific users to send as many emails as they want. Just go through the following steps:
- open up /usr/local/atmail/mailserver/configure, and find:
MYSQL_GROUPLOOKUP = select GroupEmail from AbookGroup_shared where GroupName='${quote_mysql:$local_part}'
- add this below:
MYSQL_MAXRCPT = select Account from Users where Account='${quote_mysql:$sender_address}' and NoMaxRcpt = '1'
- then find:
hostlist relay_from_hosts = localhost:mysql;MYSQL_RELAY
- below it, add:
addresslist allowed_maxrcpts = mysql;MYSQL_MAXRCPT
- then find:
accept local_parts = postmaster
domains = +local_domains
- below it, add:
deny condition = ${if > {$rcpt_count}{[INSERT YOUR PREFERRED VALUE HERE]}}
senders = !+allowed_maxrcpts
message = Too many recipients
- where [INSERT YOUR PREFERRED VALUE HERE] is the number that you want to set as your default Max Recipient value.
- login to your MySQL terminal, and execute:
alter table Users add 'NoMaxRcpt' smallint(1) DEFAULT '0';
- to assign users whitelisted from the Max Recipients value, just execute in MySQL:
update Users set NoMaxRcpt='1' where Account='user@domain.com';
- where user@domain.com is the user to be whitelisted.

