Hi,
When I try to send e-mail to a virtual server user, I get a response message like:
This is the mail system at host ns.hostname.com.
I'm sorry to have to inform you that your message could not
be delivered to one or more recipients. It's attached below.
For further assistance, please send mail to postmaster.
If you do so, please include this problem report. You can
delete your own text from the attached returned message.
The mail system
<user@virtualhost.com>: Host or domain name not found. Name service
error for name=mail.virtualhost.com type=A: Host not found
and mails are not delivering. They resolve the main mail servers dns but I think then it can not deliver internally. The user@virtualhost.com is created and mapped to user.virtualhost.com in /etc/postfix/virtual map file.
You may want to start by going into System Settings -> Re-Check Config, as that’ll catch a lot of unusual things that could be going on.
You may want to verify that DNS is working properly on your server, and that your server is able to correctly resolve the domain you’re using, “virtualhost.com”.
I have already done it and there is no problem. (i.e. … your system is ready for use by Virtualmin.)
But after adding in /etc/postfix/main.cf that:
mydomain=hostname.com
now I am getting:
This is the mail system at host ns.hostname.com.
I'm sorry to have to inform you that your message could not
be delivered to one or more recipients. It's attached below.
For further assistance, please send mail to postmaster.
If you do so, please include this problem report. You can
delete your own text from the attached returned message.
The mail system
<user@virtualhost.com> (expanded from
<user@virtualhost.com>): mail for ns loops back to myself
error.
And also from inside and outside I can resolve the hostname. No problem with that also.