Will mail() function still work with Postfix and not Sendmail?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Phil Latio

    Will mail() function still work with Postfix and not Sendmail?

    I understand (perhaps wrongly) that the mail() function relies on Sendmail
    being installed on the server.

    However I am wanting to run Postfix and Sendmail will not be loaded.

    Ideally I would have liked to have setup a seperate machine as an email
    server but the machine I was about to use has suddenly developed a major
    dislike for just about any memory stick I insert and therefore is not
    operational.

    Therefore will the mail() function still operate with Postfix running and
    not Sendmail?

    Cheers

    Phil


  • Colin McKinnon

    #2
    Re: Will mail() function still work with Postfix and not Sendmail?

    Phil Latio wrote:
    I understand (perhaps wrongly) that the mail() function relies on Sendmail
    being installed on the server.
    >
    It should work fine if you configure it as if sendmail were available
    locally.

    C.

    Comment

    • Toby A Inkster

      #3
      Re: Will mail() function still work with Postfix and not Sendmail?

      Phil Latio wrote:
      Therefore will the mail() function still operate with Postfix running and
      not Sendmail?
      I use Postfix, and mail() works fine. Postfix provides a
      sendmail-compatible binary at "/usr/bin/sendmail", so PHP
      never even notices that sendmail is not installed. (Most
      Linux/UNIX mailers do provide such a binary.)

      --
      Toby A Inkster BSc (Hons) ARCS
      Contact Me ~ http://tobyinkster.co.uk/contact
      Geek of ~ HTML/SQL/Perl/PHP/Python*/Apache/Linux

      * = I'm getting there!

      Comment

      Working...