XMailforum is a readonly knowledge archive now.

Registering as a new user or answering posts is not possible anymore.

Might the force be with you, to find here what you are looking for.

2019-09-20 - hschneider, Admin

Cookie Disclaimer: This forum uses only essential, anonymous session cookies (xmailforum*), nothing to be scared of.

XMail Forum -> Delete all frozen messages with this sender...

Reply to this topicStart new topicStart Poll

> Delete all frozen messages with this sender...
bim
Posted: Apr 24 2004, 12:26 PM
Quote Post


Advanced Wizard
**********

Group: Members
Posts: 489
Member No.: 297
Joined: 6-October 02



A lot of spam is still sent from non-existant domains. With the next version of XMailserver, we should be able to handle them as a lot of mailservers do: don't accept them before they even tried to send the body. For now, I still accept them and most of the time I need to forward them to an other server, that rejects them... After which XMailserver tries to inform the sender of this, which obviously isn't possible...

To make a lang story short: I get a lot of frozen "Error sending message" messages in the queue. Is there a way to delete all frozen messages coming from my mail-admin address?

And a little bit off-topic: did someone already write a script that would detect all messages from non-existant domains?
PM
Top
hschneider
Posted: Apr 24 2004, 12:53 PM
Quote Post


No - I'm not an answering script ...
Group Icon

Group: Admin
Posts: 6631
Member No.: 195
Joined: 19-June 02



Just sort them by sender by clicking the column header, mark the 1st message, hold SHIFT and mark the last one. Then delete selected messages.

>..a script that would detect all messages from non-existant domains?
Mayvortex? Just place this into the scripting corner.


--------------------
Bye,
Harald


-- Download XMail Queue Manager 1.46 NOW: XMail Server Tools
-- Cross platform remote queue management!
-- Message analyzing on the fly!
-- Builtin diagnostics knowledge base!
-- Manages multiple mail queues!

Sponsored by
CD-Produktion und DVD-Produktion and Homestaging Saarland - Immobilien schneller verkaufen in der Region Saarland, Rheinland-Pfalz und Luxembourg
PMEmail PosterUsers Website
Top
bim
Posted: Apr 24 2004, 06:25 PM
Quote Post


Advanced Wizard
**********

Group: Members
Posts: 489
Member No.: 297
Joined: 6-October 02



Sorry, seems like I forgot to mention I'd like to do it with the command line tool tongue.gif wub.gif Sort of doing it manually like you described right now.

I can delete all frozen messages with it and have never seen a frozen message not from the mail admin address, but want to be sure... So is there any way?
PM
Top
hschneider
Posted: Apr 24 2004, 06:31 PM
Quote Post


No - I'm not an answering script ...
Group Icon

Group: Admin
Posts: 6631
Member No.: 195
Joined: 19-June 02



Nothing builtin. You'll need to pass its output to a script which does this selection for you.

Have a look at the example folder of XQM/CMD. It holds samples how to iterate over XQM's output, grabbing selected fields in Perl, Python and PHP.



--------------------
Bye,
Harald


-- Download XMail Queue Manager 1.46 NOW: XMail Server Tools
-- Cross platform remote queue management!
-- Message analyzing on the fly!
-- Builtin diagnostics knowledge base!
-- Manages multiple mail queues!

Sponsored by
CD-Produktion und DVD-Produktion and Homestaging Saarland - Immobilien schneller verkaufen in der Region Saarland, Rheinland-Pfalz und Luxembourg
PMEmail PosterUsers Website
Top
bim
Posted: Apr 24 2004, 06:43 PM
Quote Post


Advanced Wizard
**********

Group: Members
Posts: 489
Member No.: 297
Joined: 6-October 02



hehe biggrin.gif You replied faster than I was able to write my question about such a script in the scripting corner tongue.gif

Thanks! I'll have a look at all possibilities and see what will be the easyest to implement. Taking anto account that I should not have this problem anymore once the next version of XMailserver is out (ah, looking forward tot that!)
PM
Top
hschneider
Posted: Apr 24 2004, 06:46 PM
Quote Post


No - I'm not an answering script ...
Group Icon

Group: Admin
Posts: 6631
Member No.: 195
Joined: 19-June 02



This quickie schould do the job:

CODE

#!/usr/bin/perl

# Place sender to delete here, don't forget to wrap in <> ...
$sender = '<maildiag@marketmix.com>';

# Path to XQM executable here ...
$xqmpath = 'xqm.exe';

open(FILE, "$xqmpath -r froz|") or die;

# Collect XQM output in an array of arrays ...
#
while(<FILE>) {
 chomp;
 push(@rs,[split('\|')]);
}

close(FILE);

# Iterate over this array and
# delete matching senders ...
#
foreach $aref (@rs) {
 if(@{$aref}[2] eq $sender) {
  unlink(@{$aref}[5]);
 }
}


--------------------
Bye,
Harald


-- Download XMail Queue Manager 1.46 NOW: XMail Server Tools
-- Cross platform remote queue management!
-- Message analyzing on the fly!
-- Builtin diagnostics knowledge base!
-- Manages multiple mail queues!

Sponsored by
CD-Produktion und DVD-Produktion and Homestaging Saarland - Immobilien schneller verkaufen in der Region Saarland, Rheinland-Pfalz und Luxembourg
PMEmail PosterUsers Website
Top
0 User(s) are reading this topic (0 Guests and 0 Anonymous Users)
0 Members:
« Next Oldest | XMail Queue Manager | Next Newest »

Reply to this topicStart new topicStart Poll