Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Qmail Install

Status
Not open for further replies.

Andersond

Technical User
Jul 30, 2002
25
GB
I am installing Qmail on a Suse 9.0 installation and following the LifewithQmail instructions.

When I come to create the /var/qmail/supervise/qmail-send/log/run file I am receiving the following error message:

multilog: fatal: unable to switch to current directory: access denied.

Does anyone know what is causing this error and what I need to do to remedy it?
 
Did you do this?

mkdir -p /var/log/qmail/send
mkdir -p /var/log/qmail/smtpd
mkdir -p /var/log/qmail/pop3d
mkdir -p /var/qmail/supervise/qmail-send/log
mkdir -p /var/qmail/supervise/qmail-smtpd/log
mkdir -p /var/qmail/supervise/qmail-pop3d/log
chmod +t /var/qmail/supervise/qmail-send
chmod +t /var/qmail/supervise/qmail-smtpd
chmod +t /var/qmail/supervise/qmail-pop3d


and is this your qmail-send/log/run file?
vi /var/qmail/supervise/qmail-send/log/run

#!/bin/sh
# Keep 30 logs of max 10Mb each
#
# They will get rotated when they reach 10Mb in size,
# or at midnight when our crontab script fires (whichever event comes 1st)
exec /usr/local/bin/setuidgid qmaill /usr/local/bin/multilog t s10000000 n30 /var/log/qmail/send



Surfinbox.com Business Internet Services - National Dialup, DSL, T-1 and more.
 
Have carried out the mkdir and chmod commands.
The qmail-send/log/run does not exist.
 
Andersond,

If you've done 'mkdir -p /var/qmail/supervise/qmail-send/log' then you should be able to 'touch /var/qmail/supervise/qmail-send/log' without getting an error. Are you logged in as root when you attempt this?


Wishdiak
 
The command I am using to create the file is:

exec /var/local/bin/setuidgid qmaill /usr/local/bin/multilog t /var/log/qmail

I am logged on as root when it is run

When I run it I am receiving the message stated in my original query above.
 
Andersond,

Your last post says you get the error when executing
exec /var/local/bin/setuidgid qmaill /usr/local/bin/multilog t /var/log/qmail


From that, it looks like the problem is with the directory /var/log/qmail. Does /var/log/qmail exist?


Wishdiak
 
Andersond,

If /var/log/qmail exists, then check the ownership and permissions. /var/log/qmail should be chowned by qmaill (note the extra character) as your /var/qmail/supervise/qmail-send/log/run script is trying to write to it as user 'qmaill'.


Wishdiak
 
Have changed ownership to qmaill and now works fine.
I now have an SMTP server problem - please see separate thread!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top