maillogs FAILED: couldn't find maillogs!

Started by fendor, February 19, 2008, 05:33:21 PM

Previous topic - Next topic

fendor

Hello.

I am getting an error when trying to install the toaster.

Using a freshly installed FreeBSD 6.3 and Toaster 5.09
(Downloaded from http://mail-toaster.org/Mail-Toaster.tar.gz today)


I get this error when running -s maillogs:

:/usr/local/src/Mail-Toaster-5.09# toaster_setup.pl -s maillogs
supervise_dirs_create: /var/qmail/supervise.........................ok (exists)
supervise_dirs_create: /var/qmail/supervise/smtp....................ok (exists)
supervise_dirs_create: /var/qmail/supervise/send....................ok (exists)
supervise_dirs_create: /var/qmail/supervise/pop3....................ok (exists)
supervise_dirs_create: /var/qmail/supervise/submit..................ok (exists)
maillogs: setting ownership of /var/log/mail........................ok
maillogs: create /var/log/mail/send.................................ok (exists)
maillogs: create /var/log/mail/smtp.................................ok (exists)
maillogs: create /var/log/mail/pop3.................................ok (exists)
maillogs: create /var/log/mail/submit...............................ok (exists)
maillogs FAILED: couldn't find maillogs!
at /usr/local/bin/toaster_setup.pl line 83


hehe I know it isn't much to work from, but it's what I've got.

Anyone know what is wrong? and what I can do to fix this?

Edit: I should note that all other programs installed fine. Also maillogs is installed.

With kind regards,
fendor.

fendor

#1
Hi.

It seems that all/some of the programs, i.e. maillogs gets installed in /usr/local/bin

But some of the scripts and programs in the toaster are looking for the programs in /usr/local/sbin


I symlinked for maillogs (/usr/local/sbin/maillogs) and then I was able to run toaster_setup.pl -s maillogs successful.

:/usr/local/etc# toaster_setup.pl -s maillogs
supervise_dirs_create: /var/qmail/supervise.........................ok (exists)
supervise_dirs_create: /var/qmail/supervise/smtp....................ok (exists)
supervise_dirs_create: /var/qmail/supervise/send....................ok (exists)
supervise_dirs_create: /var/qmail/supervise/pop3....................ok (exists)
supervise_dirs_create: /var/qmail/supervise/submit..................ok (exists)
maillogs: setting ownership of /var/log/mail........................ok
maillogs: create /var/log/mail/send.................................ok (exists)
maillogs: create /var/log/mail/smtp.................................ok (exists)
maillogs: create /var/log/mail/pop3.................................ok (exists)
maillogs: create /var/log/mail/submit...............................ok (exists)
maillogs: update /var/log/mail/send/sendlog.........................ok (current)
maillogs: update /var/log/mail/smtp/smtplog.........................ok (current)
maillogs: update /var/log/mail/pop3/pop3log.........................ok (current)
isoqlog: ERROR: install_isoqlog is not set!.........................FAILED <-- It's ok, I have chosen not to install isoqlog

/usr/local/bin/toaster_setup.pl script execution complete.


But now I just really don't know what programs are installed in the wrong folder.
And I don't think symlinkin all toaster related programs in /usr/local/bin to /usr/local/sbin is the best thing to do.
And furthermore, I don't know what programs are the toaster related programs.
So I can't be sure I get all the necessary programs symlinked.

I'm not sure what to do from here, does anybody have some ideas?


Edit: It seems to be a problem, not even the command */5 * * * * /usr/local/sbin/toaster-watcher.pl on the install guide  http://www.tnpi.net/wiki/Install_cron_entries is working. because toaster-watcher.pl is installed into /usr/local/bin and not /usr/local/sbin so I would say something have gone wrong here..

/fendor

fendor

Hi.

I did a little workaround.
By comparing a toaster v. 5.06 and a fresh install of fbsd and then installing toaster v.5.09 I figured out what programs apparently "should" be located in /usr/local/sbin

I found the following programs that are now placed in /usr/local/bin but some toaster scripts are looking for in /usr/local/sbin

index.cgi
mailadmin
maillogs
qqtool.pl
toaster-watcher.pl
toaster_setup.pl

So I symlinked them into /usr/local/sbin and so far things are humming. I really hope it will be fixed though, I don't like this fix :(


THE WORKAROUND:
After installing the programs ( http://www.tnpi.net/wiki/Install_programs )
Symlink the following:

ln -s /usr/local/bin/index.cgi /usr/local/sbin/index.cgi
ln -s /usr/local/bin/mailadmin /usr/local/sbin/mailadmin
ln -s /usr/local/bin/maillogs /usr/local/sbin/maillogs
ln -s /usr/local/bin/qqtool.pl /usr/local/sbin/qqtool.pl
ln -s /usr/local/bin/toaster-watcher.pl /usr/local/sbin/toaster-watcher.pl
ln -s /usr/local/bin/toaster_setup.pl /usr/local/sbin/toaster_setup.pl

With kind regards and awaiting response,
Fendor.

matt

This was on a fresh 6.3 install?  That's quite odd, because by default all the dist/bin files get installed to /usr/local/sbin by default. Unless you've overridden a setting in Perl or Ext::MakeMaker when you built/installed it.