Dan Carl wrote:
-----Original Message----- From: centos-bounces@centos.org [mailto:centos-bounces@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
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
In this case the change is so minor I would just get them to edit sendmail.cf directly and add the appropriate smart host (Yes I know people will shoot me for making this recommendation).
For those unfamiliar with it you just edit the DS Parameter eg
# "Smart" relay host (may be null) DSsmtp.example.com