Hi
I'm having a problem with qpsmtpd. When I run it for the first time, it works fine for a about a minute then slows down considerably and connections to the server times out. I'm also getting the following in the log when I use PPerl and qpsmtpd-forkserver.
making socket: IO::Socket::INET: Permission denied
Also, can someone explain what qpsmtpd-forkserver and qpsmtpd-server are?
Thanks for your help.
Daniel
------- At 01:40 PM 6/15/2004, you wrote:
Do you still get the same error? Even though it exists? If so, I would have to say check the owner of /var/spool/smtpd and check the permissions on /var/spool to make sure that the smtp server owner can get in there.
Also, check to make sure that the smtp server process can read all the files in your installation directory, and config directory.
config/spool_dir is a file.
mine has a single line that reads
/var/spool/smtpd:
with the colon at the end.
Daniel Camacho wrote:
Hi Waitman,
Thanks for the quick response. I created the '/var/spool/smtpd' directory but it still gives me that error. I made sure the permissions are correct as well. Any other ideas? Is the spool_dir a file or a directory. Thanks.
Daniel
------- At 01:10 PM 6/15/2004, you wrote:
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
This email message is for the sole use of the intended recipient(s) and may contain confidential information or information belonging to Saipan.Com. The unauthorized disclosure, use, dissemination or copying (either whole or partial) of this e-mail, or any information it contains, is prohibited.
If you are not the intended recipient of this e-mail, please delete it immediately from your system and notify the sender of the wrong delivery by reply email. Thank you.
__________________________________________________________________________________________________________________
This email message is for the sole use of the intended recipient(s) and may contain confidential information or information belonging to Saipan.Com. The unauthorized disclosure, use, dissemination or copying (either whole or partial) of this e-mail, or any information it contains, is prohibited.
If you are not the intended recipient of this e-mail, please delete it immediately from your system and notify the sender of the wrong delivery by reply email. Thank you.
