LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 07-24-2020, 09:33 AM   #1
amarcuz
LQ Newbie
 
Registered: Nov 2010
Posts: 4

Rep: Reputation: 0
Unattended E-Mail issue


Morning all,

Having some challenges getting email set up correctly on one of my hosts.
here is what I get in the mail.info log:
from=<hostname@emailaddress@gmail.com>, size=466, nrcpt=1 (queue active)
to=<user@hostname@gmail.com>, relay=gmail-smtp-in.l.google.com[172.253.122.27]:25,

where user keiword was substituted for the real username and hostname for the real hostname.

I have a script set up to E-Mail me the WAN IP address when the ISP re-shuffles the addresses (no I cannot get a static IP).
The script is executed by CRON at 10 min past midnight every night, but for some reason the user name of the account in where the shell script lives in is tagged onto the to line, causing gmail to reject the message.

I checked the hosts and it is set to the correct hostname, but I did something that caused this to happen at some point, but cannot figure out what.

Here is the content of the mail line in the script
mail -s "Hillsborough IP Address is: $IP" emailaddress@gmail.com <<< "Hillsborough IP: $IP Changed on: $MYDATE "

Any pointers as to what I may have changed inadvertently to cause this event?


Thanks

Last edited by amarcuz; 07-24-2020 at 09:39 AM.
 
Old 07-27-2020, 10:11 AM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,153

Rep: Reputation: 1265Reputation: 1265Reputation: 1265Reputation: 1265Reputation: 1265Reputation: 1265Reputation: 1265Reputation: 1265Reputation: 1265
What happens when you enter the mail command on the bash command line? Add the '-v' option for more info.
 
  


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
is linux capable of remote install and unattended installation? spyghost Linux - Networking 2 08-09-2004 11:28 AM
unattended dvd burn pete_g Linux - Software 0 07-24-2004 06:42 AM
Unattended installs musicman_ace Linux - General 1 06-28-2004 10:55 PM
Unattended Taper Backups chrisk5527 Linux - Software 0 01-30-2003 04:14 PM
Unattended boot Sathe Linux - General 4 01-27-2002 10:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 08:37 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