Results 1 to 5 of 5

Thread: mail command broken, no /etc/postfix/main.cf ?

  1. #1
    Join Date
    Dec 2009
    Beans
    Hidden!

    mail command broken, no /etc/postfix/main.cf ?

    Code:
    mail -s "cli test" myname@yahoo.com < file
    send-mail: fatal: open /etc/postfix/main.cf: No such file or directory
    Can't send mail: sendmail process failed with error code 75
    i have had postfix installed and i recently reinstalled it with no results. any help would be appreciated.

  2. #2
    Join Date
    Feb 2010
    Location
    Silicon Valley
    Beans
    1,898
    Distro
    Xubuntu 12.04 Precise Pangolin

    Re: mail command broken, no /etc/postfix/main.cf ?

    Your postfix seems installed but not configured. Run "dpkg-reconfigure postfix" from the command line to configure it.

  3. #3
    Join Date
    Dec 2009
    Beans
    Hidden!

    Re: mail command broken, no /etc/postfix/main.cf ?

    go figure. it seems like i spend forever researching a problem and when i finally break down and make a post i find the answer 5 seconds later. anyways, i've found loads of people with this problem online with no solutions so i'll post mine here.

    i used synaptic and completely removed postfix and then reinstalled. when it asks you to configure it choose "internet site" and you should probably leave the next question for your hostname as the default. it's already written in the text field btw. next install mailx and bsd-mailx. after that your mail command should work perfectly.

  4. #4
    Join Date
    May 2008
    Beans
    6

    Talking Re: mail command broken, no /etc/postfix/main.cf ?

    I ran 'dpkg-reconfigure postfix' and that solved it for me. I now remember skipping this step when I installed Ubuntu.

    Thank you.

    PK

  5. #5
    Join Date
    Feb 2008
    Location
    Texas
    Beans
    24,434
    Distro
    Ubuntu 18.04 Bionic Beaver

    Re: mail command broken, no /etc/postfix/main.cf ?

    Hi, please do not create duplicate threads it dilutes the communities efforts.
    Thanks

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
  •