[CentOS] smtp mailer or SMART_HOST in sendmail.mc

Dan Carl danc at bluestarshows.com
Thu Feb 28 20:54:56 UTC 2008



> -----Original Message-----
> From: centos-bounces at centos.org [mailto:centos-bounces at centos.org]On
> Behalf Of Jerry Geis
> Sent: Thursday, February 28, 2008 11:12 AM
> To: CentOS ML
> Subject: [CentOS] smtp mailer or SMART_HOST in sendmail.mc
>
>
> Is there a EASY way to change the SMART_HOST in sendmail.mc.
> Some command line that does it?

cd /etc/mail
sed -e '/SMART_HOST/s/dnl //' -e
's/smtp.old.provider/smtp.new.provider/' -i.bak sendmail.mc
make -C /etc/mail
/etc/init.d/sendmail restart

You'll likely need to change your authinfo also.

> Trying to explain to customers editor commands, etc... to
> edit this file, change the name, make and service sendmail restart
> is BIG for someone that doesnt know linux...

Don't really understand why you don't just ssh in and do it yourself.

Dan




More information about the CentOS mailing list