Skip to main content

All Questions

Tagged with
1 vote
1 answer
495 views

How to include a display name when sending mail with mailx

I'm sending email from a script using mailx. The script is run daily by systemd, using .service and .timer files. For testing purposes I'm sending from the command line. The mail is sent with the ...
CatchAsCatchCan's user avatar
0 votes
1 answer
516 views

Oracle Linux postfix conf SMTP - Default sender 'from' issue

How do I specify a default sender 'from:' address in postfix config for emails through smtp? I'm trying to send emails through SMTP and a relay from two different servers with Oracle Linux 8 The ...
Ricardo's user avatar
0 votes
1 answer
196 views

Mail sender address is not getting updated

I'm trying to send email, but I constantly get wrong sender email address. OS details: NAME="Ubuntu" VERSION="18.04.5 LTS (Bionic Beaver)" ID=ubuntu ID_LIKE=debian PRETTY_NAME=&...
Mugil Karthikeyan's user avatar
1 vote
1 answer
812 views

mail: How do I mark an email as unread?

I am using mail from GNU Mailutils to read the contents of a Maildir. For emails that have already been marked as read, is there a way to mark them as unread in mail?
Flux's user avatar
  • 2,978
0 votes
1 answer
106 views

Aix: why program mail ignore the mbox setting?

On AIX, I want the mail program to use /root/.mbox instead of default /root/mbox. I edit mailrc vim .mailrc set MBOX=/root/.mbox the result is not good mail Mail [5.2 UCB] [AIX 5.X] Type ? for help. &...
elbarna's user avatar
  • 12.8k
1 vote
2 answers
11k views

Unable to send out emails from my Linux Host

Unable to send out emails from my Linux Host. Below is the command I try: echo "This is the message body and contains the message" | sudo mailx -v [email protected] -s "This is the ...
Ashar's user avatar
  • 511
0 votes
0 answers
312 views

How to properly use mailx to attach a file (not replace content)?

I am using $ mailx -V mailx (GNU Mailutils) 3.5 Copyright (C) 2007-2017 Free Software Foundation, inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free ...
divB's user avatar
  • 208
0 votes
1 answer
701 views

I want to send one of the zip folder which consisit of 8 to 10 files, attaching via e-mail using Linux command

I tried with this command but no luck. echo 'These are contents of my mail' | mailx -s 'This is my email subject' -a /home/user/Desktop/data.zip [email protected] Any suggestion?
Ramesh's user avatar
  • 21
0 votes
1 answer
3k views

Attaching multiple files using bash and emailing it out using SWAKS or another program

I'm trying to: Attach multiple files into one email. Have the email sent out using a Gmail account with the current date and time in the subject header. I'm having trouble with the for a loop ...
Rick T's user avatar
  • 357
1 vote
3 answers
3k views

Install Postfix using Mailutils on Ubuntu 19.04 server for sending out mail only

I followed this tutorial: https://computingforgeeks.com/how-to-install-and-configure-postfix-as-a-send-only-smtp-server-on-ubuntu-18-04-lts/ I'm trying to setup a send only mail from my Ubuntu 19 ...
Patoshi パトシ's user avatar
0 votes
1 answer
262 views

send email from terminal bad behaviour

I have the following script that i put togheter from the web, to send emails from terminal trough gmail. #!/bin/bash #sendGmail "FROM" "TO" "SUBJECT" "BODY" "ATTACHMENTS (optional)" FROM=$1 TO=$2 ...
kurokirasama's user avatar
0 votes
1 answer
151 views

Why claws mail can receive email instead of mail command?

mail -f /var/mail/debian9 /var/mail/debian9: 0 messages When mail -f /var/mail/debian9 executing ,the claws mail application is in off status. Now open the /var/mail/debian9 with claws mail. ...
showkey's user avatar
  • 405
1 vote
1 answer
697 views

How to search my email containing some string in email'content?

The mail command can list email messages stored on my pc. How to search my email containing some string in email'content?
showkey's user avatar
  • 405
0 votes
0 answers
985 views

Multiple html files in message body-mailx

I'm using pandas to get csv to html #!/usr/bin/python import pandas as pd import sys import json sys.stdout = open('output.html','wt') df = pd.read_csv('users.csv') print(df.to_html()) For another ...
Milister's user avatar
  • 537
3 votes
2 answers
4k views

Forward email but change the FROM address

I have a postfix server running on an EC2 instance. I want to forward all email, via SES, to my personal inbox. The problem: AWS only allows a FROM address that is verified in the AWS console and the ...
Sammaye's user avatar
  • 153

15 30 50 per page