Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
The results are in! See what nearly 90,000 developers picked as their most loved, dreaded, and desired coding languages and more in the 2019 Developer Survey.

Questions tagged [ssmtp]

The tag has no usage guidance.

0
votes
1answer
32 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 ...
-1
votes
1answer
105 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 ...
1
vote
2answers
121 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. I'd like to ...
0
votes
1answer
39 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 >> ...
0
votes
0answers
173 views

Is it possible to configure ssmtp to use normal Gmail security

I have installed ssmtp mailutils and can send email from my Pi (running Raspbian - a Debian 9.4 variant) I configured /etc/ssmtp/ssmtp.conf and can send email using ssmtp and Gmail as SMTP server. ...
1
vote
0answers
29 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'...
0
votes
1answer
76 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 ...
0
votes
0answers
498 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 ...
0
votes
0answers
528 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: ...
0
votes
1answer
1k 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, ...
3
votes
1answer
1k 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 ...
1
vote
1answer
63 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 $(...
3
votes
2answers
3k 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 ...
1
vote
1answer
720 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 ...
29
votes
7answers
30k 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 ...
1
vote
2answers
7k 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 ...
1
vote
1answer
4k 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 ...
1
vote
0answers
144 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@...
0
votes
1answer
1k 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 ...
-1
votes
1answer
16 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 ...
1
vote
1answer
3k 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 ...
0
votes
2answers
2k 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 ...
0
votes
1answer
356 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 ...
0
votes
1answer
452 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 ...
1
vote
1answer
210 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 ...
1
vote
1answer
7k 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 ...
1
vote
1answer
11k 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=...
2
votes
1answer
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. ...
1
vote
1answer
4k 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 ...
0
votes
1answer
684 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. ...
-1
votes
1answer
575 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@...
15
votes
4answers
49k 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 ...
1
vote
0answers
1k 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). ...
4
votes
1answer
4k 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 ...
0
votes
1answer
1k 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 ...
5
votes
2answers
4k 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 ...
4
votes
5answers
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. ...
2
votes
1answer
723 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 ...
3
votes
2answers
6k 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: # /...
2
votes
2answers
23k views

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 ...
1
vote
1answer
136 views

How can I configure two mails for two different users in Ubuntu

I am struggling with configuring two mails for two different users in Ubuntu. Like if I login with User1 then whenever I use the command mail, it should send mail from user1@gmail.com. And when User2 ...
0
votes
1answer
2k views

Calling an email script from another script using ssmtp on ubuntu

I have an issue with a script, which works fine except that it only sends email when I run it directly from the shell but when called during crontab it doesn't send the emails. There are 2 scripts ...
6
votes
3answers
20k views

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

How to disable SMTP Auth Plain for James-2.3.2. on Slackware 14.0?

I am trying to disable SMTP Auth plain for James-2.3.2 on Slackware 14.0. Has anyone successfully done this without changing the source code?
5
votes
3answers
7k views

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 ...
13
votes
4answers
23k views

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?
2
votes
1answer
4k views

Can I make SSMTP to automatically set the “To:” header?

I'm using the ssmtp package to send e-mail via g-mail. Everything is working fine with it - the only strange thing is that if I send mail via the command line, the "to field" is funky. ssmtp me@...