Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1114
  • Last Modified:

Cannot install Postfix

After installing postfix via apt-get install postfix  I get the below error.  I have attempted, apt-get install upgrade, apt-get install -f upgrade, apt-get install upgrade --configure-missing,  and have even attempted installing postfix from the source code aka the debian package, and using dpkg to install.  All fail.  I have removed postfix altogether, including removing the entire directory.  I would just configure a new server from scratch but I have a web developer that  has done ridiculous amounts of work on the server inquestion already.

Help, suggestions, ideas, this is critical
Running newaliases
 * Stopping Postfix Mail Transport Agent postfix                                                    [ OK ]
 * Starting Postfix Mail Transport Agent postfix                                                           /bin/sh: Can't open /etc/postfix/post-install
postfix/postfix-script: warning: unable to create missing queue directories
postfix/postfix-script: fatal: Postfix integrity check failed!
                                                                                                    [fail]
invoke-rc.d: initscript postfix, action "restart" failed.
dpkg: error processing postfix (--configure):
 subprocess post-installation script returned error exit status 1
Processing triggers for libc6 ...
ldconfig deferred processing now taking place
Errors were encountered while processing:
 postfix
E: Sub-process /usr/bin/dpkg returned an error code (1)
 
 
 
root@domU-12-31-38-00-28-64:~# /etc/init.d/postfix reload
 * Reloading Postfix configuration...                                                                                                                                                                                   postfix/postfix-script: fatal: the Postfix mail system is not running

Open in new window

0
Illyankesh
Asked:
Illyankesh
  • 2
1 Solution
 
IllyankeshAuthor Commented:
dpkg: error processing postfix (--install):
 subprocess post-installation script returned error exit status 255
Processing triggers for ufw ...
Processing triggers for man-db ...
postfix: fatal: /etc/postfix/postfix-script: No such file or directory
                                                                                                    [fail]
invoke-rc.d: initscript postfix, action "restart" failed.
Processing triggers for libc6 ...
ldconfig deferred processing now taking place
Errors were encountered while processing:
 postfix
0
 
IllyankeshAuthor Commented:
Ended up having to scp my entire /etc/postfix directory over to the server with the failed install.
then chmod the postfix-scripts file 777, and make the appropriate changes to the /etc/postfix/main.cf file
then reloaded, and away we went.
0

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now