[BlueOnyx:19715] Re: prevent user from sending e-mail in /etc/mail/access
webmaster
webmaster at oldcabin.net
Wed Jun 15 11:27:30 -05 2016
I find that webmin is a handy tool for stuff like this
> It may be mail still on the server, waiting to go out. And as soon as
> you enable Sendmail again - it starts flowing.
>
> Check to see what's waiting on the server to go out with the
> command-line command "mailq", or if its long - "mailq | more". The
> last line should be the number of messages waiting to go out from your
> server. Most servers are usually 0 - since mail goes out quickly. If
> there just a few - this isn't the problem. But if there are a LOT
> (I've seen 40,000+ on a exploited server before) - you have to get rid
> of them!
>
> In that case, go into /var/spool/mqueue - which is the directory mail
> sits in while waiting to go out. Each message is either one or two
> files - so there could be a LOT of files in here if there are a lot of
> messages in the "mailq" output. And while there could be valid
> customer e-mails in there - its VERY time consuming to identify which
> is which. So I just delete everything in that directory - risking
> loosing a couple of valid customer e-mails along with all the SPAM in
> there. Just "rm -f *" in that directory to get rid of them all, and
> then restart the mail services on your server.
>
> Good luck cleaning up. I know your pain!!
>
>
> Chuck
>
>
>
> *---------- Original Message -----------*
> From: Meaulnes Legler <bluelist at waveweb.ch>
> To: BlueOnyx General Mailing List <blueonyx at mail.blueonyx.it>
> Sent: Wed, 15 Jun 2016 16:43:34 +0200
> Subject: [BlueOnyx:19711] prevent user from sending e-mail in
> /etc/mail/access
>
> > dear list
> >
> > with iptables, I have been able to stop the e-mail flooding attacking a
> > specific user, see previous post [BlueOnyx:19698] Re: e-mail flooding
> >
> > But that user is still sending out tons of mails if I enable it again
> > (unchecking «Suspend» in the GUI), thousands in a couple of hours with
> > subjects like:
> > Subject: Warning: could not send message for past 4 hours
> > Subject: Returned mail: see transcript for details
> > That user must have some virus and I'm afraid that my server will be
> > tagged...
> >
> > I read that I could prevent user from sending e-mail by adding these
> > lines to /etc/mail/access
> > From:janis at legler.org REJECT # Reject user from sending
> mails
> > and restarting sendmail. But /etc/mail/access is pretty much empty:
> >
> > --------------------------------------------
> > # By default we allow relaying from localhost...
> > Connect:localhost.localdomain RELAY
> > Connect:localhost RELAY
> > Connect:127.0.0.1 RELAY
> > # Cobalt Access Section Begin
> >
> > # Cobalt Access Section End
> > /etc/mail/access lines 1-15/15 (END)
> > --------------------------------------------
> >
> > Can I do so as said above without compromising the mailer?
> >
> > Thank you and best regards
> >
> > Meaulnes Legler
> > ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
> > ~ http://www.WaveWeb.ch <http://www.waveweb.ch/> ~
> > ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
> > ~ Zurich, Switzerland ~
> > ~ +41\0 44 260 16 60 ~
> > ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
> >
> > _______________________________________________
> > Blueonyx mailing list
> > Blueonyx at mail.blueonyx.it
> > http://mail.blueonyx.it/mailman/listinfo/blueonyx
> *------- End of Original Message -------*
>
>
> _______________________________________________
> Blueonyx mailing list
> Blueonyx at mail.blueonyx.it
> http://mail.blueonyx.it/mailman/listinfo/blueonyx
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.blueonyx.it/pipermail/blueonyx/attachments/20160615/7836bf75/attachment.html>
More information about the Blueonyx
mailing list