~ubuntu-branches/ubuntu/maverick/postfix/maverick-security

« back to all changes in this revision

Viewing changes to mantools/check-postlink

  • Committer: Bazaar Package Importer
  • Author(s): LaMont Jones, Wietse Venema, LaMont Jones
  • Date: 2009-06-03 14:17:08 UTC
  • mfrom: (1.1.22 upstream)
  • Revision ID: james.westby@ubuntu.com-20090603141708-o9u59xlor7nmd2x1
[Wietse Venema]

* New upstream release: 2.6.2~rc1

[LaMont Jones]

* move postfix-add-{filter,policy} manpages to section 8, and deliver
* provide: default-mta on ubuntu

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
 
 
3
# Look for missing parameter names in postlink
 
4
 
 
5
trap 'rm -f postlink.tmp postconf.tmp check-postlink.tmp 2>/dev/null' 0 1 2 3 15
 
6
 
 
7
# Extract parameters from postconf.5.html hyperlinks.
 
8
 
 
9
sed -n '/[      ].*href="postconf\.5\.html#/{
 
10
        s/^[^#]*#//
 
11
        s/".*//
 
12
        p
 
13
}' mantools/postlink | sort > postlink.tmp
 
14
#
 
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.
 
18
 
 
19
postconf -d | sed 's/ =.*//' | sort >postconf.tmp
 
20
 
 
21
# Filter the output through a whitelist.
 
22
 
 
23
cat >check-postlink.tmp <<'EOF'
 
24
lmtp_body_checks
 
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
 
30
lmtp_header_checks
 
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
 
49
stress
 
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
 
55
EOF
 
56
 
 
57
comm -23 postconf.tmp postlink.tmp | fgrep -vx -f check-postlink.tmp