#345 AMaViS-ng - stale unpack files when remote MTA disconnects.

open
None
5
2005-01-06
2004-03-11
William
No

During an SMTP session using Qmail as the local MTA, if
the remote MTA closes the SMTP connection before
finishing delivery, Amavis will fail to clean up the
directory it has created in the get_directory function.
Patch included below.

--- Qmail.pm.dist Mon Mar 17 17:04:21 2003
+++ Qmail.pm Thu Mar 11 09:43:55 2004
@@ -79,6 +79,7 @@
}
$$args{'message_id'}=$message_id;
my $directory = $prefix.$message_id;
+ $$args{'directory'} = $directory;
mkdir "$directory/parts", 0777;

my $message_handle = IO::Handle->new();
@@ -150,7 +151,7 @@

$output->seek(0,0);
$$args{'filehandle'} = $output;
- $$args{'directory'} = $directory;
+# $$args{'directory'} = $directory;

# Return successfully
return 1;

Discussion

  • William

    William - 2004-03-11
    • summary: AMaViS-ng leaves stale unpack files remote MTA disconnects. --> AMaViS-ng - stale unpack files when remote MTA disconnects.
     
  • Lars Hecking

    Lars Hecking - 2004-03-11
    • assigned_to: nobody --> bengen
     
  • Anonymous - 2005-01-06
    • assigned_to: bengen --> braeucup
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks