Community Discussions and Support
Simple mail sending in LAN doesn't work

Hello

It tried to find tutorials and looked in forums to solve my problem, but I can't get it right and it drives me nuts. It seems to be a simple issue, but I do need help.

What I want to do is simply send a mail from mercury mail server on pc1 in the LAN to mercury mail server on pc2 in the same LAN.

I gave them static IPs (pc1: 192.168.1.20, pc2: 192.168.1.30)

On pc1 the mercury setup looks like this:

[General]
myname: [192.168.1.20]

[MercuryS]
Interface: 192.168.1.20

[MercuryP]
Interface: 192.168.1.20

[Domains]
adrian: ardrian.com
adrian: [192.168.1.20]
adrian: 192.168.1.20
adrian: adrian
brian: brian.com
brian: [192.168.1.30]
brian: 192.168.1.30
brian: brian

Local user: adrian

On pc2 the mercury setup looks similar:

[General]
myname: [192.168.1.30]

[MercuryS]
Interface: 192.168.1.30

[MercuryP]
Interface: 192.168.1.30

[Domains]
adrian: ardrian.com
adrian: [192.168.1.20]
adrian: 192.168.1.20
adrian: adrian
brian: brian.com
brian: [192.168.1.30]
brian: 192.168.1.30
brian: brian

Local user: brian

Hosts file:
192.168.1.20   192.168.1.20
192.168.1.20   adrian.com
192.168.1.30   192.168.1.30
192.168.1.30   brian.com

I'm able to send a mail to the local adress (from adrian@192.168.1.20 to adrian@192.168.1.20) but when i try to send a mail to brian@192.168.1.30 it always says something like <user brian@192.168.1.30 not known>

Thanks for your help

 


 



 

 

&lt;P&gt;Hello&lt;/P&gt; &lt;P&gt;It tried to find tutorials and looked in forums to solve my problem, but I can&#039;t get it right and it drives me nuts. It seems to be a simple issue, but I do need help.&lt;/P&gt; &lt;P&gt;What I want to do&amp;nbsp;is simply send a&amp;nbsp;mail&amp;nbsp;from mercury mail server on pc1 in the LAN to mercury mail server on pc2 in the same LAN. &lt;/P&gt; &lt;P&gt;I gave them static IPs (pc1: 192.168.1.20, pc2: 192.168.1.30)&lt;/P&gt; &lt;P&gt;On pc1&amp;nbsp;the mercury setup looks like this:&lt;/P&gt; &lt;P&gt;[General] myname:&amp;nbsp;[192.168.1.20]&lt;/P&gt; &lt;P&gt;[MercuryS] Interface: 192.168.1.20&lt;/P&gt; &lt;P&gt;[MercuryP] Interface: 192.168.1.20&lt;/P&gt; &lt;P&gt;[Domains] adrian: ardrian.com adrian: [192.168.1.20] adrian: 192.168.1.20 adrian: adrian brian: brian.com brian: [192.168.1.30] brian: 192.168.1.30 brian: brian&lt;/P&gt; &lt;P&gt;Local user: adrian&lt;/P&gt; &lt;P&gt;On pc2&amp;nbsp;the mercury setup looks similar:&lt;/P&gt; &lt;P&gt;[General] myname:&amp;nbsp;[192.168.1.30]&lt;/P&gt; &lt;P&gt;[MercuryS] Interface: 192.168.1.30&lt;/P&gt; &lt;P&gt;[MercuryP] Interface: 192.168.1.30&lt;/P&gt; &lt;P&gt;[Domains] adrian: ardrian.com adrian: [192.168.1.20] adrian: 192.168.1.20 adrian: adrian brian: brian.com brian: [192.168.1.30] brian: 192.168.1.30 brian: brian&lt;/P&gt; &lt;P&gt;Local user: brian&lt;/P&gt; &lt;P&gt;Hosts file: 192.168.1.20&amp;nbsp;&amp;nbsp; 192.168.1.20 192.168.1.20&amp;nbsp;&amp;nbsp; adrian.com 192.168.1.30&amp;nbsp;&amp;nbsp; 192.168.1.30 192.168.1.30&amp;nbsp;&amp;nbsp; brian.com I&#039;m able to send a mail to the local adress (from &lt;A href=&quot;mailto:adrian@192.168.1.20&quot;&gt;adrian@192.168.1.20&lt;/A&gt;&amp;nbsp;to &lt;A href=&quot;mailto:adrian@192.168.1.20&quot;&gt;adrian@192.168.1.20&lt;/A&gt;) but when i try to send a mail to &lt;A href=&quot;mailto:brian@192.168.1.30&quot;&gt;brian@192.168.1.30&lt;/A&gt; it always says something like &amp;lt;user &lt;A href=&quot;mailto:brian@192.168.1.30&quot;&gt;brian@192.168.1.30&lt;/A&gt; not known&amp;gt;&lt;/P&gt; &lt;P&gt;Thanks for your help&lt;/P&gt; &lt;P mce_keep=&quot;true&quot;&gt;&amp;nbsp;&lt;/P&gt; &lt;P&gt; &amp;nbsp;&lt;/P&gt; &lt;P&gt; &amp;nbsp;&lt;/P&gt; &lt;P mce_keep=&quot;true&quot;&gt;&amp;nbsp;&lt;/P&gt;

[quote user="roschti"]

On pc1 the mercury setup looks like this:

[General]
myname: [192.168.1.20]

[MercuryS]
Interface: 192.168.1.20

[MercuryP]
Interface: 192.168.1.20[/quote]You can leave the interfaces blank, it will listen on all[quote]

[Domains]
adrian: ardrian.com
adrian: [192.168.1.20]
adrian: 192.168.1.20
adrian: adrian
brian: brian.com
brian: [192.168.1.30]
brian: 192.168.1.30
brian: brian[/quote]Have another read of the help "Local Domains" section [:)]

Anything listed here is considered local (to this instance of mercury), so any mail addressed to any of these domains will (try to) be delivered to a local user.

Note that the value of the servername: parameter is irrelevant (but still needs to be there and "should" be the same on each line) unless you are using it with a Netware server.[quote]

Local user: adrian

On pc2 the mercury setup looks similar:

[General]
myname: [192.168.1.30]

[MercuryS]
Interface: 192.168.1.30

[MercuryP]
Interface: 192.168.1.30

[Domains]
adrian: ardrian.com
adrian: [192.168.1.20]
adrian: 192.168.1.20
adrian: adrian
brian: brian.com
brian: [192.168.1.30]
brian: 192.168.1.30
brian: brian

Local user: brian

Hosts file:
192.168.1.20   192.168.1.20
192.168.1.20   adrian.com
192.168.1.30   192.168.1.30
192.168.1.30   brian.com

I'm able to send a mail to the local adress (from adrian@192.168.1.20 to adrian@192.168.1.20) but when i try to send a mail to brian@192.168.1.30 it always says something like <user brian@192.168.1.30 not known>

Thanks for your help

 [/quote]Remove the non-local domains from the "Local Domains" section on each machine and it should work as expected.

[quote user=&quot;roschti&quot;]&lt;p&gt;On pc1&amp;nbsp;the mercury setup looks like this:&lt;/p&gt; &lt;p&gt;[General] myname:&amp;nbsp;[192.168.1.20]&lt;/p&gt; &lt;p&gt;[MercuryS] Interface: 192.168.1.20&lt;/p&gt; &lt;p&gt;[MercuryP] Interface: 192.168.1.20[/quote]You can leave the interfaces blank, it will listen on all[quote] &lt;/p&gt; &lt;p&gt;[Domains] adrian: ardrian.com adrian: [192.168.1.20] adrian: 192.168.1.20 adrian: adrian brian: brian.com brian: [192.168.1.30] brian: 192.168.1.30 brian: brian[/quote]Have another read of the help &quot;Local Domains&quot; section [:)] &lt;/p&gt;&lt;p&gt;Anything listed here is considered local (to this instance of mercury), so any mail addressed to any of these domains will (try to) be delivered to a local user.&lt;/p&gt;&lt;p&gt;Note that the value of the servername: parameter is irrelevant (but still needs to be there and &quot;should&quot; be the same on each line) unless you are using it with a Netware server.[quote] &lt;/p&gt; &lt;p&gt;Local user: adrian&lt;/p&gt; &lt;p&gt;On pc2&amp;nbsp;the mercury setup looks similar:&lt;/p&gt; &lt;p&gt;[General] myname:&amp;nbsp;[192.168.1.30]&lt;/p&gt; &lt;p&gt;[MercuryS] Interface: 192.168.1.30&lt;/p&gt; &lt;p&gt;[MercuryP] Interface: 192.168.1.30&lt;/p&gt; &lt;p&gt;[Domains] adrian: ardrian.com adrian: [192.168.1.20] adrian: 192.168.1.20 adrian: adrian brian: brian.com brian: [192.168.1.30] brian: 192.168.1.30 brian: brian&lt;/p&gt; &lt;p&gt;Local user: brian&lt;/p&gt; &lt;p&gt;Hosts file: 192.168.1.20&amp;nbsp;&amp;nbsp; 192.168.1.20 192.168.1.20&amp;nbsp;&amp;nbsp; adrian.com 192.168.1.30&amp;nbsp;&amp;nbsp; 192.168.1.30 192.168.1.30&amp;nbsp;&amp;nbsp; brian.com I&#039;m able to send a mail to the local adress (from &lt;a href=&quot;mailto:adrian@192.168.1.20&quot; mce_href=&quot;mailto:adrian@192.168.1.20&quot;&gt;adrian@192.168.1.20&lt;/a&gt;&amp;nbsp;to &lt;a href=&quot;mailto:adrian@192.168.1.20&quot; mce_href=&quot;mailto:adrian@192.168.1.20&quot;&gt;adrian@192.168.1.20&lt;/a&gt;) but when i try to send a mail to &lt;a href=&quot;mailto:brian@192.168.1.30&quot; mce_href=&quot;mailto:brian@192.168.1.30&quot;&gt;brian@192.168.1.30&lt;/a&gt; it always says something like &amp;lt;user &lt;a href=&quot;mailto:brian@192.168.1.30&quot; mce_href=&quot;mailto:brian@192.168.1.30&quot;&gt;brian@192.168.1.30&lt;/a&gt; not known&amp;gt;&lt;/p&gt; &lt;p&gt;Thanks for your help&lt;/p&gt; &lt;p&gt;&amp;nbsp;[/quote]Remove the non-local domains from the &quot;Local Domains&quot; section on each machine and it should work as expected. &lt;/p&gt;

Thanks for your reply!

Anything listed here is considered local (to this instance of mercury), so any mail addressed to any of these domains will (try to) be delivered to a local user.

Ok I got the point!

Note that the value of the servername: parameter is irrelevant (but still needs to be there and "should" be the same on each line) unless you are using it with a Netware server.

I can't see what my server name should be, if it doesn't matter I simply enter 192.168.1.20   192.168.1.20 (for Pc1) and 192.168.1.30   192.168.1.30 (for Pc2) that should do it? 

&lt;P mce_keep=&quot;true&quot;&gt;Thanks for your reply!&lt;/P&gt; &lt;BLOCKQUOTE&gt;Anything listed here is considered local (to this instance of mercury), so any mail addressed to any of these domains will (try to) be delivered to a local user. &lt;/BLOCKQUOTE&gt; &lt;P&gt;Ok I got the point!&lt;/P&gt; &lt;BLOCKQUOTE&gt;Note that the value of the servername: parameter is irrelevant (but still needs to be there and &quot;should&quot; be the same on each line) unless you are using it with a Netware server.&lt;/BLOCKQUOTE&gt; &lt;P&gt;I can&#039;t see what my server name should be, if it doesn&#039;t matter I simply enter 192.168.1.20&amp;nbsp;&amp;nbsp; 192.168.1.20 (for Pc1) and 192.168.1.30&amp;nbsp;&amp;nbsp; 192.168.1.30 (for Pc2)&amp;nbsp;that should&amp;nbsp;do it?&amp;nbsp;&lt;/P&gt;

I was referring to the fields in the Local Domains section.

server:  [192.168.1.20]

 'server' can be anything, as it is ignored.

The "internet name for this system:" entry in the Core config should be the FQDN of the system if you are going to be sending to external mail systems, but as you are only using it on your LAN it can be whatever you want.

&lt;p&gt;I was referring to the fields in the Local Domains section.&lt;/p&gt;&lt;p&gt;server:&amp;nbsp; [192.168.1.20]&lt;/p&gt;&lt;p&gt;&amp;nbsp;&#039;server&#039; can be anything, as it is ignored.&lt;/p&gt;&lt;p&gt;The &quot;internet name for this system:&quot; entry in the Core config should be the FQDN of the system if you are going to be sending to external mail systems, but as you are only using it on your LAN it can be whatever you want. &lt;/p&gt;

How I get the following error message in SMTP Client end-to-end

Temporary error 249 (temporary MX resolution error) resolving '192.168.0.10'

&lt;P&gt;How I get the following error message in SMTP Client&amp;nbsp;end-to-end&lt;/P&gt; &lt;P&gt;Temporary error 249 (temporary MX resolution error) resolving &#039;192.168.0.10&#039;&lt;/P&gt;

How I get the following error message in SMTP Client end-to-end

Temporary error 249 (temporary MX resolution error) resolving '192.168.1.30'

&lt;P&gt;How I get the following error message in SMTP Client&amp;nbsp;end-to-end&lt;/P&gt; &lt;P&gt;Temporary error 249 (temporary MX resolution error) resolving &#039;192.168.1.30&#039;&lt;/P&gt;

In email addresses and in the local domains section of mercury.ini numerical host addresses need to be enclosed in brackets like this: [192.168.1.30]

/Rolf

&lt;p&gt;In email addresses and in the local domains section of mercury.ini numerical host addresses need to be enclosed in brackets like this: [192.168.1.30]&lt;/p&gt;&lt;p&gt;/Rolf &lt;/p&gt;

When I try to send a mail to brian@[192.168.1.30] in my mail client, it says that at least one recipient doesn't have a mail adress. The mail can not be sent.

When I try to send a mail to brian@[192.168.1.30] in my mail client, it says that at least one recipient doesn&#039;t have a mail adress. The mail can not be sent.

Yes great it works! At least when I send a mail directly from mercury as postmaster, because there I can enter the brackets in the email adress. But how can I enter those brackets in my email client (windows live mail)?

 You guys helped alot, thanks!

&lt;p&gt;Yes great it works! At least when I send a mail directly from mercury as postmaster, because there I can enter the brackets in the email adress. But how can I enter those brackets in my email client (windows live mail)?&lt;/p&gt;&lt;p&gt;&amp;nbsp;You guys helped alot, thanks! &lt;/p&gt;

> When I try to send a mail to brian@[192.168.1.30] in my mail client, it says that at least one recipient doesn't have a mail address. The mail can not be sent.

Talk to the developer of the e-mail client since it is broken.  The literal address is a perfectly valid from of e-mail address IAW RFC 2821.

4.1.3 Address Literals

Sometimes a host is not known to the domain name system and communication (and, in particular, communication to report and repair
the error) is blocked. To bypass this barrier a special literal form of the address is allowed as an alternative to a domain name. For
IPv4 addresses, this form uses four small decimal integers separated by dots and enclosed by brackets such as [123.255.37.2], which
indicates an (IPv4) Internet Address in sequence-of-octets form. For IPv6 and other forms of addressing that might eventually be
standardized, the form consists of a standardized "tag" that identifies the address syntax, a colon, and the address itself, in a
format specified as part of the IPv6 standards [17].
&lt;p&gt;&amp;gt; When I try to send a mail to brian@[192.168.1.30] in my mail client, it says that at least one recipient doesn&#039;t have a mail address. The mail can not be sent. &lt;/p&gt;&lt;p&gt;Talk to the developer of the e-mail client since it is broken.&amp;nbsp; The literal address is a perfectly valid from of e-mail address IAW RFC 2821.&lt;/p&gt;&lt;pre&gt;4.1.3 Address Literals Sometimes a host is not known to the domain name system and communication (and, in particular, communication to report and repair the error) is blocked. To bypass this barrier a special literal form of the address is allowed as an alternative to a domain name. For IPv4 addresses, this form uses four small decimal integers separated by dots and enclosed by brackets such as [123.255.37.2], which indicates an (IPv4) Internet Address in sequence-of-octets form. For IPv6 and other forms of addressing that might eventually be standardized, the form consists of a standardized &quot;tag&quot; that identifies the address syntax, a colon, and the address itself, in a format specified as part of the IPv6 standards [17]. &lt;/pre&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