What does DSmailhost$?m.$m$ mean in sendmail?

From Brandonhutchinson.com

(Difference between revisions)
Jump to: navigation, search
(New page: After looking through '''21.6 Macro Conditionals: $?, $|, and $.''' in '''sendmail, 3rd Edition''', I believe this line means the following. * If '''$m''' (subdomain name) is defined, rep...)
Line 1: Line 1:
-
After looking through '''21.6 Macro Conditionals: $?, $|, and $.''' in '''sendmail, 3rd Edition''', I believe this line means the following.
+
After looking through '''21.6 Macro Conditionals: $?, $|, and $.''' in '''sendmail, 3rd Edition''', I believe this line means the following:
* If '''$m''' (subdomain name) is defined, replace the value with '''.$m$'''.
* If '''$m''' (subdomain name) is defined, replace the value with '''.$m$'''.

Revision as of 14:49, 9 July 2008

After looking through 21.6 Macro Conditionals: $?, $|, and $. in sendmail, 3rd Edition, I believe this line means the following:

  • If $m (subdomain name) is defined, replace the value with .$m$.

Example:

$ sendmail -d0.1 < /dev/null
...
=========== SYSTEM IDENTITY (after readcf) ============
     (short domain name) $w = host
  canonical domain name) $j = host.example.com
        (subdomain name) $m = example.com
             (node name) $k = host
========================================================
  • Since $m is defined as example.com, the S macro (SMART_HOST) is replaced with mailhost.example.com. If $m was not defined, th
  • If $m was not defined, the S macro (SMART_HOST) would be mailhost
Personal tools