SA Bugzilla – Bug 5198
RCVD_FORGED_WROTE doesn't match when it should
Last modified: 2018-01-30 03:29:49 UTC
Received: from 69.80.208.30 (HELO mail.boscodog.com) by dotat.at with esmtp (.).2),I8R07 >/-3) id 01(4K<-<K864B-G7 for dot@dotat.at; Mon, 20 Nov 2006 16:48:11 +0180 This doesn't match because of the [A-Z0-9] at the end of RCVD_FORGED_WROTE I suggest header RCVD_FORGED_WROTE Received =~ /from [0-9.]+ \(HELO \S+[a-z]+\) by (\S+) with esmtp \(\S+\s\S+\) id \S{6}-\S{6}-\S\S for \S+@\1;/s
thanks, that's in as RCVD_FORGED_WROTE2 for testing.
I've just seen another variant of this forged Received: line, so I suggest header RCVD_FORGED_WROTE3 Received =~ /from \[[0-9.]+\] \(port=\d+ helo=\S+[a-z]+\) by (\S+) with asmtp id \S{6}-\S{6}-\S\S for \S+@\1;/s (seems to be a bit closer to exim's layout, but still faked)
Created attachment 3755 [details] example with new forged received line
hmm, looks like we get occasional capitalized hostnames too header RCVD_FORGED_WROTE Received =~ /from [0-9.]+ \(HELO \S+[A-Za-z]+\) by (\S+) with esmtp \(\S+\s\S+\) id \S{6}-\S{6}-\S\S for \S+@\1;/s header RCVD_FORGED_WROTE3 Received =~ /from \[[0-9.]+\] \(port=\d+ helo=\S+[A-Za-z]+\) by (\S+) with asmtp id \S{6}-\S{6}-\S\S for \S+@\1;/s
Committed in r502645 (2007-02-02), can this bz be closed ?
Fixed a decade ago.