Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have an application that can use send email via Php function or Sendmail or SMTP: http://nl1.upanh.com/b5.s13.d5/ab50f...09341.mail.jpg
I also have an email account that authenticated.
Now, i want to use that account to send out email from my linux box.
Which one may i choose Sendmail or SMTP to install to send email?
My server is CentOS 5.7
But i did not own the server mail.
Any help me to how to configure??
Any feedback is appreciate.
I know sendmail is default on my box.
But i do not know how to configure the sendmail that using the account which i already have to send mail from my application.
My email account is an email account on exchange server(i did not own this server).
As i said i have a application:http://nl1.upanh.com/b5.s13.d5/ab50f...09341.mail.jpg
If i choose send email by PhP Mail() Function is ok
but send by sendmai or SMTP not ok.
If you use SMTP, you will need to provide the information needed. Does your exchange support SMTP authentication? Is it configured for SMTP authentication? If yes, then have you configured your application with proper needed SMTP settings? It will most probably need the hostname or IP address of SMTP server, user name and password for authentication. If authentication mechanism uses SSL or TLS, your application should also support this.
As for with sendmail, you will need path to sendmail server and user name and password if it is configured for authentication.
When you are using SMTP, it clearly says that your SMTP server does not support authentication. Hence, you do not need to supply user name and password in the credentials section. Just fill in the host name or the IP address of the SMTP server.
In the first case, sendmail, it says it needs recipient address. This could mean that your sendmail is either not configured properly and hence not accepting the address supplied by you or you actually forgot to tell sendmail whom do you want to send mail to.
Check your both settings and try to send the mail. And if you want to use sendmail method, you could use mail command to check if sendmail is working properly.
The best bet would be to use SMTP option and remove the credentials. If you want to use sendmail, I am not sure how would you do that. I guess you would have to configure sendmail to relay your mails through exchange. But that would be an extra step when you can directly use your exchange server as SMTP without any credentials.
Hmm...
Hard to configuration.
If i using the PhP Mail() Function, can already received email with difference domain such as gmail, yahoo mail
But with our domain (abc.com) i can not received email.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.