3 # Look for missing parameter names in postlink
5 trap 'rm -f postlink.tmp postconf.tmp check-postlink.tmp 2>/dev/null' 0 1 2 3 15
7 # Extract parameters from postconf.5.html hyperlinks.
9 sed -n '/[ ].*href="postconf\.5\.html#/{
13 }' mantools
/postlink |
sort > postlink.tmp
15 # Extract parameters from postlink script. This also produces names
16 # of obsolete parameters, and non-parameter names such as SMTPD
17 # access restrictions and mask names.
19 postconf
-d |
sed 's/ =.*//' |
sort >postconf.tmp
21 # Filter the output through a whitelist.
23 cat >check-postlink.tmp
<<'EOF'
25 lmtp_cname_overrides_servername
26 lmtp_destination_concurrency_failed_cohort_limit
27 lmtp_destination_concurrency_negative_feedback
28 lmtp_destination_concurrency_positive_feedback
29 lmtp_destination_rate_delay
31 lmtp_initial_destination_concurrency
32 lmtp_mime_header_checks
33 lmtp_nested_header_checks
34 local_destination_concurrency_failed_cohort_limit
35 local_destination_concurrency_negative_feedback
36 local_destination_concurrency_positive_feedback
37 local_destination_rate_delay
38 local_initial_destination_concurrency
39 relay_destination_concurrency_failed_cohort_limit
40 relay_destination_concurrency_negative_feedback
41 relay_destination_concurrency_positive_feedback
42 relay_destination_rate_delay
43 relay_initial_destination_concurrency
44 smtp_destination_concurrency_failed_cohort_limit
45 smtp_destination_concurrency_negative_feedback
46 smtp_destination_concurrency_positive_feedback
47 smtp_destination_rate_delay
48 smtp_initial_destination_concurrency
50 virtual_destination_concurrency_failed_cohort_limit
51 virtual_destination_concurrency_negative_feedback
52 virtual_destination_concurrency_positive_feedback
53 virtual_destination_rate_delay
54 virtual_initial_destination_concurrency
57 comm -23 postconf.tmp postlink.tmp | fgrep
-vx -f check-postlink.tmp