diff options
| author | Julien Valroff <julien@kirya.net> | 2012-06-17 10:01:09 +0200 | 
|---|---|---|
| committer | Julien Valroff <julien@kirya.net> | 2012-06-17 10:01:09 +0200 | 
| commit | 153b094dcd2ece8697a8d16808936d4c45c1aae5 (patch) | |
| tree | b97fc648e802f9b4b9c43a7cd37ec6ce6e05330b /debian/patches | |
| parent | a5a582ff6c90dc9a17a8d62845af8dbf2badc09d (diff) | |
Add patch from Pascal Volk to deal with Postfix enable_long_queue_ids paramater (Closes: #677747)
Diffstat (limited to 'debian/patches')
| -rw-r--r-- | debian/patches/103_postfix-long-queue-IDs.diff | 56 | ||||
| -rw-r--r-- | debian/patches/series | 1 | 
2 files changed, 57 insertions, 0 deletions
| diff --git a/debian/patches/103_postfix-long-queue-IDs.diff b/debian/patches/103_postfix-long-queue-IDs.diff new file mode 100644 index 0000000..183a9a2 --- /dev/null +++ b/debian/patches/103_postfix-long-queue-IDs.diff @@ -0,0 +1,56 @@ +Description: Add Postfix long, non-repeating, queue ID support. + The long queue IDs are encoded in a 52-character alphabet that contains: +    - digits (0-9) +    - upper-case letters (B-Z) w/o AEIOU +    - lower-case letters (b-z) w/o aeiou + + Additionally it corrects the regular expression for the short queue IDs. + The short queue IDs are encoded in hexadecimal alphabet that contains: +    - digits (0-9) +    - upper-case letters (A-F) +Author: Pascal Volk <user@localhost.localdomain.org> + +--- a/mailgraph.pl ++++ b/mailgraph.pl +@@ -620,7 +620,7 @@ + 			} + 		} + 		elsif($prog eq 'smtpd') { +-			if($text =~ /^[0-9A-Z]+: client=(\S+)/) { ++			if($text =~ /^(?:[\dA-F]+|[\dB-DF-HJ-NP-TV-Zb-df-hj-np-tv-z]+): client=(\S+)/) { + 				my $client = $1; + 				return if $opt{'ignore-localhost'} and + 					$client =~ /\[127\.0\.0\.1\]$/; +@@ -628,19 +628,19 @@ + 					$client =~ /$opt{'ignore-host'}/oi; + 				event($time, 'received'); + 			} +-			elsif($opt{'virbl-is-virus'} and $text =~ /^(?:[0-9A-Z]+: |NOQUEUE: )?reject: .*: 554.* blocked using virbl.dnsbl.bit.nl/) { ++			elsif($opt{'virbl-is-virus'} and $text =~ /^(?:[\dA-F]+: |[\dB-DF-HJ-NP-TV-Zb-df-hj-np-tv-z]+: |NOQUEUE: )?reject: .*: 554.* blocked using virbl.dnsbl.bit.nl/) { + 				event($time, 'virus'); + 			} +-			elsif($opt{'rbl-is-spam'} and $text    =~ /^(?:[0-9A-Z]+: |NOQUEUE: )?reject: .*: 554.* blocked using/) { ++			elsif($opt{'rbl-is-spam'} and $text    =~ /^(?:[\dA-F]+: |[\dB-DF-HJ-NP-TV-Zb-df-hj-np-tv-z]+: |NOQUEUE: )?reject: .*: 554.* blocked using/) { + 				event($time, 'spam'); + 			} + 			elsif($text =~ /Greylisted/) { + 				event($time, 'greylisted'); + 			} +-			elsif($text =~ /^(?:[0-9A-Z]+: |NOQUEUE: )?reject: /) { ++			elsif($text =~ /^(?:[\dA-F]+: |[\dB-DF-HJ-NP-TV-Zb-df-hj-np-tv-z]+: |NOQUEUE: )?reject: /) { + 				event($time, 'rejected'); + 			} +-			elsif($text =~ /^(?:[0-9A-Z]+: |NOQUEUE: )?milter-reject: /) { ++			elsif($text =~ /^(?:[\dA-F]+: |[\dB-DF-HJ-NP-TV-Zb-df-hj-np-tv-z]+: |NOQUEUE: )?milter-reject: /) { + 				if($text =~ /Blocked by SpamAssassin/) { + 					event($time, 'spam'); + 				} +@@ -655,7 +655,7 @@ + 			} + 		} + 		elsif($prog eq 'cleanup') { +-			if($text =~ /^[0-9A-Z]+: (?:reject|discard): /) { ++			if($text =~ /(?:[\dA-F]+|[\dB-DF-HJ-NP-TV-Zb-df-hj-np-tv-z]+): (?:reject|discard): /) { + 				event($time, 'rejected'); + 			} + 		} diff --git a/debian/patches/series b/debian/patches/series index 73a941e..843aec2 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -4,3 +4,4 @@  050_greylist.diff  101_dspam-virus-notifications.diff  102_clamav-milter.diff +103_postfix-long-queue-IDs.diff | 
