Configuring custom sendmail service with SMF

From: Dan Lorenzini (lorenzd@gcm.com)
Date: Mon May 08 2006 - 16:32:32 EDT


Greetings,

Using the Solaris 10 service management facility, I would like to set
up sendmail services with a customized sendmail.cf and possibly setting
options on startup. For instance, I would have:

        svc:/network/smtp:sendmail_custom
        svc:/network/smtp:sendmail_custom_test

where both would use, e.g., /etc/mail/sendmail_custom.cf and the
sendmail_custom_test service would have the equivalent of

        OPTIONS="-X /var/log/Xsendmail"

entry in the sendmail startup script.

I could then disable the svc:/network/smtp:sendmail service and enable
one of the custom ones.

I would like to know whether this is possible, and, if so, how it would
be accomplished. Although I have started to familiarize myself with
smf(5), I am not comfortable enough with commands like setprop and svccfg
to know how to do this. Presumably working on a concrete example such
as the above would give me a better understanding of how smf works.

Also, I am wondering if such an approach would allow the customized
configuration to survive future sendmail patches without being
overwritten.

I would be grateful for help in implementing this type of configuration.

Regards,

Dan Lorenzini RBS Greenwich Capital
lorenzd@gcm.com 600 Steamboat Road
203-625-6088 Greenwich, CT 06830

-----------------------------------------
*******************************************************************
*

This e-mail is intended only for the addressee named above.
As this e-mail may contain confidential or privileged information,
if you are not the named addressee, you are not authorized
to retain, read, copy or disseminate this message or any part of
it.

*******************************************************************
*
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:39:49 EDT