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 -> Must-have Filter To Fix Corrupted Messages

Reply to this topicStart new topicStart Poll

> Must-have Filter To Fix Corrupted Messages, Install this to avoid POP3 DOS attacks !
oytunsan
Posted: Nov 19 2007, 09:56 AM
Quote Post


Newbie
*

Group: Members
Posts: 7
Member No.: 2515
Joined: 25-April 07



Hi,


Is there a way to apply this exe to already existing messages in the domains folder?

Maybe I can write a small dos script if this exe can run on any mail file under mailroot\domains\domain.com\user\mailbox

thanks in advance
oytun
PMEmail Poster
Top
hschneider
Posted: Nov 19 2007, 10:15 AM
Quote Post


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

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



No - it is a pure SMTP level fílter.
You'll have to replace nullbytes and to add missing ending linefeeds from your own code.

You can also use and/or modify my nukemalformed script here:
http://xmailforum.homelinux.net/index.php?...os-attack&st=15

Direct download here: http://xmailforum.homelinux.net/index.php?...e=post&id=17004

-- Harald


--------------------
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
MasteRtR
Posted: Jan 7 2008, 01:27 PM
Quote Post


Newbie
*

Group: Members
Posts: 10
Member No.: 2026
Joined: 26-May 06



if you want to delete malformed emails, i suggest you use hschneider's perl script with these codes. (attached)

CODE

sub procFiles() {

my $f = shift;

 open(FILE, "< $f");
 binmode(FILE);
 local $/;
 $c = <FILE>;
 close(FILE);
   if($c =~ /\x00/) {
   print "$f\n";
   unlink($f) if $REMOVE == 1;
  }


#added by murat surucu
my @data;
my $length = -2;
open(FILE, "< $f");
binmode(FILE);
local $/;
seek (FILE,$length,2);
@data = <FILE>;
close(FILE);
$hexdata=unpack ("H*", $data[0]);
if($hexdata != "0d0a" ) { #or 0d0a0d0a
   print "$f\n";
   unlink($f) if $REMOVE == 1;
}
}


Attached File ( Number of downloads: 520 )
Attached File  nukemalformed2.pl
PMEmail Poster
Top
Don
  Posted: Feb 5 2008, 10:16 PM
Quote Post


Newbie
*

Group: Members
Posts: 23
Member No.: 2789
Joined: 5-February 08



Hi,

Newbie Linux/Xmail question.

Where does the filter file go (xbmf.c)? In the filters folder? Does anything need to be done with it (compile) or leave it just as a C file.

Thanks
Don
PMEmail Poster
Top
Don
Posted: Feb 8 2008, 06:12 PM
Quote Post


Newbie
*

Group: Members
Posts: 23
Member No.: 2789
Joined: 5-February 08



QUOTE (Don @ Feb 5 2008, 05:16 PM)
Hi,

Newbie Linux/Xmail question.

Where does the filter file go (xbmf.c)? In the filters folder? Does anything need to be done with it (compile) or leave it just as a C file.

Thanks
Don

Hi Harald,

Can you respond please. This is for Linux.

Thanks!
Don
PMEmail Poster
Top
sc4vengr
Posted: Feb 8 2008, 07:28 PM
Quote Post


Professional
*****

Group: Members
Posts: 206
Member No.: 461
Joined: 12-February 03



QUOTE (Don @ Feb 8 2008, 06:12 PM)
QUOTE (Don @ Feb 5 2008, 05:16 PM)
Hi,

Newbie Linux/Xmail question.

Where does the filter file go (xbmf.c)? In the filters folder? Does anything need to be done with it (compile) or leave it just as a C file.

Thanks
Don

Hi Harald,

Can you respond please. This is for Linux.

Thanks!
Don

Try this procedure:

#cd /var/MailRoot/filters
#mkdir xbmf
#wget http://www.xmailserver.org/xbmf.c
#gcc xbmf.c -o xbmf
#pico /var/Mailroot/filters.post-data.tab

Add a line like this one:

"/var/MailRoot/filters/xbmf/xbmf"[TAB]"@@FILE"[NEWLINE]

Of course replace [TAB] with the TAB key and NEWLINE with ENTER

Hope this helps


--------------------
You + webcam - clothes - dignity = $
PMEmail Poster
Top
0 User(s) are reading this topic (0 Guests and 0 Anonymous Users)
0 Members:
« Next Oldest | XMail Server | Next Newest »

Reply to this topicStart new topicStart Poll