if you don't set the spool directory in config/spool_dir it defaults to "/var/spool/smptd".


make sure this directory exists, that the process running the smtp server owns it and it is chmod 0700.



sub body_write {
my $self = shift;
my $data = shift;
unless ($self->{_body_file}) {
   my $spool_dir = "/var/spool/smtpd";


$spool_dir .= "/" unless ($spool_dir =~ m!/$!);

   $spool_dir =~ /^(.+)$/ or die "spool_dir not configured properly";
   $spool_dir = $1;

   if (-e $spool_dir) {
     my $mode = (stat($spool_dir))[2];
     die "Permissions on the spool_dir are not 0700" if $mode & 07077;
   }

-d $spool_dir or mkdir($spool_dir, 0700) or die "Could not create spool_dir
: $!";
$self->{_filename} = $spool_dir . join(":", time, $$, $transaction_counter+
+);
$self->{_filename} =~ tr!A-Za-z0-9:/_-!!cd;



Waitman Gobble http://emkdesign.com/


Daniel Camacho wrote:


Hi,

I just installed qpsmtpd and I'm trying to figure out a couple of problems. I was able to run it but when I check the logs, I get the following errors. I hope someone can explain this to me and provide a fix. Thanks.

@4000000040ce605824d6b3c4 20802 XX: Could not create spool_dir: Permission denied at lib/Qpsmtpd/Transaction.pm
line 81, <STDIN> line 20.
@4000000040ce605824d6c74c
@4000000040ce605824d6cf1c : command 'data' failed unexpectedly (Permission denied)



Daniel





Reply via email to