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 [Powered by Invision Power Board]
Printable Version of Topic
Click here to view this topic in its original format
XMail Forum > XMail Queue Manager > XQM Win32 to access Linux MailRoot?


Posted by: mrjms Sep 23 2002, 06:31 AM
I recenlty setup an XMail linux box. I saw your link from the xmail website and thought, "Awsome, a remote queue manager for Windows!" I then found out that it does not remotely manage the Linux MailRoot queues. The server does not have an x11 environment, and I really would love to have a queue manager from my Win2k laptop gui.

Is this an idea that's in the works?
Is this possible by running Samba and sharing the MailRoot over the network to access from my Win2k PC?

Thanks for any input!

Justin



Edited by - mrjms on 23 September 2002 07:31:48

Posted by: hschneider Sep 23 2002, 09:54 AM
Hi,

you have 2 possibilities:

- Use XQM/CMD via telnet on your Linux box
- Use a batch file to call xqmwin with e.g.:

@echo off
set MAIL_ROOT=\192.168.1.111varMailRoot
xqmwin.exe

This lets you access the mailroot of a remote machine. But take care, defrost and start server won't work. Maybe I'll implement a more comfortable procedure into one of the next releases ...

Thanks for your feedback!



Bye,
Harald

-- Download XMail Queue Manager 1.01 NOW: http://xmail.marketmix.com

Posted by: mrjms Sep 24 2002, 01:02 AM
Okay, thanks

Do I have to use the batch file idea? Or can I just put in my environment variables that MAIL_ROOT is \xmailservervarMailRoot ?

Thanks

Justin


Posted by: mrjms Sep 24 2002, 02:16 AM
Ok,
Here's an update as to what occured.
I now have my envronment variable set correctly and when xqmwin.exe runs it gives the following error message:

"XMail Server Service not found!
Make sure, that XMail is correctly installed."

I'm assuming now it won't run because I don't have XMail installed on the Windows PC. Is there an easy way around this, or will I have to wait for you to (hopefully) come out with an update that supports this? Thanks for working with me on this.


Justin



Edited by - mrjms on 24 September 2002 06:11:58

Posted by: hschneider Sep 24 2002, 06:05 AM
I think you have tried XMail on your notebook before and there is still a key in the registry: Just rename or delete HKEY_LOCAL_MACHINE/SOFTWARE/GNU/XMail with regedit.

You can also use this key to point to the remote machine ...

One of the next releases will support full cross platform remote management. There will be a XQM Agent on the remote machine managing server restarts (which is not possible at the moment with that workaround).

Bye,
Harald

-- Download XMail Queue Manager 1.01 NOW: http://xmail.marketmix.com

Posted by: mrjms Sep 24 2002, 10:25 PM
HKEY_LOCAL_MACHINE/SOFTWARE/GNU/XMail is not in the reg. I'm still getting the same problem. The same error also occured when I tried running it from a PC that it had not run on previosly.

Thanks.

Justin


Posted by: hschneider Sep 24 2002, 10:45 PM
You have to make sure that the env variable MAIL_ROOT is available.
Open a command prompt, set the variable and call xqmwin.exe from the prompt.

Setting the variable from the command prompt and clicking the .exe won't work, because the variable is only visible for the command shell ..

It can also be a problem with the path resolution. Try the IP instead of the machine name.
Also make sure that you can do a cd to that path ...



Bye,
Harald

-- Download XMail Queue Manager 1.01 NOW: http://xmail.marketmix.com

Posted by: mrjms Sep 25 2002, 05:32 AM
I have used to IP, and I can see the MailRoot. I have set the variable MAIL_ROOT as a system environment variable. I don't get the error about finding MAIL_ROOT anymore, it's just the service error.

If you can testify to making it work like this, that's all I need, and I'll do my best to get it to work.

Thanks for all of you help.

Justin


Posted by: hschneider Sep 25 2002, 07:17 AM
What happens after confirming this error message?
XQM should come up and you should be able to browse the queue of the remote machine ..

Bye,
Harald

-- Download XMail Queue Manager 1.01 NOW: http://xmail.marketmix.com

Posted by: mrjms Sep 26 2002, 05:24 AM
After I click "OK" it just closes...

Justin


Posted by: mrjms Sep 26 2002, 05:32 AM
Sorry, correction...

After I click "OK"
It brings up that python window quickly and then closes
I can't catch all what it says, tho

Justin


Posted by: hschneider Sep 26 2002, 07:29 AM
Hmmm ... works on my machine -- OK ... please wait for the update where remote control will be implemented. I have to change some internal things, which cannot be influenced by this workaround. I'll let you know, when you can beta test the new version.



Bye,
Harald

-- Download XMail Queue Manager 1.01 NOW: http://xmail.marketmix.com

Posted by: mrjms Sep 27 2002, 04:52 AM
Excellent,

Thanks.

You can email me at jsmith@buchertech.com
please mention xmail queue manager in the subject :)

Thanks again.

Justin


Posted by: hschneider Oct 1 2002, 12:13 PM
Hi,

current status:
- Written an agent for Win32 and Linux, which manages server start,shutdown,restart and status queries on the remote machine.
- The agent runs on the remote machine as a service (Win32) or as a daemon (Linux)
- XQM and its agent communicate via XML RPC (Remote Procedure Call) which runs
through any firewall that has http and the agent's port enabled.
- Only trusted IPs are served by the agent.
- Port and trusted IP list are user defined.

This makes remote admin from any platform to any platform possible.

ToDo:
- Making XQM a RPC client with a GUI setup option.

You can beta test ASAP ... -)



Bye,
Harald

-- Download XMail Queue Manager 1.01 NOW: http://xmail.marketmix.com

Posted by: hschneider Oct 5 2002, 09:47 AM
OK .. things are ready to beta test:

Download
http://marketmix.com/downloads/beta/xqmagent_linux.tgz
if you have XMail on a Linux machine.

http://marketmix.com/downloads/beta/xqmagent_win32.zip
if XMail is running on NT

Install the agent by following the instructions in README.txt

Download
http://marketmix.com/downloads/beta/xqmwin_103.zip

Click the new Network icon and set up for remote access.

ToDo:
Catching some errors like NO_MAILROOT, NO_AGENT etc.




Bye,
Harald

-- Download XMail Queue Manager 1.01 NOW: http://xmail.marketmix.com
-- Coming soon: XQM Remote Queue Management!

Posted by: mrjms Oct 7 2002, 02:36 PM
That's great, but the link is broken for the download.

Justin


Posted by: hschneider Oct 7 2002, 03:26 PM
I've just put the final release online:
http://xmail.marketmix.com



Bye,
Harald

-- Download XMail Queue Manager 1.04 NOW: http://xmail.marketmix.com

Posted by: Kalin Oct 17 2002, 01:13 AM
hello,

Okay I ran into the same problem (with newest version) (remotely accessing a linux xmail server from windows) and I set the MAIL_ROOT properly after I mounted the linux drive, and I got the Xmail Server Service not found, then it dies (exactly the same as you)

so here's how I fixed it, I installed xmail on my computer (as a service) doesn't really matter much about configuration, then after I got into xqm I could change it to go remotely instead of local (altho I'm still messing around with this.... just thought I'd post an update)


Posted by: Kalin Oct 17 2002, 01:57 AM
Hello, I'm back :-)


Okay where I am now is I got the agent installed and the xqmwin running and it sees the xmail server okay (says it's running) but when I hit query it just sits there and hangs (if I do it to that local xmail server I was talking to, it's almost instantaneous) it also doesn't seem to be doing any network traffic so I'm not totally sure what it is doing, it just sits there (yes it is a big xmail server so maybe it will take awhile) I dunno, just seems weird, let me know if you can help :-)

Thanks

kalin

Posted by: hschneider Oct 17 2002, 07:09 AM
Can you access/browse the Linux path from your remote machine (with explorer not with XQM) or does a password requester pop up?

You have to be authenticated on the Linux machine to access the path. Also remove any slashes at the end of the path in the network settings of XQM.

Also make sure that you run XQM 1.05.

You also can verify if the agent runs by clicking INFO on the XQM toolbar. Agent version and remote address are displayed here if communication is OK.

Posted by: hschneider Oct 17 2002, 03:00 PM
Please let me know what the prob was, so I can impove the next release - thanks!


Posted by: Kalin Oct 17 2002, 08:38 PM
hey again :-)

I've got one idea you may want to implement. Have xqmagent warn you if MAIL_ROOT isn't set and then die, rather than just die (I couldn't figure out for so long when xqmagent just would not run)

Anyway I'm still having a bit of trouble with the remote stuff. I do connect to the agent (gives me the version/IP in the info screen) I have tried both the \\ip\share and mounting the network drive but it still just sits there at the query for a long time. (I can browse to either of these with explorer no problem, so I am authenticated already)

I've even tried mounting the drive and pretending I was local (with no agent) still no dice. I'm not sure where to go from here...

Thanks for your help, your program seems pretty kewl from the pictures as least :-)



Posted by: hschneider Oct 17 2002, 11:19 PM
Can you please post me the exact path you entered? Maybe there is something special about it ....



Posted by: Kalin Oct 18 2002, 04:35 AM
well the exact path should be fine because I can mount (map) that drive from explorer, it shouldn't be a problem, I'm not sure why it just hangs on the query (unless it can't handle so many (the server has over 300 domains on it) it just goes \\<server ip>\xmail


Posted by: hschneider Oct 18 2002, 08:41 AM
Seems to be everything OK, assumed that xmail is the folder with the spool folder inside. The number of domains is not relevant, since the spool size remains the same.

What exactly is displayed in the statusbar at the bottom after pressing the green Query Button ?

Does the animation window come up?

What version of XMail do you run? It's tested with versions >= 1.9.
If my information is correct, versions <1.9 use another spool format.

Thanks for your feedback!

Posted by: Kalin Oct 18 2002, 05:49 PM
well xmail is a share that points to /var/MailRoot which works (I can browse from explorer)

the statusbar says querying queue and the Please Wait animation comes up and just sits there

Xmail version is 1.10

(was upgraded from like 1.1 tho, not fresh 1.10)



Posted by: hschneider Oct 18 2002, 06:09 PM
Hmm ... looks OK from every angle. The only explanation might be a very large queue - maybe some 1000s frozen messages .. this might take some while. Just leave it on a couple of minutes ...


Posted by: hschneider Oct 18 2002, 06:41 PM
Please replace the .exe with the version from:
marketmix.com/downloads/beta/xqmwin.zip

and let me know the result. Thanks!


Posted by: Kalin Oct 18 2002, 09:46 PM
heh, xqm/cmd told me 2037 frozen messages (uhm, yeah may just delete them all real soon here, there's about 20 that I actually want to keep, but not a big deal if I lose them) I tried the new binary and let it set in the query (using all my cpu :-) for maybe 50 minutes (forgot it was running :-)
but still just hanging on the please wait animation, I dunno man :-)

Posted by: hschneider Oct 19 2002, 08:44 AM
This debug version is 4 times as slow than the release. But the assumed 12 minutes are a hint for a slow machine or network or smb connection. On a standard installation XQM has to browse 4256 folders to get the spool contents. That takes some time and stresses the smb service.

Nevertheless on my system a remote queue with 2000 messages is processed in approx. 20 seconds.

I think about letting the agent process the queue, which might bring a speed improvement on slow smb connections ...

BTW: There are a lot of resources how to tune samba:
http://www.tldp.org/LDP/solrhe/Securing-Optimizing-Linux-RH-Edition-v1.3/chap29sec287.html
http://sunsite.dk/samba/oreilly/using_samba/
http://linuxperf.nl.linux.org/fileserving/samba.html
http://uk.samba.org/samba/ftp/docs/textdocs/Speed2.txt
http://uk.samba.org/samba/ftp/docs/textdocs/Speed.txt

Posted by: hschneider Oct 20 2002, 09:37 AM
Please give me a hint how you are connected with your MailRoot server:
10 MBit, 100 MBit, ISDN Dialup, DSL ? I'm very interested in the bandwidth you use ...

Posted by: Kalin Oct 21 2002, 08:53 PM
Well we have a 10mbit fibre optic connection directly to the server so it should be okay. I tried the non-debug version and let it run for awhile, still no dice. I have no idea what's up with this :-) It doesn't really seem to even be communicating all that much to it (not many packets transferred)


Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)