Community Discussions and Support
Mercury mail isn't working for outside domains. XAMPP user.

Sending to non-local users is controlled by the settings in Configuration / Mercury SMTP Server / Connection control / Relaying control. The help text explains the different options quite clearly. It's of course important that the Local domains section in Core configuration has been filled in correctly as well, so please have a look at the help text for that too.

/Rolf 

  

<p>Sending to non-local users is controlled by the settings in Configuration / Mercury SMTP Server / Connection control / Relaying control. The help text explains the different options quite clearly. It's of course important that the Local domains section in Core configuration has been filled in correctly as well, so please have a look at the help text for that too.</p><p>/Rolf </p><p>  </p>

I am reposting this with the note that this is an XAMPP 1.7.2installation on Windows Vista with the firewall off and on (same results). There may be problems common to this arrangement.
 
Mercury

mail simply isn't working for outside domains. It looks like it is, but mail doesn't arrive

at the target email. It's strange. The email seem to be disappearing...

This

is after a few support quirks. First, I received the error "Temporary

error 249 (temporary MX resolution error) resolving gmail.com" I found

out this was due to missing DNS settings, so I changed the Mercury's

ini to include my isps name server with the following change to the

Mercury.ini file under [MercuryE]

Nameserver : 207.69.188.186,207.69.188.187 (These are my isp's nameservers)

Now, the error 249 is gone and I get an ok message as follows:

Connection from localhost, the date
Helo my computer name
mail from postmaster@localhost
recipient my email at gmail
data - 6 lines, 131 bytes
quit

Here are the logs from MercuryE:

T 20100106 183318 4b452aee Begin processing job MO0030CC from postmaster@localhost
T 20100106 183319 4b452aee Established ESMTP connection to 74.125.113.27
W 20100106 183350 4b452aee DATA state transient error - 421-4.7.0 [24.223.205.228] Our system has detected an unusual amount of
E 20100106 183350 4b452aee TCP/IP error.
T 20100106 183350 4b452aee Job MO0030CC processing complete.
T 20100106 223134 4b4563a4 Begin processing job MO000002 from postmaster@localhost
T 20100106 223134 4b4563a5 Begin processing job MO000004 from postmaster@localhost
T 20100106 223134 4b4563a6 Begin processing job MO000006 from postmaster@localhost
T 20100106 223134 4b4563a7 Begin processing job MO000008 from postmaster@localhost
T 20100106 223134 4b4563a8 Begin processing job MO00000A from postmaster@localhost
T 20100106 223134 4b4563a9 Begin processing job MO00000C from postmaster@localhost
T 20100106 223134 4b4563aa Begin processing job MO000891 from postmaster@localhost
T 20100106 223134 4b4563ab Begin processing job MO001310 from postmaster@localhost
T 20100106 223134 4b4563ac Begin processing job MO0014C8 from postmaster@localhost
T 20100106 223134 4b4563ad Begin processing job MO0014CA from postmaster@localhost

What are the possible causes of a TCP/IP error and what is a DATA state transient error?
Basically, it says everything is fine, only no email ever arrives. Not in spam folder. No where. What am I doing wrong?

 
These are the notes for using Mercury with XAMPP:
 
Notes for using Mercury:

  • Mercury needs an external connection on startup;
  • on startup, Mercury defines the Domain Name Service (DNS) automatically as the name server of your provider;
  • For all user of gateway servers: Please set your DNS via TCP/IP (f.e. via InterNic with the IP number 198.41.0.4);
  • the config file of Mercury is called MERCURY.INI;
  • to

    test, please send a message to postmaster@localhost or admin@localhost

    and check for these messages in the following folders:

    \xampp\MercuryMail\MAIL\Admin;

  • one test user called "newuser" (newuser@localhost) with the Password = wampp;
  • spam and other obscenities are totally forbidden with Mercury!;
The only thing is, Mercury clearly doesn't get the nameserver from Windows Vista. So this is set explicitly in the Mercury.ini by me - possibly to my chagrin. I'm not sure what a gateway server is, but I don't think I am operating through one. I can test the mail and have received a message directly through php's mail command:
 
Received: from spooler by localhost (Mercury/32 v4.62); 6 Jan 2010 15:40:20 -0600
X-Envelope-To: <nickolasnikolic@localhost>
Return-path: <postmaster@localhost>
Received: from acer (127.0.0.1) by localhost (Mercury/32 v4.62) ID MG00000D;
   6 Jan 2010 15:40:13 -0600
Date: Wed, 06 Jan 2010 15:40:13 -0600
Subject: this is another test
To: nickolasnikolic@localhost
From:  (This was sent through the php's mail command with no errors to a local address)

&lt;span class=&quot;corners-top&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/span&gt; &lt;div class=&quot;postbody&quot;&gt;I am reposting this with the note that this is an XAMPP 1.7.2installation on Windows Vista with the firewall off and on (same results). There may be problems common to this arrangement.&lt;/div&gt;&lt;div class=&quot;postbody&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;div class=&quot;postbody&quot;&gt;&lt;div class=&quot;content&quot;&gt;Mercury mail simply isn&#039;t working for outside domains. It looks like it is, but mail doesn&#039;t arrive at the target email. It&#039;s strange. The email seem to be disappearing... This is after a few support quirks. First, I received the error &quot;Temporary error 249 (temporary MX resolution error) resolving gmail.com&quot; I found out this was due to missing DNS settings, so I changed the Mercury&#039;s ini to include my isps name server with the following change to the Mercury.ini file under [MercuryE] Nameserver : 207.69.188.186,207.69.188.187 (These are my isp&#039;s nameservers) Now, the error 249 is gone and I get an ok message as follows: Connection from localhost, the date Helo my computer name mail from postmaster@localhost recipient my email at gmail data - 6 lines, 131 bytes quit Here are the logs from MercuryE: T 20100106 183318 4b452aee Begin processing job MO0030CC from postmaster@localhost T 20100106 183319 4b452aee Established ESMTP connection to 74.125.113.27 W 20100106 183350 4b452aee DATA state transient error - 421-4.7.0 [24.223.205.228] Our system has detected an unusual amount of E 20100106 183350 4b452aee TCP/IP error. T 20100106 183350 4b452aee Job MO0030CC processing complete. T 20100106 223134 4b4563a4 Begin processing job MO000002 from postmaster@localhost T 20100106 223134 4b4563a5 Begin processing job MO000004 from postmaster@localhost T 20100106 223134 4b4563a6 Begin processing job MO000006 from postmaster@localhost T 20100106 223134 4b4563a7 Begin processing job MO000008 from postmaster@localhost T 20100106 223134 4b4563a8 Begin processing job MO00000A from postmaster@localhost T 20100106 223134 4b4563a9 Begin processing job MO00000C from postmaster@localhost T 20100106 223134 4b4563aa Begin processing job MO000891 from postmaster@localhost T 20100106 223134 4b4563ab Begin processing job MO001310 from postmaster@localhost T 20100106 223134 4b4563ac Begin processing job MO0014C8 from postmaster@localhost T 20100106 223134 4b4563ad Begin processing job MO0014CA from postmaster@localhost What are the possible causes of a TCP/IP error and what is a DATA state transient error? Basically, it says everything is fine, only no email ever arrives. Not in spam folder. No where. What am I doing wrong?&lt;/div&gt;&lt;div class=&quot;content&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;div class=&quot;content&quot;&gt;These are the notes for using Mercury with XAMPP:&lt;/div&gt;&lt;div class=&quot;content&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;div class=&quot;content&quot;&gt;Notes for using Mercury: &lt;ul&gt;&lt;li&gt;Mercury needs an external connection on startup;&lt;/li&gt;&lt;li&gt;on startup, Mercury defines the Domain Name Service (DNS) automatically as the name server of your provider;&lt;/li&gt;&lt;li&gt;For all user of gateway servers: Please set your DNS via TCP/IP (f.e. via InterNic with the IP number 198.41.0.4);&lt;/li&gt;&lt;li&gt;the config file of Mercury is called MERCURY.INI;&lt;/li&gt;&lt;li&gt;to test, please send a message to postmaster@localhost or admin@localhost and check for these messages in the following folders: \xampp\MercuryMail\MAIL\Admin;&lt;/li&gt;&lt;li&gt;one test user called &quot;newuser&quot; (newuser@localhost) with the Password = wampp;&lt;/li&gt;&lt;li&gt;spam and other obscenities are totally forbidden with Mercury!;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div class=&quot;content&quot;&gt;The only thing is, Mercury clearly doesn&#039;t get the nameserver from Windows Vista. So this is set explicitly in the Mercury.ini by me - possibly to my chagrin. I&#039;m not sure what a gateway server is, but I don&#039;t think I am operating through one. I can test the mail and have received a message directly through php&#039;s mail command:&lt;/div&gt;&lt;div class=&quot;content&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;div class=&quot;content&quot;&gt;Received: from spooler by localhost (Mercury/32 v4.62); 6 Jan 2010 15:40:20 -0600 X-Envelope-To: &amp;lt;nickolasnikolic@localhost&amp;gt; Return-path: &amp;lt;postmaster@localhost&amp;gt; Received: from acer (127.0.0.1) by localhost (Mercury/32 v4.62) ID MG00000D; &amp;nbsp;&amp;nbsp; 6 Jan 2010 15:40:13 -0600 Date: Wed, 06 Jan 2010 15:40:13 -0600 Subject: this is another test To: nickolasnikolic@localhost From:&amp;nbsp; (This was sent through the php&#039;s mail command with no errors to a local address) &lt;/div&gt; &lt;/div&gt;

> Connection from localhost, the date
> Helo my computer name
> mail from postmaster@localhost

The MAIL FROM: address is an invalid SMTP e-mail address.  This should either be a literal address with a IP address (postmaster@[74.125.113.27]) or should have a valid domain name(postmaster@demeter.liberatednetworks.com).  With a "localhost" domain name many receiving host will just delete the mail without error.  

> recipient my email at gmail
> data - 6 lines, 131 bytes
> quit
>
> Here are the logs from MercuryE:
>
> T 20100106 183318 4b452aee Begin processing job MO0030CC from postmaster@localhost
> T 20100106 183319 4b452aee Established ESMTP connection to 74.125.113.27
> W 20100106 183350 4b452aee DATA state transient error - 421-4.7.0 [24.223.205.228] Our system has detected an unusual amount of
> E 20100106 183350 4b452aee TCP/IP error.

Looks like this receiving system broke the connection  after receiving the DATA statement for some reason.  Try turning on MercuryE session logging to get a complete error message from the host.

> T 20100106 183350 4b452aee Job MO0030CC processing complete.
>
> What are the possible causes of a TCP/IP error and what is a DATA state transient error?

SMTP is transported over TCP/IP and there was a low level error.  The full comment may tell you why the receiving system broke the connection.

&amp;gt; Connection from localhost, the date &amp;gt; Helo my computer name &amp;gt; mail from postmaster@localhost The MAIL FROM: address is an invalid SMTP e-mail address.&amp;nbsp; This should either be a literal address with a IP address (postmaster@[74.125.113.27]) or should have a valid domain name(postmaster@demeter.liberatednetworks.com).&amp;nbsp; With a &quot;localhost&quot; domain name many receiving host will just delete the mail without error. &amp;nbsp; &amp;gt; recipient my email at gmail &amp;gt; data - 6 lines, 131 bytes &amp;gt; quit &amp;gt; &amp;gt; Here are the logs from MercuryE: &amp;gt; &amp;gt; T 20100106 183318 4b452aee Begin processing job MO0030CC from postmaster@localhost &amp;gt; T 20100106 183319 4b452aee Established ESMTP connection to 74.125.113.27 &amp;gt; W 20100106 183350 4b452aee DATA state transient error - 421-4.7.0 [24.223.205.228] Our system has detected an unusual amount of &amp;gt; E 20100106 183350 4b452aee TCP/IP error. Looks like this receiving system broke the connection&amp;nbsp; after receiving the DATA statement for some reason.&amp;nbsp; Try turning on MercuryE session logging to get a complete error message from the host. &amp;gt; T 20100106 183350 4b452aee Job MO0030CC processing complete. &amp;gt; &amp;gt; What are the possible causes of a TCP/IP error and what is a DATA state transient error? SMTP is transported over TCP/IP and there was a low level error.&amp;nbsp; The full comment may tell you why the receiving system broke the connection.

Thanks for the reply I will turn logging on the module to learn more of what is happening.

 I've got it working, although the test email took 7 hours to appear in my gmail account (and in the spam folder due to the odd from address).

I needed to explicitly set the port 25 on the

windows firewall exceptions rather than just the executable

Mercury.exe. This is still odd because it doesn't explain what wasn't

working when the firewall was off, but it works for now, if there are

any updates or new identical problems, I will post them.

It is

still worth noting that Mercury in XAMPP doesn't work out of the box

(at least on Vista) because the DNS nameservers aren't automatically

picked up and deen to be explicitly added to Mercury.ini under

[MercuryE]. But maybe this is for a later version of XAMPP.

&lt;p&gt;Thanks for the reply I will turn logging on the module to learn more of what is happening.&lt;/p&gt;&lt;p&gt;&amp;nbsp;I&#039;ve got it working, although the test email took 7 hours to appear in my gmail account (and in the spam folder due to the odd from address).&lt;/p&gt;&lt;p&gt;I needed to explicitly set the port 25 on the windows firewall exceptions rather than just the executable Mercury.exe. This is still odd because it doesn&#039;t explain what wasn&#039;t working when the firewall was off, but it works for now, if there are any updates or new identical problems, I will post them. It is still worth noting that Mercury in XAMPP doesn&#039;t work out of the box (at least on Vista) because the DNS nameservers aren&#039;t automatically picked up and deen to be explicitly added to Mercury.ini under [MercuryE]. But maybe this is for a later version of XAMPP.&lt;/p&gt;

Greetings,

Your discussion here has helped me work out some configuration problems with my Mercury/32 setup within a  XAMPP 1.7.1 installation on an XP Pro SP3 machine.  I'd previously read a message in another forum that Mercury couldn't be used to relay messages to outside mail servers, but seems like nickolasnikolic got it working.  When I got almost as far as he did, I received this error from a PHP script calling mail():  SMTP server response: 553 We do not relay non-local mail, sorry.  So I'm puzzled, can Mercury send script-generated email to addresses outside the local domain?  I'm writing a login/registration front-end to a small application and want to send a new password via email to a member who forgets her password.

Thanks.

 

I'm adding some info here that may help figure out what I'm doing wrong:

MercuryE config settings:


[MercuryE]
Poll : 15
Timeout : 60
Nameservers : 208.72.237.36,64.74.157.6,208.72.237.37
Log_Verbose : 0
DNS_Timeout : 20
DNS_Retries : 4
Transcripts : 1
MaxThreads : 10

 Mercury SMTP Server log

Connection from 127.0.0.1, Sat Jan 16 07:54:09 2010
 HELO HPNotebook
MAIL FROM:<tsaalman@pobox.com>
RCPT TO:<tsaalman@pobox.com>
Relay attempt: from <tsaalman@pobox.com> to <tsaalman@pobox.com>.
553 We do not relay non-local mail, sorry.
QUIT
0 sec. elapsed, connection closed Sat Jan 16 07:54:09 2010

I appreciate any advice you can offer.  Thanks.

&lt;p&gt;Greetings,&lt;/p&gt;&lt;p&gt;Your discussion here has helped me work out some configuration problems with my Mercury/32 setup within a&amp;nbsp; XAMPP 1.7.1 installation on an XP Pro SP3 machine.&amp;nbsp; I&#039;d previously read a message in another forum that Mercury couldn&#039;t be used to relay messages to outside mail servers, but seems like &lt;a href=&quot;http://community.pmail.com/members/nickolasnikolic.aspx&quot; mce_href=&quot;http://community.pmail.com/members/nickolasnikolic.aspx&quot;&gt;nickolasnikolic&lt;/a&gt; got it working.&amp;nbsp; When I got almost as far as he did, I received this error from a PHP script calling mail():&amp;nbsp; SMTP server response: 553 We do not relay non-local mail, sorry.&amp;nbsp; So I&#039;m puzzled, can Mercury send script-generated email to addresses outside the local domain?&amp;nbsp; I&#039;m writing a login/registration front-end to a small application and want to send a new password via email to a member who forgets her password.&lt;/p&gt;&lt;p&gt;Thanks.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt; I&#039;m adding some info here that may help figure out what I&#039;m doing wrong:&lt;/p&gt;&lt;p&gt;&lt;b&gt;MercuryE config settings:&lt;/b&gt;&lt;/p&gt;&lt;p&gt; [MercuryE] Poll : 15 Timeout : 60 Nameservers : 208.72.237.36,64.74.157.6,208.72.237.37 Log_Verbose : 0 DNS_Timeout : 20 DNS_Retries : 4 Transcripts : 1 MaxThreads : 10 &lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;b&gt;Mercury SMTP Server log&lt;/b&gt; &lt;/p&gt;&lt;p&gt;Connection from 127.0.0.1, Sat Jan 16 07:54:09 2010 &amp;nbsp;HELO HPNotebook MAIL FROM:&amp;lt;tsaalman@pobox.com&amp;gt; RCPT TO:&amp;lt;tsaalman@pobox.com&amp;gt; Relay attempt: from &amp;lt;tsaalman@pobox.com&amp;gt; to &amp;lt;tsaalman@pobox.com&amp;gt;. 553 We do not relay non-local mail, sorry. QUIT 0 sec. elapsed, connection closed Sat Jan 16 07:54:09 2010 &lt;/p&gt;&lt;p&gt;I appreciate any advice you can offer.&amp;nbsp; Thanks. &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