Current time: 11-30-2024, 01:10 PM Hello There, Guest! (LoginRegister)


Post Reply 
Mail problem - multiple servers
Author Message
laures006 Offline


Posts: 2
Joined: Jan 2009
Reputation: 0
Post: #2
RE: Mail problem - multiple servers
(11-19-2009 07:55 PM)laures006 Wrote:  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

btw: /var/log/ispcp/ispcp-mbox-mngr.stdout

tail: ispcp-mbox-mngr.stdout: file truncated
tail: ispcp-mbox-mngr.stdout: file truncated
DEBUG: push_el() sub_name: mbox_mngr_start_up(), msg: Starting...
DEBUG: push_el() sub_name: check_master(), msg: Starting...
DEBUG: push_el() sub_name: sys_command(), msg: Starting...
DEBUG: push_el() sub_name: sys_command('export COLUMNS=120;/bin/ps auxww | awk '$0 ~ /ispcp-rqst-mngr/ && $0 !~ /awk/ { print $2 ;}' 1>/tmp/ispcp-cc.stdout 2>/tmp/ispcp-cc.stderr'), msg: Ending...
DEBUG: push_el() sub_name: del_file(), msg: Starting...
DEBUG: push_el() sub_name: del_file(), msg: Ending...
DEBUG: push_el() sub_name: del_file(), msg: Starting...
DEBUG: push_el() sub_name: del_file(), msg: Ending...
DEBUG: push_el() sub_name: check_master(), msg: Starting...
DEBUG: push_el() sub_name: get_conf(), msg: Starting...
DEBUG: push_el() sub_name: get_file(), msg: Starting...
DEBUG: push_el() sub_name: get_file(), msg: Ending...
DEBUG: push_el() sub_name: setup_main_vars(), msg: Starting...
DEBUG: push_el() sub_name: decrypt_db_password(), msg: Starting...
DEBUG: push_el() sub_name: decrypt_db_password(), msg: Ending...
DEBUG: push_el() sub_name: setup_main_vars(), msg: Ending...
DEBUG: push_el() sub_name: get_conf(), msg: Ending...
DEBUG: push_el() sub_name: doSQL(), msg: Starting...
DEBUG: push_el() sub_name: doSQL(), msg: Ending...
DEBUG: push_el() sub_name: doSQL(), msg: Starting...
DEBUG: push_el() sub_name: doSQL(), msg: Ending...
DEBUG: push_el() sub_name: doSQL(), msg: Starting...
DEBUG: push_el() sub_name: doSQL(), msg: Ending...
DEBUG: push_el() sub_name: doSQL(), msg: Starting...
DEBUG: push_el() sub_name: doSQL(), msg: Ending...
DEBUG: push_el() sub_name: doSQL(), msg: Starting...
DEBUG: push_el() sub_name: doSQL(), msg: Ending...
DEBUG: push_el() sub_name: mbox_mngr_start_up(), msg: Ending...
DEBUG: push_el() sub_name: mbox_mngr_engine(), msg: Starting...
DEBUG: push_el() sub_name: doSQL(), msg: Starting...
DEBUG: push_el() sub_name: doSQL(), msg: Ending...
tail: ispcp-mbox-mngr.stdout: file truncated
DEBUG: push_el() sub_name: mbox_mngr_start_up(), msg: Starting...
DEBUG: push_el() sub_name: check_master(), msg: Starting...
DEBUG: push_el() sub_name: sys_command(), msg: Starting...
DEBUG: push_el() sub_name: sys_command('export COLUMNS=120;/bin/ps auxww | awk '$0 ~ /ispcp-rqst-mngr/ && $0 !~ /awk/ { print $2 ;}' 1>/tmp/ispcp-cc.stdout 2>/tmp/ispcp-cc.stderr'), msg: Ending...
DEBUG: push_el() sub_name: del_file(), msg: Starting...
DEBUG: push_el() sub_name: del_file(), msg: Ending...
DEBUG: push_el() sub_name: del_file(), msg: Starting...
DEBUG: push_el() sub_name: del_file(), msg: Ending...
DEBUG: push_el() sub_name: check_master(), msg: Starting...
DEBUG: push_el() sub_name: get_conf(), msg: Starting...
DEBUG: push_el() sub_name: get_file(), msg: Starting...
DEBUG: push_el() sub_name: get_file(), msg: Ending...
DEBUG: push_el() sub_name: setup_main_vars(), msg: Starting...
DEBUG: push_el() sub_name: decrypt_db_password(), msg: Starting...
DEBUG: push_el() sub_name: decrypt_db_password(), msg: Ending...
DEBUG: push_el() sub_name: setup_main_vars(), msg: Ending...
DEBUG: push_el() sub_name: get_conf(), msg: Ending...
DEBUG: push_el() sub_name: doSQL(), msg: Starting...
DEBUG: push_el() sub_name: doSQL(), msg: Ending...
DEBUG: push_el() sub_name: doSQL(), msg: Starting...
DEBUG: push_el() sub_name: doSQL(), msg: Ending...
DEBUG: push_el() sub_name: doSQL(), msg: Starting...
DEBUG: push_el() sub_name: doSQL(), msg: Ending...
DEBUG: push_el() sub_name: doSQL(), msg: Starting...
DEBUG: push_el() sub_name: doSQL(), msg: Ending...
DEBUG: push_el() sub_name: doSQL(), msg: Starting...
DEBUG: push_el() sub_name: doSQL(), msg: Ending...
DEBUG: push_el() sub_name: mbox_mngr_start_up(), msg: Ending...
DEBUG: push_el() sub_name: mbox_mngr_engine(), msg: Starting...
DEBUG: push_el() sub_name: doSQL(), msg: Starting...
DEBUG: push_el() sub_name: doSQL(), msg: Ending...
DEBUG: push_el() sub_name: mbox_add_data(), msg: Starting...
DEBUG: push_el() sub_name: mbox_add_mta_cfg_data(), msg: Starting...
DEBUG: push_el() sub_name: get_file(), msg: Starting...
DEBUG: push_el() sub_name: get_file(), msg: Ending...
DEBUG: push_el() sub_name: store_file(), msg: Starting...
DEBUG: push_el() sub_name: setfmode(), msg: Starting...
DEBUG: push_el() sub_name: setfmode(), msg: Ending...
DEBUG: push_el() sub_name: store_file(), msg: Ending...
DEBUG: push_el() sub_name: get_file(), msg: Starting...
DEBUG: push_el() sub_name: get_file(), msg: Ending...
DEBUG: push_el() sub_name: store_file(), msg: Starting...
DEBUG: push_el() sub_name: setfmode(), msg: Starting...
DEBUG: push_el() sub_name: setfmode(), msg: Ending...
DEBUG: push_el() sub_name: store_file(), msg: Ending...
DEBUG: push_el() sub_name: mbox_get_dmn_full_name(), msg: Starting...
DEBUG: push_el() sub_name: mbox_get_dmn_full_name(), msg: dbg: dmn_name: fonshop.net
DEBUG: push_el() sub_name: mbox_get_dmn_full_name(), msg: Ending...
DEBUG: push_el() sub_name: set_mta_hash_value(), msg: Starting...
DEBUG: push_el() sub_name: get_mta_hash_value(), msg: Starting...
DEBUG: push_el() sub_name: get_file(), msg: Starting...
DEBUG: push_el() sub_name: get_file(), msg: Ending...
DEBUG: push_el() sub_name: get_mta_hash_value(), msg: Ending...
DEBUG: push_el() sub_name: get_file(), msg: Starting...
DEBUG: push_el() sub_name: get_file(), msg: Ending...
DEBUG: push_el() sub_name: store_file(), msg: Starting...
DEBUG: push_el() sub_name: setfmode(), msg: Starting...
DEBUG: push_el() sub_name: setfmode(), msg: Ending...
DEBUG: push_el() sub_name: store_file(), msg: Ending...
DEBUG: push_el() sub_name: set_mta_hash_value(), msg: Ending...
DEBUG: push_el() sub_name: get_file(), msg: Starting...
DEBUG: push_el() sub_name: get_file(), msg: Ending...
DEBUG: push_el() sub_name: store_file(), msg: Starting...
DEBUG: push_el() sub_name: setfmode(), msg: Starting...
DEBUG: push_el() sub_name: setfmode(), msg: Ending...
DEBUG: push_el() sub_name: store_file(), msg: Ending...
DEBUG: push_el() sub_name: set_mta_hash_value(), msg: Starting...
DEBUG: push_el() sub_name: get_mta_hash_value(), msg: Starting...
DEBUG: push_el() sub_name: get_file(), msg: Starting...
DEBUG: push_el() sub_name: get_file(), msg: Ending...
DEBUG: push_el() sub_name: get_mta_hash_value(), msg: Ending...
DEBUG: push_el() sub_name: get_file(), msg: Starting...
DEBUG: push_el() sub_name: get_file(), msg: Ending...
DEBUG: push_el() sub_name: store_file(), msg: Starting...
DEBUG: push_el() sub_name: setfmode(), msg: Starting...
DEBUG: push_el() sub_name: setfmode(), msg: Ending...
DEBUG: push_el() sub_name: store_file(), msg: Ending...
DEBUG: push_el() sub_name: set_mta_hash_value(), msg: Ending...
DEBUG: push_el() sub_name: get_file(), msg: Starting...
DEBUG: push_el() sub_name: get_file(), msg: Ending...
DEBUG: push_el() sub_name: store_file(), msg: Starting...
DEBUG: push_el() sub_name: setfmode(), msg: Starting...
DEBUG: push_el() sub_name: setfmode(), msg: Ending...
DEBUG: push_el() sub_name: store_file(), msg: Ending...
DEBUG: push_el() sub_name: mbox_del_mta_cfg_autorespond_data(), msg: Starting...
DEBUG: push_el() sub_name: get_file(), msg: Starting...
DEBUG: push_el() sub_name: get_file(), msg: Ending...
DEBUG: push_el() sub_name: store_file(), msg: Starting...
DEBUG: push_el() sub_name: setfmode(), msg: Starting...
DEBUG: push_el() sub_name: setfmode(), msg: Ending...
DEBUG: push_el() sub_name: store_file(), msg: Ending...
DEBUG: push_el() sub_name: get_file(), msg: Starting...
DEBUG: push_el() sub_name: get_file(), msg: Ending...
DEBUG: push_el() sub_name: store_file(), msg: Starting...
DEBUG: push_el() sub_name: setfmode(), msg: Starting...
DEBUG: push_el() sub_name: setfmode(), msg: Ending...
DEBUG: push_el() sub_name: store_file(), msg: Ending...
DEBUG: push_el() sub_name: mbox_get_dmn_full_name(), msg: Starting...
DEBUG: push_el() sub_name: mbox_get_dmn_full_name(), msg: dbg: dmn_name: fonshop.net
DEBUG: push_el() sub_name: mbox_get_dmn_full_name(), msg: Ending...
DEBUG: push_el() sub_name: get_mta_hash_value(), msg: Starting...
DEBUG: push_el() sub_name: get_file(), msg: Starting...
DEBUG: push_el() sub_name: get_file(), msg: Ending...
DEBUG: push_el() sub_name: get_mta_hash_value(), msg: Ending...
DEBUG: push_el() sub_name: set_mta_hash_value(), msg: Starting...
DEBUG: push_el() sub_name: get_mta_hash_value(), msg: Starting...
DEBUG: push_el() sub_name: get_file(), msg: Starting...
DEBUG: push_el() sub_name: get_file(), msg: Ending...
DEBUG: push_el() sub_name: get_mta_hash_value(), msg: Ending...
DEBUG: push_el() sub_name: get_file(), msg: Starting...
DEBUG: push_el() sub_name: get_file(), msg: Ending...
DEBUG: push_el() sub_name: store_file(), msg: Starting...
DEBUG: push_el() sub_name: setfmode(), msg: Starting...
DEBUG: push_el() sub_name: setfmode(), msg: Ending...
DEBUG: push_el() sub_name: store_file(), msg: Ending...
DEBUG: push_el() sub_name: set_mta_hash_value(), msg: Ending...
DEBUG: push_el() sub_name: get_file(), msg: Starting...
DEBUG: push_el() sub_name: get_file(), msg: Ending...
DEBUG: push_el() sub_name: store_file(), msg: Starting...
DEBUG: push_el() sub_name: setfmode(), msg: Starting...
DEBUG: push_el() sub_name: setfmode(), msg: Ending...
DEBUG: push_el() sub_name: store_file(), msg: Ending...
DEBUG: push_el() sub_name: mbox_check_last_transport_entry(), msg: Starting...


$sql:select count(mail_id) as cnt from mail_users where (status = 'ok' or status = 'change') and mail_auto_respond != '_no_' and domain_id = 9 and sub_id = 0 and mail_type != 'normal_catchall' and mail_type != 'alias_catchall';

DEBUG: push_el() sub_name: doSQL(), msg: Starting...
DEBUG: push_el() sub_name: doSQL(), msg: Ending...
DEBUG: push_el() sub_name: mbox_check_last_transport_entry(), msg: Ending...
DEBUG: push_el() sub_name: mbox_del_last_transport_entry(), msg: Starting...
DEBUG: push_el() sub_name: mbox_get_dmn_full_name(), msg: Starting...
DEBUG: push_el() sub_name: mbox_get_dmn_full_name(), msg: dbg: dmn_name: fonshop.net
DEBUG: push_el() sub_name: mbox_get_dmn_full_name(), msg: Ending...
DEBUG: push_el() sub_name: del_mta_hash_value(), msg: Starting...
DEBUG: push_el() sub_name: get_mta_hash_value(), msg: Starting...
DEBUG: push_el() sub_name: get_file(), msg: Starting...
DEBUG: push_el() sub_name: get_file(), msg: Ending...
DEBUG: push_el() sub_name: get_mta_hash_value(), msg: Ending...
DEBUG: push_el() sub_name: get_file(), msg: Starting...
DEBUG: push_el() sub_name: get_file(), msg: Ending...
DEBUG: push_el() sub_name: store_file(), msg: Starting...
DEBUG: push_el() sub_name: setfmode(), msg: Starting...
DEBUG: push_el() sub_name: setfmode(), msg: Ending...
DEBUG: push_el() sub_name: store_file(), msg: Ending...
DEBUG: push_el() sub_name: del_mta_hash_value(), msg: Ending...
DEBUG: push_el() sub_name: mbox_del_last_transport_entry(), msg: Ending...
DEBUG: push_el() sub_name: get_file(), msg: Starting...
DEBUG: push_el() sub_name: get_file(), msg: Ending...
DEBUG: push_el() sub_name: store_file(), msg: Starting...
DEBUG: push_el() sub_name: setfmode(), msg: Starting...
DEBUG: push_el() sub_name: setfmode(), msg: Ending...
DEBUG: push_el() sub_name: store_file(), msg: Ending...
DEBUG: push_el() sub_name: sys_command(), msg: Starting...
DEBUG: push_el() sub_name: sys_command(), msg: ERROR: External command '/usr/sbin/postmap /etc/postfix/ispcp/transport' returned '127' status !
DEBUG: pop_el() sub_name: sys_command(), msg: ERROR: External command '/usr/sbin/postmap /etc/postfix/ispcp/transport' returned '127' status !
DEBUG: push_el() sub_name: doSQL(), msg: Starting...
DEBUG: push_el() sub_name: doSQL(), msg: Ending...
tail: ispcp-mbox-mngr.stdout: file truncated
DEBUG: push_el() sub_name: mbox_mngr_engine(), msg: Ending...
DEBUG: push_el() sub_name: mbox_mngr_shut_down(), msg: Starting...
DEBUG: push_el() sub_name: mbox_mngr_shut_down(), msg: Ending...
11-20-2009 01:42 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Mail problem - multiple servers - laures006 - 11-20-2009 01:42 AM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)