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...)
Current revision (03:19, 19 July 2008) (edit) (undo)
 
(2 intermediate revisions not shown.)
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$'''.
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, the S macro (SMART_HOST) would be '''mailhost'''
+
* If '''$m''' was not defined, the '''S''' macro (SMART_HOST) would be '''mailhost'''

Current revision

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, the S macro (SMART_HOST) would be mailhost
Personal tools