LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-20-2015, 11:30 AM   #1
zaeem
Member
 
Registered: Jan 2010
Posts: 118

Rep: Reputation: 15
Shell script to send email after authenticaton


Dear All,

I am not an expert with Linux so I am seeking your help. I want to send some email from Linux through Microsoft Exchange server 2013 which requires authentication. This exchange server doesn't allow sending anonymous email. Previously I am sending email using "mail -s" command. Can you guys please help me to achieve this. Any heko would greatly be appreciated. By the way I am using Oracle Linux 6.6.
 
Old 04-20-2015, 11:54 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 17,933

Rep: Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692
Quote:
Originally Posted by zaeem View Post
Dear All,
I am not an expert with Linux so I am seeking your help.
You've been using Linux for five years now.
Quote:
I want to send some email from Linux through Microsoft Exchange server 2013 which requires authentication. This exchange server doesn't allow sending anonymous email. Previously I am sending email using "mail -s" command. Can you guys please help me to achieve this. Any heko would greatly be appreciated. By the way I am using Oracle Linux 6.6.
Set up a mailrc file for whatever server/authentication you're using. And since you're controlling the Exchange server, you should also be able to configure it to allow emails from one specific address without authentication.

This has been covered on here before, and there is ample documentation about sending mail from the Linux command line:
http://www.linuxquestions.org/questi...rc-4175526177/
https://www.linuxquestions.org/quest...l-smtp-817482/
http://www.linuxandlife.com/2013/01/...-terminal.html

Also, since you're using Oracle Linux, have you contacted Oracle support??? You are PAYING for Oracle Linux, right?
 
Old 04-23-2015, 11:56 AM   #3
zaeem
Member
 
Registered: Jan 2010
Posts: 118

Original Poster
Rep: Reputation: 15
Quote:
You've been using Linux for five years now.
Yes you are right but I am mot using it as System Administrator. I am an application administrator and do some work on Linux as per my interest.

Quote:
Also, since you're using Oracle Linux, have you contacted Oracle support??? You are PAYING for Oracle Linux, right?
Yes I am paying for it.

Quote:
Set up a mailrc file for whatever server/authentication you're using. And since you're controlling the Exchange server, you should also be able to configure it to allow emails from one specific address without authentication.

This has been covered on here before, and there is ample documentation about sending mail from the Linux command line:
http://www.linuxquestions.org/questi...rc-4175526177/
https://www.linuxquestions.org/quest...l-smtp-817482/
http://www.linuxandlife.com/2013/01/...-terminal.html
Thank you very much for directing me to some other thread with same discussion.
 
Old 04-23-2015, 01:17 PM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 17,933

Rep: Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692
Quote:
Originally Posted by zaeem View Post
Yes you are right but I am mot using it as System Administrator. I am an application administrator and do some work on Linux as per my interest.
Ok...so since you say you're not the administrator, how do you plan on making changes to the system to resolve your issue?
Quote:
Yes I am paying for it.
Great...so why didn't you call Oracle support?
Quote:
Thank you very much for directing me to some other thread with same discussion.
You're welcome...but please read the "Question Guidelines" link in my posting signature. You could have (and should have), easily looked this up yourself.
 
Old 04-25-2015, 02:55 PM   #5
zaeem
Member
 
Registered: Jan 2010
Posts: 118

Original Poster
Rep: Reputation: 15
Quote:
Ok...so since you say you're not the administrator, how do you plan on making changes to the system to resolve your issue?
I am actually learning to improve my skill set and I first implement the same on my laptop and then suggest system administrator to have a look and implement the same.

Quote:
Great...so why didn't you call Oracle support?
System administrator is in touch with Oracle as well.
 
Old 04-27-2015, 09:05 AM   #6
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 17,933

Rep: Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692
Quote:
Originally Posted by zaeem View Post
I am actually learning to improve my skill set and I first implement the same on my laptop and then suggest system administrator to have a look and implement the same.
...which takes us back to your first post, where you say you're not an administrator, just an application administrator. So if this is your system, none of that matters, since YOU ARE the administrator of your own system. And if you're an application administrator, you need to just tell your systems administrator what you want to do, and let them do their job. Would you like if they made suggestions to you about how to do YOUR job?
Quote:
System administrator is in touch with Oracle as well.
....and since you just said that YOU are the administrator of your box, wouldn't that mean that YOU are in contact with Oracle??? What did they say?

And did you read about mailx???
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
need to invoke 'Ctrl+D' in a shell script to send an email. rockhack Linux - Kernel 2 06-15-2010 08:17 AM
shell script to search all the files starting with name failed.* and send via email masood24 Linux - Newbie 4 12-13-2009 06:06 PM
send email to server to start shell script bic Red Hat 5 12-04-2009 10:06 AM
Having a problem getting my shell script to send an email after each row. mgsmith7475 Linux - Newbie 3 04-27-2009 09:28 PM
write a shell script to send email yenonn Programming 4 02-11-2005 11:06 PM


All times are GMT -5. The time now is 08:23 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration