🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.privacy.anon-server
Article #278339

Re: Anonusa Pinger Issue

#278339
From: Jack Ryan
Date: Sun, 13 Dec 2015 02:19
61 lines
2416 bytes
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> My Mailq is filled with these.
> 
> 057E517A5C0C 1632 Sat Dec 12 12:47:43 mix@redjohn.net
> pinger@anonusa.net
> 
> 0110517A5C2C 2280 Sat Dec 12 12:47:43 mix@redjohn.net
> pinger@anonusa.net

  Here is a script I wrote just for such pesky mailq entries.  Put it in a file /etc/deletemailq.sh, 'chmod 755 deletemailq.sh' it and run it like this:

./deletemailq.sh pinger@anonusa.net

It will only pick out the pinger@anonusa.net mailq records and remove them.



#!/bin/bash
#
# deletemailq.sh
# Delete mailq by string within mailq record
# ./deletemailq.sh pinger@anonusa.net
#

export PATH=$PATH:/sbin
export PATH=$PATH:/bin
export PATH=$PATH:/usr/sbin

filePath=${0%/*}  # current file path
remailerid="$1"

if [ ${#remailerid} = 0 ]; then
echo "Remailer name or address must be appended to end for this process to start!"
exit 0
fi

mailq > $filePath/tempmq.txt

sed -i '/-Arrival Time-/d' $filePath/tempmq.txt  # rid of title and trailer lines
sed -i '/Kbytes in/d' $filePath/tempmq.txt

while read -r line; do
      var1stline=$line  # 1st line
      read -r line
      var2ndline=$line  #2nd line
      read -r line
      var3rdline=$line  #3rd line
      read -r line      # blank line between
      mailqstr="$var1stline $var2ndline $var3rdline"  # all 3 lines merged into one

      if [[ $(grep -c $remailerid <<<$mailqstr) -gt 0 ]]; then  # is passed string in mailq record?
         qID=$(cut -d' ' -f1 <<<$mailqstr)                      # extract 'Queue ID' to delete
         postsuper -d "$qID"                                    # yes - delete it
      fi
done < $filePath/tempmq.txt

rm $filePath/tempmq.txt

exit 0
Technical Details
Message-ID: <19170ab4ac3f3f1fbcf3d43fc50f248e@remailer.cpunk.us>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!news.usenet.farm!..!..!not-for-mail
References: <20151212220815.9C9D6120120@fleegle.mixmin.net>

Show Full Headers
Complete Article Headers
Message-ID: <19170ab4ac3f3f1fbcf3d43fc50f248e@remailer.cpunk.us>
Subject: Re: Anonusa Pinger Issue
Date: Sun, 13 Dec 2015 02:19:31 +0000
From: Jack Ryan <noreply@remailer.cpunk.us>
References: <20151212220815.9C9D6120120@fleegle.mixmin.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!news.usenet.farm!..!..!not-for-mail
Newsgroups: alt.privacy.anon-server
Organization: dizum.com - The Internet Problem Provider
X-Abuse: abuse@dizum.com
Injection-Info: sewer.dizum.com - 194.109.206.211
Lines: 61