On Wed, 27 May 2020 10:35:26 -0600 @lbutlr wrote: > What, if any, local SpamAssassin settings does spams-milter use when > processing incoming mail? > > For example, if I wanted to white list a sender or blacklist a > domain, would the general settings in > /usr/local/etc/spamassasin/local.cf be the place? > > I am wondering because I have a server whitelisted in that file (or > do I?), but I am seeing occasional logs like: > > postfix/cleanup[7771] 49MN7m64m8z2rPFW: milter-reject: END-OF-MESSAGE > from server.example.com[n.n.n.n]: 5.7.1 Blocked by SpamAssassin; ... > whitelist_from_rcvd: *@* server.example.com
whitelist_from_rcvd needs rDNS to be recorded in the Received header on the edge of the trusted network (this is not necessarily your own server). The lack of recorded rDNS is a common reason for failure. There's also a potential complication here that spamass-milter forges a provisional received header for SpamAssassin to use.