Questions tagged [mailx]
25 questions
37
votes
6 answers
Does mailx send mail using an SMTP relay or does it directly connect to the target SMTP server?
Suppose i send a mail using the following the following command:
mailx person@x.com
then does mailx first try to find out the SMTP server of my ISP for relaying the mail or does it connect directly. Does it depend on whether my PC has a public IP…
Rohit Banga
- 2,494
11
votes
1 answer
How do you open mailx to read old mail when you have no new mail and view a list of old emails?
If you type mailx at the command line when you have new mail, it nicely shows you headers of your new mail and leaves you at a ? prompt where you can do mail commands. But if you don't have new mail and you try to get into mailx, it just says "no…
mring
- 1,097
5
votes
1 answer
View list of messages in mail/mailx
Using mail (mailx), how does one refresh the list of messages, as it appears immediately upon starting the program? After I run a command to view a particular message, I cannot reload the list (except by exitting and re-running the…
Jellicle
- 2,356
- 4
- 28
- 32
5
votes
2 answers
How can i set a default account in Heirloom-mailx?
How can i set a default account in Heirloom-mailx?
I have defined an account in /etc/nail.rc that is usable via mail -A accountname but i'd like to set this account to be used by default so i can omit the -A parameter.
The man page under…
kioopi
- 173
5
votes
5 answers
Need to set mailx variable to specify the From address
Running Oracle Linux 5.8 (which is just re-branded RedHat EL 5.8) I must change the From address. But we have scripts that use mailx which cannot be re-written to use any extra flags, so I'd like to use internal variables instead, which I see on the…
SlowBro
- 59
- 1
- 1
- 4
4
votes
0 answers
Sending text messages from Raspberry Pi via email fails
I'm using mailx on my raspberry pi to try to send text messages updates for event monitoring.
My phone number: 9876543210
My phone's email-to-text gateway address: 9876543210@txt.att.net
I can
Send emails from my raspberry pi to various email…
physicsmichael
- 1,068
3
votes
1 answer
Sending email through Gmail with mailx gives error "Send options without primary recipient specified"
I am trying to send an email with a Bash script with my Gmail account using mailx. I have the following code in the script:
mailx -v -s "$SUBJECT"
-S smtp-use-starttls
-S ssl-verify=ignore
-S smtp-auth=login
-S…
user1049697
- 651
3
votes
2 answers
mailx read attachments
Arch Linux x86
Heirloom mailx
From what I know, the mailx utility is supposed to read and send email. I somehow got it to work with sending and receiving mail with a gmail account, also using fetchmail.
So I apparently have an email with picture…
kaykun
- 173
3
votes
1 answer
Get cronjob Email alert only on errors, not for other stdout?
I have a cron job that runs a script.sh file (Which takes the backup of DB), and sends me an email every hour. In script.sh file, I'm taking backup of few databases(.sql file), then creating .zip of that. My issue is, I want to get an email only if…
Ash
- 97
2
votes
3 answers
Cron job outputs HTML; how to send mail as HTML
I have a cron job that if it fails outputs HTML. If it succeeds it outputs nothing, in which case I get no mail. If it does fail and write HTML, cron sends me the mail but it comes as plain text and is hard to read.
I came up with two partial…
John Zwinck
- 313
1
vote
3 answers
cron table mailx caused empty content
I'm using centos 7.0/6.5. The content of /etc/cron.hourly/mail.cron
#!/bin/sh
log=/var/log/mail.cron.log
echo "`hostname` `date`" >> $log 2>&1
mailx -s "test mail" me@example.com < $log
The result of /var/log/mail.cron.log
myhost Mon Jul 28…
Daniel YC Lin
- 1,057
1
vote
3 answers
sending mail from linux commad line
Is it possible to send mail from linux terminal to any gmail account.
If possible then what are the configuration are needed.
I tried with mailx and sendmail but its not working.
I also tried with mutt like this
echo "test" | mutt -s…
max
- 4,163
1
vote
1 answer
mailx is not sending any mail
I'm new to super user and I am trying to teach myself how to code bash and work my way around the GNU/Linux operating system. I've become pretty comfortable with vim, emacs and some basic commands but I hit an obstacle. I can not get mailx to…
Andrew
- 11
1
vote
2 answers
Delete emails from specific source in mailx/BSD mail
I need to delete all emails from a specific source. I can list all of the emails with the f source@emailaddress.com but I'm having to dump it to something like awk and back into mail... or copy all of the email header numbers individually.
Is there…
MrSchism
- 11
1
vote
0 answers
Linux - extract information from email and write to file
Using bash mailx or any other programs, would be a way to extract information from an email box and to write the specific information to a file?
Anyone has a clue about this, I have bunch of emails with tracking notifications every day, I would like…
Svan
- 11