Is there a EASY way to change the SMART_HOST in sendmail.mc. Some command line that does it?
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...
Just wondering if something exists already before I make something. Dont wish to redo anything.
Thanks,
Jerry
-----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
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
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
The obvious downside here is that if you ever rebuild your sendmail.cf file from the mc file in the future, this change will be overwritten.
Ray
Ray Van Dolson wrote:
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
The obvious downside here is that if you ever rebuild your sendmail.cf file from the mc file in the future, this change will be overwritten.
Ray _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Unless he "chattr -i sendmail.cf" the file ?
On Thu, Feb 28, 2008 at 11:22:04PM +0200, Rudi Ahlers wrote:
Ray Van Dolson wrote:
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
The obvious downside here is that if you ever rebuild your sendmail.cf file from the mc file in the future, this change will be overwritten.
Ray
Unless he "chattr -i sendmail.cf" the file ?
Haha, sure, I guess... but better document that for the next admin who expects things to work in the "default" way :)
Ray
Rudi Ahlers wrote:
The obvious downside here is that if you ever rebuild your sendmail.cf file from the mc file in the future, this change will be overwritten.
Unless he "chattr -i sendmail.cf" the file ?
Why would anyone want to do that ? perhaps you meant +i ? but then again, why would you want to rebuild a file that you mark as non changeable ?
Karanbir Singh wrote:
Rudi Ahlers wrote:
The obvious downside here is that if you ever rebuild your sendmail.cf file from the mc file in the future, this change will be overwritten.
Unless he "chattr -i sendmail.cf" the file ?
Why would anyone want to do that ? perhaps you meant +i ? but then again, why would you want to rebuild a file that you mark as non changeable ?
Yes, I meant +i
IINM, with that option, the file won't get overwritten with a rebuilt. But now that I think about it, there should be a better way of doing this
Ray Van Dolson wrote:
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
The obvious downside here is that if you ever rebuild your sendmail.cf file from the mc file in the future, this change will be overwritten.
And you don't have to run 'make' explicitly to do that. 'service sendmail restart' will do it automatically if anything has touched sendmail.mc.