LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 05-03-2017, 09:18 AM   #1
square-eyes
LQ Newbie
 
Registered: Apr 2017
Posts: 14

Rep: Reputation: Disabled
Cron job script has stopped emailing me.


Hi.

For years, I've had my computer send me regular email with a message file containing info about the computers well-being.

About a month ago, it stopped. I now get this instead.

Code:
[square-eyes@localhost ~]$ nail -r "square-eyes8008@gmail.com" -s "no subject" -S smtp=mail.bigpond.com square-eyes8001@gmail.com < message.txt

smtp-server: 501 HELO/EHLO rejected. OB301
"/home/square-eyes/dead.letter" 11/338
. . . message not sent.

Last edited by square-eyes; 05-03-2017 at 09:20 AM.
 
Old 05-03-2017, 01:00 PM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
smtp-server: 501 HELO/EHLO rejected. OB301
Assuming that your credentials are correct, most likely you need to change your hostname from localhost (or localhost.localdomain) to something like host.domain.com.
See this thead and the solution
 
Old 05-03-2017, 01:01 PM   #3
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
0) more info please.

1) does it work from command line, invoked manually?

2) https://duckduckgo.com/?q=smtp-serve...rejected+OB301
 
Old 05-03-2017, 05:38 PM   #4
square-eyes
LQ Newbie
 
Registered: Apr 2017
Posts: 14

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by bathory View Post
Assuming that your credentials are correct, most likely you need to change your hostname from localhost (or localhost.localdomain) to something like host.domain.com.
See this thead and the solution
Thanks. Fixed. (edit: Changing from the default localhost to something else works. My ISP is indeed rejecting all emails containing localhost)

I took the opportunity to give my computer a very rude name which I'm afraid I cannot print that here.

Last edited by square-eyes; 05-04-2017 at 01:45 AM.
 
Old 05-03-2017, 06:54 PM   #5
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Quote:
Originally Posted by square-eyes View Post
Thanks. Fixed.

I took the opportunity to give my computer a very rude name
Your network, your rules.
 
Old 05-04-2017, 01:13 AM   #6
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by square-eyes View Post
Thanks. Fixed.
you're welcome.
but how?
forums work like this:
  1. i have a problem
  2. i search the forums, did someone have that problem already and is there a solution?
if you don't share your solution, forum don't work.
 
Old 05-04-2017, 01:44 AM   #7
square-eyes
LQ Newbie
 
Registered: Apr 2017
Posts: 14

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ondoho View Post
you're welcome.
but how?
forums work like this:
  1. i have a problem
  2. i search the forums, did someone have that problem already and is there a solution?
if you don't share your solution, forum don't work.
Ah, sorry. I thought it was obvious. I've edited my reply.
 
1 members found this post helpful.
Old 11-27-2018, 01:53 AM   #8
square-eyes
LQ Newbie
 
Registered: Apr 2017
Posts: 14

Original Poster
Rep: Reputation: Disabled
Hi, back again. Update.

Now my ISP has started dropping the daily emails my computer sends to my gmail account. Changing the subject header to anything but “Report” circumvents the spam filter. For now.

I’m thinking that relying on the ISP/Gmail solution is precarious. Before I start another thread, I’d be interested if you have any suggestions on a more robust method considering that my requirements have changed slightly.

I just want the computer at home to be able to send a few lines of status text (and possibly a 2k text file) to my android and as a backup if the phone dies, a linux lappy.

Bueller?
 
Old 11-29-2018, 01:07 AM   #9
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
are you sure it's your ISP dropping them? couldn't it also be gmail?

i wouldn't assume anyhting, and go through all the troubleshooting steps as in the beginning of the thread.

fwiw:
i used to use a really old mailing script, and my email provider rejected it silently. they apparently believe in their spam filters with such conviction that they don't move it to a spam folder, just delete it.
now i use a different method of mailing, and it works.
the From Address can be important, but the subject?
http://dt.iki.fi/ssmtp
 
  


Reply



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
[SOLVED] cron job stopped working after switching from Mint 14 to Mint 13 Don_Nadie Linux Mint 16 05-11-2015 03:16 AM
CRON job not running, stopped ,WHY ? redhat70 Linux - Server 2 01-07-2013 01:10 AM
adding a perl script to cron.daily / cron.d to setup a cron job CrontabNewBIE Linux - Software 6 01-14-2008 08:16 AM
cron job suddenly stopped working Gisli Linux - Software 1 08-25-2005 12:03 PM
Cron Job with a Script bravored Linux - General 4 08-05-2005 10:27 AM

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

All times are GMT -5. The time now is 10:38 AM.

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