Results 1 to 5 of 5

Thread: /etc/postfix/main.cf: No such file or directory

  1. #1
    Join Date
    Nov 2005
    Location
    Quito
    Beans
    43
    Distro
    Ubuntu 12.04 Precise Pangolin

    /etc/postfix/main.cf: No such file or directory

    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.

  2. #2
    Join Date
    Mar 2010
    Beans
    2

    Re: /etc/postfix/main.cf: No such file or directory

    I had a similar problem, fixed with
    Code:
    sudo dpkg-reconfigure postfix

  3. #3
    Join Date
    Jul 2009
    Beans
    5

    Re: /etc/postfix/main.cf: No such file or directory

    I tried
    Code:
    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?
    Last edited by blackmonjd; December 7th, 2011 at 05:06 AM. Reason: More info.

  4. #4
    Join Date
    Jun 2009
    Beans
    10

    Re: /etc/postfix/main.cf: No such file or directory

    I had the same issue. My fix was super simple:

    apt-get remove postfix

    I am not trying to send mail.

  5. #5
    Join Date
    Jun 2007
    Beans
    21

    Re: /etc/postfix/main.cf: No such file or directory

    Quote Originally Posted by selimhanov View Post
    I had a similar problem, fixed with
    Code:
    sudo dpkg-reconfigure postfix
    fix my issues

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •