LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Sendmail configuration (https://www.linuxquestions.org/questions/linux-server-73/sendmail-configuration-4175601162/)

bala1989murugan 03-06-2017 09:40 AM

Sendmail configuration
 
Dear Team,
I have installed sendmail package in my server.

Requirement:
I want to send mails to different domains. I'm not setting up the mail server in Linux.

Changed this line into my official smtp address.
dnl define(`SMART_HOST',`smtp.your.provider')

What are all the lines to be edited in sendmail configuration file?

My team required to send mails to different domains.
Mails are queueing.

I tried to send mail to another Linux host
root@hostname
this is also queueing.


Somebody can help on this.


Thanks.

szboardstretcher 03-06-2017 10:03 AM

Thats not where you change your smart host. That is the .mc file. You make changes in the .cf file. Specifically on the DS line:

On Centos:
Code:

vim /etc/mail/sendmail.cf
Change:
Code:

# "Smart" relay host (may be null)
DS

To:
Code:

# "Smart" relay host (may be null)
DSyour.relay.host.com


TB0ne 03-06-2017 10:18 AM

Quote:

Originally Posted by bala1989murugan (Post 5679792)
Dear Team,
I have installed sendmail package in my server.

Requirement: I want to send mails to different domains. I'm not setting up the mail server in Linux.

Changed this line into my official smtp address.
dnl define(`SMART_HOST',`smtp.your.provider')

What are all the lines to be edited in sendmail configuration file?

My team required to send mails to different domains. Mails are queueing. I tried to send mail to another Linux host root@hostname this is also queueing.

One of the very first hits in Google for "how to configure sendmail smart host" is:
https://www.howtoforge.com/configuri...e-from-address

....a step-by-step guide, walking you through making the change via the MC file and compilation of that file. Please see the "Question Guidelines" link in my posting signature, and please try to do basic research.


All times are GMT -5. The time now is 01:16 PM.