Now server2 obviously can’t host www.domain.com as this is already on server1.
Server1 has DNS records for server2 and is working ok.
What I want to do is for any root emails or webmin emails on server2 to be sent to the server@domain.com email address, so where do I set this up as everything on server2 is backing up in the mail queue.
Is it because port 25 will need unblocking on server2 (server1 already is) or do I just need to add an email address somewhere.
If I understand correctly, you’d just need to setup email forwarding so that messages reaching the root user on server #2 would be forwarded to the root (or another user) on server #1.
If that’s what you’re after, and you can’t figure out how to do so, let me know.
Hi, yes that is exactly correct. I want server emails which should normally go to root on server 2 forwarding to server 1.
At present all email sent to root on server 1 is then mail aliased to server@server1.com I know want to set up server 2 so that all servers emails go to root as per normal which is then forwarded onto server@server1.com as per server 1.
I have changed the mail alias on server 2 so it is identical to server 1 but at present everything is stacking up on server 2. Am I missing something or does port 25 need unblocking on server 2?
After sending an email, take a peek in the email logs to see what exactly is happening. If there is an error, or other problem, the email logs should help you identify what is going on.
Those are in /var/log/maillog, or /var/log/mail.log, depending on your distro.
thats ok but have I set it up right in the first place? I can’t check email logs if nothing is set up correctly, please read my first post as to see what I want to achieve.