Questions tagged [ssmtp]

The tag has no usage guidance.

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

ssmtp in docker image

I'm trying to setup ssmtp (for sendmail) in Docker image. To do so I've created the folowing Dockerfile: FROM php:7.4-apache # Install paquet requirements RUN set -ex; \ # Install required system ...
user avatar
  • 131
1 vote
1 answer
49 views

After upgrade my cron script does not find the command /usr/sbin/ssmtp

I have several raspberries running the same cron script but after updating/upgrading jessie on one of them i get ssmtp:: command not found I can run that command from the command-line but running the ...
user avatar
  • 13
0 votes
1 answer
127 views

systemd (OnFailure) using ssmtp with gmail can't send mail

Some important service: [Unit] ... OnFailure=status-email@%n.service status-email@.service: [Unit] Description=status email for %i to user [Service] Type=oneshot ExecStart=/usr/local/bin/systemd-...
user avatar
  • 1
0 votes
1 answer
441 views

How can I identify what process is sending emails?

My email service provider has informed me that I keep hitting my daily SMTP quota limit and has identified one of my servers as sending email from a root account. I've disabled any cronjobs that were ...
user avatar
  • 101
1 vote
0 answers
167 views

Sending automated emails (Ubuntu 20.04)

I have a database (proprietary software wrapping postgres) running on a Ubuntu 20.04 VM, which comes with a python API to read and write into the database. For technical reasons, it's better to use ...
user avatar
  • 339
0 votes
1 answer
140 views

Redirect systemd service STDERR to command (sendmail)

This seems like something that's been asked before but I can't find it anywhere. I have a systemd service that runs on a timer, updating my packages. I want to get emailed using ssmtp every time the ...
user avatar
  • 197
2 votes
1 answer
6k views

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) ...
user avatar
  • 479
0 votes
1 answer
192 views

"Unable to set AuthPassword" ssmtp

I am setting up smtp to sent mails via terminal and getting "non-zero" status. In my log files there is a log about "Unable to set AuthPassword" password contains characters and ...
user avatar
  • 3
1 vote
1 answer
3k views

How do you stop and start ssmtp?

I use ssmtp to email program exception error messages via my google account. On my osmc linux setup I run this command to check if there is a running ssmtp process. osmc@osmc:~$ ps -aux | grep ssmtp ...
user avatar
1 vote
0 answers
247 views

Raspian - emails won't send in postfix

Context: I'm working with my raspberry pie in my local private network. I just want to be able to let cron send me emails, but instead I get this following error from sending my last email. To see ...
user avatar
  • 39
2 votes
1 answer
7k views

mail: Can't send message: process exited with a non-zero status

Any idea why it is not sending mail for me? Am I missing something? I tried a few articles and it seems like I have done everything correctly; so I am a bit stuck on this? sudo apt-get update sudo ...
user avatar
  • 39
9 votes
2 answers
16k views

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 ...
user avatar
  • 24.6k
2 votes
1 answer
583 views

Cron email not sent by sSMTP if job takes > 5 minutes

We have two servers, one of which runs Ubuntu and the other Amazon Linux 2. Both run a series of cron jobs for different clients. The Ubuntu server sends an email (to a group email address) with the ...
user avatar
  • 123
-1 votes
1 answer
1k views

How to attach file to mail using SSMTP ONLY! [duplicate]

I have this bash script that prepares and sends an email using SSMTP. The line that sends the message looks like this: /usr/local/sbin/ssmtp -vvvv $recipients < $mail_file $recipients: the ...
user avatar
  • 1
1 vote
3 answers
2k views

Understanding sendmail binary

I have a website with some PHP based CMS on which I'm the only user. This website has a simple contact form (name, email, phone and body) by which I get mail from non registered users. One the one ...
user avatar
0 votes
2 answers
450 views

Prevent cron sending error messages

I have cron set to run a task for user pi (on my Raspberry Pi running Raspbian Stretch) every 15 minutes. 6,21,36,51 * * * * /usr/bin/mosquitto_sub -h Pi3Plus.local -v -C 1 -t weather >> ...
user avatar
  • 1,218
1 vote
0 answers
150 views

How to add ssmtp into initramfs?

I'm trying to add ssmtp into initramfs. However, I can not find (or compile at the moment) the statically linked version. I guess my only option is adding the current, dynamically linked version. I'...
user avatar
  • 1,937
0 votes
2 answers
418 views

How can I set up a local MTA on NixOS?

caff from nixpkgs.pgp-tools seems to require a local MTA to send keys with UIDs signed to the corresponding email addresses. (It uses perl's Mail::Mailer for that.) How can I set up a local MTA on my ...
user avatar
  • 409
0 votes
0 answers
1k views

ssmtp: sending email through the command-line, body of email being ignored

When I run: echo "Subject: mysubject\n\nmytext" | sudo ssmtp myemail@gmail.com I expect the line above to send an email to myemail@gmail.com with mysubject as Subject, and mytext as body of the ...
user avatar
  • 1,903
0 votes
0 answers
2k views

ssmtp with gmail

So, this is weird. Two computers, one with CentOS and one with Manjaro. Both have ssmtp, both with the same setup. Manjaro ssmtp will connect and send emails, CentOS will not: /etc/ssmtp/ssmtp.conf: ...
user avatar
  • 385
0 votes
1 answer
2k views

Use curl command output to send email

My goal is to monitor a web page for text and trigger an email to myself either if the text is found, or if it is not, whichever is easier. I know there are some packages out there already to do this, ...
user avatar
  • 103
3 votes
1 answer
4k views

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 ...
user avatar
1 vote
1 answer
140 views

ssmtp myaddress@gmail.com < file.log doesn't work. Body is blank

I'm running a simple rsync script where I log stdout and stderr to two different files, rsync_stdout.log and rsync_stderr.log. When I'm trying to email the content of rsync_stderr.log using: echo $(...
user avatar
5 votes
2 answers
8k views

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 ...
user avatar
  • 1,629
2 votes
1 answer
2k views

Forward/Redirect email fetched via fetchmail to gmail

I am on a mac using terminal. I am trying to redirect email from a work email to gmail (the work email only allows IMAP and gmail can only fetch from POP - hence the workaround). I have successfully ...
user avatar
  • 23
45 votes
7 answers
75k views

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 ...
user avatar
  • 1,629
2 votes
2 answers
19k views

Problem sending email using ssmtp

I am attempting to setup so I can mail from Raspbian. When I attempt to send I get an error ssmtp: Cannot open smtp.gmail.com:587 (I also tried port:465) I have set "Access for less secure apps" on ...
user avatar
  • 1,218
2 votes
2 answers
11k views

SSMTP not sending mails "Cannot open mailhub:25" (tldr : file permissions when user is www-data)

I struggled a LOT — way too much — fixing an issue with my SSMTP install so I decided to share the solution here. I got multiple instances of php inside docker containers. Every instance should be ...
user avatar
  • 191
1 vote
0 answers
249 views

Sending a mail inside a scheduled (cron) shell script does not work

I have a shell script with the following content #!/bin/sh sudo Rscript /home/username/RWD/test.R sudo find /home/username/RWD -type f -name "*.png" -exec /usr/bin/mpack -s "Test Mail" {} my.email@...
user avatar
0 votes
2 answers
2k views

Auth error when sending mail through Postfix with SSMTP

I'm trying to send mail from server A running SSMTP via a server B running Postfix. The Postfix server is running just fine and has been in production for a while without any problems. It runs Postfix ...
user avatar
  • 577
-1 votes
1 answer
27 views

Find file generated 1 day ago and the name has pattern "performance-team(A/B/C-(yesterday's date)"

Trying to find how to regularly find any file generated 1 day ago and the name has pattern "performance-team(A/B/C)-(yesterday's date)". And then email it to certain mail-address from Tuesday to ...
user avatar
  • 1
2 votes
1 answer
7k views

SSMTP ERROR : CANNOT OPEN SMTP.GMAIL.COM:587

I've installed ssmtp on Centos 6 and configured it, here is my ssmtp.conf file contain : root=xxx@gmail.com mailhub=smtp.gmail.com:587 rewriteDomain=gmail.com hostname=xxx@gmail.com UseTLS=Yes ...
user avatar
2 votes
2 answers
7k views

SSMTP: How to send email with both a body and attachment

I am currently using the following command to send emails from my Ubuntu server, which I adapted from this question's answer: https://unix.stackexchange.com/a/90881/166614 printf "subject: the ...
user avatar
  • 171
0 votes
1 answer
515 views

Tell guest OS to use my dockerized mail server to send email

I have postfix running in a Docker container. A cronjob try to send email, but reply “(CRON) info (No MTA installed, discarding output)” error in the syslog According to this link, the solution is ...
user avatar
0 votes
1 answer
598 views

SSMTP - Can send E-Mail via CLI - But Programs fail to send notifications

Today I set up a new XYMon monitor VM. The old one used PostFix, but I set up SSMTP. I can e-mail myself fine from the CLI like such. echo "Hello, World" | mail -s "My email check" my@email.com But ...
user avatar
1 vote
1 answer
384 views

Does SSMTP cause spam issues?

I am currently using SSMTP to send email notifications from my Icinga server. I am using my web host's STMP server to send the mail, with working authentication details [ eg icinga@domain.com ] When ...
user avatar
1 vote
1 answer
12k views

How to add subject line when sending email output of find using ssmtp

I got a script running (as cronjob) that will list the files in a folder before doing a Rsync job and emailing me the list. How can I add a subject line. find /path/to/folder/ -type f -size +1M -name ...
user avatar
  • 11
6 votes
1 answer
28k views

How to send mail to gmail account using ssmtp

I have the following ssmtp.conf file: root=test@gmail.com mailhub=smtp.gmail.com:587 hostname=ed424cef9b52 UseTLS=Yes UseStartTTLS=Yes AuthMethod=LOGIN AuthUser=test AuthPass=test FromLineOverride=...
user avatar
  • 3,939
2 votes
1 answer
2k views

Why cron jobs' output keeps getting written to ~/dead.letter?

I have a job scheduled by cron running every day, and the job is about compressing a folder using tar; and I found that the standard output of tar keeps getting written into ~/dead.letter everyday. ...
user avatar
1 vote
1 answer
5k views

root can't send mail (apticron) but user can (mail/mailx)

I'm running Debian I've set up ssmtp as my MTA and this works perfectly I can send mail using both mail and mailx with a standard user account BUT... When I run sudo apticron I get: send-mail: RCPT ...
user avatar
  • 1,063
0 votes
1 answer
949 views

www-data as the expeditor of a mail sent with contact 7, ssmtp being the server

On my Debian Raspberry, i have installed ssmtp. When I send an email, using Wordpress' contact 7 form, the email appears as sent by www-data, the owner of the directory where wordpress is installed. ...
user avatar
-2 votes
1 answer
2k views

How to change the font while emailing from the terminal

From the terminal I send an emailout to myself: :$ ssmtp 3kstc@StackExchange.com < my_email_text.txt my_email_text.txt contains the following: To: 3kstc@StackExchange.com From: 3kstc@...
user avatar
  • 4,086
27 votes
8 answers
102k views

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 ...
user avatar
  • 4,086
2 votes
0 answers
2k views

Sending mail from multiple e-mail accounts(for different domains) using ssmtp

I'm hosting multiple domains in my public html folder of an ubuntu-nginx vps server. And I currently have my ssmtp.conf file set up to send mail successfully from one of those domains (say, example1). ...
user avatar
  • 21
5 votes
1 answer
6k views

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

SSMTP returns error 550

I have a Raspberry Pi with Raspian installed on it and I am experiencing troubles sending out emails. I have installed SSMTP and usually inside my scripts I'm sending out emails to notify me when a ...
user avatar
  • 145
6 votes
2 answers
7k views

How to send email from ssmtp with HTML

I want to send an HTML report that is piped from another command, eg: mycommandthatprintshtml | mail someone@hostname.com . When I do this currently, it prints all the html tags. Is there a way I can ...
user avatar
  • 565
4 votes
5 answers
3k views

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. ...
user avatar
  • 111
2 votes
1 answer
1k views

ssmtp package missing in debian jessie - alternatives?

I'm missing the ssmtp package in debian jessie alpha 1 (extremely simple MTA to get mail off the system to a mail hub). It's available in wheezy and sid. Has this package been discontinued? What are ...
user avatar
  • 133
3 votes
2 answers
8k views

Setup GMX email with SSMTP

I setup the simplest outgoing email server possible with ssmtp. It is giving me the error Authorization failed (535 Authentication credentials invalid). Here is my configuration without comments: # /...
user avatar
  • 1,509