Sendmail linux command line

Sendmail is a popular mail transfer agent (MTA) that is used to send and receive emails on Linux systems. Here are some common sendmail commands that can be used from the Linux command line:

Sending an email

Options

Example

Here is an example of sending an email using sendmail:

$ sendmail -t -i -f [email protected] -c "Subject: Test email" [email protected]

This command will send an email from [email protected] to [email protected] with the subject "Test email".

Configuring sendmail

Troubleshooting

Note: The sendmail command is usually located in the /usr/sbin directory, so you may need to use the full path to the command if it is not in your system's PATH. For example: /usr/sbin/sendmail -v [email protected].