• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 6458
  • Last Modified:

Postfix sendmail_path in php.ini

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
0
TotallyMe
Asked:
TotallyMe
  • 2
1 Solution
 
WizRd-LinuxCommented:
Just use the following instead of sendmail_path:

SMTP = localhost
smtp_port = 25

comment out the sendmail specific information with a ";" before the line.
0
 
TotallyMeAuthor Commented:
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?
0
 
WizRd-LinuxCommented:
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.
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now