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
1
vote
2answers
42 views

Is there a way with ssmtp to include a file as the body?

With ssmtp, is there a way to include a file as just the body? I would like to send as below so I can just email myself something: $ ssmtp me@gmail.com To: me From: me Subject: A File < fileName ...
1
vote
0answers
24 views

What is wrong with my ssmtp.conf file?

I can send email from my terminal through gmail with my ssmtp.conf file as it is below, but I think it's not right: root=me@gmail.com mailhub=smtp.gmail.com:465 rewriteDomain=gmail.com hostname=...
1
vote
0answers
52 views

Bash script executable manually but only partially via udev rule

I'm on Ubuntu 18.04 LTS and I wrote a script to take pictures and send an email with ssmtp when someone removes a USB device from my computer. the udev rule works fine and execute the script but only ...
0
votes
0answers
75 views

Alternative to ssmtp to send emails to yahoo account

I used to use ssmtp to send emails to my yahoo email address. However, both yahoo and gmail eliminated the ability for LESS SECURE APPS TO ACCESS EMAIL which stopped ssmtp from working. (ssmtp: ...
1
vote
0answers
315 views

sSMTP, mail, aliases

I setup ssmtp to send email messages from my Ubuntu server to an external email address. Using the mail command of the mailutils package, I am able to receive emails from my server sent via : $echo ...
0
votes
2answers
245 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 ...
2
votes
1answer
837 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
360 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 ...
2
votes
0answers
526 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. ...
1
vote
0answers
254 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
1k 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
991 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
387 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
266 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
2k 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
378 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
1k 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
300 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 ...
3
votes
0answers
5k 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
375 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
25 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
612 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
227 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
20k 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
14k 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
992 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 ...
8
votes
1answer
28k 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
19k 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
24k 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
889 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
82 views

help with email commands [duplicate]

I 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 for me. Perhaps I should ...
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
52k 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 ...