Skip to main content

All Questions

Tagged with
0 votes
1 answer
393 views

mail: unrecognized option '-S' | sending mail from linux server

I am trying to run a bash to send emails from my linux server. I am using the following command: echo "This is the message body" | mail -s "This is the subject line" -a "From: ...
user3165121's user avatar
0 votes
1 answer
460 views

How to make mail command to send email to root after installing msmtp?

Install a simple SMTP client: sudo apt install msmtp msmtp-mda Set in msmtprc :: cat .msmtprc account default host smtp.qq.com from [email protected] auth on tls on tls_certcheck off user [email protected] ...
showkey's user avatar
  • 405
0 votes
1 answer
221 views

Script to send an alert mail once the disk space is above 90% sends disk full even when the disk isn't full, how to resolve this issue?

#!/bin/bash df -m > myfile server_ip_address=$(ip addr show $(ip route | awk '/default/ { print $5 }') | grep "inet" | head -n 1 | awk '/inet/ {print $2}' | cut -d'/' -f1) if awk '$2 &...
achhainsan's user avatar
0 votes
0 answers
663 views

timed out while receiving the initial server greeting

I'm trying to host a postfix mail server.I have a box with a fixed IP and also a mx record and spf record that link my box IP to my dns record. I can telnet to alt4.gmail-smtp-in.l.google.com 25 but ...
I_md_ou's user avatar
4 votes
1 answer
122 views

Where are these "extra" RCPT_TO lines coming from when I send an email via SSMTP?

I've been using SSTMP on a local FreeBSD machine to send stuff like the output of certain cron jobs to my "real" main email account, which is not hosted on the same machine (or even domain). ...
Bob Vesterman's user avatar
3 votes
1 answer
4k views

How can I make GNU mailutils to use an external SMTP server?

Does anybody on this planet know what the equivalent GNU mailutils command to the following looks like? Is this even possible without a local MTA with mailutils? Using s-nail it works as intended. s-...
Booker B's user avatar
1 vote
1 answer
545 views

mail command sends body as attachment, unlike normal email client? How to stop this?

I am using the mail command from mailutils on Ubuntu Linux 20.04. I am using it to send documents automatically to a service on the web which processes them. They provide an email address to which you ...
crobar's user avatar
  • 223
0 votes
1 answer
5k views

Mail command in linux

Want to send mail to my email id, but I'm not able to send. I have done sudo apt install mailutils. Here is my code: ssmtp [email protected] Hello world Showing error ssmtp :cannot open mail 25
Subir Makur's user avatar
1 vote
1 answer
237 views

How to move/rename user mbox file with mailutils?

Is there a way to change the ~/mbox file where mailutils's mail program saves read mail and where mail -f reads from to something else, like ~/.mbox for example? I read that setting the MBOX ...
tdeary's user avatar
  • 11
1 vote
1 answer
1k views

How to use emojis on the subject line of mail?

I am writing a shell script to setup a few servers and once it is done, it will send an email to our help desk letting us know that the server is ready to be used. I would like to use the following ...
user avatar
1 vote
1 answer
999 views

Does /usr/bin/mail have a queue?

RHEL 5 I'm using a perl service monitoring script (written by a colleague that is no longer with the company) running on an old RHEL 5 box. If a service is down, it sends an email alert to the root ...
Mike B's user avatar
  • 8,980
1 vote
2 answers
4k views

How to receive new email?

mail -f /home/debian9/Maildir When new email coming,how to receive it in mailutils interface? There are 1 email in my /home/debian9/Maildir. Sent an email from admin to debian9 with command: echo "...
showkey's user avatar
  • 405
1 vote
1 answer
461 views

Trouble sending email from the mail utility in Bash

I used the following command to send an email echo "Body of the mail" | mail -s "subject" "[email protected]" The first time I ran it, it returned an error saying the program mail is not installed....
RodrikTheReader's user avatar
3 votes
0 answers
729 views

mail/mailx: How to specify recipents with full names?

Rich email clients allow users to be identified likewise: John Smith <[email protected]> How can I use such format for recipients (or other email fields for that matter) with mail and/or ...
Hans Deragon's user avatar
1 vote
1 answer
1k views

Can't send mail via sendmail

I'm trying send mail via sendmail, but mail is not received. Here is the command: /bin/cat /scripts/zabbix/test.txt | mail -v -s "Blocked IPs" [email protected] Here is the output example@example....
David's user avatar
  • 369

15 30 50 per page