Community Discussions and Support
Getting started - sending mail to the outside world

[quote user="gandalf458"]..but then I got: 553 We do not relay non-local mail, sorry.[/quote]

Check the 'Connection control; section of the MercuryS configuration.  You need to have the first two 'Relaying control' boxes checked and your internal IP addresses you want to relay from as Allow entries in 'Connection control'.  If you have php running on the same machine as Mercury you may need localhost (127.0.0.1) in there.

As Thomas says you need to upgrade you version of Mercury.  Either install the latest version in the same location (it will keep all your settings), or patch your version to 4.01c level.

 

<P>[quote user="gandalf458"]..but then I got: 553 We do not relay non-local mail, sorry.[/quote]</P> <P>Check the 'Connection control; section of the MercuryS configuration.  You need to have the first two 'Relaying control' boxes checked and your internal IP addresses you want to relay from as Allow entries in 'Connection control'.  If you have php running on the same machine as Mercury you may need localhost (127.0.0.1) in there.</P> <P>As Thomas says you need to upgrade you version of Mercury.  Either install the latest version in the same location (it will keep all your settings), or patch your version to 4.01c level.</P> <P mce_keep="true"> </P>

I have Mercury/32 v4.01b which came as part of an XAMPP installation on my local test machine. I've been using Apache, PHP and MySQL for a few years and I would like the PHP mail() function to be able to send mail to real addresses. I've started Mercury and I am able to send email from webmaster@localhost to admin@localhost but what do I need to do to get the SMTP server to send mail to a real email recipient?

Subsidiary question - what do I need to read a .cnm file?

Thanks 

<p>I have Mercury/32 v4.01b which came as part of an XAMPP installation on my local test machine. I've been using Apache, PHP and MySQL for a few years and I would like the PHP mail() function to be able to send mail to real addresses. I've started Mercury and I am able to send email from webmaster@localhost to admin@localhost but what do I need to do to get the SMTP server to send mail to a real email recipient?</p><p>Subsidiary question - what do I need to read a .cnm file?</p><p>Thanks </p>

[quote user="gandalf458"]I've started Mercury and I am able to send email from webmaster@localhost to admin@localhost but what do I need to do to get the SMTP server to send mail to a real email recipient?[/quote]

Use either MercuryC (to relay through a smarthost as provided by an ISP or gmail etc.) or MercuryE (to send direct without the need for a relaying smarthost).  Go to Configuration/Protcol module and check the one you want, and restart Mercury.  You will then be able to configure your chosen module.

[quote]Subsidiary question - what do I need to read a .cnm file?[/quote]

CNM are text files containing a standard mail message.  Notepad or similar will allow you to see them unformatted.  Pegasus Mail will display them formatted.

<P>[quote user="gandalf458"]I've started Mercury and I am able to send email from webmaster@localhost to admin@localhost but what do I need to do to get the SMTP server to send mail to a real email recipient?[/quote]</P> <P>Use either MercuryC (to relay through a smarthost as provided by an ISP or gmail etc.) or MercuryE (to send direct without the need for a relaying smarthost).  Go to Configuration/Protcol module and check the one you want, and restart Mercury.  You will then be able to configure your chosen module.</P> <P>[quote]Subsidiary question - what do I need to read a .cnm file?[/quote]</P> <P>CNM are text files containing a standard mail message.  Notepad or similar will allow you to see them unformatted.  Pegasus Mail will display them formatted. </P>

Brill - thanks. I had most checked and have unchecked all but MercuryE. I can now send from File > Send mail message but my PHP mail() needs looking at...

Cheers G :)
 

<p>Brill - thanks. I had most checked and have unchecked all but MercuryE. I can now send from File > Send mail message but my PHP mail() needs looking at...</p><p>Cheers G :)  </p>

I'm getting an error that PHP is unable to connect to the mailserver. I'm guessing there are some things I need to set in the MercuryE configuration?

I'm getting an error that PHP is unable to connect to the mailserver. I'm guessing there are some things I need to set in the MercuryE configuration?

[quote user="gandalf458"]I'm getting an error that PHP is unable to connect to the mailserver. I'm guessing there are some things I need to set in the MercuryE configuration?[/quote]

MercuryE is for sending only. MercuryS is used when you 'connect' to the mailserver.  Have you got that configured?

The help has some good overview sections to get you familiar with the way Mercury is structured.

 

<P>[quote user="gandalf458"]I'm getting an error that PHP is unable to connect to the mailserver. I'm guessing there are some things I need to set in the MercuryE configuration?[/quote]</P> <P>MercuryE is for sending only. MercuryS is used when you 'connect' to the mailserver.  Have you got that configured?</P> <P>The help has some good overview sections to get you familiar with the way Mercury is structured.</P> <P mce_keep="true"> </P>

Silly me! I thought from your last post that I only needed MercuryE and so I switched off everything else. I've ticked MercuryS (so I only have E and S) and restarted Mercury but then I got: 553 We do not relay non-local mail, sorry. A tweak in the configuration to allow non-local mail and I could be there.

Thanks for your help. G :)

<p>Silly me! I thought from your last post that I only needed MercuryE and so I switched off everything else. I've ticked MercuryS (so I only have E and S) and restarted Mercury but then I got: 553 We do not relay non-local mail, sorry. A tweak in the configuration to allow non-local mail and I could be there. </p><p>Thanks for your help. G :) </p>

[quote user="gandalf458"]

I have Mercury/32 v4.01b

[/quote]


The first thing you should be doing is upgrading from v4.01b to v4.52.

 

[quote user="gandalf458"]<p>I have Mercury/32 v4.01b </p><p>[/quote]</p><p> </p><p>The first thing you should be doing is upgrading from v4.01b to v4.52.</p><p> </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