Questions tagged [ssmtp]
65 questions
44
votes
7 answers
Simplest way to send one-line mail out via command line using gmail?
Using Raspbian and Ubunntu 16.04 LTS so need a generic Linux solution.
Requirement is simple:
I need a way to send one-line email messages from the command line.
I have set up a gmail account just for this particular Rpi3, with the address of…
SDsolar
- 1,699
- 3
- 15
- 26
30
votes
9 answers
mail: cannot send message: process exited with a non-zero status
I've had a cronjob working for about a fortnight without any problems.
Then last night I checked I didn't get the email that I usually get.
I went to the terminal to try send myself an email, I got the following error:
mail: cannot send message:…
3kstc
- 4,616
- 15
- 33
- 49
17
votes
5 answers
How can I send attachment with ssmtp in Linux?
I can send email from my gmail account by ssmtp in Linux now. But how can I attach files to the email?
deepsky
- 423
- 2
- 5
- 8
12
votes
3 answers
After updating sSMTP to version 2.61 I cannot send mail via gmail
I updated sSMTP to version 2.61 and now when I try to us it I receive the following error:
ssmtp: Cannot open smtp.gmail.com:587
I can connect via telnet to their address, but sSMTP seems to get tripped up and Im not sure what changed after the…
ProfessionalAmateur
- 3,115
- 3
- 18
- 17
10
votes
3 answers
install ssmtp in Debian buster
I try to install ssmtp in Debian 10.0, but get the error
Package ssmtp is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or is only available from another source
But I get no…
rubo77
- 27,777
- 43
- 130
- 199
9
votes
3 answers
ssmtp: Cannot open mail:25
I've installed ssmtp and then edited the ssmtp.conf file so could try sending a mail but says cannot open mail:25 however in the conf file I set it to gmail port 467 and I am pretty sure everything else is right.
What specifically do I need to look…
cea
- 1,523
- 8
- 30
- 45
8
votes
3 answers
Where is the setting for sending email to a system user with ssmtp?
I'm using ssmtp for sending email (the setting is below)
Now when i run a cron command or an at command, mail is sent to
michel@mypi
which is username @ machinename
Now ofcourse this is not a valid email address, so i get errors in my gmail saying:…
Michel
- 203
- 3
- 7
7
votes
1 answer
How to send mail to gmail account using ssmtp
I have the following ssmtp.conf…
sebelk
- 4,209
- 10
- 35
- 54
6
votes
6 answers
Troubleshooting sSMTP: Authorization failed
My requirements are:
send an email from the terminal (for the sake of batch processing)
attach a pdf file to that email (the pdfs would be identical for all recipients, except for a watermark)
specify a reply-to address ([email protected])
I've…
Erwann
- 605
- 1
- 8
- 18
6
votes
2 answers
How to send email from ssmtp with HTML
I want to send an HTML report that is piped from another command, eg: mycommandthatprintshtml | mail [email protected] . When I do this currently, it prints all the html tags. Is there a way I can set the required headers to make it display in…
Zombies
- 645
- 1
- 7
- 11
5
votes
1 answer
Debian: can't send email with SSMTP as regular user
I'm having some trouble getting SSMTP to let me send email as a regular user. When I set up this machine ~a year ago, I'd used Arch's instructions to set up security, but that apparently broke silently at some point with (I assume) an update, and I…
Decoherent
- 61
- 1
- 4
5
votes
2 answers
Simplest way to send mail with image attachment from command line using gmail?
Building on the previous post where the requirement was to have cron jobs send status messages via a single command line, as posted here:
Simplest way to send one-line mail out via command line using gmail?
The question came up as to how to use a…
SDsolar
- 1,699
- 3
- 15
- 26
5
votes
1 answer
Permissions for /etc/ssmtp/ssmtp.conf
I'm just starting with my own Virtual Server (and Linux). I've an apache2 and a few WordPress sites. I need to send mails via PHP (contact forms). I managed to install ssmtp with the help of a few tutorials. It sends mail with an gmail account. I'm…
Albrecht
- 53
- 1
- 5
5
votes
5 answers
Why am I getting inconsistent IP values from icanhazip.com or curlmyip.com?
I wrote a bash script and appended to my crontab to query my IP address every minute, and if it is not the same with the previous query it sends me an e-mail to inform me for the IP address change. But there's a strange thing. As it queries…
ybaylav
- 131
- 1
- 9
4
votes
1 answer
Where are these "extra" RCPT_TO lines coming from when I send an email via SSMTP?
I've been using SSTMP on a local FreeBSD machine to send stuff like the output of certain cron jobs to my "real" main email account, which is not hosted on the same machine (or even domain). For example, I have a daily cron job set up as…
Bob Vesterman
- 277
- 1
- 10