Community Discussions and Support
How do you know that the mail has been sent?

The connection errors were due to port 25 being blocked. But as you say, if you can use your ISPs SMTP server directly the case is solved.

/Rolf
 

<p>The connection errors were due to port 25 being blocked. But as you say, if you can use your ISPs SMTP server directly the case is solved.</p><p>/Rolf  </p>

I have installed Mercury/32 via XAMPP, and I use mail() via .PHP to send mail..

 My log looks like this:

 

T 20080718 230954 48811f47 Connection from 127.0.0.1
T 20080718 230954 48811f47 HELO PHAs
T 20080718 230954 48811f47 MAIL FROM:<Admin@tecfan.no-ip.org>
T 20080718 230954 48811f47 RCPT TO:<somvaan@gmail.com>
T 20080718 230954 48811f47 DATA - 9 lines, 341 bytes.
T 20080718 230954 48811f47 QUIT
T 20080718 230954 48811f47 Connection closed with 127.0.0.1, 0 sec. elapsed.

Does this mean that it was sent? I tried sending to both my hotmail and gmail, haven't received any of those mails...
&lt;p&gt;I have installed Mercury/32 via XAMPP, and I use mail() via .PHP to send mail..&lt;/p&gt;&lt;p&gt;&amp;nbsp;My log looks like this:&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;T 20080718 230954 48811f47 Connection from 127.0.0.1 T 20080718 230954 48811f47 HELO PHAs T 20080718 230954 48811f47 MAIL FROM:&amp;lt;Admin@tecfan.no-ip.org&amp;gt; T 20080718 230954 48811f47 RCPT TO:&amp;lt;somvaan@gmail.com&amp;gt; T 20080718 230954 48811f47 DATA - 9 lines, 341 bytes. T 20080718 230954 48811f47 QUIT T 20080718 230954 48811f47 Connection closed with 127.0.0.1, 0 sec. elapsed. &lt;/p&gt;Does this mean that it was sent? I tried sending to both my hotmail and gmail, haven&#039;t received any of those mails...

This means that the message was successfully received by the MercuryS server module. Do you use MercuryE (end-to-end) or MercuryC (relay) for external delivery? Check the logs in the module you use to find out was has happened.

/Rolf 

&lt;p&gt;This means that the message was successfully received by the MercuryS server module. Do you use MercuryE (end-to-end) or MercuryC (relay) for external delivery? Check the logs in the module you use to find out was has happened.&lt;/p&gt;&lt;p&gt;/Rolf&amp;nbsp;&lt;/p&gt;

the Mercury SMTP Server log says "Relay attempt from <> to <>..."

and then gives me 553 error.

I did not get the 553 yesterday :s

&lt;p&gt;the Mercury SMTP Server log says &quot;Relay attempt from &amp;lt;&amp;gt; to &amp;lt;&amp;gt;...&quot;&lt;/p&gt;&lt;p&gt;and then gives me 553 error.&lt;/p&gt;&lt;p&gt;I did not get the 553 yesterday :s &lt;/p&gt;

Check Local domains section in Core configuration and then make sure that Relaying control (Mercury SMTP Server configuration, Connection control) is OK. The usual setting here is to have the first two checkboxes checked.

/Rolf 

&lt;p&gt;Check Local domains section in Core configuration and then make sure that Relaying control (Mercury SMTP Server configuration, Connection control) is OK. The usual setting here is to have the first two checkboxes checked.&lt;/p&gt;&lt;p&gt;/Rolf&amp;nbsp;&lt;/p&gt;

[quote user="Rolf Lindby"]

Check Local domains section in Core configuration and then make sure that Relaying control (Mercury SMTP Server configuration, Connection control) is OK. The usual setting here is to have the first two checkboxes checked.

/Rolf 

[/quote]

 

The two first checkboxes are checked. I'm sending from "Admin@localhost" to "somvaan@gmail.com", when I get the 553 (non-local) error.

 

WHat do you mean by "check local domains section"? what should I check for?

[quote user=&quot;Rolf Lindby&quot;]&lt;p&gt;Check Local domains section in Core configuration and then make sure that Relaying control (Mercury SMTP Server configuration, Connection control) is OK. The usual setting here is to have the first two checkboxes checked.&lt;/p&gt;&lt;p&gt;/Rolf&amp;nbsp;&lt;/p&gt;&lt;p&gt;[/quote]&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;The two first checkboxes are checked. I&#039;m sending from &quot;Admin@localhost&quot; to &quot;somvaan@gmail.com&quot;, when I get the 553 (non-local) error.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;WHat do you mean by &quot;check local domains section&quot;? what should I check for? &lt;/p&gt;

From Mercury help:

Domains recognized as local by this server  This is probably the single most critical area of configuration in the Mercury system -- if you get this section wrong, you will inevitably get mail loops and other problems. In this section, you must tell Mercury all the Internet names it should regard as "local" -- that is, for which it should attempt direct delivery on the local system rather than forwarding the mail to another machine for processing.

When entering domains into this section, you should usually provide three entries per local Internet domain - a fully-qualified version, a simple version, and a special entry called a domain literal version, which is the IP number of your system enclosed in square brackets. For example, if your system's Internet name was calliope.pmail.gen.nz (192.156.225.76), you might create these domains definitions:

    calliope        calliope
    calliope        calliope.pmail.gen.nz
    calliope        [192.156.225.76
]

/Rolf 

&lt;p&gt;From Mercury help:&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;&lt;i&gt;Domains recognized as local by this server&amp;nbsp; This is probably the single most critical area of configuration in the Mercury system -- if you get this section wrong, you will inevitably get mail loops and other problems. In this section, you must tell Mercury all the Internet names it should regard as &quot;local&quot; -- that is, for which it should attempt direct delivery on the local system rather than forwarding the mail to another machine for processing.&lt;/i&gt;&lt;/p&gt;&lt;p&gt;&lt;i&gt;When entering domains into this section, you should usually provide three entries per local Internet domain - a fully-qualified version, a simple version, and a special entry called a domain literal version, which is the IP number of your system enclosed in square brackets. For example, if your system&#039;s Internet name was calliope.pmail.gen.nz (192.156.225.76), you might create these domains definitions: &amp;nbsp;&amp;nbsp;&amp;nbsp; calliope&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; calliope &amp;nbsp;&amp;nbsp;&amp;nbsp; calliope&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; calliope.pmail.gen.nz &amp;nbsp;&amp;nbsp;&amp;nbsp; calliope&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; [192.156.225.76&lt;/i&gt;] &lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;/Rolf&amp;nbsp;&lt;/p&gt;

yep. I have this.

 

The mail I'm sending from is now "Admin@tecfan.no-ip.org" to "somvaan@gmail.com"

My local domains looks like this:

tecfan tecfan

tecfan tecfan.no-ip.org

tecfan [81.167.170.12]

 

still get 553.

 


Warning: mail() [function.mail]: SMTP server response: 553 We do not relay non-local mail, sorry. in C:\xampp\htdocs\spill\log.php on line 110

$subject = "Ditt brukernavn og passord";
        $body = "Brukernavn: " . $name . "\nPassord: " . $pw . "\n\nLogg på med dette passordet her: <a href=\"http://tecfan.no-ip.org/spill\">http://tecfan2.no-ip.org/spill</a>. Husk på å endre passordet når du har logget inn.";
        $headers = "From: Admin@tecfan.no-ip.org";
        if (mail($mail, $subject, $body, $headers)) {

 

&lt;p&gt;yep. I have this.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;The mail I&#039;m sending from is now &quot;Admin@tecfan.no-ip.org&quot; to &quot;somvaan@gmail.com&quot;&lt;/p&gt;&lt;p&gt;My local domains looks like this:&lt;/p&gt;&lt;p&gt;tecfan tecfan&lt;/p&gt;&lt;p&gt;tecfan tecfan.no-ip.org &lt;/p&gt;&lt;p&gt;tecfan [81.167.170.12]&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;still get 553. &lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt; &lt;b&gt;Warning&lt;/b&gt;: mail() [&lt;a href=&quot;http://tecfan.no-ip.org/spill/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:\xampp\htdocs\spill\log.php&lt;/b&gt; on line &lt;b&gt;110&lt;/b&gt;&lt;/p&gt;&lt;p&gt;$subject = &quot;Ditt brukernavn og passord&quot;; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; $body = &quot;Brukernavn: &quot; . $name . &quot;\nPassord: &quot; . $pw . &quot;\n\nLogg p&aring; med dette passordet her: &amp;lt;a href=\&quot;http://tecfan.no-ip.org/spill\&quot;&amp;gt;http://tecfan2.no-ip.org/spill&amp;lt;/a&amp;gt;. Husk p&aring; &aring; endre passordet n&aring;r du har logget inn.&quot;; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; $headers = &quot;From: Admin@tecfan.no-ip.org&quot;; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; if (mail($mail, $subject, $body, $headers)) { &lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;

You may need to restart Mercury after changing domain settings. Does the SMTP server log entry still look the same way? Do you use MercuryE or MercuryC for external delivery?

/Rolf 

&lt;p&gt;You may need to restart Mercury after changing domain settings. Does the SMTP server log entry still look the same way? Do you use MercuryE or MercuryC for external delivery?&lt;/p&gt;&lt;p&gt;/Rolf&amp;nbsp;&lt;/p&gt;

[quote user="Rolf Lindby"]

You may need to restart Mercury after changing domain settings. Does the SMTP server log entry still look the same way? Do you use MercuryE or MercuryC for external delivery?

/Rolf 

[/quote]

 

How do I know?

 http://tecfan.nitrolinken.net/2.jpg screenshot of log/stuff

[quote user=&quot;Rolf Lindby&quot;]&lt;p&gt;You may need to restart Mercury after changing domain settings. Does the SMTP server log entry still look the same way? Do you use MercuryE or MercuryC for external delivery?&lt;/p&gt;&lt;p&gt;/Rolf&amp;nbsp;&lt;/p&gt;&lt;p&gt;[/quote]&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;How do I know?&lt;/p&gt;&lt;p&gt;&amp;nbsp;http://tecfan.nitrolinken.net/2.jpg screenshot of log/stuff &lt;/p&gt;

In the configuration menu you should have a line for either MercuryE or MercuryC. You can select active modules from the Protocol module line in the same menu.

Can't get that link to work, though...

/Rolf
 

&lt;p&gt;In the configuration menu you should have a line for either MercuryE or MercuryC. You can select active modules from the Protocol module line in the same menu.&lt;/p&gt;&lt;p&gt;Can&#039;t get that link to work, though...&lt;/p&gt;&lt;p&gt;/Rolf &amp;nbsp;&lt;/p&gt;

my fault, it was png.. http://tecfan.nitrolinken.net/2.png

 

Looks like I'm using MercuryE.

&lt;p&gt;my fault, it was png.. http://tecfan.nitrolinken.net/2.png&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Looks like I&#039;m using MercuryE. &lt;/p&gt;

Ah, OK!... In Mercury SMTP server configuration you need to add a line in the connection control box as well. Add a "restriction" to allow relaying from 127.0.0.1 (any any other IP range that belongs to your local network that should be allowed to send mail externally).

There may be an issue with the MercuryE module as you are getting connection errors (apparently there was some message that you had managed to get through that far). A lot of Internet providers block outgoing SMTP traffic (port 25) to stop spam. If so you need either to contact your ISP to have them remove that block for you, or use MercuryC to relay through your Internet provider's SMTP server instead.

/Rolf 

&lt;p&gt;Ah, OK!... In Mercury SMTP server configuration you need to add a line in the connection control box as well. Add a &quot;restriction&quot; to allow relaying from 127.0.0.1 (any any other IP range that belongs to your local network that should be allowed to send mail externally).&lt;/p&gt;&lt;p&gt;There may be an issue with the MercuryE module as you are getting connection errors (apparently there was some message that you had managed to get through that far). A lot of Internet providers block outgoing SMTP traffic (port 25) to stop spam. If so you need either to contact your ISP to have them remove that block for you, or use MercuryC to relay through your Internet provider&#039;s SMTP server instead.&lt;/p&gt;&lt;p&gt;/Rolf&amp;nbsp;&lt;/p&gt;

[quote user="Rolf Lindby"]

Ah, OK!... In Mercury SMTP server configuration you need to add a line in the connection control box as well. Add a "restriction" to allow relaying from 127.0.0.1 (any any other IP range that belongs to your local network that should be allowed to send mail externally).

There may be an issue with the MercuryE module as you are getting connection errors (apparently there was some message that you had managed to get through that far). A lot of Internet providers block outgoing SMTP traffic (port 25) to stop spam. If so you need either to contact your ISP to have them remove that block for you, or use MercuryC to relay through your Internet provider's SMTP server instead.

/Rolf 

[/quote]

 

Okay, I don't get 553s anymore, that's a good thing.. But none of the mails actually ends up in my inbox..

You were right, as of 1. april 2008 my Internet provider (and many of the big ones in Norway) blocks sending mail from external e-mail servers on port 25..

[quote user=&quot;Rolf Lindby&quot;]&lt;p&gt;Ah, OK!... In Mercury SMTP server configuration you need to add a line in the connection control box as well. Add a &quot;restriction&quot; to allow relaying from 127.0.0.1 (any any other IP range that belongs to your local network that should be allowed to send mail externally).&lt;/p&gt;&lt;p&gt;There may be an issue with the MercuryE module as you are getting connection errors (apparently there was some message that you had managed to get through that far). A lot of Internet providers block outgoing SMTP traffic (port 25) to stop spam. If so you need either to contact your ISP to have them remove that block for you, or use MercuryC to relay through your Internet provider&#039;s SMTP server instead.&lt;/p&gt;&lt;p&gt;/Rolf&amp;nbsp;&lt;/p&gt;&lt;p&gt;[/quote]&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Okay, I don&#039;t get 553s anymore, that&#039;s a good thing.. But none of the mails actually ends up in my inbox.. &lt;/p&gt;&lt;p&gt;You were right, as of 1. april 2008 my Internet provider (and many of the big ones in Norway) blocks sending mail from external e-mail servers on port 25.. &lt;/p&gt;

Warning: mail() [function.mail]:

SMTP server response: 554 5.7.1

<12.81-167-170.customer.lyse.net[81.167.170.12]>: Client host

rejected: Access denied in C:\xampp\htdocs\spill\log.php on line 105

 

what should I do?

 

I changed SMTP to "smtp.ent.lyse.net" i PHP.ini.

(as they say here: http://www.lyse.no/category.php?categoryID=12101)

&lt;p&gt;&lt;b&gt;Warning&lt;/b&gt;: mail() [&lt;a href=&quot;http://tecfan.no-ip.org/spill/function.mail&quot; mce_href=&quot;http://tecfan.no-ip.org/spill/function.mail&quot;&gt;function.mail&lt;/a&gt;]: SMTP server response: 554 5.7.1 &amp;lt;12.81-167-170.customer.lyse.net[81.167.170.12]&amp;gt;: Client host rejected: Access denied in &lt;b&gt;C:\xampp\htdocs\spill\log.php&lt;/b&gt; on line &lt;b&gt;105&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;what should I do? &lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I changed SMTP to &quot;smtp.ent.lyse.net&quot; i PHP.ini.&lt;/p&gt;&lt;p&gt;(as they say here: http://www.lyse.no/category.php?categoryID=12101) &lt;/p&gt;

[quote user="Tecfan"]

Warning: mail() [function.mail]:

SMTP server response: 554 5.7.1

<12.81-167-170.customer.lyse.net[81.167.170.12]>: Client host

rejected: Access denied in C:\xampp\htdocs\spill\log.php on line 105

 

what should I do?

 

I changed SMTP to "smtp.ent.lyse.net" i PHP.ini.

(as they say here: http://www.lyse.no/category.php?categoryID=12101)

[/quote]

 

They do not allow relaying off their server.  You need to test sending to a user at smtp.ent.lyse.net to see if your PHP application works.  In any case since you are sending directly from your PHP application through their server this is not something that the we can help you with all that much.  Talk to your ISP or the owner of the SMTP host.

 

220 asav6.lyse.net ESMTP Postfix
ehlo thomas
250-asav6.lyse.net
250-PIPELINING
250-SIZE 83886080
250-ETRN
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN
MAIL FROM: <test@tstephenson.com>
250 2.1.0 Ok
RCPT TO: <test@tstephenson.com>
554 5.7.1 <mail.tstephenson.com[209.128.94.2]>: Client host rejected: Access denied

[quote user=&quot;Tecfan&quot;]&lt;p&gt;&lt;b&gt;Warning&lt;/b&gt;: mail() [&lt;a href=&quot;http://tecfan.no-ip.org/spill/function.mail&quot; mce_href=&quot;http://tecfan.no-ip.org/spill/function.mail&quot;&gt;function.mail&lt;/a&gt;]: SMTP server response: 554 5.7.1 &amp;lt;12.81-167-170.customer.lyse.net[81.167.170.12]&amp;gt;: Client host rejected: Access denied in &lt;b&gt;C:\xampp\htdocs\spill\log.php&lt;/b&gt; on line &lt;b&gt;105&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;what should I do? &lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I changed SMTP to &quot;smtp.ent.lyse.net&quot; i PHP.ini.&lt;/p&gt;&lt;p&gt;(as they say here: http://www.lyse.no/category.php?categoryID=12101) &lt;/p&gt;&lt;p&gt;[/quote]&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;They do not allow relaying off their server.&amp;nbsp; You need to test sending to a user at smtp.ent.lyse.net to see if your PHP application works.&amp;nbsp; In any case since you are sending directly from your PHP application through their server this is not something that the we can help you with all that much.&amp;nbsp; Talk to your ISP or the owner of the SMTP host. &lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;220 asav6.lyse.net ESMTP Postfix ehlo thomas 250-asav6.lyse.net 250-PIPELINING 250-SIZE 83886080 250-ETRN 250-ENHANCEDSTATUSCODES 250-8BITMIME 250 DSN MAIL FROM: &amp;lt;test@tstephenson.com&amp;gt; 250 2.1.0 Ok RCPT TO: &amp;lt;test@tstephenson.com&amp;gt; 554 5.7.1 &amp;lt;mail.tstephenson.com[209.128.94.2]&amp;gt;: Client host rejected: Access denied &lt;/p&gt;

Could be several things. Try a Telnet connection to smtp.ent.lyse.net port 25 and see what response you get on your HELO and MAIL FROM entries. If it still doesn't work I guess they have a helpdesk at lyse.net that might have more information about it.

You could use MercuryC too of course, but there is probably no real advantage if you need to relay through smtp.ent.lyse.net anyway.

/Rolf 

&lt;p&gt;Could be several things. Try a Telnet connection to smtp.ent.lyse.net port 25 and see what response you get on your HELO and MAIL FROM entries. If it still doesn&#039;t work I guess they have a helpdesk at lyse.net that might have more information about it.&lt;/p&gt;&lt;p&gt;You could use MercuryC too of course, but there is probably no real advantage if you need to relay through smtp.ent.lyse.net anyway. &lt;/p&gt;&lt;p&gt;/Rolf&amp;nbsp;&lt;/p&gt;

well, I fixed that problem.. "ent" was for enterprise..

but I still got those connection errors (http://tecfan.nitrolinken.net/2.png)

 what are those

&lt;p&gt;well, I fixed that problem.. &quot;ent&quot; was for enterprise..&lt;/p&gt;&lt;p&gt;but I still got those connection errors (http://tecfan.nitrolinken.net/2.png)&lt;/p&gt;&lt;p&gt;&amp;nbsp;what are those &lt;/p&gt;

okay nevermind, I don't need Mercury when I have the smpt server :P

okay nevermind, I don&#039;t need Mercury when I have the smpt server :P
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