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
[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.
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?
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.
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'
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'
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
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.
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!
> 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].
Your previous draft for topic is pending
If you continue, your previous draft will be discarded.