Urgent help needed...please!!
kfliong
kfliong at gmail.com
Mon Sep 27 14:06:39 IST 2004
ahh...you forgot to end to for command with done. Hehe...found and
added done at bottom and the script starts but here is what i get :
H??From: MAILER-DAEMON at xi.pair.com
./test: qfi8RLaVJ11884: command not found
H??From: MAILER-DAEMON at 104.elkenserver.net
./test: qfi8RLavJ12068: command not found
H??From: MAILER-DAEMON at xi.pair.com
./test: qfi8RLaWJ11888: command not found
H??From: MAILER-DAEMON at xi.pair.com
./test: qfi8RLaWJ11889: command not found
H??From: MAILER-DAEMON at xi.pair.com
./test: qfi8RLaWJ11890: command not found
H??From: MAILER-DAEMON at europa.valvcon.com (Mail Delivery System)
./test: qfi8RLb0J12085: command not found
H??From: MAILER-DAEMON at iocc.com (Mail Delivery System)
I wonder what that command not found means....
On Mon, 27 Sep 2004 14:42:35 +0200, Dalimil Gala <konve at logout.cz> wrote:
> I don't know the "proper" solution but you can try to delete the mails
> directly from mail queue like (you need to grep for more patterns than
> just From: MAILER-DAEMON of course).
>
> netwoR
>
> #!/bin/bash
>
> cd /var/spool/mqueue.in
>
> for email_header in q* ; do
> #echo "Processing $email_header"
> if cat $email_header | grep -e 'H\?\?From\: MAILER-DAEMON' ; then
> email_body=`echo $email_header | sed -e 's/^q/d/'`
> # echo "$email_header"
> rm $email_header
> rm $email_body
> $email_header = ""
> fi
>
> done
>
>
>
> kfliong wrote:
>
> >On Mon, 27 Sep 2004 11:42:04 +0100, Kevin Spicer <kevins at bmrb.co.uk> wrote:
> >
> >
> >>On Mon, 2004-09-27 at 10:45, kfliong wrote:
> >>
> >>
> >>>Hi all,
> >>>
> >>>
> >>>My server is getting bomb by tons of emails. So bad that it make the
> >>>load of my server to go up to 15. Sometimes even more than 20. I found
> >>>out that we are getting lots of mails where the from is empty and the
> >>>subject vary as below :
> >>>
> >>>
> >>Are they directed to the same user at your domain (often joe jobs are),
> >>does that user really exist? If not you can just discard all mail to
> >>that user. If they are being sent to a number of users that don't
> >>really exist then you need to use a technique to only accept valid mail.
> >>
> >>
> >
> >they are directed to random generated username. Definitely not from
> >within my server but if it is, i have no way of check as the mail i
> >received cannot be traced the sender. IP is from random servers.
> >
> >Yes, i want the technique to only accept valid mails without going
> >through Mailscanner as what is happening now and what i have already
> >tried.
> >
> >
> >
> >>Are you certain that none of the spam is originating from within your
> >>domain? I've been joe-jobbed a couple of times and never had that sort
> >>of volume of mail. Maybe I've just been lucky (relatively speaking).
> >>
> >>
> >
> >nope...not from my own domain.
> >
> >
> >
> >
>
------------------------ MailScanner list ------------------------
To unsubscribe, email jiscmail at jiscmail.ac.uk with the words:
'leave mailscanner' in the body of the email.
Before posting, read the MAQ (http://www.mailscanner.biz/maq/) and
the archives (http://www.jiscmail.ac.uk/lists/mailscanner.html).
More information about the MailScanner
mailing list