Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Shells Virtual Desktop
BMail.ag - Secure Email Service
Server.net
CPLicense.net
VPS Server
Buy VPN
Vultr
VMs for AI
HostDare
HostDare
ReliableSite White-Label Dedicated Hosting for Resellers
25% Recurring Discount on NVMe VPS
InterServer VPS
BMail.ag - Secure Email Service
Best VPN
High-Performance Bare Metal Server Solutions
Karvl.com
Server Mania Cloud Hosting
DataWagon Hosting
AlphaVPS Hosting
Evoxt.com
Clouvider
VPS Hosting with NVMe
Residential IPs in the US & 4G Mobile Proxies in EU & US with Unlimited Bandwidth
ReliableSite White-Label Dedicated Hosting for Resellers
Rabisu - Hosting Solutions
CloudLinux
Shells Virtual Desktop
New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

Outbound SPAM control

LeviLevi Member
edited November 2019 in Help

How do you battle compromised mailboxes? Any free tools to monitor and automatically clear mail queue if certain tresholds are met?

Comments

  • Csf mail manager?

  • You can easily write a script and trigger it when sending email in exim. That is if you are using exim. Havent played with postfix yet.

  • A fool.

  • For Linux a cronjob is good for clearing the queue in intervals.
    But it is good to reset the email password to prevent further sending compromised emails from the email account, by that the server IP reputation can be saved.

  • nemnem Member, Host Rep

    rspamd is a low cost outbound milter. It's also a policy milter, so you can rate-limit mail from ESMTPA accounts. If you know what you're looking for and using Postfix the following will purge mail matching a regex:

    rmspam () 
    { 
        SPOOL=/var/spool/postfix;
        EMAIL=$1;
        CNT=0;
        grep --color=auto -rsl "$EMAIL" $SPOOL/active/ $SPOOL/bounce/ $SPOOL/deferred/ $SPOOL/incoming/ | { 
            while read -r ID; do
                ID=${ID##*/};
                ((CNT++));
                postsuper -d "$ID" 2> /dev/null;
            done;
            echo "Removed $CNT messages"
        }
    }
    
    
    Thanked by 1karjaj
  • spam assassin?

Sign In or Register to comment.