LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-07-2019, 07:25 AM   #1
erajaysehgal
LQ Newbie
 
Registered: Jun 2019
Posts: 4

Rep: Reputation: Disabled
Lightbulb Unable to send e-mail alerts after mailx utility installation !!


Hello,

In sent OS linux 6.10. I had installed mailx utility but not able to send e-mail alerts. Can anyone help me to enable it?

Thanking you in advance !!
 
Old 06-07-2019, 07:34 AM   #2
dc.901
Senior Member
 
Registered: Aug 2018
Location: Atlanta, GA - USA
Distribution: CentOS/RHEL, openSuSE/SLES, Ubuntu
Posts: 1,005

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
Quote:
Originally Posted by erajaysehgal View Post
Hello,

In sent OS linux 6.10. I had installed mailx utility but not able to send e-mail alerts. Can anyone help me to enable it?

Thanking you in advance !!
Just installing mailx will not enable and send email alerts. You have to create scripts or use software that does monitoring/alerting.
See: https://www.digitalocean.com/communi...tem-monitoring
 
1 members found this post helpful.
Old 06-09-2019, 11:24 PM   #3
erajaysehgal
LQ Newbie
 
Registered: Jun 2019
Posts: 4

Original Poster
Rep: Reputation: Disabled
Talking

Thanks @dc.901,

I know that we should schedule a script to monitor in crontab. My question here is different ! I want to know that is there any additional configuration required to enable mailx utility as I am not able to send email by command prompt "mailx -s 'test' abc@xyz.com" ??

Last edited by erajaysehgal; 06-09-2019 at 11:25 PM. Reason: uyvol
 
Old 06-11-2019, 06:44 AM   #4
dc.901
Senior Member
 
Registered: Aug 2018
Location: Atlanta, GA - USA
Distribution: CentOS/RHEL, openSuSE/SLES, Ubuntu
Posts: 1,005

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
Quote:
Originally Posted by erajaysehgal View Post
I am not able to send email by command prompt "mailx -s 'test' abc@xyz.com" ??
After you run this command, what is output of: mailq

And, look at /var/log/maillog
 
Old 06-12-2019, 01:00 AM   #5
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,360

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
Have you tried sending a msg to yourself locally ie on the same box?
Do you have the mta installed ? (assuming you meant Centos 6.10, the default would be postfix).
You'll need a forwarding mailserver address.

NB: some ISPs don't like you sending out mail unless you have a Business acct + static IP with them because of SPAM. In some cases you can but have to use the ISPs mailservers to avoid being classified as SPAM by mailservers further on down the internet.
Basically dynamic IPs are mis-trusted ...
 
Old 06-12-2019, 04:39 AM   #6
erajaysehgal
LQ Newbie
 
Registered: Jun 2019
Posts: 4

Original Poster
Rep: Reputation: Disabled
Unhappy

Hello dc.901,

The maillog you had mentioned are blank and the output of mailq is:

> mailq
can not chdir(/var/spool/mqueue/): Permission denied
Program mode requires special privileges, e.g., root or TrustedUser.

Thank you !!
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] "Snorkeling on an empty pipe": error in S-mailx (mailx 4.19.11) RandomTroll Linux - Software 0 11-30-2018 10:45 PM
[SOLVED] Why can't send mail with command mail or mailx? luofeiyu Linux - Newbie 2 08-19-2015 10:10 AM
Trying to send mail form within my python script via mailx and sendmail NikosGr Linux - Newbie 2 09-06-2013 03:14 AM
[SOLVED] How to send a mail in HTML format using mailx or mail or sendmail commands vishnu_knl Linux - Newbie 8 04-05-2012 10:00 AM
TO ANYONE USING MAILX (mailx 12.1). stf92 Linux - Software 22 07-08-2010 09:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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