The Stack Overflow podcast is back! Listen to an interview with our new CEO.

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.

Filter by
Sorted by
Tagged with
0
votes
2answers
34 views

Mail body is missing, when tried from terminal

Mail body is missing while sending a mail from Ubuntu terminal as: echo "Test smtp" | sudo ssmtp -vvv test@test.com The mail is received, but it's body is empty. When I tried manually using the ...
0
votes
0answers
24 views

sSMTP gives 550 error every time I try to email someone

I've been trying to set up a script where it sends the contents of a text file to my email: benthetechguy@yahoo.com. I set up sSMTP with the email: executeorder66@yahoo.com. What i'm trying to do is ...
1
vote
1answer
87 views

Having some issues to send mails using ssmtp

Actually, I'm using a RaspberryPI 3b. This is my /etc/ssmtp/ssmtp.conf: root=gmail_user@gmail.com mailhub=smtp.gmail.com:587 rewriteDomain=gmail.com hostname=raspi FromLineOverride=YES UseTLS=Yes ...
1
vote
0answers
58 views

ssmtp, mailutils and GMail how to set username?

Ubuntu 18.04, ssmtp installed, mailutils installed and everything works, can send through gmail. My problem is that the messages when received appear to be from "Root (my-real-email@gmail.com)" I am ...
1
vote
0answers
256 views

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. ...
0
votes
0answers
61 views

Rewriting 'From:' in ssmtp/mail no longer works in Ubuntu 18.04

In Ubuntu 14.04 I had the following system running which is basically described here and also here. One element of this is that the 'From:' address is taken from /etc/ssmtp/revaliases: mainuser:...
1
vote
0answers
104 views

Why does my mailing script work outside of rc.local but not when I run rc.local?

I have ubuntu 18.04 and I recently added the rc.local script to /etc/ so I could run my emailing script to email myself my IP address from my jetson nano computer. I need it to email me because I ...
0
votes
1answer
622 views

ssmtp stopped working

This used to work, but does so no longer? NOW=$(date +%m-%d-%Y_%I:%M%p) CONTENT="Backup to Maxtor Drive performed on $NOW ." echo "Sending email." /usr/sbin/ssmtp -t << EOF To: 7@yahoo.com From:...
0
votes
0answers
264 views

ssmtp not working with outlook account

I have been trying to send emails with ssmtp through my outlook account. I followed this page and this is what I have inside ssmtp.conf: root=myemail@outlook.com mailhub=smtp-mail.outlook.com:587 ...
0
votes
1answer
248 views

Can't send mail from WordPress after configuring sSMTP

This is my /etc/ssmtp/ssmtp.conf with omitted root, email, password, and hostname: root=my_gmail_email@gmail.com AuthUser=my_gmail_email@gmail.com AuthPass=my_gmail_password hostname=my_host_name ...
2
votes
0answers
102 views

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 ...
2
votes
1answer
1k views

ssmpt : how to configure php?

I isntalled successfull ssmtp: /etc/ssmtp/ssmtp.conf root=contact@mydomain.com www-data=contact@mydomain.com mailhub=ssl0.ovh.net:587 #mailhub=ns0.ovh.net:587 UseSTARTTLS=YES FromLineOverride=YES ...
0
votes
1answer
235 views

Secure SSMTP Files

I've set up SSMTP as my server's mailing agent. I noticed that I had to insert my server mail host information and my password is viewable in plain text. Is there an effective way to secure that file ...
2
votes
0answers
700 views

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 ...
0
votes
1answer
208 views

Server mail BCC to address@servername

I apologize if this is a dumb/redundant question. I have an Ubuntu Server 16.04, main use is as a test environment and learning experience. I have SSH setup on this server that runs fine. I have ...
0
votes
0answers
2k views

How to configure php.ini to send mail from external smtp using ssmtp?

I've a dedicated server for sending emails with different domain and I'm running nginx and php on the current server. I've configured ssmtp to send emails which is working fine from terminal using ...
3
votes
0answers
3k views

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 /etc/ssmtp/ssmtp.conf root=username@symantric.com mailhub=...
0
votes
1answer
265 views

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?
1
vote
0answers
22 views

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 ...
1
vote
1answer
384 views

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 ...
1
vote
0answers
196 views

ssmtp works in cron, but not elsewhere

Ubuntu 16.04.... If I enter sudo ssmtp recipient@somewhere.com and type some text, then hit ctrl-d I get in the syslog: Nov 4 15:18:58 garage-security sSMTP[27717]: 550 5.6.0 Invalid header found (...
0
votes
1answer
14k views

mail: cannot send message: Process exited with a non-zero status

I have setup mailutils and ssmtp in my Ubuntu system. I have configured /etc/ssmtp/ssmtp.conf with proper credentials. For testing I ran this command echo "This is a test" | mail -s "Test" ...
3
votes
1answer
11k views

ssmtp: Cannot open smtp.gmail.com:587

I try to send a email using ssmtp but it not working My ssmtp config file root=test@gmail.com mailhub=smtp.gmail.com:587 AuthUser=test@gmail.com AuthPass=***** UseTLS=YES UseSTARTCTLS=YES ...
0
votes
1answer
787 views

SSMTP SSL connection null

Installed ssmtp on Xenial. Trying to send through gmail. When attempting to send a test message, syslog shows Jun 24 07:42:19 YYYY sSMTP[30547]: Creating SSL connection to host Jun 24 07:42:19 YYYY ...
5
votes
1answer
20k views

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 ...
6
votes
1answer
18k views

SSMTP with gmail “cannot open 587:587” [closed]

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 ...
7
votes
1answer
20k views

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 ...
2
votes
1answer
647 views

ssmtp trying to use port 25 when configured for 587 [closed]

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 ...
1
vote
1answer
76 views

help with email commands [duplicate]

enter image description hereI want to send emails from my Ubuntu pc to other pcs on internet. I also have an account on yahoo.gr ,there are some commands like ssmtp or mail or mutt but they don't work ...
1
vote
1answer
3k views

ssmtp doesn't recognize ctrl+d

I'm trying to send emails from an ubuntu-server (14.04.2 LTS) via the command-line and later inside small scripts. To do so, I want to use ssmtp with an external mailserver, inside the network, that ...
5
votes
2answers
46k views

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 this: root=me@server.com mailhub=mail.server.com:25 rewriteDomain= hostname=hostname....
0
votes
1answer
1k views

Able to send outgoing emails, but not internal

I've installed ssmtp and configured /etc/ssmtp.conf file and can successfully send outgoing emails, but I cannot send anything internally, i.e. whenever I type mail sergiy, which is my actual username ...