Post install checks.

Started by netgeek, February 17, 2004, 11:25:20 AM

Previous topic - Next topic

netgeek

OS: freebsd-stable
MATT::Toaster: 3.33
Toaster::Watcher: 0.6
vpopmail: 5.4.0

These are some thing I had to do after installing everything with matts toaster. It might not be the same for everyone but it might help people figure out some problems they might have.

Check permissions
Wondering why these are owned by 501:501?
drwxr-xr-x  7 501   501      512 Feb 15 03:33 MATT-Bundle-1.23
drwxr-xr-x  7 501   501      512 Feb 15 03:33 Mail-Toaster-3.33

Check permissions on /usr/local/etc/toaster-watcher.conf and /usr/local/etc/toaster.conf.
They are unpacked as executable therefore when you copy to proper directory they keep that mode:
-rwxr-xr-x   1 root  wheel   5317 Feb 16 12:10 toaster.conf-watcher.conf
-rwxr-xr-x   1 root  wheel   5317 Feb 16 12:10 toaster.conf

Issue a chmod 400 /usr/local/etc/toaster*.conf
There is information in there no one else should see so make sure they can't eg: SQL user and password.

Problems migrating old users
I have noticed after an upgrade of qmail, I get bounce messages saying the user does not exist. This is be cause the username is not being handled correctly for some reason.
snipet from /var/log/mail/send/current:
@4000000040325814387ee5f4 starting delivery 20: msg 2811 to local mailto:info@townsontario.com" target="_blank">info@townsontario.com
@40000000403258143943c464 status: local 1/10 remote 0/255
@40000000403258143a20af14 delivery 20: failure: Sorry,_no_mailbox_here_by_that_name._(#5.1.1)/

You might notice that it is looking for a local user which it will not find of course. It should look like this:
@400000004032588809520644 new msg 2811
@4000000040325888095edb6c info msg 2811: bytes 13082 from <mailto:flywebdesign@rogers.com" target="_blank">flywebdesign@rogers.com> qp 19581 uid 1005
@400000004032588809aa57a4 starting delivery 22: msg 2811 to local mailto:townsontario.com-info@townsontario.com" target="_blank">townsontario.com-info@townsontario.com
@400000004032588809bdc834 status: local 1/10 remote 0/255
@40000000403258881462aa84 delivery 22: success: did_0+0+1/
@40000000403258881480217c status: local 0/10 remote 0/255
@4000000040325888148e718c end msg 2811

Only fix I know of is to backup the mail directories and ./vdeldomain and readd.

There will be more as I go through the problems. One such large problem is with qmailadmin. Having alot of problems with this through no fault of the toaster. They have to do with the way it is compiled, for some reason the configure ignores some defines and adds what you defined to other places. eg: cgi-bin /usr/local/www/cgi-bin after it is compiled you get /usr/local/cgi-bin//qmailadmin. That in turn screws up links on the pages ect.
When I find a fix or what I am doing wrong I will add it here.