I have a SME server (server-only) in a LAN of a small company that is there to support a development project in the engineering department with things like subversion, trac, redmine and cruise-control.
All those things work quite well, but I am going around in loops with regard to getting email delivered from that server to any of the email addresses of the people in the company. Email delivery to external addresses not related to the domain name of the company is fine.
The company does not use an internal email server and they all have accounts under their domain name with a server on the internet.
The problem is now that if I configure the domain of the server to be something like:
engineering.theirdomain.com and when it tries to deliver an email (e.g. a notification from the Trac or Redmine applications) to user@theirdomain.com, the receiving server complains that the originators domain engineering.theirdomain.com does not exist and it refuses the email. I have tried to make it deliver to an ISP mail server with authentication and it is still refused.
Then when I reconfigure the server to be just theirdomain.com, any mail to a user@theirdomain.com originating on the server, will be attempted to be delivered locally and because the user as such does not have an account on the server, it bounces also (it falls back to admin, which then is successfully forwarded to me on an external address).
So how do I get this server to successfully deliver email notifications to the local users?
Marco