The musings and important information storage shed of Matt Kulka. I'll write about quirky things about Gentoo, Solaris and probably even Mac OS X or things dealing with systems administration in general as I encounter them at my daily job or in my limited free-time. Yes, even some Apple fanboyism too!

Search

Blog Roll

July 2010
Sun Mon Tue Wed Thu Fri Sat
 << <   > >>
        1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31

XML Feeds

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 | 1864 views | Hastily filed in Solaris
PermalinkPermalink1 comment »Send a trackback »

0101010101001010101110101010101011100101010101010100111000111010101011100001010101010101101101010111000110101011001011110101010100101000111010101001110101010101010111101010111011010101001001111011011010011011111010111101001011011101010001110010101010100011110101010101111010101100010010101

Trackback address for this post

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

1 comment

Comment from: Ken [Visitor]
# 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.

Your URL will be displayed.
(Line breaks become <br />)
(Name, email & website)
(Allow users to contact you through a message form (your email will not be revealed.)

bottom corner