Using sendmail with freebsd is easy. Here we will cover
- how to start and stop sendmail
- how to send mail with sendmail
- how to send mail from the terminal, cli, command prompt
- how to make sendmail start at boot time
How to start and stop send mail:
- [php]/etc/rc.d/sendmail stop</li>
<li>/etc/rc.d/sendmail start</li>
<li>/etc/rc.d/sendmail restart[/php]
How to send mail with sendmail from the terminal aka cli or command prompt or root
[php]mail someuser@somedomain.com
Subject: For Testing Only
This email is for testing the mail delivery system only.
* then press ctrl+D[/php]
How to make sendmail start at boot time:
- edit /etc/rc.conf
- add – sendmail_enable=”YES”