Hostname change

Setting up the new server meant we needed to use a new host name for the new server. Restoring from the old server I am now finding emails generated by website forms on the new server using the old hostname. And because of this they are seemingly getting stuck in the mail queue. There are only a few there at the moment with the status of unknown mail transport error, but looking at the headers the receiving server is listed as the old host, not the new one.

I was wondering if there is a simple way to fix this. Somehow the configuration files of the Virtual Servers need to be updated to the new server but I'm not sure how to go about this?



Howdy -- while the old hostname may be listed somewhere, I suspect the problem may be something different than that. Though we can certainly look into that.

If you look in /var/log/maillog, do you see any errors there?

If not, try restarting Postfix, as doing that may show the error.

Part of the log is attached.

Thanks -- I do see an error in there, though I'm not sure what's causing that at the moment.

Could you attach your /etc/postfix/ file, along with the output of the command "postconf -n"?

They are attached. Thanks.

Okay, it looks like it may be missing some files from the Postfix directory for some reason... what is the output of this command:

ls /var/spool/postfix/etc


Output is probably not what you expected.

ls: cannot access /var/spool/postfix/etc: No such file or directory

Hi, I have decided to shutdown the CentOS server and create a debian8 server instead. After a couple of minor hiccups I have the minimal Debian server up and running. But... there is always one isn't there. Can't get Virtualmin to install. Do you want me to create a new ticket for this?


Ugh, my apologies, it looks like I somehow failed to respond to your previous comment! Sorry about that.

We're happy to help you with Virtualmin on Debian 8 though.

A new request might be best for that -- just let us know in that new request what issue(s) you're seeing.

Actually, you may want to attach the /root/virtualmin-install.log file to that request as well.

Actually I think the problem of installing Virtualmin has more to do with the way I have set up the Debian server. Before I go any further can you give me a quick heads up on the options to have when setting up a minimal Debian 8 server? All I chose was SSH server and basic system and nothing else. That will probably be a better starting point. If it's covered in the documentation then a link to that would be great. Am away for a few days so probably wont get back to it till Monday.

Thanks for getting back to me.

Yup, what you did should be fine! Minimal install with SSH.

If there's an issue with that, let us know and we'd be happy to assist.