Postfix sendmail_path in php.ini

Posted on 2009-04-20
Last Modified: 2013-12-17
I've recently switched from using sendmail to postfix on my Ubuntu server.

Originally when I used sendmail my sendmail_path was :
sendmail_path = /usr/sbin/sendmail -t -i

Now that I've installed postfix the sendmail path is still /usr/sbin/sendmail but I'm wondering if I should still include -t -i
Question by:TotallyMe
    LVL 13

    Accepted Solution

    Just use the following instead of sendmail_path:

    SMTP = localhost
    smtp_port = 25

    comment out the sendmail specific information with a ";" before the line.

    Author Comment

    I didn't actually realize it opened up port 25, I'll probably do it this way but is it still possible to use postfix via the command line? And are there any advantages to using port 25 rather than using the command line?
    LVL 13

    Expert Comment

    By default postfix installs a postfix to sendmail compatibility interface, which is /usr/sbin/sendmail.

    All mail servers open up port 25 by default, hence the recommendation of just using port 25, its more because I'm lazy...

    Using the command line will be faster, but unless your sending hundreds of emails per minute you won't notice any performance issues.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Maximize Your Threat Intelligence Reporting

    Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

    Easy CSR creation in Exchange 2007,2010 and 2013
    These days socially coordinated efforts have turned into a critical requirement for enterprises.
    In this Micro Video tutorial you will learn the basics about Database Availability Groups and How to configure one using a live Exchange Server Environment. The video tutorial explains the basics of the Exchange server Database Availability grou…
    The viewer will learn how to count occurrences of each item in an array.

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now