What is Sendmail?

Sendmail is a very popular Mail Transport Agent (MTA). It is used to send email between servers. It runs in the background on our servers, and most users generally don't ever need to interact with it directly.

What is the path to Sendmail?

Sendmail is located at:

/usr/sbin/sendmail

If you have VPS Hosting or Dedicated Hosting, you can find the path by using the "which" command:

user@vps#### [/]# which sendmail
/usr/sbin/sendmail

A Command Line Example Using Sendmail

Users generally don't need to call sendmail directly from the command line, but in case you're looking for it for a specific reason, we've included an example below that shows how to send an email from the command line using sendmail:

root@vps#### [/]# /usr/sbin/sendmail -t
To: user@domain.com
From: sender_user@domain.com
Subject: This is the subject of the email
  
This is the body of the email.
.
root@#### [/]# 
Like this Article?

Login to comment.

Your Opinion Matters

... but we need to know what you're thinking!

I'm Brad Markle, your friendly Community Support technician, and I wrote the article you're looking at now. I like to think it's perfect, but I'm sure you have some suggestions. Please, let me know what they are!

Feedback
Your Email Address
Because we'd like to talk with you!

Latest Questions

If you need some help, submit your question to our Community!
We guarantee a response within 60 minutes (8am - 9pm EST, Monday - Friday)
Ask a Question!
Recent Questions
  1. My email is being rejected due to abuse by inmotion as recognized by mailspike.org.
  2. how can I change a logo and columns on a Joomla template?
  3. Can't upload to wordpress media library

Need more Help?

Search

Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail: support@InMotionHosting.com
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!