I would the mail
command to use a program other than /usr/sbin/sendmail
.
e.g.
$ mail --path=/usr/local/bin/mysendmail someone@somewhere.com
How can I do this?
I would the mail
command to use a program other than /usr/sbin/sendmail
.
e.g.
$ mail --path=/usr/local/bin/mysendmail someone@somewhere.com
How can I do this?
For bsd-mail (which Debian calls the bsd-mailx
package) a sendmail
option can be set in the ~/.mailrc
file:
set sendmail=/root/alternatemailer
Which could instead be ssmtp
or something or a simple shell script to test that this even works as documented.
$ cat /root/alternatemailer
#!/bin/sh
cat >> /root/meh
$ rm /root/meh
$ echo foo | mail -s blah nobody@example.org
$ file /root/meh
meh: ASCII text
$
mail
is this? – thrig Oct 21 '17 at 04:07