mailx is a command-line utility for reading and sending email

learn more… | top users | synonyms

1
vote
2answers
27 views

Unable to send email using mailx in Light ubuntu vmware

I am getting the following error while trying to send an email using mailx command used: uuencode Final_report.html $(date +"%Y-%m-%d")_report.html |mailx -s "Test of monthly report from ...
2
votes
1answer
56 views

Using mailx without storing a password

I'm trying to setup mailx to use my Gmail account. I've found a configuration that can send mail successfully but it requires me to store my email password in a configuration file in my home ...
0
votes
2answers
32 views

Using an ASCII file in mailx

I have a ASCII file with Unix user names. How can I mail this list to everyone on the list itself? I do not want to use an alias. I was trying to cat the file to a mailx string but it was not working. ...
1
vote
1answer
211 views

root can't send mail (apticron) but user can (mail/mailx)

I'm running Debian I've set up ssmtp as my MTA and this works perfectly I can send mail using both mail and mailx with a standard user account BUT... When I run sudo apticron I get: send-mail: ...
2
votes
2answers
69 views

check “newness” / “is-read” of /var/spool/mail/$USER like pam_mail for custom motd script

How can I check with bash or python (preferred) if there are some unread mails in /var/spool/mail/$USER like pam_mail does? I'd like to use this for my own custom motd script, motd.dynamic
0
votes
1answer
94 views

Modify date in email header using script with mailx

I am trying to modify a script which grabs data from a database and puts it into the message of an email which is then sent out using mailx. What I need to do is grab the date which is in the first ...
0
votes
0answers
32 views

What mail variable is needed to make sure I receive a copy as well when emailing an alias

The alias includes a list of addresses and includes mine as well what mail variable do I need to make sure I still receive a copy of the message as well?
1
vote
1answer
109 views

exim4 on debian 7.8 sent mail never arrives @gmail

I followed the instruction on this page Debian Exim and configured my exim with a single file via the dpkg-reconfigure exim4-config setup. Now I can send mails between local users (from root to ...
2
votes
1answer
42 views

Can I resend a message with (plain) mailx?

Say I receive a message with an attachment, and all I want to do is to resend this message to another address. Is it possible to do this using plain mailx? If so, how? I know Heirloom mailx has a ...
2
votes
0answers
75 views

How to display entire subject line in `mail`?

There are two messages in /var/mail/test. mail Mail version 8.1.2 01/15/2001. Type ? for help. "/var/mail/test": 2 messages 2 new >N 1 test@test Tue Feb 17 15:07 18/628 *** SECURITY ...
0
votes
1answer
62 views

How to send an email using mailx so that From and To appear correctly in the email?

I need to send an email from my Ubuntu 12.04 machine. I am using mailx command to do that. Below is the command I am using which works fine. echo "Test server started at `date +"%F %T"` on `hostname ...
2
votes
2answers
218 views

Mailx with multiple uuencode attachments and body

I am sending multiple files using following line in my script find . -type f -name "Sum*pdf*"|while read name; do uuencode "$name" "${name##*/}"; done | mailx -s "North Bus Correction" $RECIP Now I ...
0
votes
1answer
30 views

Why do I get mail when I unplug my adapter?

Usually I only get the terminal output You have new mail in /var/mail/$USER after running certain upgrades but I've started getting it every couple days after running other commands, seemingly at ...
-1
votes
1answer
78 views

Show the content of a file in the mail body

I am writing a script where it shows the content of file in the body of the mail. But i am getting error while I am executing it. RECIP="abc@gmail.com" lines=`wc -l $HOME/totals` if [ $lines == 6 ...
2
votes
1answer
231 views

Is there any way to check email sent success acknowledgement?

I need to send the generated CSV files on regular intervals using script. I am using UUENCODE and mailx for the same. But i need to know that is there any method/way to know that email sent ...
1
vote
1answer
77 views

can i get imap access using just postfix and mailx?

I have postfix and mailx installed on a CentOS 7 server. I am able to send and receive email from the command line using the mailx command. I am also able to read email in each user's inbox using ...
2
votes
2answers
88 views

Why does uninstalling sendmail install exim, and uninstalling exim installs xmail?

I just set up a VPS with Debian 7 x64, and removed Sendmail along with some other programs. When it removed Sendmail, it also installed Exim. When I removed Exim, it installed xmail. Is there any ...
0
votes
0answers
530 views

What is the maximum size for attachment using unix mailx

I am using RHEL 6.4. I have a script which runs in bash. The script sends an email using: mailx -a report.txt "Monthly Report" "business@user.com" < messageBody.html where report.txt is a pipe ...
1
vote
1answer
117 views

Debian: exim, Maildir and mail

I have exim installed and configured as "internet site; mail is sent and received directly using SMTP". Mail is stored in /home/*user*/Maildir and it is really there. I can send and receive mail ...
0
votes
2answers
280 views

Difference between Reply-To address and From address in an email

In Heirloom mailx, one can specify "from address" (-r) and "reply-to address" (-R). What is the difference between the two?
1
vote
1answer
41 views

ssl3 mailx and bounce

I have set some email server(postfix with tsl3) and i have reach the goal to remove ssl2 from it,but thunderbird works perfect,mailx no. I did echo prova|mail -S smtp-use-starttls user@domain and ...
0
votes
1answer
720 views

mailx: nss-config-dir=/etc/pki/nssdb/: No such file or directory

I am trying to send email using mailx using remote SMTP server (in my case it is office365 SMTP Server). Here is the command: # echo "THis is the Body of the email" | mailx -v -s "This is email ...
2
votes
0answers
30 views

How can I change the from address in *nix mail globally?

I know that you can change the from address in *nix mail by specifying command-line options. However, is there a way to set it globally, so that it is respected by forwarding? I tried modifying the ...
4
votes
1answer
118 views

How can I forward local *nix mail to an external account while keeping the local copy?

On my Raspbian server, I wish to have local *nix mail delivered locally, as well as to an external address. /home/pi/.forward contains pi,foo@bar.com. I've run sudo dpkg-reconfigure exim4-config with ...
0
votes
0answers
2k views

Unix “Mail, Mailx and sendmail” command sending blank attachment on IOS

I am using the below listed code, which sends PDF attachment properly. Attachment can be opened in desktop computer and Samsung mobile but same attachment cannot be opened in IPHONE IOS. Below is my ...
4
votes
1answer
4k views

dpkg cannot find ldconfig/start-stop-daemon in the PATH variable

I was trying to install bsd-mailx utility the package got installed however I am wondering about the error. This is the error I get: Preconfiguring packages ... dpkg: warning: 'ldconfig' not found ...
0
votes
1answer
175 views

Uuencode displaying attachment content in email body

I am using uuencode with mailx to attach a zip file. In following code, the if block works perfectly and I get Deletions.zip as an attachment in the email. But, whenever the else block is executed I ...
2
votes
1answer
93 views

How to include the name in the to: address of the person you are sending mail to in mailx(UNIX-HP)

I am trying to use the mailx program to send an e-mail. I want the name of the person to be included in the toaddress@domain.com like the normal one on Microsoft Outlook or gmail account e.g ...
0
votes
2answers
269 views

Get only file name from find command and mail

The following find command will results multiple files and send mail all those find /home/cde -ctime -1 -name "Sum*pdf*" -exec uuencode {} {} \; |mailx -s "subject" abc@gmail.com But I am getting ...
2
votes
3answers
330 views

Attachments are missing when multiple files are attached in mail

I have written one script to get multiple attachments through mail. My script is for file in `find $dir -ctime -2 -type f -name "Sum*pdf*"` do echo "$file" filename=`basename $file` echo $filename ...
0
votes
0answers
237 views

Find if the file is compressed or not

I need to find whether the file is compressed or not in script.If it is compressed I need to uncompress and send as attachement. My find command results in two files sum12.pdf.Z and sum23.pdf.Z My ...
1
vote
1answer
762 views

Attachment missing in Unix mail when multiple files were attached

I am trying to attach multiple files in Unix, which are the result of a find command. When I try to send the mail, the attachments are missing. dir=$path echo "Entered into $spr/sum_master" for fil ...
2
votes
1answer
3k views

Attach files for sending mail which are the result set of find command

By using find command I got multiple files. Now I want to add all these files as mail attachment. Please help me how to add these files as attachment in single mail. I want to implement this in ...
2
votes
1answer
3k views

Sending attachments with mailx and uuencode [duplicate]

I am in the process of trying to run a script which usually sits on an AIX machine on its new host Linux node. The code I am running looks like this: (uuencode $path/info.dat info.csv; uuencode ...
2
votes
0answers
1k views

mailx attachment behaviour between RHL 5 and RHL 6

We have a line of code that does this in ksh, to send a file as an attachment in email: uuencode <filename> <filename.txt> | mailx someone@somewhere.com In RHL 5.2 mailx sends ...
3
votes
1answer
406 views

recover email from imap account using mailx

I am having problems fetching emails with mailx. My imap account uses ssl/tls connection with normal password authentication on port 993. I don't have any problems sending through smtp though. Here is ...
2
votes
1answer
515 views

How do postfix and mailx interact with mbox locking?

If postfix is setup as the MTA using its virtual transport to deliver mail to a local mbox file (and handling delivery of outgoing messages), and mailx is the MUA, being used on that same computer for ...
0
votes
1answer
52 views

mailx change the direction of the mail

I use mailx to send mails from servers to me. The problem is that it comes as RTL and not LTR. How can I define it in the command? here is the command: cat /tmp/monitor.log | mailx -s "Daily status ...
0
votes
0answers
339 views

Installing mailx on Openelec, Raspberry PI

Well I have searched some of the possibilities to install command line mail clients but there are no easy ways to install. Is this even possible without compiling the mail client ?
4
votes
2answers
279 views

Get list of unread emails from Unix server

We are trying to get a list of unread emails from our Unix server using mailx -L. However, the email subject gets truncated if its length is greater than 25 characters. How can this be resolved?
5
votes
1answer
2k views

How can I bcc with mailx?

I'm trying to send unix mail (heirloom-mailx) via bcc. $ mail -V 12.5 6/20/10 My MTA is exim, which sends via Gmail SMTP. I can execute the following: echo -e "body" | mail -s 'subject' -b ...
4
votes
1answer
2k views

How to download all the e-mail messages from POP3 server to a single text file with mailx?

I would like to download all the e-mails in my old e-mail server. It uses POP3 and I'm interested in e-mails in "Inbox" and "Sent" folders. Once I have downloaded all the messages, I would like to ...
7
votes
1answer
8k views

Difference between mail and mailx? [duplicate]

Whats the difference between mail and mailx? I'm trying to troubleshoot a problem where I can send mail from server A with this echo $MESSAGE | mail -s "$SUBJECT" -r $FROM $RECIPIENTS command but ...
0
votes
0answers
334 views

msmtp-mta: Add $HOSTNAME to every mail

I have a fleet of Ubuntu clients running msmtp-mta along with heirloom-mailx. I'd like to have the same /etc/msmtprc on all machines. At present, when someone uses mailx or sendmail, the mail will be ...
4
votes
1answer
1k views

Change mailx mailbox location

On my computer, mail is stored in ~/Mailbox, not in a centralized directory. Is there a way to get bsd-mailx to read mail from there, instead of looking in /var/mail?
2
votes
1answer
4k views

Send the Output of an HTML file within the email body using mailx

Problem Statement:- Currently I am sending an email using mailx by attaching an html file within the email. But I want to send an email using mailx command instead of attaching the html file in an ...
4
votes
2answers
420 views

Tsocks with mail user agent mailx not working

I use a SOCKS proxy server to send mail using sendmail in Linux and mailx to send mails from the command line. To make use of the SOCKS server, I am using tsocks to send mails using mailx, for ...
4
votes
2answers
2k views

How to configure mailx to support Gmail?

How can I set up mailx to send messages to my Gmail account? What I do now is run the command: mail -s "hello kid" mymail@gmail.com It freezes and does nothing. I tried some variations, but all of ...
3
votes
1answer
7k views

send html using mailx

I'd like to send a html file from a host using mailx but instead of interpreting it as html it would send it out as text (html codes). Is there a way to send it as html? (cat <<EOCAT Subject: ...
3
votes
2answers
553 views

Heirloom-mailx and Saving to IMAP Folder with Spaces

If I try to save to a message to an IMAP folder with the command save 1 +FOLDER/"Folder withSpaces" in heirloom-mailx, instead of saving, mailx spits out No applicable messages from {Folder/"Folder, ...