Skip to main content

Questions tagged [ssmtp]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
14 views

ssmtp using elasticemail.com:2525 looks like it sends OK but email never arrives

OS: xUbuntu 22.04 I am trying to setup the ability to send emails from the cli (and once successful, use for cron jobs and scripts). Although the majority of help out there is for setting up smtp....
naphelge's user avatar
0 votes
1 answer
50 views

Are e-mails to localhost logged with sSMTP?

I don't suppose that sSMTP will work for just sending mail on the localhost? nicholas@mordor:~$ nicholas@mordor:~$ sudo cat /etc/ssmtp/ssmtp.conf # # Config file for sSMTP sendmail # # The person who ...
Nicholas Saunders's user avatar
0 votes
0 answers
115 views

how to test HELO/EHLO email error with Gmail using sSMTP?

As SSMTP doesn't run as a daemon per se, how do you test that it's working? nicholas@mordor:~$ nicholas@mordor:~$ telnet localhost 25 Trying 127.0.0.1... telnet: Unable to connect to remote host: ...
Nicholas Saunders's user avatar
0 votes
0 answers
24 views

Fix postfix/dovecot to accept local connections on the same VM-host

I have a root-server with some VMS. 10.77.77.101 is the mail server and 10.77.77.107 (vm07) is a PHP webserver running Wordpress. Sending and receiving mails with Thunderbird works fine. Sending mails ...
rubo77's user avatar
  • 29.4k
3 votes
2 answers
695 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
  • 97
0 votes
0 answers
162 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
4 votes
1 answer
121 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
1k 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
1 answer
2k 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
3k 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
233 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
469 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-...
Xeicam's user avatar
  • 1
1 vote
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
  • 111
1 vote
0 answers
498 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
561 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
  • 413
9 votes
6 answers
17k 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
  • 667
0 votes
1 answer
612 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
2 votes
1 answer
8k 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
394 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
9k 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
20k 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
  • 29.4k
3 votes
1 answer
805 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
2 votes
3 answers
3k 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
722 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,378
1 vote
0 answers
261 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,361
0 votes
2 answers
646 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
  • 439
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,233
0 votes
0 answers
3k 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
  • 425
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
210 views

ssmtp [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,869
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
50 votes
8 answers
90k 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,869
2 votes
2 answers
24k 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,378
4 votes
2 answers
14k 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
  • 321
1 vote
0 answers
284 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
  • 637
-1 votes
1 answer
100 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
9k 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
3 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
  • 201
0 votes
1 answer
561 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
668 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
474 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
3 votes
1 answer
15k 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
  • 31
7 votes
1 answer
34k 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,469
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,103