Re: how to send mail from console

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Roland Roland wrote:
> Hi all,
> 
> i'm trying to get a script to send me an email whenever a certain 
> condition takes place..
> i'm afraid i dont have experience with mail command nor anything else 
> related to sending emails for that matter..
> 
> i googled a bit and tried using mutt and mail ...
> though i do not recieve any email in my inbox...
> 
> the command im using is the following : mail -s “disk space report” 
> R_O_L_A_N_D@xxxxxxxxxxx
> 
> should i setup a default smtp to use? where can i check for the errors 
> that are taking place?

Does your machine have a valid domain name?  Most places will reject mail if the 
From: address can't be resolved, and the mail program will use the user running 
the command and the host name to construct this address.  Look in 
/var/log/maillog to see if that is the problem.

-- 
   Les Mikesell
    lesmikesell@xxxxxxxxx
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux