Email and Webmail

What is the path to sendmail?

Updated November 2026 11,547 views 2 min read
Email & Webmail | Updated November 2026

The path to sendmail on Ultra Web Hosting servers is /usr/sbin/sendmail. This is the standard location used by PHP, Perl, and other scripting languages to send email from your website.

01. Where You Might Need This

  • PHP configuration - The sendmail_path in php.ini is already set correctly on our servers. You should not need to change it.
  • Application configuration - Some apps ask for the sendmail path during setup. Enter /usr/sbin/sendmail.
  • Perl scripts - CGI scripts that call sendmail directly should use this path.
Better Alternative

For website contact forms and application emails, we recommend using authenticated SMTP instead of sendmail. SMTP provides better deliverability because messages are sent with proper authentication headers. See Why Does My Form Not Send Email? for setup instructions.

For other server paths (PHP, Perl, Python, ImageMagick, etc.), see Server Paths - PHP, Perl, Python and More.

Email Sending Issues?

If your script cannot send email even with the correct sendmail path, the issue may be elsewhere. Open a ticket with details.

Open a Support Ticket

Frequently Asked Questions

What is the path to sendmail on UWH servers?

The sendmail path is /usr/sbin/sendmail. This is the standard location that PHP, Perl, and other scripting languages use to send mail from your website.

Where do I use the sendmail path?

In application or script configuration that asks for a sendmail binary path, for example some contact-form scripts, PHP's sendmail_path, or Perl mailers. Enter /usr/sbin/sendmail where the software asks for the sendmail location.

Should I use sendmail or SMTP to send mail from my site?

For reliable delivery, authenticated SMTP is better than the local sendmail or mail() path, because SMTP authenticates your domain and improves inbox placement. Use a mailbox on your domain with SMTP where possible; sendmail works but is more likely to be filtered.

How do I find a binary path myself?

From an SSH shell, run which followed by the program name, for example which sendmail, or whereis sendmail. This prints the exact path on your server, which is the most reliable way to confirm it for a script or cron job.

Quick Recap

  1. Path: /usr/sbin/sendmail
  2. Already configured in PHP on our servers
  3. Works for PHP, Perl, and other scripts
  4. Consider SMTP instead for better email deliverability
  5. See Server Paths article for other binary locations

Server configuration reference · Last updated November 2026 · Browse all Email articles

Share: X in Reddit f Email
  • 598 Users Found This Useful

Was this answer helpful?

Related Articles

Greatly Reduce SPAM

Email & Webmail | Updated November 2026 Spam is an unavoidable part of running email, but...

Why a TLS Checker May Report Your Mail Server Does Not Support TLS

Email and Webmail | Updated October 2026 If an online SMTP or email diagnostic tool warns...

550 Access denied - Invalid HELO name

Email & Webmail | Updated November 2026 The "550 Access denied - Invalid HELO name" error...

cPanel and Outlook Phone App Results in Unable to Log In - Secure Connection Unavailable

Email & Webmail | Updated March 2026 If the Outlook mobile app (iOS or Android) cannot...

How may I create a mailing list?

Email and Webmail | Updated January 2026 Ultra Web Hosting supports mailing lists through the...



Save 30% on web hosting - Use coupon code Hosting30