Howdy, Stranger!

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

Subscribe to our newsletter

Advertise on LowEndTalk.com

Latest LowEndBox Offers

    Outbound SPAM control
    New on LowEndTalk? Please read our 'Community Rules' by clicking on it in the right menu!

    Outbound SPAM control

    LTnigerLTniger 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?

    Wordpress Hosting - Home made!

    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.

      Linux - RedHat|cPANEL CentOS,Ubuntu|Azure-VM/AWS-Ec2 Administrator,
      Assistance, Analysis and Diagnosis.| Skype: tuxandrew | [email protected]

    • nemnem Member, Provider

      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?

      Digital Business Services - Shared, Reseller & VPS Hosting

    Sign In or Register to comment.