Queued messages ?
Ken Anderson (Pacific Internet)
ka at PACIFIC.NET
Thu Feb 26 20:54:19 GMT 2004
Sendmail has a utility called re-mqueue that will do pretty much what
you want. Look for it in /usr/local/bin/re-mqueue or some other likely
place.
Ken
MailScanner wrote:
> I'm considering a perl script on an hourly cron job to check all qf
> files in the outbound queue and delete those files and their
> corresponding df files, that have have an empty (< >) from: field and
> have a retry count of at least four. (four strikes and you're out)
>
> This would give legitimate NDR's a fair chance of being delivered and
> remove all but the last few hours of bogus NDR's.
>
> I will post updates here
>
> Bart...
>
> ________________________________
>
> From: MailScanner mailing list [mailto:MAILSCANNER at JISCMAIL.AC.UK] On
> Behalf Of Max Kipness
> Posted At: 25 February 2004 16:17
> Posted To: MailScanner
> Conversation: Queued messages ?
> Subject: Queued messages ?
>
>
>
> Anybody have any suggestion for this problem??
>
>
>
> ----------------------------------------------------------------------
>
>
>
> Hope this isn't too off topic. I does have to do with MailScanner.
>
>
>
> I'm relaying several email domains to several servers and have extended
> the 4 hour and 4 day warning and bounce back times in sendmail to 2
> weeks. This is do to a client that is going through weekend power
> outages at the moment.
>
>
>
> I now have roughly 2000 emails in the queue, 95% of them have <> as the
> sender. This also do to the fact that I am sending spam warning messages
> to senders, and must do this for false-positives.
>
>
>
> I was thinking of creating a script that parses the results of mailq and
> deletes every email with <> as the sender on a daily basis.
>
>
>
> Any thoughts on this? Pros and cons? Has anyone done this? Or is there
> anything in MailScanner that helps with this?
>
>
>
> Thanks,
>
> Max
>
>
More information about the MailScanner
mailing list