Questions tagged [ssmtp]

SSMTP is a send-only sendmail emulator for machines which normally pick their mail up from a centralized mailhub (via pop, imap, nfs mounts or other means). It provides the functionality required for humans and programs to send mail via the standard or /usr/bin/mail user agents.

40 questions
13
votes
2 answers

How to change default FROM address for mail command using sSMTP?

I have installed: sudo apt-get install ssmtp sudo apt-get install mailutils When I use command: echo "something" | mail -s "testing email" email@example.com The generated email have From field set to something like this: From: "Username"…
Maris B.
  • 453
  • 2
  • 7
  • 17
10
votes
1 answer

How to get ssmtp to map local user to email address for the To: field

I have a simple ssmtp setup. The command echo test | mail -s "testing" username always results in me trying to send an email to username@hostname which always fails. I am thus trying to map the local username to a specific email address. How do I do…
Cookie
  • 957
6
votes
1 answer

SSMTP with gmail "cannot open 587:587"

I'm trying to configure my HTPC to send me an email once in a while, particularly after certain cron jobs but I can't get it to work. I've also got a server running Ubuntu 14.04 LTS where I eventually got SSMTP to work so I've tried to copy those…
Zarkov
  • 121
5
votes
2 answers

ssmtp Cannot open mail.server.com:25

I am trying to configure ssmtp on our Ubuntu 12.04 server. However I had no luck so far. My ssmtp.conf looks like…
n1000
  • 261
3
votes
0 answers

ssmtp: Authorization failed for corporate mailserver

Our corporate has its own mailserver and I want to send mail to it from command line. I've install smtp and configure it. Configuration in…
d a i s y
  • 5,551
3
votes
1 answer

How do I set up ssmtp for use with Fastmail?

There are plenty of guides on the web about setting up ssmtp for Gmail, but it's a bit different for different providers. How should it be done for fastmail.com?
3
votes
1 answer

ssmtp: Cannot open smtp.gmail.com:587

I try to send a email using ssmtp but it not working My ssmtp config…
2
votes
0 answers

sSMTP errors : `Unable to set TLS_CA_FILE="/full/path/to/file.pem"' then 'Bad Credentials' from gmail

Even though I can succeed in sending mail using swaks with ssmpt protocol, I get an error when I try to use the ssmpt program. Here is the mail log from the failing ssmtp exchange: Sep 8 21:25:24 skunk-desktop sSMTP[13400]: Set…
2
votes
0 answers

ssmtp - can I whitelist recipients so that I do not accidentally email customers from my dev system?

I use ssmtp to test emails sent from my development web server. Sometimes I want to test things that went wrong for a customer and need to use their email address to bring up records etc. on a test system. What I really don't want is to…
Henry's Cat
  • 121
  • 5
2
votes
1 answer

ssmtp trying to use port 25 when configured for 587

I'm trying to use ssmtp to send a simple email from a server. There are loads of examples out there for configuring a gmail account and that's what I'm using. My /etc/ssmtp/ssmtp.conf tile contains the line: mailhub=smtp.gmail.com:587 But when I…
jwhitmore
  • 121
2
votes
1 answer

Having some issues to send mails using ssmtp

Actually, I'm using a RaspberryPI 3b. This is my…
2
votes
0 answers

SSMTP on Ubuntu 18.10 server stopped sending email through GMail

I use SSMTP on many of our servers. As of June 6th 2019 I can no longer get SSMTP on any of my ubuntu servers to send email. I have some raspberry pies using the same scripts and they send just fine. On site and offsite using different Google domain…
2
votes
0 answers

How to set the from header for outgoing system email messages that are sent via msmtp on Ubuntu 16.04 LTS

I have setup msmtp on Ubuntu 16.04 LTS to deliver system email messages (cron, etc) to my inbox using an external smtp server. I use the packages msmtp-mta, ca-certificates, heirloom-mailx The configuration works fine. However emails that the system…
Jabb
  • 121
2
votes
1 answer

ssmpt : how to configure php?

I isntalled successfull ssmtp:…
yarek
  • 191
1
vote
1 answer

Why does ssmtp work with sudo but not without?

I am a Ubuntu novice. I've set up ssmtp. If I run echo "mail test" | sudo ssmtp -vvv xxxxxxxx@domainname.com it works. Without sudo it doesn't. It gives Authorization failed 535 Incorrect Authentication So what difference is sudo making ? If I…
Chris W
  • 37
1
2 3