Questions tagged [msmtp]

23 questions
4
votes
1 answer

msmtp error: errormsg='the server sent an empty reply' exitcode=EX_PROTOCOL

I see this error message in the log of msmtp. What does it mean? How to fix the problem? I previous used tor's socks proxy and I don't see this message. But when I switch the proxy to a shadowsocks localhost port, I see this error.
user1424739
  • 1,879
  • 2
  • 12
  • 9
3
votes
3 answers

PHP's mail() function working in CLI but not in Apache

I'm using msmtp as a relay and trying to send an email with the mail() function. It works perfectly in CLI, but does nothing in Apache. My PHP configs for cli and apache are identical, there are no errors in any of the logs and I'm really out of…
Jake S.
  • 161
  • 1
  • 5
2
votes
1 answer

Forwarding emails from postfix to exchange server?

I have some web application which is used as a webmail client to exchange. I can pull emails from exchange server via IMAP, but problem is at sending mails. Application is using MSMTP client to send mails, and I have installed local postfix mail…
Marko Farkas
  • 163
  • 3
  • 11
2
votes
2 answers

Can't send mail via php with msmtp

I want the server able to send mail via gmail smtp. The installation of msmtp was successful. I able to send using msmtp via the command line. However, when I try to send via php, it got me this error. postfix/smtp[11241]: connect to …
dev-jim
  • 283
  • 1
  • 2
  • 8
2
votes
1 answer

SELinux preventing Fail2Ban from emailing notification via msmtp

I have msmtp as a null client connecting to my AWS SES account for SMTP, delivering alerts such as cron, monit and soon hopefully Fail2Ban to my email addresses. However, Fail2Ban isn't playing ball, or to be more precise, selinux is preventing…
JayMcTee
  • 3,763
  • 12
  • 20
2
votes
1 answer

Smartd unable to send mail

I have a CentOS 8-stream server. I was setting up smartmontools to monitor my drives. The MTA is msmtp. To test the setup, I modified my smartd.conf by adding: /dev/sda -a -m my.mail@pro.vider -M test Since I did not see any mail popping up, I…
1
vote
1 answer

How can I get msmtp to send system messages to my email?

I used to use ssmtp on Debian Stretch. Whenever there are system emails, they would get sent to my admin email. It was quite good because I would get a report on all my servers. This was true until in Debian Buster ssmtp was discontinued in the…
1
vote
1 answer

PHP mail() function working from command line but not working with apache

My problem is that php script which has to send mail doesn't send it if I run it in browser, but works in cli. This doesn't help PHP's mail() function working in CLI but not in Apache In both /etc/php/7.0/fpm and /etc/php/7.0/cli same mail…
Pavlo Kovalov
  • 21
  • 1
  • 3
1
vote
0 answers

Request tracker v4 in CentOS 6.2 returned 74

I have installed the RT v4 in CentOS and I have this message: Nov 11 20:57:54 ticket RTmailer: CALL msmtp -nt -oi -t RETURNED 74 If I run "msmpt" command from the shell it works fine. /opt/rt4/etc/msmtp_wrapper /usr/bin/msmtp -t -C…
CMaker
  • 111
  • 1
1
vote
1 answer

msmtp sendmail substitutions don't work (%U etc.)

I'm running msmtp 1.8.3-1 on Debian buster, and it's configured and everything works except the sendmail substitutions. I have a from %U@myhost.mydomain.com line in my /etc/msmtprc file but I can't seem to get it to work. The documents talk about…
JimB
  • 177
  • 1
  • 1
  • 10
0
votes
2 answers

msmtp and OVH mail

I'd like to send a mail when a user authenticates on a Debian 9 server. I use OVH mail server. I've set up msmtp like so : account myaccount tls_starttls off logfile ~/.msmtp.log host ssl0.ovh.net port 465 from user@mydomain.com auth on user…
Ror
  • 111
  • 2
  • 12
0
votes
2 answers

install msmtp amazon linux

My goal is to get the PHP mail() function to work on Amazon Linux. So the best option seems to be to install msmtp (found in EPEL repository) but I get a dependency error. I run run sudo yum --enablerepo=epel install msmtp but then get: Loaded…
TheStoryCoder
  • 234
  • 3
  • 13
0
votes
0 answers

K8s & Docker - ideal image design for sensitive params on GCP

I'm working on a Docker image that bundles Apache with PHP7 and uses msmtp for Sendgrid integration. The reason I like msmtp is there is no separate running process so it bundles nicely without need for an SMTP container. That said, the…
quickshiftin
  • 2,025
  • 5
  • 27
  • 41
0
votes
1 answer

Request Tracker and msmtp multiple accounts

I have Request Tracker 4.4 succesfully set up to use msmtp to send emails using account "support@domain.com" (used this manual: https://rt-wiki.bestpractical.com/wiki/Msmtp). But, I need to send mail from "support-comment@domain.com", too. I'm…
real_sm
  • 112
  • 2
  • 14
0
votes
1 answer

Request Tracker and msmtp error (RETURNED 78)

I have Request Tracker 4.4 up and running. Sometimes email messages that it sends are going to spam. So I decided to use msmtp to send messages through SMTP with authentication. I used this manual: https://rt-wiki.bestpractical.com/wiki/Msmtp Actual…
real_sm
  • 112
  • 2
  • 14
1
2