Questions tagged [msmtp]

15 questions
8
votes
1 answer

Can msmtp rewrite addresses?

I am trying to get all my system emails to be forwarded to my gmail address, using msmtp 1.8.3 and /etc/aliases on debian. It works, but I get errors from gmail. When I email root (via echo "hello world" | mail -s "forward me" root), I obtain 2…
user48678
  • 209
  • 2
  • 6
7
votes
1 answer

msmtp Empty TO and FROM Field - All mail ends up in Bulk Mail when sent from CLI or manually

I have set up MSMTP with the following but if I send an e-mail from the CLI it either gets blocked, or ends up in my SPAM because it has no TO/FROM or anything up top. But e-mails from CRON are properly formatted. sudo apt-get update sudo apt-get…
FreeSoftwareServers
  • 2,482
  • 10
  • 37
  • 57
5
votes
4 answers

Msmtp does not understand `/etc/aliases`

I have configured my Debian server to use msmtp for sending mails. Current use case are for example sending a daily report from logwatch to my isp email. echo "$body" | mutt -s "$topic" -- "[email protected]" I have configured msmtp by means of a…
3
votes
2 answers

Configuring mail command to use msmtp

msmtp is successfully installed and works fine to send emails via an external SMTP server. However the mail command fails to send emails using GNU Mailutils on a Debian 10. for example echo "Test" | mail [email protected] returns mail: cannot…
JBC
  • 51
  • 1
  • 4
3
votes
1 answer

How to send mail via console on OpenBSD using a Gmail account?

There is a certificate error: # echo "hello" | msmtp -a default [email protected] msmtp: TLS certificate verification failed: unable to get local issuer certificate msmtp: could not send mail (account default from /root/.msmtprc) # In the…
Peter
  • 521
  • 10
  • 21
3
votes
2 answers

Multiple smtp accounts with mutt and msmtp

I use mutt with two different imap accounts, and have configured smtp accounts A and B with msmtp and mutt. If I don't specify a default account in .msmtprc, mutt complains there is no default account when I try to send. If I set a default account…
lash
  • 729
  • 3
  • 8
  • 15
2
votes
1 answer

msmtp: cannot send message: Process exited with a non-zero status

I recently set up a new Pi 4 (running Buster) and installed msmtp and mailutils. I previously did this on two other Pi4s (also running Buster) on which this has worked perfectly. On the new machine it fails. I must have done something wrong, but I…
Buadhai
  • 237
  • 4
  • 11
2
votes
0 answers

msmtp with iCloud account doesn't work

I'm very new to Linux (Raspbian at Raspberry Pi 4 Model B) and I just try to send an e-mail via command line. Right now, this is working with msmtp and a gmx.de account following this guide. apt-get update && apt-get upgrade -V apt-get install…
PascalS
  • 125
  • 5
2
votes
1 answer

Send email with mailx/msmtp only works for root user

I'm struggling to find a solution. I installed heirloom-mailx and msmtp following this site. I can send emails (using gmail) as root user. The problem is with non-root user: the messages go to a queue folder (/var/spool/mqueue) and never are sent. I…
shinjidf
  • 21
  • 1
  • 3
1
vote
1 answer

MSMTP : How can I set a from field?

I have installed msmtp, and it seems to be working OK: echo "Hello" | mail -s "Testing SmSMTP" [email protected] The email arrives to destination, But the From field is a ugly email text like [email protected] . I mean:…
Sopalajo de Arrierez
  • 6,281
  • 21
  • 60
  • 98
1
vote
0 answers

Mail command limit

I configured swatch to send alerts about threats through "mail" command. The problem is that it is sending me many same alerts, for example while I'm testing ping I can get like 8 e-mails etc. Does anyone know how to limit amount of mails being…
luqson7
  • 11
  • 1
0
votes
1 answer

Can msmtp rewrite *all* recipient addresses?

I'm using msmtp to deliver system email from an Ubuntu server via an SMTP account. Can I somehow configure this setup to rewrite all emails to one specific recipient address? If so, how? Or put differently, I don't want any arbitrary PHP script or…
chmac
  • 130
  • 5
0
votes
1 answer

Run a command and email the output, with a subject, using msmtp

I have OpenWRT router, installed msmtp. I would like to write a command line (or a .sh file) that would send me the current public IP address, and let Cron execute it every 15 Min. I found the posting: Run a command and email the output and tried…
jbweld
  • 1
  • 2
0
votes
1 answer

How do I send emails via msmtp from inside XEN DOM0

I have a XEN server with someVMs, one of them is the email server. How do I tell DOM0 to send all root emails to my administration email, which is inside the email-VM? I tried install msmtpd and added the config file /etc/msmtprc: # A system wide…
rubo77
  • 27,777
  • 43
  • 130
  • 199
-1
votes
1 answer

finding which program produces a log file

I am using Ubuntu 15.10 and I have an email account configured on the terminal. Probably a left-over from the time I tried to configure that account, I have some logs being printed to a file in my home directory a couple of times day. An example…