- Plesk for Linux
Why Outgoing Mail Control is not functional when localhost is added to whitelist? Localhost has to be whitelisted for the mailists (by mailman package) to work.
Outgoing Mail Control does not count emails sent from a localhost if localhost is whitelisted. For example, scripts are sent from a localhost without authorization. Adding localhost to whitelist will bring the following warning:
The limits on outgoing mail will not work for mail senders whose IP addresses are in the mail server's white list. For example, if there is localhost (127.0.0.0 / 8, ::1 / 128) in the white list, all mail from the local server will be successfully sent regardless of the limitations. Mail senders can use either local IP addresses (websites and custom scripts hosted on the local server) or external ones (customers who send mail from mail clients installed on their computers or mobile devices). To make the limits work for all mail senders (both local and external), remove all IP addresses and networks from the white list. Note that removing localhost (127.0.0.0 / 8, ::1 / 128) from the white list might disrupt the operation of websites and scripts that send mail from this server. For details about limitations on outgoing mail, see the Administrator's Guide, Protection from Outbound Spam.
Refer to the Plesk Administrator Guide for more information.
If it is needed to use Outgoing Mail Control that counts all emails coming from Plesk and provide the mailing lists functionality, use mail forwarding instead of the Mailing Lists:
1. Remove localhost from server-wide white list in Plesk > Tools&Settings > Mail Server Settings > White List
2. Enable Outgoing Mail Control and disable Mailists
3. Create a new email address that will be a replacement for the mailist address: Domains > example.com > Email Addresses > Create Email Address > email@example.com
4. Setup the forwarding option so that all maillist subscribers are added to firstname.lastname@example.org: Domains > example.com > Email Addresses > email@example.com > Forwarding. Refer to Plesk Administrator Guide to enable it.