aboutsummaryrefslogtreecommitdiffstats
path: root/utils/cgp_rspamd.pl
diff options
context:
space:
mode:
authorAndrey Igoshin <ai@vsu.ru>2018-05-06 16:35:37 +0300
committerAndrey Igoshin <ai@vsu.ru>2018-05-06 16:35:37 +0300
commit8d637ed84fc810ddc4eac93f682fbeb1094a9a01 (patch)
tree4d8c9a52fe52245b58e1c56ff91dc67d9797ffae /utils/cgp_rspamd.pl
parenta3191bd7b34d3373d151827a6e6592ea82084747 (diff)
downloadrspamd-8d637ed84fc810ddc4eac93f682fbeb1094a9a01.tar.gz
rspamd-8d637ed84fc810ddc4eac93f682fbeb1094a9a01.zip
[Feature] support for CommuniGate Pro self-generated messages
Diffstat (limited to 'utils/cgp_rspamd.pl')
-rw-r--r--utils/cgp_rspamd.pl6
1 files changed, 6 insertions, 0 deletions
diff --git a/utils/cgp_rspamd.pl b/utils/cgp_rspamd.pl
index 986c0804e..5a4bd109a 100644
--- a/utils/cgp_rspamd.pl
+++ b/utils/cgp_rspamd.pl
@@ -209,6 +209,12 @@ sub rspamd_scan {
$ip = $2;
}
}
+ elsif ( $elt =~ /^S (?:<([^>]+)> )?(?:DSN|GROUP|LIST|PBX|PIPE|RULE) \[0\.0\.0\.0\]/ ) {
+ if ($1) {
+ $user = $1;
+ }
+ $ip = '127.2.4.7';
+ }
}
my $headers = {};