Questions tagged [ssmtp]

The tag has no usage guidance.

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

Light program (mini MTA?) for system mail (only sending/relay via external server with unattended-upgrades, cron, smartmontools, etc.)

I've come across different names in different places: Light MTA, Remote MTA, Smarthost, etc. Generally, I do not want to install a full-fledged mail server (such as sendmail, postfix, exim), but only ...
DarekH's user avatar
  • 37
0 votes
0 answers
47 views

ssmtp vs. Gmail

I am trying to setup my raspberry's ssmtp to use my Gmail account. I followed recommendations I found around, everything looks ok but the mail does not come. ssmtp.conf: root=<my_mail>@gmail.com ...
user1608790's user avatar
0 votes
0 answers
59 views

Auth error when sending mail through Postfix with SSMTP (local server)

I'm trying to send mail from a banana pi running SSMTP to a raspberry pi running dovecot/postfix. I used Thunderbird to login to my mail server it showed three times saying "Unable to log in at ...
Lukas's user avatar
  • 1
4 votes
1 answer
71 views

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). ...
Bob Vesterman's user avatar
1 vote
1 answer
461 views

Which domain is HELO checked against with rDNS? Mail server's domain, even if different from the sender's domain? Or the email sender's domain?

I run a small webserver that hosts a handful of domains which I use for personal and testing purposes. I want to set it up as a mail server as well, and I'm trying to understand the rDNS lookup that ...
billyjoepiano's user avatar
0 votes
0 answers
313 views

mailx/sendmail does not work with from-addr (Ubuntu 22.04)

I have a pretty simple SSMPT configuration that allows me to send automated messages from my servers via Zoho. I have ssmtp and bsd-mailx installed. Here is my ssmtp.conf: mailhub=smtppro.zoho.com:587 ...
CplClegg's user avatar
0 votes
1 answer
1k views

crontab error - SSMTP - 553 5.7.1 Sender address rejected: not owned by user

As root, I installed ssmtp and I configured the /etc/ssmtp/ssmtp.conf as follows: # Sender email address [email protected] # Destination SMTP server and port mailhub=mail.domain.com:587 # ...
nicfab's user avatar
  • 3
0 votes
1 answer
2k views

How to Install sSMTP on CentOS 8 AppStream

I have used the sSMTP package on CentOS 7 to send root emails to my Gmail address using an external mail server. However, the package isn't officially available for CentOS 8 in the EPEL 8 repo. Can it ...
Rajan Sharma's user avatar
0 votes
2 answers
2k 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 ...
Athlan's user avatar
  • 141
1 vote
1 answer
189 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 ...
phil's user avatar
  • 13
0 votes
1 answer
405 views

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

Some important service: [Unit] ... OnFailure=status-email@%n.service [email protected]: [Unit] Description=status email for %i to user [Service] Type=oneshot ExecStart=/usr/local/bin/systemd-...
Catnip's user avatar
  • 1
0 votes
1 answer
2k 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 ...
Huskie69's user avatar
  • 101
1 vote
0 answers
394 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 ...
AndreyIto's user avatar
  • 349
0 votes
1 answer
395 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 ...
ki9's user avatar
  • 384
6 votes
6 answers
13k 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) ...
Erwann's user avatar
  • 605
0 votes
1 answer
502 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 ...
lukas's user avatar
  • 3
1 vote
1 answer
6k 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 ...
FlexMcMurphy's user avatar
1 vote
0 answers
350 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 ...
Sammy's user avatar
  • 39
2 votes
1 answer
8k 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 ...
Sammy's user avatar
  • 39
10 votes
3 answers
19k 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 ...
rubo77's user avatar
  • 27.9k
3 votes
1 answer
751 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 ...
Ann L.'s user avatar
  • 133
-1 votes
1 answer
2k 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 ...
SCilek's 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
687 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 >> ...
Milliways's user avatar
  • 1,358
1 vote
0 answers
219 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'...
ceremcem's user avatar
  • 2,251
0 votes
2 answers
563 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 ...
das-g's user avatar
  • 419
0 votes
0 answers
2k views

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

When I run: echo "Subject: mysubject\n\nmytext" | sudo ssmtp [email protected] I expect the line above to send an email to [email protected] with mysubject as Subject, and mytext as body of the ...
Pierre B's user avatar
  • 2,173
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: ...
Drew's user avatar
  • 415
0 votes
1 answer
3k 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, ...
Stettin's user avatar
  • 103
5 votes
1 answer
5k 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 ...
Decoherent's user avatar
1 vote
1 answer
201 views

ssmtp m[email protected] < 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 $(...
brunobhr's user avatar
5 votes
2 answers
9k 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 ...
SDsolar's user avatar
  • 1,709
2 votes
1 answer
3k 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 ...
Amanda's user avatar
  • 33
44 votes
7 answers
84k 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 ...
SDsolar's user avatar
  • 1,709
2 votes
2 answers
22k 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 ...
Milliways's user avatar
  • 1,358
3 votes
2 answers
13k 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 ...
Charaf's user avatar
  • 301
1 vote
0 answers
281 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@...
Martin Schmelzer's user avatar
0 votes
2 answers
3k 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 ...
Forkbeard's user avatar
  • 597
-1 votes
1 answer
78 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 ...
mithz's user avatar
  • 1
2 votes
1 answer
8k 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 : [email protected] mailhub=smtp.gmail.com:587 rewriteDomain=gmail.com [email protected] UseTLS=Yes ...
Ines Belmihoub's user avatar
2 votes
2 answers
9k 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 ...
XJDHDR's user avatar
  • 171
0 votes
1 answer
539 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 ...
Dimitri Kopriwa's user avatar
0 votes
1 answer
650 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" [email protected] But ...
FreeSoftwareServers's user avatar
1 vote
1 answer
453 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 [email protected] ] When ...
JacquesL's user avatar
2 votes
1 answer
14k 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 ...
Bas's user avatar
  • 21
7 votes
1 answer
32k views

How to send mail to gmail account using ssmtp

I have the following ssmtp.conf file: [email protected] mailhub=smtp.gmail.com:587 hostname=ed424cef9b52 UseTLS=Yes UseStartTTLS=Yes AuthMethod=LOGIN AuthUser=test AuthPass=test FromLineOverride=...
sebelk's user avatar
  • 4,219
3 votes
1 answer
3k 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. ...
goodbyeera's user avatar
1 vote
1 answer
6k 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 ...
toxefa's user avatar
  • 1,093
0 votes
1 answer
1k 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. ...
Sebastien's 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 [email protected] < my_email_text.txt my_email_text.txt contains the following: To: [email protected] From: 3kstc@...
3kstc's user avatar
  • 4,616