PDA

View Full Version : [ubuntu] /etc/postfix/main.cf: No such file or directory



ivanp
June 28th, 2010, 02:47 PM
Hi,

Sometimes my desktop (Ubuntu 10) doesn't recognize the eth0 interface. An ifconfig will answer only with the lo interface Direc. inet:127.0.0.1 Másc:255.0.0.0, and, when this happens I can't access to the network.

At this point the /etc/network/interfaces file looks like
auto lo
iface lo inet loopback

So I have to switch to a fixed IP address in the /etc/network/interfaces file
auto eth0
iface eth0 inet static
address 172.16.10.84
netmask 255.255.240.0
gateway 172.16.1.2

Then I restar the networking service and get the following message, even when network starts working again and an ifconfig answers with both interfaces lo and eth0.

* Reconfiguring network interfaces...
ssh stop/waiting
ssh start/running, process 1570
postconf: fatal: open /etc/postfix/main.cf: No such file or directory

Why does this fatal error apears? Thank in advance.

selimhanov
October 12th, 2010, 05:06 PM
I had a similar problem, fixed with
sudo dpkg-reconfigure postfix

blackmonjd
December 7th, 2011, 05:02 AM
I tried


sudo dpkg-reconfigure postfix
sudo /etc/init.d/postfix reload
sudo /etc/init.d/networking restart


and still got the same error. I figured it's asking for this file so I created it, but I'm not sure what effect this will have. If it is only for an SMTP server, will this cause me any issues?

octobuntu
April 23rd, 2012, 11:19 PM
I had the same issue. My fix was super simple:

apt-get remove postfix

I am not trying to send mail.

mdacova
July 10th, 2012, 02:45 AM
I had a similar problem, fixed with
sudo dpkg-reconfigure postfix
fix my issues