Results 1 to 4 of 4

Thread: can't start postfix

  1. #1
    Join Date
    Jan 2009
    Beans
    14

    can't start postfix

    Hi,

    I was wondering if I could get some help here. I was trying to start postfix service by running the following code

    $ /etc/init.d/postfix start
    bash: /etc/init.d/postfix: /bin/bash^M: bad interpreter: No such file or directory

    I wonder what I need to do to resolve the problem so that I can start postfix service using the start-up script.

    Any help would be greatly appreciated.

    Thank you

  2. #2
    Join Date
    Jun 2007
    Location
    Paraparaumu, New Zealand
    Beans
    Hidden!

    Re: can't start postfix

    What version of Ubuntu are you using?
    In newer releases, the proper command is:
    Code:
    sudo start service postfix
    Forum DOs and DON'Ts
    Please use CODE tags
    Including your email address in a post is not recommended
    My Blog

  3. #3
    Join Date
    Apr 2012
    Beans
    7,256

    Re: can't start postfix

    did you by any chance copy the postfix script from (or via) a Windows machine? The ^M code usually indicates a DOS-style (CR-LF) line termination

  4. #4
    Join Date
    Jan 2009
    Beans
    14

    Re: can't start postfix

    Thank you for your reply.

    Sorry that I forgot to tell you my Ubuntu version. it's Ubuntu server 12-04 LTS.

    I actually installed postfix from source so I use my own bash start-up script.

    hmm. you got me thinking about ^M code. I'll double check again in my script. I use nano editor to edit it.

    Thank you

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
  •