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
0 answers
42 views

ssmtp and logcheck

Ubuntu 18.04 ssmtp is running, and following command works correctly: echo "This is a test" | mail -s "test subject" username@gmail.com username@gmail.com receives the message via ...
0 votes
0 answers
189 views

sendmail: Cannot open mailhub:25 but my config specifies port 587

I'm using Sendmail on Linux via the command line, to attempt to send email as described here - https://blog.edmdesigner.com/send-email-from-linux-command-line/ I've updated my /etc/ssmtp/ssmtp.conf as ...
0 votes
0 answers
53 views

Kubuntu 20.04 not sending emails from cron

I'm new to Kubuntu (installed 20.04 about 4 weeks ago). I am having a problem with cron jobs not sending emails. I know that I have to have an MTA, so I installed and configured ssmtp. I also ...
  • 1
1 vote
2 answers
435 views

Problems with ssmtp after upgrading to Ubuntu 20.04 LTS - package post-installation script subprocess returned error exit status 2

may you can help me i facing this issue since i upgrade to ubuntu 20.04 LTS from 18.04 LTS. It seems that the script has problems to export value or information. I have no clue what todo. Thanks for ...
1 vote
2 answers
131 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
0 answers
239 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
0 answers
85 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 ...
  • 11
1 vote
1 answer
1k 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
2 answers
659 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 ...
  • 9
2 votes
1 answer
1k 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
0 answers
577 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
0 answers
629 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
0 answers
287 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 ...
  • 11
0 votes
1 answer
2k 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:...
  • 2,504
0 votes
1 answer
2k 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 ...
  • 867
0 votes
1 answer
449 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 ...
user avatar
2 votes
0 answers
427 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 ...
  • 121
2 votes
1 answer
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 ...
  • 191
0 votes
1 answer
429 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
0 answers
2k 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
1 answer
348 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 ...
  • 840
3 votes
0 answers
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=...
  • 5,273
1 vote
1 answer
476 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
0 answers
27 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
1 answer
730 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 ...
  • 17
1 vote
0 answers
250 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
1 answer
23k 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
1 answer
15k 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
1 answer
1k 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 ...
9 votes
1 answer
33k 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 ...
  • 413
6 votes
1 answer
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 ...
  • 121
9 votes
1 answer
28k 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 ...
  • 878
2 votes
1 answer
1k 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 ...
  • 121
1 vote
1 answer
86 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 ...
  • 29
1 vote
1 answer
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 ...
  • 111
5 votes
2 answers
56k 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....
  • 261
0 votes
1 answer
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 ...