LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   sendmail for hosted exchange server (https://www.linuxquestions.org/questions/linux-server-73/sendmail-for-hosted-exchange-server-4175429495/)

linuxguy08 09-28-2012 05:29 PM

sendmail for hosted exchange server
 
Hi ,

I have to set up sendmail in centos 5.2 running server.
Basically , we have hosted exchange server for our business - outlook mail which is smtp.xxx.xx.com running in 2525 port - smtp . i would like to configure in sendmail so that i can send/receive mail via my centos box . Could you pls suggest me as to how to do that?

Any help would be highly appreciated!
Thanks

nas123 10-01-2012 03:57 AM

Hi,

well first i will say install sendmail-cf
yum install sendmail-cf

then go to folder /etc/mail/

and vi into sendmail.mc

look for line add define (smart_host', 'add your smtp server address here')
save the file and then run the following command
m4 sendmail.mc > sendmail.cf

then edit your aliases file which is located in /etc/
at the bottom eher it ststes root add your email address save file and then type newaliases in command line

then restart your sendmail daemon

service sendmail restart

and thats it.

linuxguy08 10-01-2012 02:53 PM

I did that so but no mail has been received in my outlook in box. Is it because of any firewall issue?


All times are GMT -5. The time now is 02:05 PM.