Last active
October 10, 2018 14:17
-
-
Save vanyasem/3687b553d4be382c9ffc3683a6288ac3 to your computer and use it in GitHub Desktop.
Ubuntu 18.04: amavisd patch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rm -rf ./* | |
apt-get source amavisd-new | |
cd amavisd-new-2.11.0/ | |
cp amavisd amavisd.old | |
nano amavisd | |
diff -Naur amavisd.old amavisd > debian/patches/100_originating_fix | |
nano debian/patches/100_originating_fix | |
--- a/amavisd.old 2018-09-24 00:07:08.715626399 +0000 | |
+++ b/amavisd 2018-09-24 00:07:16.171494466 +0000 | |
@@ -33570,6 +33570,7 @@ | |
my $allowed_hdrs = cr('allowed_added_header_fields'); | |
my $from_str = join(', ', qquote_rfc2821_local(@rfc2822_from)); # logging | |
substr($from_str,100) = '[...]' if length($from_str) > 100; | |
+ $msginfo->originating(c('originating')); | |
if (!$allowed_hdrs || !$allowed_hdrs->{lc('DKIM-Signature')}) { | |
do_log(5, "dkim: inserting a DKIM-Signature header field disabled"); | |
} elsif (!$msginfo->originating) { | |
nano debian/patches/series | |
100_originating_fix | |
dpkg-buildpackage -us -uc -nc | |
cd .. | |
sudo dpkg -i amavisd-new_2.11.0-2ubuntu1_all.deb | |
sudo systemctl restart amavisd-new |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment