Questions tagged [ssmtp]

82 questions
1
vote
2 answers

PHP's mail relay via OpenSMTPD returns error Message is not RFC 2822 compliant

I have the following setting in my php.ini [mail function] sendmail_path = /usr/sbin/sendmail -t -i Binary /usr/sbin/sendmail comes from the installed ssmtp package on Alpine Linux. I want to relay all emails to the opensmtpd container from the…
chingis
  • 1,514
  • 2
  • 19
  • 38
1
vote
1 answer

How to send email using ssmtp

I am attempting to write a script which send emails containing log messages... Firstly, I have installed ssmtp and configured /etc/ssmtp/ssmtp.conf as follows: # # Config file for sSMTP sendmail # # The person who gets all mail for userids < 1000 #…
1
vote
0 answers

Formatting emails from crontab with ssmtp

I've seen a number of examples on how to setup ssmtp but can't seem to find clear answers how to configure crontab to send data to an email. What I want to accomplish is a crontab config that will send emails with system stats every 12 hours at…
user3002166
  • 689
  • 9
  • 24
1
vote
0 answers

SSMTP configuration works on Debian, but not on CentOS: (`Cannot open mail.domain.com:587`)

I have the same version of ssmtp installed on Debian 9 and CentOS 7. Debian: ~# ssmtp -V sSMTP 2.64 (Not sendmail at all) CentOS: # ssmtp -V sSMTP 2.64 (Not sendmail at all) I have identical configurations in /etc/ssmtp/ssmtp.conf for both…
Cameron Hudson
  • 3,190
  • 1
  • 26
  • 38
1
vote
1 answer

Not able to send mail from linux command

I wan to send an email from a linux command. I installed in ubuntu ssmtp, then I configured it in…
Kallel Omar
  • 1,208
  • 2
  • 17
  • 51
1
vote
1 answer

SSMTP fails after migrating to Buster

SSMTP was working for years now on my RPi - latest on stretch. Now I migrated to buster - and after this step it now fails. $ cat…
Michi
  • 37
  • 4
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
1 answer

Sendmail use localhost.localdomain

Sendmail with Perl uses localhost.localdomain instead of a fully qualified domain name (FQDN). Sendmail and server configuration is correct, hostname is setup with FQDN. My script contains the following lines: use MIME::Lite; use…
Ωmega
  • 42,614
  • 34
  • 134
  • 203
1
vote
1 answer

Debian Package 'ssmtp' has no installation candidate

On a debian machine, I suddenly cannot install ssmtp via the following apt-get update && apt-get install ssmtp Before it was all working seamlessly up until now. Also just an FYI. I am doing this on a dockerFile on a debian container. Just for…
1
vote
2 answers

Mutt bash script sends email fine from command line but not from motioneye notification hook

So I'm about ready to pull my hair out on this one. I am running ssmtp and mutt on a freeBSD jail. I have a bash script called notify that contains the following line. mutt -s "$subject" "$email" -a "$attachment" < "$logfile3" When I run bash…
Darpeh
  • 86
  • 7
1
vote
0 answers

How to avoid WantAuthError with sendmail

I'm trying to create a cron job that will periodically email me. To do this, I am trying to learn how to use sendmail. I have created the following files in /etc/ssmtp revaliases: # sSMTP aliases # # Format: …
user1245262
  • 6,968
  • 8
  • 50
  • 77
1
vote
0 answers

Send email by `mailx` is not working for some email domain

I'm am trying to send a email from centos 7 with the google ssmtp settings. I just installed mailx and ssmtp and I am trying to make it work. When I send a email to for example gmail; it arrives like it should, but when I send a email to a…
kzk
  • 13
  • 3
1
vote
1 answer

PHP mail() function and execute sendmail with different configuration

Is there any way to execute PHP mail() function with some arguments so sendmail will load different configuration? Something similar like Python can do with a code below ssmtp = "/usr/sbin/ssmtp" args = [ssmtp, '-v', '-v', '-v', '-C',…
JackTheKnife
  • 3,795
  • 8
  • 57
  • 117
1
vote
1 answer

Specify the minimum TLS version of ssmtp client

I am using "ssmtp" as mail client to send email to remote mail server on Ubuntu Linux. I know there are "UseTLS" and "UseSTARTTLS" options in ssmtp.conf which can make ssmtp send emails with secure. However, I don't find any option to specify the…
Dejun
  • 11
  • 2
1
vote
1 answer

How to configure php mail function to send mail from external smtp server?

I've a dedicated server for sending emails with different domain and I'm running nginx and php on the ubuntu server. I've configured ssmtp to send emails which is working fine from terminal using echo from terminal. I want to use php mail function…
vishgarg
  • 445
  • 1
  • 9
  • 24