LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Shell script to send email after authenticaton (https://www.linuxquestions.org/questions/linux-newbie-8/shell-script-to-send-email-after-authenticaton-4175540227/)

zaeem 04-20-2015 10:30 AM

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.

TB0ne 04-20-2015 10:54 AM

Quote:

Originally Posted by zaeem (Post 5350191)
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?

zaeem 04-23-2015 10:56 AM

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.

TB0ne 04-23-2015 12:17 PM

Quote:

Originally Posted by zaeem (Post 5351904)
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.

zaeem 04-25-2015 01:55 PM

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.

TB0ne 04-27-2015 08:05 AM

Quote:

Originally Posted by zaeem (Post 5353002)
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???


All times are GMT -5. The time now is 02:35 AM.