how can I tell the mail command the path to sendmail?
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
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?
mail-command
add a comment |Â
up vote
0
down vote
favorite
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?
mail-command
What version ofmail
is this?
â thrig
Oct 21 '17 at 4:07
@thrig sorry yeah I should have mentioned. BSD-mail package in unbuntu repositories
â the_velour_fog
Oct 21 '17 at 4:09
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
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?
mail-command
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?
mail-command
asked Oct 21 '17 at 2:55
the_velour_fog
5,04523153
5,04523153
What version ofmail
is this?
â thrig
Oct 21 '17 at 4:07
@thrig sorry yeah I should have mentioned. BSD-mail package in unbuntu repositories
â the_velour_fog
Oct 21 '17 at 4:09
add a comment |Â
What version ofmail
is this?
â thrig
Oct 21 '17 at 4:07
@thrig sorry yeah I should have mentioned. BSD-mail package in unbuntu repositories
â the_velour_fog
Oct 21 '17 at 4:09
What version of
mail
is this?â thrig
Oct 21 '17 at 4:07
What version of
mail
is this?â thrig
Oct 21 '17 at 4:07
@thrig sorry yeah I should have mentioned. BSD-mail package in unbuntu repositories
â the_velour_fog
Oct 21 '17 at 4:09
@thrig sorry yeah I should have mentioned. BSD-mail package in unbuntu repositories
â the_velour_fog
Oct 21 '17 at 4:09
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
1
down vote
accepted
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
$
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
1
down vote
accepted
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
$
add a comment |Â
up vote
1
down vote
accepted
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
$
add a comment |Â
up vote
1
down vote
accepted
up vote
1
down vote
accepted
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
$
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
$
answered Oct 21 '17 at 5:44
thrig
22.7k12854
22.7k12854
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f399470%2fhow-can-i-tell-the-mail-command-the-path-to-sendmail%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
What version of
mail
is this?â thrig
Oct 21 '17 at 4:07
@thrig sorry yeah I should have mentioned. BSD-mail package in unbuntu repositories
â the_velour_fog
Oct 21 '17 at 4:09