Re: mail queue issues -- backed up with spam messages

This is a discussion on Re: mail queue issues -- backed up with spam messages within the mailing.postfix.users forums, part of the Mail Servers and Related category; Craig Sanders: > On Sat, Oct 16, 2004 at 08:01:10PM -0400, Wietse Venema wrote: > > Craig Sanders: &...


Go Back   Usenet Forums > Mail Servers and Related > mailing.postfix.users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 10-17-2004
Wietse Venema
 
Posts: n/a
Default Re: mail queue issues -- backed up with spam messages

Craig Sanders:
> On Sat, Oct 16, 2004 at 08:01:10PM -0400, Wietse Venema wrote:
> > Craig Sanders:
> > > On Sat, Oct 16, 2004 at 12:17:27PM -0400, Wietse Venema wrote:
> > > > I suggest that you search the maillog file for all records that
> > > > list the IP address while the bad customer was using it. That
> > > > gives you the queue ID strings and the random sender addresses.
> > > >
> > > > grep '[111\.222\.333\.444\]' /var/log/maillog >11.22.33.4-records
> > > >
> > > > edit the file, and delete records outside the window of interest
> > > >
> > > > postsuper -h - <11.22.33.4-records
> > >
> > > you can avoid having to manually edit the file with a one-liner like this:
> > >
> > > grep "client=.*\[111\.222\.333\.444\]" /var/log/mail.log | \
> > > awk '{print $6}' | \
> > > sed -e 's/://' | \
> > > postsuper -d -
> > >
> > > (or "postsuper -h -" to hold the messages rather than delete them)

> >
> > The one-liner does not delete the logfile records outside the time
> > window of interest.

>
> sorry, i can't parse that.


We don't want to throw away mail from good customers who have
used that same IP address outside the time window of interest.

Wietse
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 07:02 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0