Postfix Mail Server - Failed to Re-start Service

5 posts / 0 new
Last post
#1 Thu, 10/20/2011 - 02:11
FastCashPRO

Postfix Mail Server - Failed to Re-start Service

Hello,

I am having issues with Postfix. My postfix failed to re-start and stop. I can't send emails since the service is not working. I re-started everything and only postfix failed to do.

I ran commands via SSH but still won't re-start the service.

Please help me fix this.

Thanks, Eduard

Thu, 10/20/2011 - 09:22
andreychek

Howdy,

When you attempt to start Postfix, do any errors show up in your mail logs?

The mail logs are in either /var/log/maillog, or /var/log/mail.log.

-Eric

Sat, 11/26/2011 - 09:32 (Reply to #2)
FastCashPRO

Hi,

The issue was fixed but I have encountered another error. I accidentally deleted the /etc directory :(

[root@mydomainhost ~]# /sbin/service postfix restart /sbin/service: line 3: /etc/init.d/functions: No such file or directory

Can you help out? I can't start the server. I can't even log in via SSH. It says "server unexpectedly closed the network connection".

My webmin won't even start.

Please advise.

-Eduard

Mon, 11/28/2011 - 09:12
andreychek

Howdy,

Hmm, that's quite a predicament there :-)

The problem is that there isn't a quick fix to that -- the /etc directory contains the configuration for all of the services running on your system, and is rather important :-)

Do you have Virtualmin backups for all of your Virtual Servers? You'll need those in order to resolve this issue.

Here is my recommendation for how to fix this (assuming you don't just want to start from scratch with a new server):

  1. Install an identical version of your Linux distro on another system

  2. Install Virtualmin on that other system

  3. Copy the /etc directory from your other server to your current one

  4. Restore all of your Virtual Server backups (you don't actually have to restore the /home directory data, just all the configuration related goodies)

  5. You'll then want to reboot, and figure out what still isn't working, and then make tweaks to the things not working properly

Mon, 11/28/2011 - 09:17
FastCashPRO

Hi,

Thanks for your response.

The problem was actually resolved. I've contacted support for help. I didn't have backups so I did ask for help.

Regards.