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
0
votes
0 answers

MSMTP: 550 MIME message is missing 'From' header, even if address is defined in msmtp config properly

current msmtp configuration account default logfile /home/bitrix/msmtp_default.log host smtp.sendgrid.net port 587 from xyz@domain.com aliases /etc/aliases keepbcc off auth on user apikey password SENDGRID_API_KEY tls on tls_certcheck off Command:…
Yuvraj Hinger
  • 198
  • 1
  • 6
0
votes
0 answers

using msmtp to send mail via php in docker container does NOT work in all cases

I am having issue making msmtp work in all cases when using php mail function. This is used in a docker container that relay's it to another docker container. It works in some cases but fails in others. See the php code for examples of when it…
Chris Muench
  • 17,444
  • 70
  • 209
  • 362
0
votes
0 answers

Sending emails via php on Android KSWEB Pro Webserver with MSMTP not working

I installed KSWEB Pro v3.986 on my Samsung smartphone including PHP Lighttpd and MSMTP. I would like to send emails using an external email provider like gmx, gmail, directbox. But after I run the following PHP website, nothing happens. The MSMTP…
domac
  • 21
  • 2
0
votes
0 answers

logging mail/spam from wordpress

Good afternoon I am trying to find out where some spam is coming from from one of my Wordpress sites. I could determine which site it was coming from using the rspamd dashboard, and have tightened the filter since some spam got through. I started…
controlol
  • 78
  • 2
  • 7
0
votes
1 answer

How to use msmtp with DKIM to send as other organisation

I have a off the shelf PHP app it uses msmtp to do its mail sending. My some of my users are part of another external_organisation, and they need to send email from my php app as their external_organisation.com email address. And some need to send…
Matt
  • 53
  • 1
  • 7
0
votes
0 answers

smtp works on cli, but not in php script

I have correctly set the postfix server according to PHP+Ubuntu Send email using gmail form localhost, so that this msmtp sends the email via: $ echo -e "Subject: Test Mail\r\n\r\nThis is my first test email." |msmtp --debug --from=default -t…
milanHrabos
  • 2,010
  • 3
  • 11
  • 45
0
votes
1 answer

Gmail is blocking to send email via SMTP?

I have tried to set up msmtp server from this question PHP+Ubuntu Send email using gmail form localhost. So I have set the default (account) to send from: /etc/msmtprc: defaults tls on tls_starttls on tls_trust_file…
Herdsman
  • 799
  • 1
  • 7
  • 24
0
votes
2 answers

"550 5.7.1 Relaying denied" sending via Mailgun with msmtp

Has anyone successfully set up msmtp with a Mailgun account? I keep getting "Relaying denied", and msmtp reports that the envelope from is invalid. I have tried every variation of the from address that I can think of, scoured Mailgun's…
aidalgol
  • 1
  • 2
0
votes
0 answers

reading msmtp response from terminal

I am trying to send an email using msmtp SMTP client in Linux from C++ code. Using below code I am able to send out an email successfully. If email is not successful, then error information shown on terminal as shown in below terminal image. I…
0
votes
1 answer

msmtp TLS timeout

I've looked through the list of possible solutions, but I don't see this problem, here it is. I had been using smtp for years for my crontab entry to provide status updates via email. Then it quit this week, and I was unable to fix it. Then I saw…
user2565677
  • 875
  • 1
  • 8
  • 15
0
votes
1 answer

Can I select SSL/TLS version in msmtp?

Is SSL/TLS version used by msmtp, library dependent ? (openssl, gnutls...) I can't found ssl/tls version select option. msmtp manual wrote: tls_priorities [priorities] Set the priorities for TLS sessions. The default is set by the TLS library and…
miwarin
  • 123
  • 5
0
votes
1 answer

Error output with cron emails via msmtp 0x004e#012

Usually I install msmtp as the local mailer, setup is much easier than postfix/others and it's quite capable. With this content in /etc/msmtprc defaults tls_trust_file /etc/ssl/certs/ca-bundle.crt account default host smtp.gmail.com port 587 tls…
aseques
  • 537
  • 4
  • 21
0
votes
0 answers

How to get debug stdout of command launched by mail();?

I’m facing a special situation : the php mail(); functions works when I use a cli script, but it succeeds without sending anything (it just returns true) when I’m running it on the website through appache. My php.ini files are all identical. I know…
user2284570
  • 2,891
  • 3
  • 26
  • 74
0
votes
1 answer

msmtp does not set sender address, when I use it with php mail()

in php.ini, I set : sendmail_path = "/usr/local/bin/msmtp -f info@abisy.de -C /var/www/vhosts/abisy.de/.msmtprc -t" but the EMails sent with php mail() are landing in the spam dir of my mail account. These mails do not contain a sender address I use…
0
votes
1 answer

Sending international mail from command line with msmtp

I have created the following code to send an email with from address set with UTF-8 format. I know that msmtp has IDN support, but when i run this program, i get an error message that character \xe2\x82\xac (aka '€') is invalid. msmtp: envelope from…