XMailforum is a readonly knowledge archive now.

Registering as a new user or answering posts is not possible anymore.

Might the force be with you, to find here what you are looking for.

2019-09-20 - hschneider, Admin

Cookie Disclaimer: This forum uses only essential, anonymous session cookies (xmailforum*), nothing to be scared of.

XMail Forum -> Xpai Woes

Reply to this topicStart new topic

> Xpai Woes, Exact steps needed to set up?
whyre
  Posted: Oct 15 2004, 10:13 PM
Quote Post


Newbie
*

Group: Members
Posts: 5
Member No.: 1359
Joined: 15-October 04



I've used XPAI in the past, but for some reason, I can't seem to get a valid log in working. Xmail is running, I can telnet into port 6017 and submit the superuser name and password and get in OK. I've run Xmail in debug verbose mode, everytime I attempt to login, I see:
CODE

CTRL client connection from [127.0.0.1]
CTRL client exit [127.0.0.1]

and all I get from XPAI is
CODE

There has been an error logging in as user: superuser@domain.tld

Check username (user@domain) or password!

I've even tried logging in as just superuser and I get the same result. I've also added superuser as a mailusers.tab user in the domain as I saw suggested on another post.
I guess I just need some step by step instructions on what is needed, the documentation is somewhat ambiguous.

Oh, and here are the pertient parts of my config.php
CODE

$servers = array("Localhost"=>"localhost:6017");
$_SESSION['xpai_user'] = "xerxes";
$_SESSION['xpai_pwd'] = "unencryptedpassword";
$super_users = array("superuser");
$postmaster_users = array("postmaster");


As always, any help is greatly appreciated. jump.gif
PMEmail Poster
Top
gEoTa
Posted: Oct 16 2004, 01:56 AM
Quote Post


Member
***

Group: Members
Posts: 68
Member No.: 985
Joined: 15-March 04



What if you don't add the domain in the username?
Is "xerxes" created in the ctrlaccounts.tab?
PMEmail Poster
Top
whyre
Posted: Oct 17 2004, 05:50 AM
Quote Post


Newbie
*

Group: Members
Posts: 5
Member No.: 1359
Joined: 15-October 04



Yes, xerxes is the first account in ctrlaccounts.tab, I also have the superuser and postmaster in there as well. Only the superuser is added into the domain, I can't log in as the postmaster either.

Not sure what I'm missing, I did have this working on another server a while ago, so I know it can be done smile.gif
PMEmail Poster
Top
blaze6017
  Posted: Oct 17 2004, 04:52 PM
Quote Post


Newbie
*

Group: Members
Posts: 6
Member No.: 1362
Joined: 17-October 04



Hi,
I looking to solve the same problem. Checked the .tab files several times and they seem to be ok, but still no login possible,working with no other domain then the default: "xmailserver.test".
Do you know how I can check if the xmailserver up? I using shell:
[CODE]
linux:/usr/bin # /etc/init.d/xmail start
Starting XMail server: XMail.[ 9778 ]
How can I log in with telnet. What is the command for shell?
Thanks
PMEmail Poster
Top
gEoTa
Posted: Oct 17 2004, 11:53 PM
Quote Post


Member
***

Group: Members
Posts: 68
Member No.: 985
Joined: 15-March 04



Try using the latest version of XPAI.
Try to check if ctrl.ipmap.tab is correct, allowing connections from 127.0.0.1.
If it still can't connect post the config.php.
PMEmail Poster
Top
whyre
  Posted: Oct 18 2004, 02:37 PM
Quote Post


Newbie
*

Group: Members
Posts: 5
Member No.: 1359
Joined: 15-October 04



Using version 1.14. Here are all the files:

ctrl.ipmap.tab
CODE

"0.0.0.0"       "0.0.0.0"       "ALLOW" 1


config.php - comments stripped
CODE

<?php
/**************************************************************************

 Configuration file for Xmail PHP Administration interface (XPAI)

 Copyright (C) 2002-2004 Andreas Klein, xpaisupport@akxak.de

 Released under the GPL and PHP licenses as stated in the the README file which
 should have been included with this document.
 Based on XMail WAI by Michal A. Valasek, michal.valasek@altair2000.net. Thanks for the great layout;-)
 Based on PhpXmail by Paul Heijman, xmail@diggie.nl.

 Requires PHP    - www.php.net (PHP > 4.1,
                 PHP 4.1.2 has a bug in the session management,
                 PHP 4.1.1, PHP 4.2.x, 4.3.4 were also tested,
                 PHP < 4.1.x is also useable)
                 
 Requires XMail  - www.xmailserver.org (XMail > 0.76,
                 XMail 1.18 was tested)

**************************************************************************/



$servers = array("Localhost"=>"localhost:6017");



$_SESSION['xpai_user'] = "xerxes";
$_SESSION['xpai_pwd'] = "password";



$super_users = array("superuser");


$postmaster_users = array("postmaster");

$postmaster_edit_fields = array("RealName", "HomePage", "Address",
                               "Telephone", "MaxMBSize", "SmtpPerms",
                               "ReceiveEnable", "PopEnable", "Custom");


$user_edit_fields = array("RealName", "Telephone");


$user_show_fields = array("RealName", "HomePage", "Address",
                         "Telephone", "MaxMBSize", "ReceiveEnable",
                         "PopEnable");



$allow_special_postmasters = FALSE;

$special_postmasters = array("akxak.de" => array("1.de", "test.de"),"level.de" => array("2.de", "test2.de"));




$enable_IMAP = FALSE;
$enable_IMAP_file = FALSE;
$_SESSION['IMAPfilename'] = "imapctrl.tab";
$_SESSION['IMAPsemaphore'] = "imapsemap.tab";
$IMAP_configword = "ExternalIMAP";
$IMAP_default_status = TRUE;
$enable_IMAP_mysql = TRUE;
$IMAP_mysql_db_server = "localhost";
$IMAP_mysql_db_user = "localdbuser";
$IMAP_mysql_db_pwd = "localdbpwd";
$IMAP_mysql_db_table = "passwd";

/* Datenbank-Struktur */
/* Kommando zum Anlegen der DB
 CREATE DATABASE mailusers;
 USE mailusers;
 CREATE TABLE passwd (
 id char(128) DEFAULT ' ' NOT NULL,
 clear char(128) DEFAULT ' ' NOT NULL,
 name char(128) DEFAULT ' ' NOT NULL,
 uid int(10) unsigned DEFAULT '65534' NOT NULL,
 gid int(10) unsigned DEFAULT '65534' NOT NULL,
 home char(255) DEFAULT ' ' NOT NULL,
 maildir char(255) DEFAULT ' ' NOT NULL,
 quota char(255) DEFAULT ' ' NOT NULL,
 PRIMARY KEY(id));

 GRANT ALL ON mailusers.* TO courier@localhost IDENTIFIED BY 'password';
*/



$helpwidth = 440;
$helpheight = 250;



$allow_mailing_list = TRUE;



$enable_filters = TRUE;


$filter_files = array("Spamassassin" => "safilter.tab");



$login_level = array("NoLogin" => 0, "LoginUser" => 1, "LoginPostmaster" => 2, "LoginSpecialPostmaster" => 3, "LoginSuperuser" => 4);



$handle_secondaries = FALSE;

$_SESSION['secondary-mode'] = "smtprelay";
$_SESSION['secondary-dest'] = "192.168.1.1";
$_SESSION['secondary-ip'] = array(array("ip" => "192.168.1.2", "port" => "6017"));



$is_old_php = FALSE;


if (isset($is_old_php) && $is_old_php)
{
 foreach ($HTTP_SESSION_VARS as $var_name=>$var_value) $_SESSION[$var_name]=$var_value;
 foreach ($HTTP_GET_VARS as $var_name=>$var_value) $_REQUEST[$var_name]=$var_value;
 foreach ($HTTP_POST_VARS as $var_name=>$var_value) $_REQUEST[$var_name]=$var_value;
}

?>




Again, thanks for your help
PMEmail Poster
Top
whyre
Posted: Oct 18 2004, 02:51 PM
Quote Post


Newbie
*

Group: Members
Posts: 5
Member No.: 1359
Joined: 15-October 04



QUOTE (blaze6017 @ Oct 17 2004, 04:52 PM)
Hi,
I looking to solve the same problem. Checked the .tab files several times and they seem to be ok, but still no login possible,working with no other domain then the default: "xmailserver.test".
Do you know how I can check if the xmailserver up? I using shell:
CODE

linux:/usr/bin # /etc/init.d/xmail start
Starting XMail server: XMail.[ 9778 ]

How can I log in with telnet. What is the command for shell?
Thanks

To test your ctrlaccounts.tab interface via telnet simply run: telnet [server ip] [port], i.e.:
CODE

telnet 127.0.0.1 6017


then login as:
CODE

username<tab>password

that will tell you if your account is setup correctly.
PMEmail Poster
Top
blaze6017
Posted: Oct 19 2004, 12:04 AM
Quote Post


Newbie
*

Group: Members
Posts: 6
Member No.: 1362
Joined: 17-October 04



Thanks for the right commands on shell. My whole server did not work that's why I set up the xmailserver once again (including reinstalling the linux suse 8.2) and IT WORKS NOW!!! thanks for help...
there is a new version of xpai (115) with a small difference in configure.php.
my xmailserver is working with the default configuration (default domain unchanged), only an user and a super_users with the encrypted passwords were added manually (vi ctrlaccounts.tab).
greetz
PMEmail Poster
Top
whyre
Posted: Oct 19 2004, 02:45 PM
Quote Post


Newbie
*

Group: Members
Posts: 5
Member No.: 1359
Joined: 15-October 04



Glad it's working for ya! Well, if it's really that simple, I guess I'll rip out xmail and remove xpai and reinstall....
PMEmail Poster
Top
gEoTa
Posted: Oct 22 2004, 12:31 PM
Quote Post


Member
***

Group: Members
Posts: 68
Member No.: 985
Joined: 15-March 04



Don't forget to get the new version of XPAI (1.15) before you reinstall it. smile.gif
PMEmail Poster
Top
0 User(s) are reading this topic (0 Guests and 0 Anonymous Users)
0 Members:
« Next Oldest | Webmail Add-ons | Next Newest »

Reply to this topicStart new topic