LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to change SENDMAIL SMTP in Fedora Core 6 Linux (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-change-sendmail-smtp-in-fedora-core-6-linux-4175500942/)

itpro 04-08-2014 03:55 AM

How to change SENDMAIL SMTP in Fedora Core 6 Linux
 
Hi there
Would someone guide me in which file can i change my SMTP server, since i have changed my ISP, due to which my outgoing emails bounced back due to old ISP SMTP entry enlisted there into my linux sendmail server.

itpro 04-08-2014 03:57 AM

I am using Microsoft Outlook 2010 for email client. In outlook 2010 I have entered IP of my mail server for SMTP address.

Rawcous 04-08-2014 09:22 AM

Hello Sir,

If you are simply referring to the Sendmail config file then this is what you are after:

Important: Make a backup of the file first!!!

/etc/mail/sendmail.mc

The line that needs to be changed is:

Code:

dnl define(`SMART_HOST', `smtp.ISPName.com')dnl
Simply substitute smtp.ISPName.com with the name of your current ISP's SMTP server.

Don't forget to rebuild the file after making any changes by performing the following:

Code:

/etc/mail/make
- this regenerates the sendmail.cf file

An important note to make: As this is a live server acting as an internal / external MTA from a security point of view, consider at least moving to a newer supported version of an Op. System so that you will still receive regular updates / security fixes / patches etc. Ok you may have a learning curve, but your system provided it is correctly configured will be much more secure + you will have the added benefits of refreshing your existing skillset.

Regards,

Rawcous!


All times are GMT -5. The time now is 04:26 AM.