LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-08-2021, 09:34 AM   #16
littlebigman
Member
 
Registered: Aug 2008
Location: France
Posts: 660

Original Poster
Rep: Reputation: 35

The problem was solved by using msmtp instead:

~# cat /etc/msmtprc
Code:
defaults
tls off
auth off

# ISP
account isp
host smtp.isp.com
from me@isp.com

account default : isp
crontab -l
Code:
25 16 * * MON /root/show.disk.usage.bash
show.disk.usage.bash
Code:
#!/bin/bash
CURRENT=$(df --output=pcent / | sed 1d)
printf 'From: me@isp.com\nTo: me@isp.com\nSubject: Disk space\n\nRoot partition %s full.'  "$CURRENT" | msmtp -t
Thanks!
 
  


Reply

Tags
cron



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Temporary MTA failure on relaying, From MTA() during fwd-connect (No greeting, dt: 1.005 s) kwickcut Ubuntu 2 02-15-2021 01:34 PM
error sending email via mutt/msmtp w/ cronjob (status 0x0001 from MTA#012) jorjor242 Linux - Software 21 04-17-2020 02:09 PM
email without local mta daemon running jag7720 Linux - Server 4 07-18-2012 06:38 PM
Sendmail is installed as default MTA. How do I switch to Postfix as MTA? virtualpal Linux - Newbie 5 05-11-2009 02:10 AM
MTA alternative or start MTA later? lomix Linux - Software 2 04-17-2008 08:07 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:34 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration