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

From Brandonhutchinson.com

(Difference between revisions)
Jump to: navigation, search
Line 13: Line 13:
========================================================
========================================================
-
* Since '''$m''' is defined as '''example.com''', the S macro (SMART_HOST) is replaced with '''mailhost.example.com'''. If '''$m''' was not defined, th
+
* 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'''
+
* If '''$m''' was not defined, the '''S''' macro (SMART_HOST) would be '''mailhost'''

Revision as of 14:52, 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