Check RBL on second ip address in message header

Bugs in eFa 4
Post Reply
victorburgos
Posts: 19
Joined: 13 May 2017 20:53

Check RBL on second ip address in message header

Post by victorburgos »

Hi, I have some messages that are not being filtered with RBL on the second ip in message header-
  • I have spam lists enabled:
mailscanner spam lists.png
mailscanner spam lists.png (7.32 KiB) Viewed 2029 times
Many spam messages are not being filtered because the last ip on the header is not on any RBL.
However, if I check the second IP address, this one is listed on spamhaus, see next image:
mailscanner 2 ips on message header.png
mailscanner 2 ips on message header.png (40.31 KiB) Viewed 2029 times
In the end, the message arrives to the user even when 1 ip on the headers is listed on spamhaus:
x spam status no.png
x spam status no.png (49.16 KiB) Viewed 2029 times
I would like to know if mailscanner checks all ip addresses on the message header for RBLs or just the last ip.
If only the last ip address is checked, how can I enable checks on second and third ips on headers?

Thanks in advance for your help.
henk
Posts: 517
Joined: 14 Dec 2015 22:16
Location: Netherlands
Contact:

Re: Check RBL on second ip address in message header

Post by henk »

in MailScanner.conf

If you do have another MTA between "the net" and your MS box, then you
really do need set this to 2.

Code: Select all

Read IP Address From Received Header = 2
P.S.
When using fetchmail, the first IP is always 127.0.0.1
Use the --invisible option to deal with that

The big question: What if you have muliple IP's, or just one in .....
Attachments
2021-01-04 22_05_54-MailWatc2.png
2021-01-04 22_05_54-MailWatc2.png (6.43 KiB) Viewed 2023 times
“We are stuck with technology when what we really want is just stuff that works.” -Douglas Adams
victorburgos
Posts: 19
Joined: 13 May 2017 20:53

Re: Check RBL on second ip address in message header

Post by victorburgos »

Thank you Henk, this would have taken me hours to figure out. :clap:
User avatar
pdwalker
Posts: 1553
Joined: 18 Mar 2015 09:16

Re: Check RBL on second ip address in message header

Post by pdwalker »

henk wrote: 04 Jan 2021 21:07 in MailScanner.conf

If you do have another MTA between "the net" and your MS box, then you
really do need set this to 2.
huh. I didn't know that one, and I needed it. Thanks!
Post Reply