Questions tagged [ssmtp]
82 questions
21
votes
9 answers
Linux configuration -- ssmtp: Cannot open smtp.gmail.com:587
Hi I have RHEL5 with ssmtp installed on it ssmtp-2.61-22.el5.i386.rpm
my /etc/ssmtp/ssmtp.conf updated as below…

Chandramani
- 343
- 1
- 2
- 9
12
votes
2 answers
sSMTP no longer works - 'Invalid response: 501 5.5.4 HELO/EHLO argument MYEMAILADDRESS@gmail.com invalid, closing connection.'
As the title/tags say, I run sSMTP on Linux for a PHP server.
Whenever I try to send an email, I get these errors (that do not show up in PHP, only in the logs/ 'sudo service sendmail status' or 'sudo service php5-fpm status')
From…

Tony Sesek
- 315
- 1
- 3
- 9
9
votes
4 answers
How to fix error with sending email using gmail?
I want to send email in my php/laravel app in ubuntu 18 under Digital Ocean and I found this
https://semantiko.com/how-to-fix-php-mail-function-on-ubuntu-server/
article
I filled related config files and send several email and I found in…
user2054381
7
votes
1 answer
Is there any solution to execute binary in container that mount from host?
In my case , I have installed ssmtp package on my Unix based host .
Because of some reason , the best way in my situation is using ssmtp binary(under /usr/sbin) on my host to send mail (html file) in my APP container .
I attemp to mount the host…

Carr
- 2,691
- 1
- 19
- 27
7
votes
4 answers
Setting up sendgrid for rails..returning Authorization error
The emails now send from my local, but do not send from my box. I am returned this error. Anyone know what this might be?
Net::SMTPAuthenticationError (535 5.7.8 Error: authentication failed: authentication failure
):
My environments/production.rb…

Trip
- 26,756
- 46
- 158
- 277
5
votes
1 answer
How to change sender name in ssmtp?
I have installed ssmtp on my Linux server. Apache server works under www-data user, and send mail from ssmtp. In recieved emails I see www-data in sender name. How can I change it?
Here`s my…

Artem
- 517
- 1
- 7
- 24
4
votes
1 answer
ssmtp: 550 invalid DNS MX or A/AAAA resource record
I am trying to send a mail from centos machine, but I came to a problem. I have installed "mail" and ssmtp inside my linux machine and I got this response when I try to send a mail.
ssmtp: 550 invalid DNS MX or A/AAAA resource…
user7030890
3
votes
3 answers
how to send mail in python ssmtp vs smtplib
I need to send email in delbian linux. How to send? I run my server on 256 MB linux box and I heard postfix and sendmail is overkill.
Recently I came across the ssmtp, that seems to be an executable, needs to be executed as a process and called…

Krish
- 1,053
- 2
- 17
- 25
3
votes
1 answer
inserting system date into subject field of ssmtp email
I'd like to know the syntax for inserting the current date/time into the subject line of an email sent by ssmtp.
I've got a cronjob emailing the tail of my syslog whenever the system reboots.
Here is the the cronjob:
@reboot tail -1000…

user2418372
- 33
- 4
3
votes
2 answers
sSMTP rewriting "From" field in emails
My problem is that whenever my server sends emails, the sender field gets overwritten.
From: should be: Web Site Name
But email is delivered to the address from:
World Wide Web Owner
Or while sending the…

Scott
- 5,991
- 15
- 35
- 42
2
votes
0 answers
How do I use ssmtp for sending mail in php?
I am using Ubuntu 19.10.
I have just installed ssmtp and reconfigured the file /etc/ssmtp/ssmtp.conf as given in https://www.nixtutor.com/linux/send-mail-with-gmail-and-ssmtp/
So my /etc/ssmtp/ssmtp.conf looks like -
# Make this empty to disable…

Abhishek kamal
- 432
- 1
- 5
- 13
2
votes
0 answers
Crontab/sSMTP Raspberry Pi sending mail from crontab
I'm having a problem where I made a shell file to send me an email. I then put this shell file to be run by crontab at reboot (I reboot daily at 5am before I go to school) sSMTP works already because when i goto the /usr/scripts directory and i run…

sjfklsdafjks
- 149
- 2
2
votes
1 answer
Using ssmtp to send HTML e-mails with mail (sendmail)
I configured my ssmtp as…

Bhesh Sejawal
- 558
- 2
- 7
- 22
2
votes
3 answers
mail: failed to open stream: Permission denied?
I get this warning sending mails with php
Warning: mail(1) [function.mail]: failed to open stream: Permission denied in /home/...
using ssmtp and gmail as smtp
PHP 5.3.1
nothing in the logs (no errors)
the mail gets to destination
the permissions…

The Disintegrator
- 4,147
- 9
- 35
- 43
1
vote
1 answer
ssmtp in docker image
I'm trying to setup ssmtp (for sendmail) in Docker image.
To do so I've created the folowing Dockerfile:
FROM php:7.4-apache
# Install paquet requirements
RUN set -ex; \
# Install required system packages
apt-get update; \
apt-get…

Athlan
- 6,389
- 4
- 38
- 56