Community Discussions and Support
Having issues getting the relay settings to work

Thanks - That took care of the relay but had to surrender the mail services back to the original server as the ip is black listed and we are getting hit by something that I can't describe here.  I am going to look deeper and start a new post

THanks to everyone -

Bob

<P>Thanks - That took care of the relay but had to surrender the mail services back to the original server as the ip is black listed and we are getting hit by something that I can't describe here.  I am going to look deeper and start a new post</P> <P>THanks to everyone - </P> <P>Bob</P>

Hi,

I have used Mercury Mail many years ago without problems and have always thought it was a fantastic program. 

Although I know it's easy to setup and get running, I seem to have missed soemthing and after reading many posts and select topics in the manual, I am now lost.

I am embarassed to admit this but right now the only way that I can get the serve to work is to allow relay.

I want to allow local users to send and recieve from the local network and have the server receive mail for users.  Simple! - Please help

The server has an MX record.  I have set the local IP range to ALLOW relay in MercS, Using MercE to send mail.

If I check Use Strict local relay - it shuts down the send/receive for local users and replys to outside mail recieve as we do not relay mail.

I have what I think are all the variations of the domain name down but?????

I tried to set the Auth SMTP using a file with one line per user - user name space password and this did not work.

Right now the mail server will receive email for users that don't exist and will allow users spoofed to send mail.

I know the answer shold be easy but I need some help and any would be appreciated

 

Bob 

 

 

 

<P>Hi,</P> <P>I have used Mercury Mail many years ago without problems and have always thought it was a fantastic program.  </P> <P>Although I know it's easy to setup and get running, I seem to have missed soemthing and after reading many posts and select topics in the manual, I am now lost.</P> <P>I am embarassed to admit this but right now the only way that I can get the serve to work is to allow relay.</P> <P>I want to allow local users to send and recieve from the local network and have the server receive mail for users.  Simple! - Please help</P> <P>The server has an MX record.  I have set the local IP range to ALLOW relay in MercS, Using MercE to send mail.</P> <P>If I check Use Strict local relay - it shuts down the send/receive for local users and replys to outside mail recieve as we do not relay mail.</P> <P>I have what I think are all the variations of the domain name down but?????</P> <P>I tried to set the Auth SMTP using a file with one line per user - user name space password and this did not work.</P> <P>Right now the mail server will receive email for users that don't exist and will allow users spoofed to send mail.</P> <P>I know the answer shold be easy but I need some help and any would be appreciated</P> <P mce_keep="true"> </P> <P>Bob </P> <P mce_keep="true"> </P> <P mce_keep="true"> </P> <P mce_keep="true"> </P>

To stop receiving mail for non-existens local users uncheck "Accept mail for invalid local addresses" in MercuryS configuration.

If you want to use the AUTH password file check "Authenticated SMTP connections may relay mail" in the Connection control tab. Make sure to enter a full path to the file. Restart Mercury after making these changes.

/Rolf

<p>To stop receiving mail for non-existens local users uncheck "Accept mail for invalid local addresses" in MercuryS configuration.</p><p>If you want to use the AUTH password file check "Authenticated SMTP connections may relay mail" in the Connection control tab. Make sure to enter a full path to the file. Restart Mercury after making these changes. </p><p>/Rolf </p>

You haven't mentioned it on your post so I'll ask an obvious question! After you created the AUTH file did you set the users' email client to use SMTP authentication.

 

Dave

 

<P>You haven't mentioned it on your post so I'll ask an obvious question! After you created the AUTH file did you set the users' email client to use SMTP authentication.</P> <P mce_keep="true"> </P> <P>Dave</P> <P mce_keep="true"> </P>

First - Thanks Rolf

I do have the clients set for SMTP authenticaiton for outgoing mail.

I created the auth file as

joe 1234

mary 1234

etc

should I have added the full email address such as

joe(at)mydomain.com 1234

I presently have changed the settings in MercS to DO not permit  relaying of non-local mail

and have autthenicated smtp connections may relay mail

I am testing it out right now

 

 

<P>First - Thanks Rolf </P> <P>I do have the clients set for SMTP authenticaiton for outgoing mail.</P> <P>I created the auth file as</P> <P>joe 1234</P> <P>mary 1234</P> <P>etc</P> <P>should I have added the full email address such as</P> <P>joe(at)mydomain.com 1234</P> <P>I presently have changed the settings in MercS to DO not permit  relaying of non-local mail </P> <P>and have autthenicated smtp connections may relay mail</P> <P>I am testing it out right now</P> <P mce_keep="true"> </P> <P mce_keep="true"> </P>

Sorry if I was unclear! "joe 1234" is OK, but you may need to have the full path to the auth file in the configuration, for instance C:\Mercury\auth.txt.

/Rolf

<p>Sorry if I was unclear! "joe 1234" is OK, but you may need to have the full path to the auth file in the configuration, for instance C:\Mercury\auth.txt.</p><p>/Rolf </p>

That's cool I just wanted to make sure about the auth file and yes I do have it in the full path

BUT I can't get the client to work and I have a load of messages now pending as I think the server got flagged as an open relay too.   I am thinking of going back to MercC for now and starting over - any additional input would be appreciated

Bob

<P>That's cool I just wanted to make sure about the auth file and yes I do have it in the full path</P> <P>BUT I can't get the client to work and I have a load of messages now pending as I think the server got flagged as an open relay too.   I am thinking of going back to MercC for now and starting over - any additional input would be appreciated</P> <P>Bob</P>

If MercuryE doesn't work you should first make sure you don't by any chance have the buggy version of MercuryX active. If so either deactivate the module or download the patch.

If this isn't the case we will probably need to see some log file data for MercuryE to find out what the problem is.

After verifying that relaying has been stopped you will need to get yourself unlisted on any DNSBL that might have your IP listed. There are several sites that can help you find where you are listed, for instance:

http://www.mxtoolbox.com/blacklists.aspx

/Rolf

 

<p>If MercuryE doesn't work you should first make sure you don't by any chance have the buggy version of MercuryX active. If so either deactivate the module or download the patch. </p><p>If this isn't the case we will probably need to see some log file data for MercuryE to find out what the problem is.</p><p>After verifying that relaying has been stopped you will need to get yourself unlisted on any DNSBL that might have your IP listed. There are several sites that can help you find where you are listed, for instance:</p><p> http://www.mxtoolbox.com/blacklists.aspx</p><p>/Rolf </p><p> </p>

OOHHHHH I thought we had it but don't 

A few listings - 7 or so - applied for removal. Thanks. 

I am not using MercuryX and have a static IP on a smoothwll box set to the MX record ip on the public and ports 25 and 110 open to the mail server (2000 running Merc 4.72).  The Smoothwall box has a static route for mail.ourdomainanme.com set to the static ip on the private side = same as the forwarding to resolve the mail.ourdomain.com(10.10.10.252).

I am thinking that maybe that the help you are generously offering would be better spent if we look at one thing at a time and I offer to redifine the issue as Problem: Server will not recieve mail for local users from the outside or the inside - Mercury Core has [MXipaddress.xxx.xxx.xxx].  MercuryS has control settings as ip range 10.10.10.0 - 10.10.10.252 set as ALLOW with Do Not Permit SMTP relay of nonlocal mail and Authenticate SMTP with the AUTH file set to pw.txt in the merc mail directory.

I am not totally sure of the diff vairations of the local domains but have example

mydomain    mail.mydomain.com; mydomain   www.mydomain.com; mydomain  localip; mydomain public ip

 

here are the mercuryS settings

[MercuryS]
Debug : 1
HELO : postmaster
Logfile : C:\MERCURY\Logs\MercuryS\~y-~m-~d.log
Timeout : 30
Relay : 0
Strict_Relay : 0
Allow_Illegals : 0
SMTP_Authentication : 1
Auth_File : c:\mercury\pw.txt
Session_logging : C:\MERCURY\Sessions\MercuryS
Session_logmode : 1
Compliance_Settings : 0
Maximum_Failed_Rcpts : 4
Max_Relay_Attempts : 4
SSL_Mode : 0
ST_Blacklisting : 288
No_VRFY : 0
SMTP_ConnFlags : 0

and the MercuryE

HELO : Postmaster
Session_logging : C:\MERCURY\Sessions\MercuryE
Session_logmode : 0
Poll : 60
Timeout : 60
Logfile : C:\MERCURY\Logs\MercuryE\~y-~m-~d.log
Log_Verbose : 0
DNS_Timeout : 30
DNS_Retries : 4
Transcripts : 1
MaxThreads : 50 

 

I really appreciate this as I don't remember having the problems setting up a pay for mail server program that I did last year for a friend and would really like to figure this out

 

 

<P>OOHHHHH I thought we had it but don't </P> <P>A few listings - 7 or so - applied for removal. Thanks.  </P> <P>I am not using MercuryX and have a static IP on a smoothwll box set to the MX record ip on the public and ports 25 and 110 open to the mail server (2000 running Merc 4.72).  The Smoothwall box has a static route for mail.ourdomainanme.com set to the static ip on the private side = same as the forwarding to resolve the mail.ourdomain.com(10.10.10.252).</P> <P>I am thinking that maybe that the help you are generously offering would be better spent if we look at one thing at a time and I offer to redifine the issue as Problem: Server will not recieve mail for local users from the outside or the inside - Mercury Core has [MXipaddress.xxx.xxx.xxx].  MercuryS has control settings as ip range 10.10.10.0 - 10.10.10.252 set as ALLOW with Do Not Permit SMTP relay of nonlocal mail and Authenticate SMTP with the AUTH file set to pw.txt in the merc mail directory.</P> <P>I am not totally sure of the diff vairations of the local domains but have example</P> <P>mydomain    mail.mydomain.com; mydomain   <A href="http://www.mydomain.com/">www.mydomain.com</A>; mydomain  localip; mydomain public ip</P> <P mce_keep="true"> </P> <P>here are the mercuryS settings</P> <P>[MercuryS] Debug : 1 HELO : postmaster Logfile : C:\MERCURY\Logs\MercuryS\~y-~m-~d.log Timeout : 30 Relay : 0 Strict_Relay : 0 Allow_Illegals : 0 SMTP_Authentication : 1 Auth_File : c:\mercury\pw.txt Session_logging : C:\MERCURY\Sessions\MercuryS Session_logmode : 1 Compliance_Settings : 0 Maximum_Failed_Rcpts : 4 Max_Relay_Attempts : 4 SSL_Mode : 0 ST_Blacklisting : 288 No_VRFY : 0 SMTP_ConnFlags : 0</P> <P>and the MercuryE</P> <P>HELO : Postmaster Session_logging : C:\MERCURY\Sessions\MercuryE Session_logmode : 0 Poll : 60 Timeout : 60 Logfile : C:\MERCURY\Logs\MercuryE\~y-~m-~d.log Log_Verbose : 0 DNS_Timeout : 30 DNS_Retries : 4 Transcripts : 1 MaxThreads : 50 </P> <P mce_keep="true"> </P> <P>I really appreciate this as I don't remember having the problems setting up a pay for mail server program that I did last year for a friend and would really like to figure this out</P> <P mce_keep="true"> </P> <P mce_keep="true"> </P>

I assume port forwarding in the firewall works as your IP was blacklisted for relaying. ;)

MercuryS has control settings as ip range 10.10.10.0 - 10.10.10.252 set as ALLOW with Do Not Permit SMTP relay of nonlocal mail

I would expect that you want local users to be able to send messages externally, so that checkbox should be checked. 

The local domains section should be something like:

server: hostname

server: domainname.com

server: mail.domainname.com

server: [10.10.10.252]   <--- brackets are required

server: [1.2.3.4]  <-- public IP

www or any other hostname in the domain should not be listed here.

[MercuryS]

HELO : postmaster

Not a reasonable value. Leave it blank or enter mail.domainname.com

Relay : 0
Strict_Relay : 0

Activate Strict relay or you will soon be back on blacklists!...

[MercuryE]

HELO : Postmaster

See the comment for MercuryS

After making the changes, restart Mercury and see if everything works. If not, please post log excerpts of failures.

/Rolf 

 

 

&lt;p&gt;I assume port forwarding in the firewall works as your IP was blacklisted for relaying. ;)&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;&lt;i&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Tahoma,Arial,Helvetica;&quot;&gt;MercuryS has control settings as ip range 10.10.10.0 - 10.10.10.252 set as ALLOW with Do Not Permit SMTP relay of nonlocal mail&lt;/span&gt;&lt;/i&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Tahoma,Arial,Helvetica;&quot;&gt;&lt;/span&gt;I would expect that you want local users to be able to send messages externally, so that checkbox should be checked.&amp;nbsp;&lt;/p&gt;&lt;p&gt;The local domains section should be something like:&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;&lt;i&gt;server: hostname&lt;/i&gt;&lt;/p&gt;&lt;p&gt;&lt;i&gt;server: domainname.com&lt;/i&gt;&lt;/p&gt;&lt;p&gt;&lt;i&gt;server: mail.domainname.com&lt;/i&gt;&lt;/p&gt;&lt;p&gt;&lt;i&gt;server: [10.10.10.252] &amp;nbsp; &lt;/i&gt;&amp;lt;--- brackets are required&lt;/p&gt;&lt;p&gt;&lt;i&gt;server: [1.2.3.4] &amp;nbsp;&lt;/i&gt;&amp;lt;-- public IP&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;www or any other hostname in the domain should not be listed here.&lt;/p&gt;&lt;blockquote&gt;&lt;i&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Tahoma,Arial,Helvetica;&quot;&gt;&lt;p&gt;[MercuryS]&lt;/p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;i&gt;HELO : postmaste&lt;/i&gt;r&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Tahoma,Arial,Helvetica;&quot;&gt;&lt;/span&gt;&lt;/blockquote&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Tahoma,Arial,Helvetica;&quot;&gt;&lt;p&gt;Not a reasonable value. Leave it blank or enter mail.domainname.com&lt;/p&gt;&lt;/span&gt;&lt;blockquote&gt;&lt;i&gt;Relay : 0 Strict_Relay : 0&lt;/i&gt;&lt;/blockquote&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Tahoma,Arial,Helvetica;&quot;&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Tahoma,Arial,Helvetica;&quot;&gt;&lt;p&gt;Activate Strict relay or you will soon be back on blacklists!...&lt;/p&gt;&lt;/span&gt;&lt;blockquote&gt;&lt;i&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Tahoma,Arial,Helvetica;&quot;&gt;&lt;p&gt;[MercuryE]&lt;/p&gt;&lt;p&gt;HELO : Postmaster&lt;/p&gt;&lt;/span&gt;&lt;/i&gt;&lt;/blockquote&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Tahoma,Arial,Helvetica;&quot;&gt;&lt;p&gt;See the comment for MercuryS After making the changes, restart Mercury and see if everything works. If not, please post log excerpts of failures.&lt;/p&gt;&lt;p&gt;/Rolf&amp;nbsp;&lt;/p&gt;&lt;/span&gt;&lt;p&gt;&amp;nbsp;&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