There is no problem with the email sent to an address with DomainName.
But system rejected the email to an address with Host Name instead of Domain Name
The email log say : Recipient address rejected: Access denied
How could I change the setting to accept either one?
Are you, by any chance, from Lucerne in Switzerland?
(See my “Tag” on the top left of any of my posts…)
Email, is something invented in the 70ies for the Internet - and it’s still one of the major use protocolls for communication today. Unfortunately, spam is a large part of this, but that’s another story!
In any case, mail was designed for the Internet, and as such, it needs (AFAIK) a domainname after the “@”.
It wasn’t designed for Windows systems, which often only use the hostname, limited to 15 CHRs…
AFAIK, NethServer won’t accept a Domain without a dot in it.
But this still not what I want, as I am going to install TWO NethServer
The first one is mail.domain.com, as my mail server, where the MX record point to.
The second one is abc.domain.com, which is used for testing projects and for receiving emails for the project. That’s why I want the domain part of the email address to be @abc.domain.com
Now, I will set the second NethServer as test.abc.domain.com. Then the domain part of the email address will be as @abc.domain.com
On the first NethServer, the one actually recieving the mails from Internet, you can change the Domain “abc.domain.com” from local to remote, and use the IP of the other NethServer…
For outgoing Mail on the 2nd NethServer, simply use the first NethServer as smarthost.
Create a user on the first NethServer (eg smtp-user-abc), and use that for authentification when sending.