Solaris 10 sendmail

This post serves more as a personal reminder to me than anything else. I ran into a situation at work where I couldn't figure out why sendmail on a Solaris 10 system wasn't using the 'smart host' that I could clearly see was in /etc/mail/sendmail.cf. Long story short, by default, sendmail on Solaris 10 uses /etc/mail/local.cf. You have to tell it you really want to use sendmail.cf. It serves a purpose though because a default install won't have the mailer daemon hanging out there for the rest of the world to probe (even if it won't be an open relay).

To make your intention known that you want to use sendmail.cf, you must edit the smtp:sendmail service properties. You can easily do that with svccfg. Like so:

svccfg -s smtp:sendmail setprop config/local_only=false

Then you have to refresh the instance to reload the xml files for the service...

svcadm refresh smtp:sendmail

And then all is well. The service should be restarted and using sendmail.cf!

posted by Matt | 10/16/09 | 10:15:41 am | 20544 views | Hastily filed in Solaris
PermalinkPermalink  

0101010101001010101110101010101011100101010101010100111000111010101011100001010101010101101101010111000110101011001011110101010100101000111010101001110101010101010111101010111011010101001001111011011010011011111010111101001011011101010001110010101010100011110101010101111010101100010010101

Trackback address for this post

Trackback URL (right click and copy shortcut/link location)

1 comment

Comment from: Ken [Visitor]
Ken# svcadm refresh smtp:sendmail
did not work for me.

# svcadm restart smtp:sendmail
did work.

04/20/10 @ 17:38

Leave a comment


Your email address will not be revealed on this site.
(Line breaks become <br />)
(For my next comment on this site)
(Allow users to contact me through a message form -- Your email will not be revealed!)

bottom corner