Questions tagged [msmtp]

an open-source SMTP client

In the default mode, it transmits a mail to an SMTP server (for example at a free mail provider) which takes care of further delivery. To use this program with your mail user agent (MUA), create a configuration file with your mail account(s) and tell your MUA to call msmtp instead of /usr/sbin/sendmail.

Features include:

  • Sendmail compatible interface (command line options and exit codes)
  • Support for multiple accounts
  • TLS/SSL support including client certificates
  • Many authentication methods
  • Support for Internationalized Domain Names (IDN)
  • Fast SMTP implementation using command pipelining
  • DSN (Delivery Status Notification) support
  • SOCKS proxy support

msmtp is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. https://marlam.de/msmtp/

49 questions
1
vote
1 answer

What causes multiple Mails when using Cron with Bash Script

I've made a little bash script to backup my nextcloud files including my database from my ubuntu 18.04 server. I want the backup to be executed every day. When the job is done I want to reseive one mail if the job was done (additional if it was…
Maggus
  • 21
  • 2
1
vote
1 answer

msmtp cannot send mail via OVH SMTP to root address

I'm trying to get daemons to send email from a Debian 10 Server. I'm using msmtp-mta with an OVH SMTP server. It's properly configured. Everything works fine when sending email directly via the mail command, like so : echo "test" | mail -s "test"…
VMFnet.be
  • 43
  • 1
  • 6
1
vote
0 answers

Send an attachment with msmtp in Mac OS

How can I send an attachment via mail command in Mac OS? I have configured msmtp to send email using Gmail's SMTP server and that is working ok. In Linux, I have used hairloom-mailx in combination with ssmtp to send attachments, but it seems that…
Rohit Farmer
  • 319
  • 4
  • 15
1
vote
0 answers

Docker PHP Apache Mail

1. The problem I have the problem that I cannot send mails from my docker php apache container anymore. Maybe the reason for that lies in the fact that sSMTP is currently unmaintained: https://wiki.debian.org/sSMTP The Dockerfile which worked…
chrisw
  • 11
  • 1
1
vote
2 answers

Having authentication error while using msmtp

I am using msmtp to sent emails but getting authentication error although my login credentials were right. my msmtprc file contains defaults tls on tls_starttls on tls_trust_file /etc/ssl/certs/ca-certificates.crt account default host…
1
vote
2 answers

Sending e-mail from bash script

I am using Ubuntu 18.04 LTS, GNU Mailutils 3.4 and MSMTP 1.6.6 to send an e-mail, containing an attachment, from a Bash script (and/or testing from the command line). I was using BSD-Mailx when the server was running 16.04, but upgrading to 18.04…
boards188
  • 104
  • 1
  • 8
1
vote
1 answer

Msmtprc SMTP with Office365

I am configuring msmtprc smtp to send an outbound email and having a trouble with office365. It's working fine with Gmail account, but I am getting the following error with office 365. msmtp: authentication failed (method LOGIN) msmtp: server…
Mike
  • 297
  • 5
  • 17
1
vote
1 answer

mu4e with msmtp does not store mail sent directory after sending mails

for sending E-mails with my Emacs, I have setup mu4e with msmtp. The corresponding configuration is pasted down below. I am managing my E-mail accounts through mu4e contexts. All my E-mails are stored under ~/Maildir; the E-mails for my yahoo…
Julian
  • 1,694
  • 22
  • 29
1
vote
1 answer

How to send email updates with beaglebone black?

I am trying to do a (presumably) very simple task. I want my Beaglebone Black (BBB) to send me an email when a button wired to it is pushed. A) I don't know for sure if I have Angstrom or Debian (or otherwise?) and I don't know how to find out B)…
Ed Sawden
  • 39
  • 3
1
vote
0 answers

php script: using msmtp for email-to-sms - weird situation

When I send an email-to-sms from this CLI script: $th=array("1360xxxxxxx@tmomail.net","Message","sending myself a text message"); mail("$th[0]","$th[1]","$th[2]"); It works just fine, I usually receive the sms in about 5-7 seconds. But I have…
Paul
  • 11
  • 2
1
vote
0 answers

Emacs mail mode copy sent messages

In Mail-mode (C-x m) how can I get a copy of sent messages saved in my IMAP Sent folder? I am using msmtp to send mail. I have the Arch Linux msmtp-mta package installed so that it can use the sendmail command as an alias to msmtp. In my init.el I…
Reed G. Law
  • 3,897
  • 1
  • 41
  • 78
1
vote
1 answer

Yum is not installing msmtp

I am trying to install msmtp on my server CentOS 6.6. but yum says the package is not found. I am using the default configuration for the yum came with the CentOS install. how do I solve this?
Nathan
  • 13
  • 1
  • 5
1
vote
2 answers

How i can configurate Msmtp to work with gmail SMTP

I try to install on a server a msmtp whiwh work with Gmail SMTP. My .msmtprc file : defaults tls on tls_starttls on tls_trust_file /etc/ssl/certs/ca-certificates.crt account default host smtp.gmail.com port 587 auth on user…
user1895140
  • 109
  • 1
  • 7
1
vote
1 answer

Can't receive email with msmtp using google account

I'm experiencing issue with msmtp on my backup server (OpenSUSE 12.2). I'm trying to send email everytime some of my backups fail. For this reason I would like to use msmtp. I have everything setted up. However, even though I see sent items in my…
confiG
  • 15
  • 8
0
votes
0 answers

Send mail error send-mail: message from server : 504 5.5.2 <-c>: Recipient address rejected: need fully-qualified address

I want to send an email to various recipients with command line. I'm using the stmp server from my email providers and msmtp is the smtp client (on linux). The command I use is: mail -s 'mysubject bla bla' dest1@free.fr -c dest2@club-internet.fr <<<…
Tomane
  • 373
  • 2
  • 4
  • 13