Postfix Mail Server - Failed to Re-start Service

  • FastCashPRO
  • 10/20/11
  • Offline
Posted: Thu, 2011-10-20 01:11

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


Howdy, When you attempt to

  • andreychek
  • 01/04/09
  • Online Now
  • Thu, 2011-10-20 08:22

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


CRITICAL ERROR - /sbin/service: line 3: /etc/init.d/functions: N

  • FastCashPRO
  • 10/20/11
  • Offline
  • Sat, 2011-11-26 09:32

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


Howdy, Hmm, that's quite a

  • andreychek
  • 01/04/09
  • Online Now
  • Mon, 2011-11-28 09:12

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


Hi, Thanks for your

  • FastCashPRO
  • 10/20/11
  • Offline
  • Mon, 2011-11-28 09:17

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.