Community Discussions and Support
Mercury + Vista + Firedaemon ?

Well I finally got it to work! [:D]

 

The mention of environment variables got me thinking, so I changed the service definition so that Mercury would run under the account I used to install (and generate the SSL certs) and it worked like a charm.  Apparently Mercury relates the SSL cert with the username that created it....and that's probably why I was getting the -3 cryptlib error when I tried to run Mercury under a different account. 

<p>Well I finally got it to work! [:D]</p><p> </p><p>The mention of environment variables got me thinking, so I changed the service definition so that Mercury would run under the account I used to install (and generate the SSL certs) and it worked like a charm.  Apparently Mercury relates the SSL cert with the username that created it....and that's probably why I was getting the -3 cryptlib error when I tried to run Mercury under a different account.  </p>

I'm new to all of this so please bear with me.  I've successfully installed and configured Mercury 4.52 on my Windows Vista 64 machine.  I have also downloaded Firedaemon becuase I want to set up the mail server as a service.  However, I have been unable to make Mercury work right under Firedaemon.  Does any one know of any resource available online (such as a HOWTO) on how to make Mercury run as a a service under Windows Vista?  Thanks in advance for any information you can provide.

 

-YankeeFan-

<p>I'm new to all of this so please bear with me.  I've successfully installed and configured Mercury 4.52 on my Windows Vista 64 machine.  I have also downloaded Firedaemon becuase I want to set up the mail server as a service.  However, I have been unable to make Mercury work right under Firedaemon.  Does any one know of any resource available online (such as a HOWTO) on how to make Mercury run as a a service under Windows Vista?  Thanks in advance for any information you can provide.</p><p> </p><p>-YankeeFan- </p>

I'm not going to be much help since I've not used FireDaemon  in years and do not have a Vista system.  That said, i do use NT Wrapper Pro and i've been told that it was designed to work with Vista as well.  It does have a lot of capability to run a program as a service and as a specific user as well.

 

<p>I'm not going to be much help since I've not used FireDaemon  in years and do not have a Vista system.  That said, i do use NT Wrapper Pro and i've been told that it was designed to work with Vista as well.  It does have a lot of capability to run a program as a service and as a specific user as well.</p><p> </p>

[quote user="YankeeFan"]

I'm new to all of this so please bear with me.  I've successfully installed and configured Mercury 4.52 on my Windows Vista 64 machine.  I have also downloaded Firedaemon becuase I want to set up the mail server as a service.  However, I have been unable to make Mercury work right under Firedaemon.  Does any one know of any resource available online (such as a HOWTO) on how to make Mercury run as a a service under Windows Vista?  Thanks in advance for any information you can provide.

 

-YankeeFan-

[/quote]

 

How have you set up the service under FireDaemon? I have FireDaemon

running as well however under Windows 2003 however having said that it

shouldn't be that different. Also not sure what you meant by  "unable to make Mercury work right under Firedaemon"?

[quote user="YankeeFan"]<p>I'm new to all of this so please bear with me.  I've successfully installed and configured Mercury 4.52 on my Windows Vista 64 machine.  I have also downloaded Firedaemon becuase I want to set up the mail server as a service.  However, I have been unable to make Mercury work right under Firedaemon.  Does any one know of any resource available online (such as a HOWTO) on how to make Mercury run as a a service under Windows Vista?  Thanks in advance for any information you can provide.</p><p> </p><p>-YankeeFan- </p><p>[/quote]</p><p> </p><p>How have you set up the service under FireDaemon? I have FireDaemon running as well however under Windows 2003 however having said that it shouldn't be that different. Also not sure what you meant by  "unable to make Mercury work right under Firedaemon"?</p>

[quote user="Michellea"]

Also not sure what you meant by  "unable to make Mercury work right under Firedaemon"?

[/quote]

 

The service appears to be running but when I try to connect to my mail server with my email program...nothing happens...its like the service is running but Mercury is frozen. ????

 

[quote user="Michellea"]<p> Also not sure what you meant by  "unable to make Mercury work right under Firedaemon"?</p><p>[/quote]</p><p> </p><p>The service appears to be running but when I try to connect to my mail server with my email program...nothing happens...its like the service is running but Mercury is frozen. ????</p><p> </p>

Some things to check.  Forget about trying to use a mail client until you know the service is working.

Port blocking on? 

Can you telnet into ports 110 and 25?  If you set these to alternate ports like 587 and 1100 can you connect via telnet? 

Do you have the Vista firewall turned on? Is both FireDaemon and Mercury/32 allowed to access the Internet? Can you run the Firedaemon and Mercury/32 service as a specific user?

 

 

<p>Some things to check.  Forget about trying to use a mail client until you know the service is working. </p><p>Port blocking on?  </p><p>Can you telnet into ports 110 and 25?  If you set these to alternate ports like 587 and 1100 can you connect via telnet?  </p><p>Do you have the Vista firewall turned on? Is both FireDaemon and Mercury/32 allowed to access the Internet? Can you run the Firedaemon and Mercury/32 service as a specific user?</p><p> </p><p> </p>

[quote user="Thomas R. Stephenson"]

Some things to check.  Forget about trying to use a mail client until you know the service is working.

Port blocking on? 

Can you telnet into ports 110 and 25?  If you set these to alternate ports like 587 and 1100 can you connect via telnet? 

Do you have the Vista firewall turned on? Is both FireDaemon and Mercury/32 allowed to access the Internet? Can you run the Firedaemon and Mercury/32 service as a specific user?

 

 

 

[/quote]

 

YankeeFan, try telnet'ing to the ports Thomas suggested to make sure the service is available.Also check your firewall rules. I'm guessing you are running POP3. If you are running IMAP, you'll need to telnet to port 143. 

[quote user="Thomas R. Stephenson"]<p>Some things to check.  Forget about trying to use a mail client until you know the service is working. </p><p>Port blocking on?  </p><p>Can you telnet into ports 110 and 25?  If you set these to alternate ports like 587 and 1100 can you connect via telnet?  </p><p>Do you have the Vista firewall turned on? Is both FireDaemon and Mercury/32 allowed to access the Internet? Can you run the Firedaemon and Mercury/32 service as a specific user?</p><p> </p><p> </p><p> </p><p>[/quote]</p><p> </p><p>YankeeFan, try telnet'ing to the ports Thomas suggested to make sure the service is available.Also check your firewall rules. I'm guessing you are running POP3. If you are running IMAP, you'll need to telnet to port 143. </p>

Vista Firewall is disabled.  I have forwarded ports 25 and 110 on my router to the machine running Mercury.  I can actually telnet into port 25 and port 110 on the local machine and also remotely.  (remotely I went so far as to telnet into 110 and send the USER and PASS commands and got back how many messages were there).  However when I try to download email or send email through Thunderbird here's what I get:

 

When sending a message:

"Sending of message failed.  The message could not be sent because connecting to SMTP at xxxxxxx.xxx failed."

 

When trying to retrieve mail via POP3, Thunderbird just sits there and then eventually tells me it timed out.

 

I thought it might be an issue with Thunderbird, so I tried Pegasus, with pretty much the same result (except different error messages):

 

Sending and Receiving: 15. Peer connect failure.

 

Now if I run Mercury standalone (ie, not as a service...they all work like a charm)...so obviously FireDaemon is doing something (or I'm just too thick to figure it out)

 

<p>Vista Firewall is disabled.  I have forwarded ports 25 and 110 on my router to the machine running Mercury.  I can actually telnet into port 25 and port 110 on the local machine and also remotely.  (remotely I went so far as to telnet into 110 and send the USER and PASS commands and got back how many messages were there).  However when I try to download email or send email through Thunderbird here's what I get:</p><p> </p><p>When sending a message:</p><p>"Sending of message failed.  The message could not be sent because connecting to SMTP at xxxxxxx.xxx failed."</p><p> </p><p>When trying to retrieve mail via POP3, Thunderbird just sits there and then eventually tells me it timed out.</p><p> </p><p>I thought it might be an issue with Thunderbird, so I tried Pegasus, with pretty much the same result (except different error messages):</p><p> </p><p>Sending and Receiving: 15. Peer connect failure.</p><p> </p><p>Now if I run Mercury standalone (ie, not as a service...they all work like a charm)...so obviously FireDaemon is doing something (or I'm just too thick to figure it out) </p><p> </p>

If you can connect from the same station that is running Thunderbird via Telnet and can't via Thunderbird then maybe it's Thunderbird being blocked.  Could you be more specific about what you get where you get it are making the telnet connection to the service.  There is no reason in the world that an email client can't do what a telnet client is doing unless something is blocking.

 

 

<p>If you can connect from the same station that is running Thunderbird via Telnet and can't via Thunderbird then maybe it's Thunderbird being blocked.  Could you be more specific about what you get where you get it are making the telnet connection to the service.  There is no reason in the world that an email client can't do what a telnet client is doing unless something is blocking. </p><p> </p><p> </p>

[quote user="YankeeFan"]

Vista Firewall is disabled.  I have forwarded ports 25 and 110 on my router to the machine running Mercury.  I can actually telnet into port 25 and port 110 on the local machine and also remotely.  (remotely I went so far as to telnet into 110 and send the USER and PASS commands and got back how many messages were there).  However when I try to download email or send email through Thunderbird here's what I get:

 

When sending a message:

"Sending of message failed.  The message could not be sent because connecting to SMTP at xxxxxxx.xxx failed."

 

When trying to retrieve mail via POP3, Thunderbird just sits there and then eventually tells me it timed out.

 

I thought it might be an issue with Thunderbird, so I tried Pegasus, with pretty much the same result (except different error messages):

 

Sending and Receiving: 15. Peer connect failure.

 

Now if I run Mercury standalone (ie, not as a service...they all work like a charm)...so obviously FireDaemon is doing something (or I'm just too thick to figure it out)

 

[/quote]

 

Ok. Correct me if I am wrong.

 

1. Mercury is installed on Microsoft Vista.

2. You have ThunderBird installed on Microsoft Vista

3. You have attempted to telnet to Mercury on Microsoft Vista and it works.

4. You have attempted to telnet to Mercury remotely from another PC/Server and it works.

5. What IP address have you assigned to Mercury?

6. What IP address or domain is ThunderBird attempting to connect to?

7. FireDaemon shouldn't prevent you from connecting to Mercury via an email client since you were able to telnet. I suspect it's probably your Thunderbird configuration.
 

[quote user="YankeeFan"]<p>Vista Firewall is disabled.  I have forwarded ports 25 and 110 on my router to the machine running Mercury.  I can actually telnet into port 25 and port 110 on the local machine and also remotely.  (remotely I went so far as to telnet into 110 and send the USER and PASS commands and got back how many messages were there).  However when I try to download email or send email through Thunderbird here's what I get:</p><p> </p><p>When sending a message:</p><p>"Sending of message failed.  The message could not be sent because connecting to SMTP at xxxxxxx.xxx failed."</p><p> </p><p>When trying to retrieve mail via POP3, Thunderbird just sits there and then eventually tells me it timed out.</p><p> </p><p>I thought it might be an issue with Thunderbird, so I tried Pegasus, with pretty much the same result (except different error messages):</p><p> </p><p>Sending and Receiving: 15. Peer connect failure.</p><p> </p><p>Now if I run Mercury standalone (ie, not as a service...they all work like a charm)...so obviously FireDaemon is doing something (or I'm just too thick to figure it out) </p><p> </p><p>[/quote]</p><p> </p><p>Ok. Correct me if I am wrong.</p><p> </p><p>1. Mercury is installed on Microsoft Vista.</p><p>2. You have ThunderBird installed on Microsoft Vista 3. You have attempted to telnet to Mercury on Microsoft Vista and it works.</p><p>4. You have attempted to telnet to Mercury remotely from another PC/Server and it works.</p><p>5. What IP address have you assigned to Mercury?</p><p>6. What IP address or domain is ThunderBird attempting to connect to?</p><p>7. FireDaemon shouldn't prevent you from connecting to Mercury via an email client since you were able to telnet. I suspect it's probably your Thunderbird configuration.  </p>

Ok, so I did some more research last night and after going through Mercury's log files I think I've found what the problem is.  I have SSL/TLS enabled on Mercury's SMTP and POP3 configuration.  When Mercury is running as an app (non-service), I can connect to it via Thunderbird and Pegasus with no problem at all.   However, when it is running as a service, the mail client will connect, but will fail right after issuing the STARTTLS command.  The log shows the following:

 

20: Error -3 creating CryptLib session.

 

Apparently, there is some issue loading/running CryptLib when Mercury is running as a service.  I guess my next step is to figure out how to tell FireDaemon know that Mercury needs to be able to access the appropriate dll's when it's running as a service?

 

<p>Ok, so I did some more research last night and after going through Mercury's log files I think I've found what the problem is.  I have SSL/TLS enabled on Mercury's SMTP and POP3 configuration.  When Mercury is running as an app (non-service), I can connect to it via Thunderbird and Pegasus with no problem at all.   However, when it is running as a service, the mail client will connect, but will fail right after issuing the STARTTLS command.  The log shows the following:</p><p> </p><p>20: Error -3 creating CryptLib session.</p><p> </p><p>Apparently, there is some issue loading/running CryptLib when Mercury is running as a service.  I guess my next step is to figure out how to tell FireDaemon know that Mercury needs to be able to access the appropriate dll's when it's running as a service?</p><p> </p>

This may be a problem of rights.  What user have you specified when running Mercury/32? If you are running with the system account it may not be given sufficient rights.

This may be a problem of rights.  What user have you specified when running Mercury/32? If you are running with the system account it may not be given sufficient rights.

Originally, the service was set up to run using the system account.  I changed it to run under the Administrator account but still got the same result:

15:54:55.869: Connection from 155.201.35.53, Tue Jun 10 15:54:55 2008
15:54:55.869: << 220 xxxxxx.xxx ESMTP server ready.
15:55:00.315: >> EHLO xxxxxx.xxx
15:55:00.330: << 250-xxxxxx.xxx Hello xxxxxx.xxx; ESMTPs are:
15:55:00.330: << 250-TIME
15:55:00.330: << 250-SIZE 0
15:55:00.330: << 250-STARTTLS
15:55:00.330: << 250 HELP
15:55:04.246: >> STARTTLS
15:55:04.246: << 220 OK, begin SSL/TLS negotiation now.
15:55:04.246: 20: Error -3 creating CryptLib session.
15:55:04.261: --- Connection closed normally at Tue Jun 10 15:55:04 2008. ---

Originally, the service was set up to run using the system account.&amp;nbsp; I changed it to run under the Administrator account but still got the same result: 15:54:55.869: Connection from 155.201.35.53, Tue Jun 10 15:54:55 2008 15:54:55.869: &amp;lt;&amp;lt; 220 xxxxxx.xxx ESMTP server ready. 15:55:00.315: &amp;gt;&amp;gt; EHLO xxxxxx.xxx 15:55:00.330: &amp;lt;&amp;lt; 250-xxxxxx.xxx Hello xxxxxx.xxx; ESMTPs are: 15:55:00.330: &amp;lt;&amp;lt; 250-TIME 15:55:00.330: &amp;lt;&amp;lt; 250-SIZE 0 15:55:00.330: &amp;lt;&amp;lt; 250-STARTTLS 15:55:00.330: &amp;lt;&amp;lt; 250 HELP 15:55:04.246: &amp;gt;&amp;gt; STARTTLS 15:55:04.246: &amp;lt;&amp;lt; 220 OK, begin SSL/TLS negotiation now. 15:55:04.246: 20: Error -3 creating CryptLib session. 15:55:04.261: --- Connection closed normally at Tue Jun 10 15:55:04 2008. ---

[quote user="YankeeFan"]Originally, the service was set up to run using the system account.  I changed it to run under the Administrator account but still got the same result:[/quote]

The system account has full rights on all the objects on the local machine. This account is sufficient for Mercury to run if the users mail directories are on the same computer than it (the Mercury log files have also to be written somewhere on that computer).

Just something I remember (I had the problem the first time I used mercury a few years ago) : when Mercury ran under an admin session all worked fine, when mercury ran as a service (with srvany and instsrv) with admin rights it didn't work. It took me a few hours to solve the problem : the disk were where located the users mail directories (E) was mapped to a letter (P), (because the connexion script for this user was also used on other computers than the server), I told Mercury that the users mail directories were in P:\mail, that was the problem : when no session was opened the P drive did not exist, as soon as I told mercury that the users mail directories where in E:\mail it worked.

Maybe it could help you. 

Regards

 

&lt;p&gt;[quote user=&quot;YankeeFan&quot;]Originally, the service was set up to run using the system account.&amp;nbsp; I changed it to run under the Administrator account but still got the same result:[/quote]&lt;/p&gt;&lt;p&gt;The system account has full rights on all the objects on the local machine. This account is sufficient for Mercury to run if the users mail directories are on the same computer than it (the Mercury log files have also to be written somewhere on that computer).&lt;/p&gt;&lt;p&gt;Just something I remember (I had the problem the first time I used mercury a few years ago) : when Mercury ran under an admin session all worked fine, when mercury ran as a service (with srvany and instsrv) with admin rights it didn&#039;t work. It took me a few hours to solve the problem : the disk were where located the users mail directories (E) was mapped to a letter (P), (because the connexion script for this user was also used on other computers than the server), I told Mercury that the users mail directories were in P:\mail, that was the problem : when no session was opened the P drive did not exist, as soon as I told mercury that the users mail directories where in E:\mail it worked.&lt;/p&gt;&lt;p&gt;Maybe it could help you.&amp;nbsp;&lt;/p&gt;&lt;p&gt;Regards&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;

But what about FireDaemon and the STARTTLS module?  Since this works as a service without the TLS and not with these is something blocking .

 

&lt;p&gt;But what about FireDaemon and the STARTTLS module?&amp;nbsp; Since this works as a service without the TLS and not with these is something blocking . &lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;

I don't know but I thought to something like the %temp% directory located in something like %userprofile% and %userprofile% doesn't exist when no one has a session opened on the computer.

I don&#039;t know but I thought to something like the %temp% directory located in something like %userprofile% and %userprofile% doesn&#039;t exist when no one has a session opened on the computer.

I had a similar problem when running Mercury/32 against a Netware server since Netware is not authenticated when the service starts.  With NT Wrapper I could use a specific user with the proper Netware credentials to run as a service.

FWIW, I cannot run as a service against the Netware v3.2 host and use STARTTLS either.  No problems when I use the normal Mercury/32 windows setup with STARTTLS.

 

 

 

&lt;p&gt;I had a similar problem when running Mercury/32 against a Netware server since Netware is not authenticated when the service starts.&amp;nbsp; With NT Wrapper I could use a specific user with the proper Netware credentials to run as a service.&lt;/p&gt;&lt;p&gt;FWIW, I cannot run as a service against the Netware v3.2 host and use STARTTLS either.&amp;nbsp; No problems when I use the normal Mercury/32 windows setup with STARTTLS.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;
live preview
enter atleast 10 characters
WARNING: You mentioned %MENTIONS%, but they cannot see this message and will not be notified
Saving...
Saved
With selected deselect posts show selected posts
All posts under this topic will be deleted ?
Pending draft ... Click to resume editing
Discard draft