laures006
Posts: 2
Joined: Jan 2009
Reputation: 0
|
Mail problem - multiple servers
Hi all,
I've set up ispcp on multiple servers.
1. MySQL
2. Web
3. Mail
directories are mounted over ssh (as the howto in the documentation didn't work for me with nsf):
sshfs#root@mail:/etc/postfix /etc/postfix fuse defaults 0 0
sshfs#root@mail:/etc/courier /etc/courier fuse defaults 0 0
sshfs#root@mail:/var/mail /var/mail fuse defaults 0 0
sshfs#root@mail:/var/spool/postfix/etc /var/spool/postfix/etc/ fuse defaults 0 0
Now I had a problem with postmap when creating new accounts, so I did the following:
/usr/sbin/postmap:
#! /bin/sh
ssh root@mail "postmap" $1
Okay, to the problem:
When creating, changing, deleting mail-accounts over the gui I always get following error:
sys_command() | ERROR: External command '/usr/sbin/postmap /etc/postfix/ispcp/transport' returned '127' status !
but when I enter phpmyadmin and set the status to add, change, delete and trigger over cli 'ispcp-rqst-mngr' manually everything is created/changed fine.
As I'm not familiar with perl at all, looked through the logs and source code and didn't find any solution, I'd be thankful if you could provide some ideas what to do.
I think the script tirggerd by the gui expects an answer from postmap but doesn't get any, so it exits with an error.
Used system:
Ubuntu-hardy-XEN
ispcp 1.0.2 (same problem with 1.0.0)
Thanks,
laures
|
|
11-19-2009 07:55 PM |
|