Community Discussions and Support
Drupal on XAMPP w/ Mercury Mail unable to send mails

[quote user="FeralReason"]

I am trying to set up a local environment using XAMPP on Windows XP to test PHP scripts. I try filling out a feedback form and then forwarding the contents through a PHP script. Whether the receiving address is (for example) johndoe@localhost.com or johndoe@aol.com makes no difference. The mail does not show up in the johndoe account in Pegasus or in the johndoe@aol.com account.

 Any suggestions ? Thanx !

[/quote]

Check Mercury logs (or console windows) to find out what is happening. The MercuryS log should show the messages being recieved from PHP, the core log should show the delivery to the local mailbox, and the MercuryE / MercuryC log (depending on what module you use for external delivery) should show the aol.com delivery.

Before doing anything else, please make sure that the local domains section in core configuration is OK (have a look at the help text for it).

/Rolf  

[quote user="FeralReason"]<p><span class="Apple-style-span" style="font-family: 'Times New Roman'; font-size: 16px; ">I am trying to set up a local environment using XAMPP on Windows XP to test PHP scripts. I try filling out a feedback form and then forwarding the contents through a PHP script. Whether the receiving address is (for example) <a mce_href="mailto:johndoe@localhost.com" href="mailto:johndoe@localhost.com">johndoe@localhost.com</a> or <a mce_href="mailto:johndoe@aol.com" href="mailto:johndoe@aol.com">johndoe@aol.com</a> makes no difference. The mail does not show up in the johndoe account in Pegasus or in the <a mce_href="mailto:johndoe@aol.com" href="mailto:johndoe@aol.com">johndoe@aol.com</a> account.</span> </p><p><span style="FONT-FAMILY: 'Times New Roman'; FONT-SIZE: 12pt; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA"> Any suggestions ? Thanx !</span></p><p>[/quote]</p><p>Check Mercury logs (or console windows) to find out what is happening. The MercuryS log should show the messages being recieved from PHP, the core log should show the delivery to the local mailbox, and the MercuryE / MercuryC log (depending on what module you use for external delivery) should show the aol.com delivery.</p><p>Before doing anything else, please make sure that the local domains section in core configuration is OK (have a look at the help text for it).</p><p>/Rolf  </p>

Hi

I am getting this error:

553 We do not relay non-local mail, sorry.

when I try to send email from my Drupal 5.7 web site installed under XAMPP, with Mercury 4.52. I also get

 Could someone pleaase help, or at least explain what it means? I am trying to send an email from my Windows laptop to my email at my ISP. First I tried sending to aenchevich@shaw.ca which is my correct address. Then, after looking at the Mercury SMTP Client window I noticed that it says "resolution error resolving shaw.ca" , so I gave it my mailserver names next time (aenchevich@shawmail.wp.shawcable.net, where shawmail.wp.shawcable.net is what I enter in my Outlook as the SMTP and POP3 server names), both didn't work:

========================= 

Mercury/32 Transport System, Full SMTP Client Module v4.52,
Copyright (c) 1993-2007, David Harris, All Rights Reserved.

This product includes software developed by the University
of California, Berkeley and its contributors. Portions of this
program are copyright (c) 1999-2001, MurkWorks Inc,
http://www.murkworks.com

Current name service information:
Hosts file : C:\WINDOWS\System32\drivers\etc\hosts
Domain :

23:01:35: processing job MO000003
Temporary error 249 (temporary MX resolution error) resolving 'shaw.ca'.
23:03:27: processing job MO000005
Temporary error 249 (temporary MX resolution error) resolving 'shawmail.wp.shawc

========================= 

Below is the the error message from the Core component

=========================

Mercury Mail Transport System v4.52,
Copyright (c) 1993-2007, David Harris, All Rights Reserved
Web: http://www.pmail.com, E-mail: support@pmail.gen.nz

22:36:13: Mercury MTS Core processing thread running.

23:01:20: Job MG000002:  from postmaster@localhost (local)
   To: aenchevich@shaw.ca (non-local) (Job MO000003) -OK
23:03:21: Job MG000004:  from postmaster@localhost (local)
   To: aenchevich@shawmail.wp.shawcable.net (non-local) (Job MO000005) -OK

=========================

... and from the SMTP server:

=========================

Connection from 127.0.0.1, Thu Mar 13 22:37:39 2008
HELO aspire
MAIL FROM:<info@localhost>
RCPT TO:<ilistentojack@shaw.ca>
Relay attempt: from <info@localhost> to <ilistentojack@shaw.ca>.
553 We do not relay non-local mail, sorry.
QUIT
1 sec. elapsed, connection closed Thu Mar 13 22:37:40 2008

=========================


Thanks for your help 

Hi &lt;p&gt;I am getting this error: &lt;/p&gt;&lt;p&gt;553 We do not relay non-local mail, sorry. &lt;/p&gt;&lt;p&gt;when I try to send email from my Drupal 5.7 web site installed under XAMPP, with Mercury 4.52. I also get &lt;/p&gt;&lt;p&gt;&amp;nbsp;Could someone pleaase help, or at least explain what it means? I am trying to send an email from my Windows laptop to my email at my ISP. First I tried sending to aenchevich@shaw.ca which is my correct address. Then, after looking at the Mercury SMTP Client window I noticed that it says &quot;resolution error resolving shaw.ca&quot; , so I gave it my mailserver names next time (aenchevich@shawmail.wp.shawcable.net, where shawmail.wp.shawcable.net is what I enter in my Outlook as the SMTP and POP3 server names), both didn&#039;t work:&lt;/p&gt;&lt;p&gt;=========================&amp;nbsp;&lt;/p&gt;&lt;p&gt;Mercury/32 Transport System, Full SMTP Client Module v4.52, Copyright (c) 1993-2007, David Harris, All Rights Reserved. This product includes software developed by the University of California, Berkeley and its contributors. Portions of this program are copyright (c) 1999-2001, MurkWorks Inc, http://www.murkworks.com Current name service information: Hosts file : C:\WINDOWS\System32\drivers\etc\hosts Domain :  23:01:35: processing job MO000003 Temporary error 249 (temporary MX resolution error) resolving &#039;shaw.ca&#039;. 23:03:27: processing job MO000005 Temporary error 249 (temporary MX resolution error) resolving &#039;shawmail.wp.shawc &lt;/p&gt;&lt;p&gt;=========================&amp;nbsp;&lt;/p&gt;&lt;p&gt;Below is the the error message from the Core component &lt;/p&gt;&lt;p&gt;=========================&lt;/p&gt;&lt;p&gt;Mercury Mail Transport System v4.52, Copyright (c) 1993-2007, David Harris, All Rights Reserved Web: http://www.pmail.com, E-mail: support@pmail.gen.nz 22:36:13: Mercury MTS Core processing thread running. 23:01:20: Job MG000002:&amp;nbsp; from postmaster@localhost (local) &amp;nbsp;&amp;nbsp; To: aenchevich@shaw.ca (non-local) (Job MO000003) -OK 23:03:21: Job MG000004:&amp;nbsp; from postmaster@localhost (local) &amp;nbsp;&amp;nbsp; To: aenchevich@shawmail.wp.shawcable.net (non-local) (Job MO000005) -OK &lt;/p&gt;&lt;p&gt;========================= &lt;/p&gt;&lt;p&gt;... and from the SMTP server: &lt;/p&gt; &lt;p&gt;========================= Connection from 127.0.0.1, Thu Mar 13 22:37:39 2008 HELO aspire MAIL FROM:&amp;lt;info@localhost&amp;gt; RCPT TO:&amp;lt;ilistentojack@shaw.ca&amp;gt; Relay attempt: from &amp;lt;info@localhost&amp;gt; to &amp;lt;ilistentojack@shaw.ca&amp;gt;. 553 We do not relay non-local mail, sorry. QUIT 1 sec. elapsed, connection closed Thu Mar 13 22:37:40 2008 ========================= &lt;/p&gt;&lt;p&gt;Thanks for your help&amp;nbsp;&lt;/p&gt;

>
> Hi
> I am getting this error:
>
> 553 We do not relay non-local mail, sorry.
>
> when I try to send email from my Drupal 5.7 web site installed under
> XAMPP, with Mercury 4.52. I also get
>
>  Could someone pleaase help, or at least explain what it means? I am
> trying to send an email from my Windows laptop to my email at my ISP.
> First I tried sending to aenchevich@shaw.ca which is my correct
> address. Then, after looking at the Mercury SMTP Client window I
> noticed that it says "resolution error resolving shaw.ca" , so I gave
> it my mailserver names next time (aenchevich@shawmail.wp.shawcable.net,
> where shawmail.wp.shawcable.net is what I enter in my Outlook as the
> SMTP and POP3 server names), both didn't work:

David Harris has implemented ESMTP AUTH CRAM-MD5 for WinPMail, Mercury and Mercury/32.  They do a SMTP authentication in accordance with RFCs 2554 and 2195.  Mercury and Mercury/32 also do the LOGIN and the strange MS AUTH=LOGIN.

Looks like you have properly turned off relaying in the SMTP setup but have you setup your mailer to do the authorization?  You can also authorize specific IP addresses to bypass the authorization requirement under connection control.

&amp;gt; &amp;gt; Hi &amp;gt; I am getting this error: &amp;gt; &amp;gt; 553 We do not relay non-local mail, sorry. &amp;gt; &amp;gt; when I try to send email from my Drupal 5.7 web site installed under &amp;gt; XAMPP, with Mercury 4.52. I also get &amp;gt; &amp;gt; &amp;nbsp;Could someone pleaase help, or at least explain what it means? I am &amp;gt; trying to send an email from my Windows laptop to my email at my ISP. &amp;gt; First I tried sending to aenchevich@shaw.ca which is my correct &amp;gt; address. Then, after looking at the Mercury SMTP Client window I &amp;gt; noticed that it says &quot;resolution error resolving shaw.ca&quot; , so I gave &amp;gt; it my mailserver names next time (aenchevich@shawmail.wp.shawcable.net, &amp;gt; where shawmail.wp.shawcable.net is what I enter in my Outlook as the &amp;gt; SMTP and POP3 server names), both didn&#039;t work: David Harris has implemented ESMTP AUTH CRAM-MD5 for WinPMail, Mercury and Mercury/32.&amp;nbsp; They do a SMTP authentication in accordance with RFCs 2554 and 2195.&amp;nbsp; Mercury and Mercury/32 also do the LOGIN and the strange MS AUTH=LOGIN. Looks like you have properly turned off relaying in the SMTP setup but have you setup your mailer to do the authorization?&amp;nbsp; You can also authorize specific IP addresses to bypass the authorization requirement under connection control.

There was a similar problem with XAMPP in this thread. You should probably enter your DNS servers in the SMTP client configuration, and you may possibly need to download Mercury separately.

/Rolf 


&lt;p&gt;There was a similar problem with XAMPP in &lt;a href=&quot;/forums/thread/7444.aspx&quot; target=&quot;_blank&quot; mce_href=&quot;/forums/thread/7444.aspx&quot;&gt;this thread&lt;/a&gt;. You should probably enter your DNS servers in the SMTP client configuration, and you may possibly need to download Mercury separately.&lt;/p&gt;&lt;p&gt;/Rolf&amp;nbsp;&lt;/p&gt;&lt;p&gt; &lt;/p&gt;

Thomas, thanks for the reply

Unfortunately I have absolutely no clue what all this means. All I wanted to do is have a local XAMPP environment and be able to work on my web-development projects locally and I was hoping installing XAMPP would take care of all this for me.

I tried to follow the advice both of you gave me in your replies, also read the other quoted thread and here's what I did:

- Added my DNS server as suggested to the MercuryE configuration and verified that it is in the ini file.

- Added my local network IP addresses as a range in the MercuryS configuration panel, in the Connection Control Tab.

after doing this I no longer get the above error from Drupal.

However I don't get the e-mails that it sends either. I also tried sending directly from Mercury (File->Send mail messsage) which also didn't work. No errors but no mails either...

I will next try getting a fresh version of Mercury from pmail.com, as suggested and report here if that solves the problem. However I am not entirely sure how this new Mercury installation should co-exist with my existing one that came with XAMPP? Should I delete the old one and copy the new one in its place? Leave the old one intact, install the new one in a diff location?

thanks...

&lt;P&gt;Thomas, thanks for the reply&lt;/P&gt; &lt;P&gt;Unfortunately I have absolutely no clue what all this means. All I wanted to do is have a local XAMPP environment and be able to work on my web-development projects locally and I was hoping installing XAMPP would take care of all this for me.&lt;/P&gt; &lt;P&gt;I tried to follow the advice both of you gave me in your replies, also read the other quoted thread and here&#039;s what I did:&lt;/P&gt; &lt;P&gt;- Added my DNS server as suggested to the MercuryE configuration and verified that it is in the ini file.&lt;/P&gt; &lt;P&gt;- Added my local network IP addresses as a range&amp;nbsp;in the MercuryS configuration panel, in the Connection Control Tab.&lt;/P&gt; &lt;P&gt;after doing this I no longer get the above error from Drupal. &lt;/P&gt; &lt;P&gt;However I don&#039;t get the e-mails that it sends either. I also tried sending directly from Mercury (File-&amp;gt;Send mail messsage) which also didn&#039;t work. No errors but no mails either...&lt;/P&gt; &lt;P&gt;I will next try getting a fresh version of Mercury from pmail.com, as suggested and report here if that solves the problem. However I am not entirely sure how this new Mercury installation should co-exist with my existing one that came with XAMPP? Should I delete the old one and copy the new one in its place? Leave the old one intact, install the new one in a diff location?&lt;/P&gt; &lt;P&gt;thanks...&lt;/P&gt;

Ok so I installed the new version. I chose to "Update" my existing version that came with XAMPP which was properly detected by the installer. Unfortunately nothing good came out of all this so far... [:(].

I now get a windows exception when trying to send a test message [:(].

And this is what I am getting in the SMTP Client log:

======================= 

14:02:39: processing job MO0014C8
Resolved MX for 'shaw.ca' to 24.71.223.11
Connecting to 24.71.223.11
Connection error.
Attempting connection to alternate, 64.59.134.8
Connection error on alternate.
Attempting connection to alternate, 24.71.223.11
Connection error on alternate.
=======================

... any thoughts on this...? thanks

&lt;P&gt;Ok so I installed the new version. I chose&amp;nbsp;to &quot;Update&quot; my existing version that came with XAMPP which was properly detected by the installer. Unfortunately nothing good came out of all this so far... [:(].&lt;/P&gt; &lt;P&gt;I&amp;nbsp;now get&amp;nbsp;a windows exception when trying to send a test message [:(].&lt;/P&gt; &lt;P&gt;And this is what I am getting in the SMTP Client log:&lt;/P&gt; &lt;P&gt;=======================&amp;nbsp;&lt;/P&gt; &lt;P&gt;14:02:39: processing job MO0014C8 Resolved MX for &#039;shaw.ca&#039; to 24.71.223.11 Connecting to 24.71.223.11 Connection error. Attempting connection to alternate, 64.59.134.8 Connection error on alternate. Attempting connection to alternate, 24.71.223.11 Connection error on alternate. =======================&lt;/P&gt; &lt;P&gt;... any thoughts on this...? thanks&lt;/P&gt;

The IP address is correct for the MX for shaw.ca and it accepts a connection to port 25 from here, so something is blocking the connection  between your mercury machine & idcmail-mx1no.cg.shawcable.net.

Could be your firewall, ISP ....

 

&lt;p&gt;The IP address is correct for the MX for shaw.ca and it accepts a connection to port 25 from here, so something is blocking the connection&amp;nbsp; between your mercury machine &amp;amp; idcmail-mx1no.cg.shawcable.net.&lt;/p&gt;&lt;p&gt;Could be your firewall, ISP ....&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;

However, relaying is off standard in XAMPP which means you can't send emails to outside addresses. Fix this by editing c:\xampp\MercuryMail\MERCURY.ini

Under [MercuryS] it says:
Relay : 0
Change this to 1.

If mails don't arrive and stay in the queue (you can see it in the Mercury window) you may need to edit the Nameservers directive in the [MercuryE] section, too.


software reviews

&lt;P&gt;&lt;SPAN class=postbody&gt;However, relaying is off standard in XAMPP which means you can&#039;t send emails to outside addresses. Fix this by editing c:\xampp\MercuryMail\MERCURY.ini &lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN class=postbody&gt;Under [MercuryS] it says: Relay : 0 Change this to 1. If mails don&#039;t arrive and stay in the queue (you can see it in the Mercury window) you may need to edit the Nameservers directive in the [MercuryE] section, too. &lt;/P&gt;&lt;/SPAN&gt; &lt;HR align=left width=&quot;25%&quot; SIZE=1&gt; &lt;A class=&quot;&quot; href=&quot;http://www.sharewarecheap.com/&quot; mce_href=&quot;http://www.sharewarecheap.com&quot;&gt;software reviews&lt;/A&gt;

Good tip. At least this got me past my "553 We do not relay non-local mail, sorry" error message. Unfortunately, I still have been unable to receive emails.

I am trying to set up a local environment using XAMPP on Windows XP to test PHP scripts. I try filling out a feedback form and then forwarding the contents through a PHP script. Whether the receiving address is (for example) johndoe@localhost.com or johndoe@aol.com makes no difference. The mail does not show up in the johndoe account in Pegasus or in the johndoe@aol.com account.

 Any suggestions ? Thanx !

&lt;P&gt;Good tip. At least this got me past my &quot;&lt;SPAN style=&quot;FONT-FAMILY: &#039;Times New Roman&#039;; FONT-SIZE: 12pt; mso-fareast-font-family: &#039;Times New Roman&#039;; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA&quot;&gt;553 We do not relay non-local mail, sorry&quot; error message. Unfortunately, I still have been unable to receive emails.&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: &#039;Times New Roman&#039;; FONT-SIZE: 12pt; mso-fareast-font-family: &#039;Times New Roman&#039;; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA&quot;&gt;I am trying to set up a local environment using XAMPP on Windows XP to test PHP scripts. I try filling out a feedback form and then forwarding the contents through a PHP script. Whether the receiving address is (for example) &lt;A href=&quot;mailto:johndoe@localhost.com&quot;&gt;johndoe@localhost.com&lt;/A&gt;&amp;nbsp;or &lt;A href=&quot;mailto:johndoe@aol.com&quot;&gt;johndoe@aol.com&lt;/A&gt;&amp;nbsp;makes no difference. The mail does not show up in the johndoe account in Pegasus or in the &lt;A href=&quot;mailto:johndoe@aol.com&quot;&gt;johndoe@aol.com&lt;/A&gt; account.&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-FAMILY: &#039;Times New Roman&#039;; FONT-SIZE: 12pt; mso-fareast-font-family: &#039;Times New Roman&#039;; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA&quot;&gt;&amp;nbsp;Any suggestions ? Thanx !&lt;/SPAN&gt;&lt;/P&gt;

[quote user="FeralReason"]

Good tip. At least this got me past my "553 We do not relay non-local mail, sorry" error message.

[/quote]

Unless you have taken other measures, this tip also turns you into an open relay, and you will be spewing spam before you know it.

You need to use Authentication to relay, or restrict relaying to the local network. The instructions are in the help.

 

[quote user=&quot;FeralReason&quot;]&lt;p&gt;Good tip. At least this got me past my &quot;&lt;span style=&quot;font-family: &#039;Times New Roman&#039;; font-size: 12pt;&quot;&gt;553 We do not relay non-local mail, sorry&quot; error message.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;[/quote]&lt;/p&gt;&lt;p&gt;Unless you have taken other measures, this tip also turns you into an open relay, and you will be spewing spam before you know it.&lt;/p&gt;&lt;p&gt;You need to use Authentication to relay, or restrict relaying to the local network. The instructions are in the help.&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