Community Discussions and Support
Mercury causes all my web pages to come up blank or inaccessable

Ok fellows, I think we finally have this all racked up in a pile. It looks like it's working now.

I can't find any info on how to restart Mercury. Is this closing the interface? I wasn't sure so I've been closing the interface and restarting Apache.

Regardless, I was restarting it somehow in there because the new setting took and I can sent myself mail. Here is the Session log: 

[quote]

13:21:42.046: Connection from 127.0.0.1, Fri Apr 25 13:21:42 2008<lf>
13:21:42.062: << 220 localhost ESMTP server ready.<cr><lf>
13:21:42.062: >> HELO Compaq1<cr><lf>
13:21:42.062: << 250 localhost Hello, Compaq1.<cr><lf>
13:21:42.062: >> MAIL FROM:<Admin@localhost><cr><lf>
13:21:42.078: << 250 Sender OK - send RCPTs.<cr><lf>
13:21:42.078: >> RCPT TO:<test@localhost><cr><lf>
13:21:42.078: << 250 Recipient OK - send RCPT or DATA.<cr><lf>
13:21:42.093: >> DATA<cr><lf>
13:21:42.093: << 354 OK, send data, end with CRLF.CRLF<cr><lf>
13:21:42.109: >> Date: Fri, 25 Apr 2008 13:21:42 -0400<cr><lf>
13:21:42.109: >> Subject: test11<cr><lf>
13:21:42.109: >> To: test@localhost<cr><lf>
13:21:42.109: >> From: test <this@that.com><cr><lf>
13:21:42.109: >> <cr><lf>
13:21:42.109: >> Message sent: 04.25.2008 at 13:21:41:<lf>
13:21:42.109: >> <lf>
13:21:42.109: >> From: test<lf>
13:21:42.109: >> Email: this@that.com<lf>
13:21:42.109: >> About: test11<lf>
13:21:42.109: >> <lf>
13:21:42.109: >> --------------------------- COMMENTS ---------------------------<lf>
13:21:42.109: >> <lf>
13:21:42.109: >> test test test11<lf>
13:21:42.109: >> <lf>
13:21:42.109: >> --------------------------------------------------------------------------<lf>
13:21:42.125: >> <lf>
13:21:42.125: >> <cr><lf>
13:21:42.125: >> .<cr><lf>
13:21:42.125: << 250 Data received OK.<cr><lf>
13:21:42.140: >> QUIT<cr><lf>
13:21:42.140: << 221 localhost Service closing channel.<cr><lf>
13:21:42.140: --- Connection closed normally at Fri Apr 25 13:21:42 2008. ---
13:21:42.140:
[/quote]

Thanks everyone - thank you thank you. dilberts_left_nut, I  but you're better than the right_nut.

I'm only able to send mail to users@localhost though. Is there some way to allow Mercury to send emails outside of localhost? For my purposes of testing php systems, such an email (lacking a .com and so on) gets caught.

&lt;p&gt;Ok fellows, I think we finally have this all racked up in a pile. It looks like it&#039;s working now. &lt;/p&gt;&lt;p&gt;I can&#039;t find any info on how to restart Mercury. Is this closing the interface? I wasn&#039;t sure so I&#039;ve been closing the interface and restarting Apache. &lt;/p&gt;&lt;p&gt;Regardless, I was restarting it somehow in there because the new setting took and I can sent myself mail. Here is the Session log:&amp;nbsp;&lt;/p&gt;&lt;p&gt;[quote]&lt;/p&gt;&lt;p&gt;13:21:42.046: Connection from 127.0.0.1, Fri Apr 25 13:21:42 2008&amp;lt;lf&amp;gt; 13:21:42.062: &amp;lt;&amp;lt; 220 localhost ESMTP server ready.&amp;lt;cr&amp;gt;&amp;lt;lf&amp;gt; 13:21:42.062: &amp;gt;&amp;gt; HELO Compaq1&amp;lt;cr&amp;gt;&amp;lt;lf&amp;gt; 13:21:42.062: &amp;lt;&amp;lt; 250 localhost Hello, Compaq1.&amp;lt;cr&amp;gt;&amp;lt;lf&amp;gt; 13:21:42.062: &amp;gt;&amp;gt; MAIL FROM:&amp;lt;Admin@localhost&amp;gt;&amp;lt;cr&amp;gt;&amp;lt;lf&amp;gt; 13:21:42.078: &amp;lt;&amp;lt; 250 Sender OK - send RCPTs.&amp;lt;cr&amp;gt;&amp;lt;lf&amp;gt; 13:21:42.078: &amp;gt;&amp;gt; RCPT TO:&amp;lt;test@localhost&amp;gt;&amp;lt;cr&amp;gt;&amp;lt;lf&amp;gt; 13:21:42.078: &amp;lt;&amp;lt; 250 Recipient OK - send RCPT or DATA.&amp;lt;cr&amp;gt;&amp;lt;lf&amp;gt; 13:21:42.093: &amp;gt;&amp;gt; DATA&amp;lt;cr&amp;gt;&amp;lt;lf&amp;gt; 13:21:42.093: &amp;lt;&amp;lt; 354 OK, send data, end with CRLF.CRLF&amp;lt;cr&amp;gt;&amp;lt;lf&amp;gt; 13:21:42.109: &amp;gt;&amp;gt; Date: Fri, 25 Apr 2008 13:21:42 -0400&amp;lt;cr&amp;gt;&amp;lt;lf&amp;gt; 13:21:42.109: &amp;gt;&amp;gt; Subject: test11&amp;lt;cr&amp;gt;&amp;lt;lf&amp;gt; 13:21:42.109: &amp;gt;&amp;gt; To: test@localhost&amp;lt;cr&amp;gt;&amp;lt;lf&amp;gt; 13:21:42.109: &amp;gt;&amp;gt; From: test &amp;lt;this@that.com&amp;gt;&amp;lt;cr&amp;gt;&amp;lt;lf&amp;gt; 13:21:42.109: &amp;gt;&amp;gt; &amp;lt;cr&amp;gt;&amp;lt;lf&amp;gt; 13:21:42.109: &amp;gt;&amp;gt; Message sent: 04.25.2008 at 13:21:41:&amp;lt;lf&amp;gt; 13:21:42.109: &amp;gt;&amp;gt; &amp;lt;lf&amp;gt; 13:21:42.109: &amp;gt;&amp;gt; From: test&amp;lt;lf&amp;gt; 13:21:42.109: &amp;gt;&amp;gt; Email: this@that.com&amp;lt;lf&amp;gt; 13:21:42.109: &amp;gt;&amp;gt; About: test11&amp;lt;lf&amp;gt; 13:21:42.109: &amp;gt;&amp;gt; &amp;lt;lf&amp;gt; 13:21:42.109: &amp;gt;&amp;gt; --------------------------- COMMENTS ---------------------------&amp;lt;lf&amp;gt; 13:21:42.109: &amp;gt;&amp;gt; &amp;lt;lf&amp;gt; 13:21:42.109: &amp;gt;&amp;gt; test test test11&amp;lt;lf&amp;gt; 13:21:42.109: &amp;gt;&amp;gt; &amp;lt;lf&amp;gt; 13:21:42.109: &amp;gt;&amp;gt; --------------------------------------------------------------------------&amp;lt;lf&amp;gt; 13:21:42.125: &amp;gt;&amp;gt; &amp;lt;lf&amp;gt; 13:21:42.125: &amp;gt;&amp;gt; &amp;lt;cr&amp;gt;&amp;lt;lf&amp;gt; 13:21:42.125: &amp;gt;&amp;gt; .&amp;lt;cr&amp;gt;&amp;lt;lf&amp;gt; 13:21:42.125: &amp;lt;&amp;lt; 250 Data received OK.&amp;lt;cr&amp;gt;&amp;lt;lf&amp;gt; 13:21:42.140: &amp;gt;&amp;gt; QUIT&amp;lt;cr&amp;gt;&amp;lt;lf&amp;gt; 13:21:42.140: &amp;lt;&amp;lt; 221 localhost Service closing channel.&amp;lt;cr&amp;gt;&amp;lt;lf&amp;gt; 13:21:42.140: --- Connection closed normally at Fri Apr 25 13:21:42 2008. --- 13:21:42.140: [/quote]&lt;/p&gt;&lt;p&gt;Thanks everyone - thank you thank you. dilberts_left_nut, I&amp;nbsp; but you&#039;re better than the right_nut.&lt;/p&gt;&lt;p&gt;I&#039;m only able to send mail to users@localhost though. Is there some way to allow Mercury to send emails outside of localhost? For my purposes of testing php systems, such an email (lacking a .com and so on) gets caught. &lt;/p&gt;

I just loaded up Mercury for Win. (Apache,php,winXP) After the installation, which I followed carefully, all the web pages on my apache server became inaccessible to Internet explorer and just came up as if they were totally empty on FireFox. Gave me a bit of a scare. But, I deleted Mercury and everything looks like it did before I installed it.

 Is there a setting I need to play with, on Mercury or Apache, or something I might have done wrong? Apache was running fine. I check and restarted it twice.

 
All I want is email functionality for my test environment on Apache / Win for testing php systems that have email incorporated into them.

Any bright ideas?
 

&lt;p&gt;I just loaded up Mercury for Win. (Apache,php,winXP) After the installation, which I followed carefully, all the web pages on my apache server became inaccessible to Internet explorer and just came up as if they were totally empty on FireFox. Gave me a bit of a scare. But, I deleted Mercury and everything looks like it did before I installed it. &lt;/p&gt;&lt;p&gt;&amp;nbsp;Is there a setting I need to play with, on Mercury or Apache, or something I might have done wrong? Apache was running fine. I check and restarted it twice. &lt;/p&gt;&lt;p&gt;&amp;nbsp; All I want is email functionality for my test environment on Apache / Win for testing php systems that have email incorporated into them.&lt;/p&gt;&lt;p&gt;Any bright ideas? &amp;nbsp;&lt;/p&gt;

Don't install the mercuryB http server module.

(And post Mercury questions in the Mercury forum [:)])

&lt;p&gt;Don&#039;t install the mercuryB http server module.&lt;/p&gt;&lt;p&gt;(And post Mercury questions in the Mercury forum [:)]) &lt;/p&gt;

Ooooohh, I see. What is that module for - webmail?

 I'll give it a try. Thanks for the quick reply, and sorry for wondering to the wrong place. It's a personality flaw and I'm working on it. [:P]
 

&lt;p&gt;Ooooohh, I see. What is that module for - webmail?&lt;/p&gt;&lt;p&gt;&amp;nbsp;I&#039;ll give it a try. Thanks for the quick reply, and sorry for wondering to the wrong place. It&#039;s a personality flaw and I&#039;m working on it. [:P] &amp;nbsp;&lt;/p&gt;

It provides an http interface for managing mailing list subscriptions.

There is no built in webmail, as there are plenty of free webmail packages already (Squirrel, Horde etc.) that work well with the IMAP4 server module (mercI).

Make sure that the SMTP server module mercS is not listening on your internet address, or be sure to turn on the anti-relaying controls. 

&lt;p&gt;It provides an http interface for managing mailing list subscriptions.&lt;/p&gt;&lt;p&gt;There is no built in webmail, as there are plenty of free webmail packages already (Squirrel, Horde etc.) that work well with the IMAP4 server module (mercI).&lt;/p&gt;&lt;p&gt;Make sure that the SMTP server module mercS is not listening on your internet address, or be sure to turn on the anti-relaying controls.&amp;nbsp;&lt;/p&gt;

[quote user="dilberts_left_nut"]

Don't install the mercuryB http server module.

(And post Mercury questions in the Mercury forum [:)])

[/quote]

 

Or set MercuryB to some other port like 85 like most of us do.  ;-) 

[quote user=&quot;dilberts_left_nut&quot;]&lt;p&gt;Don&#039;t install the mercuryB http server module.&lt;/p&gt;&lt;p&gt;(And post Mercury questions in the Mercury forum [:)]) &lt;/p&gt;&lt;p&gt;[/quote]&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Or set MercuryB to some other port like 85 like most of us do.&amp;nbsp; ;-)&amp;nbsp;&lt;/p&gt;

I don't remember a port setting input in the set-up system. Is there a settings file in the root of the program for these setting? What's its name?

 Also, by listing my internet address, is this referring to the IP address the set-up asks for - and if so what should I do with this setting? What does anti-relaying do?

With these settings and so on, how does Mercury hear the php commands?

&lt;p&gt;I don&#039;t remember a port setting input in the set-up system. Is there a settings file in the root of the program for these setting? What&#039;s its name?&lt;/p&gt;&lt;p&gt;&amp;nbsp;Also, by listing my internet address, is this referring to the IP address the set-up asks for - and if so what should I do with this setting? What does anti-relaying do?&lt;/p&gt;&lt;p&gt;With these settings and so on, how does Mercury hear the php commands? &lt;/p&gt;

[quote user="horseatingweeds"]

I don't remember a port setting input in the set-up system. Is there a settings file in the root of the program for these setting? What's its name?

MercuryB is the protocol and there is a port setting in Configuration | MercuryB

 Also, by listing my internet address, is this referring to the IP address the set-up asks for - and if so what should I do with this setting? What does anti-relaying do?

Not sure what you mean here.  If you are receiving the mail via MercuryD (POP3) then the "Internet name for this system" can be the IP address in []. If receiving the mail via MercuryS (SMTP) then this should be your registered host name.

With these settings and so on, how does Mercury hear the php commands?

No idea what you are talking about, it does not do any sort of PHP.  You really need to read through the mercury/32 manual, many of these questions are handled pretty well in the manual.

 

[/quote]
[quote user=&quot;horseatingweeds&quot;]&lt;blockquote&gt;&lt;p&gt;I don&#039;t remember a port setting input in the set-up system. Is there a settings file in the root of the program for these setting? What&#039;s its name?&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;MercuryB is the protocol and there is a port setting in Configuration | MercuryB &lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;&amp;nbsp;Also, by listing my internet address, is this referring to the IP address the set-up asks for - and if so what should I do with this setting? What does anti-relaying do?&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;Not sure what you mean here.&amp;nbsp; If you are receiving the mail via MercuryD (POP3) then the &quot;Internet name for this system&quot; can be the IP address in []. If receiving the mail via MercuryS (SMTP) then this should be your registered host name. &lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;With these settings and so on, how does Mercury hear the php commands? &lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;No idea what you are talking about, it does not do any sort of PHP.&amp;nbsp; You really need to read through the mercury/32 manual, many of these questions are handled pretty well in the manual. &lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/blockquote&gt;[/quote]

I've looked for the manual. The Manuals button on the main site brings me to Licensing for Pegasus and Mercury page.

 Regardless of the details, can you answer this question. I'm not even sure if Mercury is what I'm looking for. I can't find anything giving me an answer to this.

 All I'm looking for is basic mail functionality for a test environment for php systems that make use of email. I'll never use this program to send email to anyone except for myself. Right now I have the basic web server setup - Apache, php, mysql. When I run an php application that makes use of php's mail() functions, I get errors - of course - because I don't have a smtp server. Is Mercury what I'm looking for and what modules do I need?
 

&lt;p&gt;I&#039;ve looked for the manual. The Manuals button on the main site brings me to Licensing for Pegasus and Mercury page. &lt;/p&gt;&lt;p&gt;&amp;nbsp;Regardless of the details, can you answer this question. I&#039;m not even sure if Mercury is what I&#039;m looking for. I can&#039;t find anything giving me an answer to this.&lt;/p&gt;&lt;p&gt;&amp;nbsp;All I&#039;m looking for is basic mail functionality for a test environment for php systems that make use of email. I&#039;ll never use this program to send email to anyone except for myself. Right now I have the basic web server setup - Apache, php, mysql. When I run an php application that makes use of php&#039;s mail() functions, I get errors - of course - because I don&#039;t have a smtp server. Is Mercury what I&#039;m looking for and what modules do I need? &amp;nbsp;&lt;/p&gt;

[quote user="horseatingweeds"]

I've looked for the manual. The Manuals button on the main site brings me to Licensing for Pegasus and Mercury page.

The http://www.pmail.com downloads page wiill allow you to download the Mercury/32 manual set in PDF format, for v4.01 (note - manuals

are included as part of

the v4.52 release archive, and do not need

to be  downloaded separately)

 Regardless of the details, can you answer this question. I'm not even sure if Mercury is what I'm looking for. I can't find anything giving me an answer to this.

 All I'm looking for is basic mail functionality for a test environment for php systems that make use of email. I'll never use this program to send email to anyone except for myself. Right now I have the basic web server setup - Apache, php, mysql. When I run an php application that makes use of php's mail() functions, I get errors - of course - because I don't have a smtp server. Is Mercury what I'm looking for and what modules do I need?
Yes, Mercury/32 is a SMTP host and can be used to both send and receive mail.  By default MercuryS receives mail on port 25 and MercuryC or MercuryE can send mail on port 25 as well.  FWIW, it you are going to be using this to test PHP mail application you really should be sending mail to and and from an outside account as well.

 

[/quote]
[quote user=&quot;horseatingweeds&quot;]&lt;blockquote&gt;&lt;p&gt;I&#039;ve looked for the manual. The Manuals button on the main site brings me to Licensing for Pegasus and Mercury page.&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;The http://www.pmail.com downloads page wiill allow you to download the Mercury/32 manual set in PDF format, for v4.01 (note - manuals are included as part of the v4.52 release archive, and do not need to be&amp;nbsp; downloaded separately) &lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;&amp;nbsp;Regardless of the details, can you answer this question. I&#039;m not even sure if Mercury is what I&#039;m looking for. I can&#039;t find anything giving me an answer to this.&lt;/p&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&amp;nbsp;All I&#039;m looking for is basic mail functionality for a test environment for php systems that make use of email. I&#039;ll never use this program to send email to anyone except for myself. Right now I have the basic web server setup - Apache, php, mysql. When I run an php application that makes use of php&#039;s mail() functions, I get errors - of course - because I don&#039;t have a smtp server. Is Mercury what I&#039;m looking for and what modules do I need?&lt;/blockquote&gt;Yes, Mercury/32 is a SMTP host and can be used to both send and receive mail.&amp;nbsp; By default MercuryS receives mail on port 25 and MercuryC or MercuryE can send mail on port 25 as well.&amp;nbsp; FWIW, it you are going to be using this to test PHP mail application you really should be sending mail to and and from an outside account as well.&lt;p&gt;&amp;nbsp;&lt;/p&gt;[/quote]

Yes Mercury is excellent for a test environment. Just use the modules MercuryS and MercuryP, to receive and then fetch the PHP-generated emails.

Yes Mercury is excellent for a test environment. Just use the modules MercuryS and MercuryP, to receive and then fetch the PHP-generated emails.

No need to trash.

Just close the modules u don't need.

Mercury.Ini section [Protocols], just remark by setting a # in front of  the modules you're not interested in.

 

&lt;P&gt;No need to trash.&lt;/P&gt; &lt;P&gt;Just close the modules u don&#039;t need.&lt;/P&gt; &lt;P&gt;Mercury.Ini section [Protocols], just remark by setting a # in front of&amp;nbsp; the modules you&#039;re not interested in.&lt;/P&gt; &lt;P mce_keep=&quot;true&quot;&gt;&amp;nbsp;&lt;/P&gt;

Ok - I've commented out the unneeded modules.

This is odd though. I'm getting an error saying that getmxrr() is an undefined function. This is a php function. As a test just to see if the smtp is working I removed getmxrr() from the script - then got this error:

Warning: mail() [function.mail]: SMTP server response: 550 5.7.1 Unable to relay for this@that.com in C:\Apache2.0\Apache2\htdocs\gentledoberman\scripts\contact2.php on line 92

 So, I guess something is not set up right. I don't see anything in the documentation that I would understand to fix this. Is this a port issue or possibly something with the IP. I used the IP or the web server - should this be localhost? The SMTP module in on port 25 and in the php.ini the smtp_port is also set to 25. Also in php.ini SMTP is set to localhost. It seems like there should be some setting connecting php to this. I don't see anything connecting php to Mercury.

Is there a php extension I need to enable??
 

&lt;p&gt;Ok - I&#039;ve commented out the unneeded modules. &lt;/p&gt;&lt;p&gt;This is odd though. I&#039;m getting an error saying that getmxrr() is an undefined function. This is a php function. As a test just to see if the smtp is working I removed getmxrr() from the script - then got this error: &lt;/p&gt;&lt;p&gt;&lt;b&gt;Warning&lt;/b&gt;: mail() [&lt;a href=&quot;http://localhost/gentledoberman/scripts/function.mail&quot; mce_href=&quot;http://localhost/gentledoberman/scripts/function.mail&quot;&gt;function.mail&lt;/a&gt;]: SMTP server response: 550 5.7.1 Unable to relay for this@that.com in &lt;b&gt;C:\Apache2.0\Apache2\htdocs\gentledoberman\scripts\contact2.php&lt;/b&gt; on line &lt;b&gt;92&lt;/b&gt; &lt;/p&gt;&lt;p&gt;&amp;nbsp;So, I guess something is not set up right. I don&#039;t see anything in the documentation that I would understand to fix this. Is this a port issue or possibly something with the IP. I used the IP or the web server - should this be localhost? The SMTP module in on port 25 and in the php.ini the smtp_port is also set to 25. Also in php.ini SMTP is set to localhost. It seems like there should be some setting connecting php to this. I don&#039;t see anything connecting php to Mercury. &lt;/p&gt;&lt;p&gt;Is there a php extension I need to enable?? &amp;nbsp;&lt;/p&gt;

That does not look like a Mercury response.

It would seem your script is connecting (successfully) to another SMTP server which is (correctly) refusing your relay attempt.

This would mean that your script is working, but pointing to the wrong address. 

A bit more info about your setup would help to solve the problem.

Where is your webserver? Where is your Mercury? What is your network setup?

 

&lt;p&gt;That does not look like a Mercury response.&lt;/p&gt;&lt;p&gt;It would seem your script is connecting (successfully) to another SMTP server which is (correctly) refusing your relay attempt.&lt;/p&gt;&lt;p&gt;This would mean that your script is working, but pointing to the wrong address.&amp;nbsp;&lt;/p&gt;&lt;p&gt;A bit more info about your setup would help to solve the problem.&lt;/p&gt;&lt;p&gt;Where is your webserver? Where is your Mercury? What is your network setup?&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;

My server is at C:/Apache2.0/Apache. Mercury is at C:/mail/Mercury

I have no network. This is just my work station which serves as a test environment for developing php applications.  I've been putting off loading an SMTP because nothing I have developed so far makes much use of php's mail functions - just basic mail forms I can easily shake out here and send to the remote server to test the email output. Now I'm learning how to do some much more complicated stuff using php Zend framework utilizing Model View Control design pattern. This just means that the variety of email functions are dependent on other scripts to plopping something on the remote server would be a bit byte pain in the rump.  I hate putting anything up before it's finished too - security holes and all.

 

&lt;p&gt;My server is at C:/Apache2.0/Apache. Mercury is at C:/mail/Mercury&lt;/p&gt;&lt;p&gt;I have no network. This is just my work station which serves as a test environment for developing php applications.&amp;nbsp; I&#039;ve been putting off loading an SMTP because nothing I have developed so far makes much use of php&#039;s mail functions - just basic mail forms I can easily shake out here and send to the remote server to test the email output. Now I&#039;m learning how to do some much more complicated stuff using php Zend framework utilizing Model View Control design pattern. This just means that the variety of email functions are dependent on other scripts to plopping something on the remote server would be a bit byte pain in the rump.&amp;nbsp; I hate putting anything up before it&#039;s finished too - security holes and all. &lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;

[quote user="horseatingweeds"]

My server is at C:/Apache2.0/Apache. Mercury is at C:/mail/Mercury

[/quote]

Where they are in your file system is irrelevent.

What network interface / ip address the applications are listening on is relevent. (i.e. 127.0.0.1, 10.0...., 192.168.....)

[quote]

I have no network.

[/quote]

Yes you do [:)]

How do you connect to the internet? Are you behind a router, and have a local ip address like 10.0.... or 192.168.....


[quote user=&quot;horseatingweeds&quot;]&lt;p&gt;My server is at C:/Apache2.0/Apache. Mercury is at C:/mail/Mercury&lt;/p&gt;&lt;p&gt;[/quote]&lt;/p&gt;&lt;p&gt;Where they are in your file system is irrelevent.&lt;/p&gt;&lt;p&gt;What network interface / ip address the applications are listening on &lt;b&gt;is&lt;/b&gt; relevent. (i.e. 127.0.0.1, 10.0...., 192.168.....) &lt;/p&gt;&lt;p&gt;[quote]&lt;/p&gt;&lt;p&gt;I have no network.&lt;/p&gt;&lt;p&gt;[/quote]&lt;/p&gt;&lt;p&gt;Yes you do [:)] &lt;/p&gt;&lt;p&gt;How do you connect to the internet? Are you behind a router, and have a local ip address like 10.0.... or 192.168.....&lt;/p&gt;

Ok, I used my IP (67.149......) address for setting up Mercury and it's on a single work station connected right to a broadband modem.  Here is what I have for the MERCURY.INI

 [General]
myname:      67.149......  # Canonical name for this server
timezone:    +0000         # Time Zone to add to date fields
file_api:    1                    # Use the file api instead of queues
mailqueue:   C:\mail\MERCURY\QUEUE   # Where mail should be put for delivery
smtpqueue:   C:\mail\MERCURY\QUEUE   # Where the SMTP client should look for mail
newmail_path: C:\mail\MERCURY\MAIL\~N

[Protocols]
C:\mail\MERCURY\mercurys.dll
#C:\mail\MERCURY\mercurye.dll
C:\mail\MERCURY\mercuryp.dll
#C:\mail\MERCURY\mercuryd.dll
#C:\mail\MERCURY\mercuryx.dll
#C:\mail\MERCURY\mercuryf.dll
#C:\mail\MERCURY\mercuryh.dll
#C:\mail\MERCURY\mercuryw.dll
#C:\mail\MERCURY\mercuryi.dll


[Mercury]
failfile:     C:\mail\MERCURY\Mercury\FAILURE.MER  # Delivery failure notification template
confirmfile:  C:\mail\MERCURY\Mercury\CONFIRM.MER  # Delivery confirmation template
aliasfile:    C:\mail\MERCURY\Mercury\ALIAS.MER    # System-wide alias file
synfile:      C:\mail\MERCURY\Mercury\SYNONYM.MER  # User synonym database
listfile:     C:\mail\MERCURY\Mercury\LISTS.MER    # List of lists
# logfile:      C:\mail\MERCURY\Logs\MERCURY.LOG  # Traffic logging file
bitnethost:   cunyvm.cuny.edu      # Relay host for ".bitnet" rewrites
poll:         10                   # Seconds between queue polling cycles
scratch:      C:\mail\MERCURY\Scratch   # Where we can write temp files
returnlines:  15                   # How many lines of failed messages to return
postmaster:   Admin   # Local user who acts as postmaster
broadcast:    1                    # Yes, we want broadcast notifications, but
receipts:     0                    # ... no broadcasts for receipt confirmations
PM_notify:    1                    # Do/Don't send errors to the postmaster
change_owner: 1                    # Change message ownership to recipient
# noticeboards: SYS:PUBLIC/NB        # Where to find Pegasus Mail noticeboards
auto_tzone:   1                    # If NZ, obtain timezone information from OS

[MercuryS]
Debug : 1
Logfile : C:\mail\MERCURY\Logs\MERCURYS.LOG
Timeout : 30
Relay : 0
Strict_Relay : 0
Allow_Illegals : 0
SMTP_Authentication : 0
Compliance_Settings : 0
Maximum_Failed_Rcpts : 4
Max_Relay_Attempts : 4
SSL_Mode : 0
ST_Blacklisting : 288
No_VRFY : 0
SMTP_ConnFlags : 0

[MercuryP]
Scratch : C:\mail\MERCURY\Mercury
Stack : 32768
Mark_Read : 1
SSL_Mode : 0
Login_Disabled : 0
UIDL_nul_list : 1
Timeout : 60
 

Here is what I figure might be applicable in the php.ini

[mail function]
; For Win32 only.
SMTP = localhost
smtp_port = 25

; For Win32 only.
sendmail_from = me@example.com

I tried replacing 67.149...... with local host - that didn't seem to help.

&lt;p&gt;&lt;b&gt;Ok, I used my IP (67.149......) address for setting up Mercury and it&#039;s on a single work station connected right to a broadband modem.&amp;nbsp; Here is what I have for the MERCURY.INI&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;[General] myname:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 67.149......&amp;nbsp; # Canonical name for this server timezone:&amp;nbsp;&amp;nbsp;&amp;nbsp; +0000&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # Time Zone to add to date fields file_api:&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # Use the file api instead of queues mailqueue:&amp;nbsp;&amp;nbsp; C:\mail\MERCURY\QUEUE&amp;nbsp;&amp;nbsp; # Where mail should be put for delivery smtpqueue:&amp;nbsp;&amp;nbsp; C:\mail\MERCURY\QUEUE&amp;nbsp;&amp;nbsp; # Where the SMTP client should look for mail newmail_path: C:\mail\MERCURY\MAIL\~N [Protocols] C:\mail\MERCURY\mercurys.dll #C:\mail\MERCURY\mercurye.dll C:\mail\MERCURY\mercuryp.dll #C:\mail\MERCURY\mercuryd.dll #C:\mail\MERCURY\mercuryx.dll #C:\mail\MERCURY\mercuryf.dll #C:\mail\MERCURY\mercuryh.dll #C:\mail\MERCURY\mercuryw.dll #C:\mail\MERCURY\mercuryi.dll [Mercury] failfile:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; C:\mail\MERCURY\Mercury\FAILURE.MER&amp;nbsp; # Delivery failure notification template confirmfile:&amp;nbsp; C:\mail\MERCURY\Mercury\CONFIRM.MER&amp;nbsp; # Delivery confirmation template aliasfile:&amp;nbsp;&amp;nbsp;&amp;nbsp; C:\mail\MERCURY\Mercury\ALIAS.MER&amp;nbsp;&amp;nbsp;&amp;nbsp; # System-wide alias file synfile:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; C:\mail\MERCURY\Mercury\SYNONYM.MER&amp;nbsp; # User synonym database listfile:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; C:\mail\MERCURY\Mercury\LISTS.MER&amp;nbsp;&amp;nbsp;&amp;nbsp; # List of lists # logfile:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; C:\mail\MERCURY\Logs\MERCURY.LOG&amp;nbsp; # Traffic logging file bitnethost:&amp;nbsp;&amp;nbsp; cunyvm.cuny.edu&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # Relay host for &quot;.bitnet&quot; rewrites poll:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 10&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # Seconds between queue polling cycles scratch:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; C:\mail\MERCURY\Scratch&amp;nbsp;&amp;nbsp; # Where we can write temp files returnlines:&amp;nbsp; 15&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # How many lines of failed messages to return postmaster:&amp;nbsp;&amp;nbsp; Admin&amp;nbsp;&amp;nbsp; # Local user who acts as postmaster broadcast:&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # Yes, we want broadcast notifications, but receipts:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # ... no broadcasts for receipt confirmations PM_notify:&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # Do/Don&#039;t send errors to the postmaster change_owner: 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # Change message ownership to recipient # noticeboards: SYS:PUBLIC/NB&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # Where to find Pegasus Mail noticeboards auto_tzone:&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # If NZ, obtain timezone information from OS&lt;/p&gt;&lt;p&gt;[MercuryS] Debug : 1 Logfile : C:\mail\MERCURY\Logs\MERCURYS.LOG Timeout : 30 Relay : 0 Strict_Relay : 0 Allow_Illegals : 0 SMTP_Authentication : 0 Compliance_Settings : 0 Maximum_Failed_Rcpts : 4 Max_Relay_Attempts : 4 SSL_Mode : 0 ST_Blacklisting : 288 No_VRFY : 0 SMTP_ConnFlags : 0 [MercuryP] Scratch : C:\mail\MERCURY\Mercury Stack : 32768 Mark_Read : 1 SSL_Mode : 0 Login_Disabled : 0 UIDL_nul_list : 1 Timeout : 60 &amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;b&gt;Here is what I figure might be applicable in the php.ini&lt;/b&gt;&lt;/p&gt;&lt;p&gt;[mail function] ; For Win32 only. SMTP = localhost smtp_port = 25 ; For Win32 only. sendmail_from = me@example.com &lt;/p&gt;&lt;p&gt;&lt;b&gt;I tried replacing 67.149...... with local host - that didn&#039;t seem to help.&lt;/b&gt; &lt;/p&gt;

[quote user="horseatingweeds"]

Ok, I used my IP (67.149......) address for setting up Mercury and it's on a single work station connected right to a broadband modem.  Here is what I have for the MERCURY.INI

[/quote]

You are directly connected to the internet with a PUBLIC IP ADDRESS. This is a very bad idea for a test machine with partly configured and open services running! Get yourself a firewall and make sure you know how it works or else unplug your system from the net.

You should set all your test servers (mail, web, whatever else) to listen ONLY on 127.0.0.1 

[quote] 

 [General]
myname:      67.149......  # Canonical name for this server
[/quote]

This should be a name (in your case any name is OK, but probably "localhost" is best to work with your php script)

This is the domain name of your mail server (i.e user@thisname) 

[quote]

Here is what I figure might be applicable in the php.ini

[mail function]
; For Win32 only.
SMTP = localhost
smtp_port = 25

; For Win32 only.
sendmail_from = me@example.com

I tried replacing 67.149...... with local host - that didn't seem to help.

[/quote]

set SMTP=127.0.0.1

and sendmail_from=webserver@localhost (so you know where it is coming from [:)])

 

[quote user=&quot;horseatingweeds&quot;]&lt;p&gt;&lt;b&gt;Ok, I used my IP (67.149......) address for setting up Mercury and it&#039;s on a single work station connected right to a broadband modem.&amp;nbsp; Here is what I have for the MERCURY.INI&lt;/b&gt;&lt;/p&gt;&lt;p&gt;[/quote]&lt;/p&gt;&lt;p&gt;You are directly connected to the internet with a &lt;b&gt;PUBLIC IP ADDRESS&lt;/b&gt;. This is a &lt;b&gt;very bad&lt;/b&gt; idea for a test machine with partly configured and open services running! Get yourself a firewall and make sure you know how it works or else unplug your system from the net.&lt;/p&gt;&lt;p&gt;You should set all your test servers (mail, web, whatever else) to listen &lt;b&gt;ONLY on 127.0.0.1&lt;/b&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;[quote]&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;[General] myname:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 67.149......&amp;nbsp; # Canonical name for this server [/quote]&lt;/p&gt;&lt;p&gt;This should be a name (in your case &lt;b&gt;any&lt;/b&gt; name is OK, but probably &quot;localhost&quot; is best to work with your php script)&lt;/p&gt;&lt;p&gt;This is the domain name of your mail server (i.e user@thisname)&amp;nbsp;&lt;/p&gt;&lt;p&gt;[quote]&lt;/p&gt;&lt;p&gt;&lt;b&gt;Here is what I figure might be applicable in the php.ini&lt;/b&gt;&lt;/p&gt;&lt;p&gt;[mail function] ; For Win32 only. SMTP = localhost smtp_port = 25 ; For Win32 only. sendmail_from = me@example.com &lt;/p&gt;&lt;p&gt;&lt;b&gt;I tried replacing 67.149...... with local host - that didn&#039;t seem to help.&lt;/b&gt; &lt;/p&gt;&lt;p&gt;[/quote]&lt;/p&gt;&lt;p&gt;set SMTP=127.0.0.1&lt;/p&gt;&lt;p&gt;and sendmail_from=webserver@localhost (so you know where it is coming from [:)]) &lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;

[quote user="dilberts_left_nut"]

You are directly connected to the internet with a PUBLIC IP ADDRESS. This is a very bad idea for a test machine with partly configured and open services running! Get yourself a firewall and make sure you know how it works or else unplug your system from the net.

[/quote]

Ok, I was thinking about that the other day. I have the firewall on Win and a McAffee firewall, but does this mean i need something else for the server. Any suggestions? 

[quote user="dilberts_left_nut"]

You should set all your test servers (mail, web, whatever else) to listen ONLY on 127.0.0.1 

[/quote]

By 127.0.0.1 do you mean my IP address? I've been using localhost for

everything. I might be confused. Do you mean instead of using localhost

for Apache, php, and mysql I should us the IP address?

[quote user="dilberts_left_nut"][quote] 

 [General]
myname:      67.149......  # Canonical name for this server
[/quote]

This should be a name (in your case any name is OK, but probably "localhost" is best to work with your php script)

This is the domain name of your mail server (i.e user@thisname) 

[/quote]

So myname should be something like root@localhost? I'm confused about when to use localhost or the IP.

I've tried this:

MERCURY.INI 

[General]
myname:      localhost

php.ini

[mail function]
; For Win32 only.
SMTP = 67.149.35.254
smtp_port = 25

; For Win32 only.
sendmail_from = webserver@localhost.com

I'm not getting the error saying getmxrr() is not a function anymore. However  I still get a mail error:

Warning: mail() [function.mail]: SMTP server response: 553 We do not relay non-local mail, sorry. in C:\Apache2.0\Apache2\htdocs\gentledoberman\scripts\contact2.php on line 92

[quote user=&quot;dilberts_left_nut&quot;]&lt;p&gt;You are directly connected to the internet with a &lt;b&gt;PUBLIC IP ADDRESS&lt;/b&gt;. This is a &lt;b&gt;very bad&lt;/b&gt; idea for a test machine with partly configured and open services running! Get yourself a firewall and make sure you know how it works or else unplug your system from the net.&lt;/p&gt;&lt;p&gt;[/quote]&lt;/p&gt;&lt;p&gt;Ok, I was thinking about that the other day. I have the firewall on Win and a McAffee firewall, but does this mean i need something else for the server. Any suggestions?&amp;nbsp;&lt;/p&gt;&lt;p&gt;[quote user=&quot;dilberts_left_nut&quot;] &lt;/p&gt;&lt;p&gt;You should set all your test servers (mail, web, whatever else) to listen &lt;b&gt;ONLY on 127.0.0.1&lt;/b&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;[/quote]&lt;/p&gt;&lt;p&gt;By 127.0.0.1 do you mean my IP address? I&#039;ve been using localhost for everything. I might be confused. Do you mean instead of using localhost for Apache, php, and mysql I should us the IP address? &lt;/p&gt;&lt;p&gt;[quote user=&quot;dilberts_left_nut&quot;][quote]&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;[General] myname:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 67.149......&amp;nbsp; # Canonical name for this server [/quote]&lt;/p&gt;&lt;p&gt;This should be a name (in your case &lt;b&gt;any&lt;/b&gt; name is OK, but probably &quot;localhost&quot; is best to work with your php script)&lt;/p&gt;&lt;p&gt;This is the domain name of your mail server (i.e user@thisname)&amp;nbsp;&lt;/p&gt;&lt;p&gt;[/quote]&lt;/p&gt;&lt;p&gt;So myname should be something like root@localhost? I&#039;m confused about when to use localhost or the IP. &lt;/p&gt;&lt;p&gt;I&#039;ve tried this:&lt;/p&gt;&lt;p&gt;MERCURY.INI&amp;nbsp;&lt;/p&gt;&lt;p&gt;[General] myname:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; localhost &lt;/p&gt;&lt;p&gt;php.ini&lt;/p&gt;&lt;p&gt;[mail function] ; For Win32 only. SMTP = 67.149.35.254 smtp_port = 25 ; For Win32 only. sendmail_from = webserver@localhost.com&lt;/p&gt;&lt;p&gt;I&#039;m not getting the error saying getmxrr() is not a function anymore. However&amp;nbsp; I still get a mail error:&lt;/p&gt;&lt;p&gt;&lt;b&gt;Warning&lt;/b&gt;: mail() [&lt;a href=&quot;http://localhost/gentledoberman/scripts/function.mail&quot; mce_href=&quot;http://localhost/gentledoberman/scripts/function.mail&quot;&gt;function.mail&lt;/a&gt;]: SMTP server response: 553 We do not relay non-local mail, sorry. in &lt;b&gt;C:\Apache2.0\Apache2\htdocs\gentledoberman\scripts\contact2.php&lt;/b&gt; on line &lt;b&gt;92&lt;/b&gt; &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