Making vacation work with Sendmail

By default, vacation will not work properly with sendmail... you'll see errors such as the following:

"|/usr/bin/vacation username"
    (reason: Service unavailable)
    (expanded from: email_address)
   ----- Transcript of session follows -----
451 4.0.0 putbody: write error: Broken pipe
smrsh: "vacation" not available for sendmail programs (stat failed)
554 5.0.0 Service unavailable

The fix to this is simple... sendmail can only access executables within /etc/smrsh (for security reasons), so you just need to do:

ln -s /usr/bin/vacation /etc/smrsh/vacation

Submitted by jkelly on Thu, 2006-11-30 01:33. categories [ | ] login or register to post comments