You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Jeremiah Rothschild <je...@franz.com> on 2015/07/16 02:04:41 UTC

Difficulty triggering SPF_FAIL

Hello,

I am attempting to trigger SPF_FAIL (or SPF_HELO_FAIL) on a CentOS 6.6 box
running SA 3.3.1-3. Upon funneling a message through SA, however, this is
what is occurring:

Jul 15 15:05:10.366 [7318] dbg: spf: checking HELO (helo=1.2.3.4, 
ip=5.6.7.8)
Jul 15 15:05:10.366 [7318] dbg: spf: cannot check HELO of '1.2.3.4', skipping

Any ideas on why the SPF plugin is not functioning as expected?

Many thanks,

j

Re: Difficulty triggering SPF_FAIL

Posted by Kris Deugau <kd...@vianet.ca>.
David B Funk wrote:
> Kind'a hard to add TXT records to the .in-addr.arpa zone. Maybe it's
> possible
> but I've never seen it.

It's entirely possible to put any type of record in a .in-addr.arpa
zone.  It doesn't often make much *sense*, but it's legal syntax;  a DNS
zone is a DNS zone.

-kgd, thinking about the .arpa zones we imported from a bought-out ISP
that had MX records...

Re: Difficulty triggering SPF_FAIL

Posted by David B Funk <db...@engineering.uiowa.edu>.
On Wed, 15 Jul 2015, @lbutlr wrote:

>
>> On Jul 15, 2015, at 6:53 PM, Jeremiah Rothschild <je...@franz.com> wrote:
>>
>> On Wed, Jul 15, 2015 at 07:42:15PM -0500, David B Funk wrote:
>>> On Wed, 15 Jul 2015, Jeremiah Rothschild wrote:
>>>
>>>> Hello,
>>>>
>>>> I am attempting to trigger SPF_FAIL (or SPF_HELO_FAIL) on a CentOS 6.6 box
>>>> running SA 3.3.1-3. Upon funneling a message through SA, however, this is
>>>> what is occurring:
>>>>
>>>> Jul 15 15:05:10.366 [7318] dbg: spf: checking HELO (helo=1.2.3.4,
>>>> ip=5.6.7.8)
>>>> Jul 15 15:05:10.366 [7318] dbg: spf: cannot check HELO of '1.2.3.4', skipping
>>>>
>>>> Any ideas on why the SPF plugin is not functioning as expected?
>>>
>>> Are you literally giving a HELO name of '1.2.3.4' or is that redaction-bait?
>>> That '1.2.3.4' looks like a IPv4 address, not a FQDN host name.
>>> HELO should be a host FQDN, not IP address.
>>
>> Ah. I didn't realize HELO had to be FQDN. Nice catch, David. Thanks!
>
> HELO does not have to be a FQDN, an IP is acceptable.
>
> o     The domain name given in the EHLO command MUST be either a primary
>      host name (a domain name that resolves to an address RR) or, if
>      the host has no name, an address literal, as described in
>      Section 4.1.3 and discussed further in the EHLO discussion of
>      Section 4.1.4.

OK,
as far as SMTP is concerned (you're quoting one of the SMTP RFCs there), you can 
use an address literal for HELO but for SPF it needs to be something that has 
DNS zone entries so you can put TXT records in it.

Kind'a hard to add TXT records to the .in-addr.arpa zone. Maybe it's possible
but I've never seen it.


-- 
Dave Funk                                  University of Iowa
<dbfunk (at) engineering.uiowa.edu>        College of Engineering
319/335-5751   FAX: 319/384-0549           1256 Seamans Center
Sys_admin/Postmaster/cell_admin            Iowa City, IA 52242-1527
#include <std_disclaimer.h>
Better is not better, 'standard' is better. B{

Re: Difficulty triggering SPF_FAIL

Posted by "@lbutlr" <kr...@kreme.com>.
> On Jul 15, 2015, at 6:53 PM, Jeremiah Rothschild <je...@franz.com> wrote:
> 
> On Wed, Jul 15, 2015 at 07:42:15PM -0500, David B Funk wrote:
>> On Wed, 15 Jul 2015, Jeremiah Rothschild wrote:
>> 
>>> Hello,
>>> 
>>> I am attempting to trigger SPF_FAIL (or SPF_HELO_FAIL) on a CentOS 6.6 box
>>> running SA 3.3.1-3. Upon funneling a message through SA, however, this is
>>> what is occurring:
>>> 
>>> Jul 15 15:05:10.366 [7318] dbg: spf: checking HELO (helo=1.2.3.4,
>>> ip=5.6.7.8)
>>> Jul 15 15:05:10.366 [7318] dbg: spf: cannot check HELO of '1.2.3.4', skipping
>>> 
>>> Any ideas on why the SPF plugin is not functioning as expected?
>> 
>> Are you literally giving a HELO name of '1.2.3.4' or is that redaction-bait?
>> That '1.2.3.4' looks like a IPv4 address, not a FQDN host name.
>> HELO should be a host FQDN, not IP address.
> 
> Ah. I didn't realize HELO had to be FQDN. Nice catch, David. Thanks!

HELO does not have to be a FQDN, an IP is acceptable.

o     The domain name given in the EHLO command MUST be either a primary
      host name (a domain name that resolves to an address RR) or, if
      the host has no name, an address literal, as described in
      Section 4.1.3 and discussed further in the EHLO discussion of
      Section 4.1.4.

-- 
"Love is the triumph of imagination over intelligence." - H. L. Mencken


Re: Difficulty triggering SPF_FAIL

Posted by Benny Pedersen <me...@junc.eu>.
Jeremiah Rothschild skrev den 2015-07-16 02:53:

> Ah. I didn't realize HELO had to be FQDN. Nice catch, David. Thanks!

http://www.postfix.org/postconf.5.html#smtp_helo_name

if using postfix, if its [127.0.0.1] as helo name postfix will accept 
it, but reject 127.0.0.1

Re: Difficulty triggering SPF_FAIL

Posted by Jeremiah Rothschild <je...@franz.com>.
On Wed, Jul 15, 2015 at 07:42:15PM -0500, David B Funk wrote:
> On Wed, 15 Jul 2015, Jeremiah Rothschild wrote:
> 
> >Hello,
> >
> >I am attempting to trigger SPF_FAIL (or SPF_HELO_FAIL) on a CentOS 6.6 box
> >running SA 3.3.1-3. Upon funneling a message through SA, however, this is
> >what is occurring:
> >
> >Jul 15 15:05:10.366 [7318] dbg: spf: checking HELO (helo=1.2.3.4,
> >ip=5.6.7.8)
> >Jul 15 15:05:10.366 [7318] dbg: spf: cannot check HELO of '1.2.3.4', skipping
> >
> >Any ideas on why the SPF plugin is not functioning as expected?
> 
> Are you literally giving a HELO name of '1.2.3.4' or is that redaction-bait?
> That '1.2.3.4' looks like a IPv4 address, not a FQDN host name.
> HELO should be a host FQDN, not IP address.

Ah. I didn't realize HELO had to be FQDN. Nice catch, David. Thanks!

> If you are giving it a host FQDN check your DNS functionality.
> 
> 
> -- 
> Dave Funk                                  University of Iowa
> <dbfunk (at) engineering.uiowa.edu>        College of Engineering
> 319/335-5751   FAX: 319/384-0549           1256 Seamans Center
> Sys_admin/Postmaster/cell_admin            Iowa City, IA 52242-1527
> #include <std_disclaimer.h>
> Better is not better, 'standard' is better. B{

Re: Difficulty triggering SPF_FAIL

Posted by David B Funk <db...@engineering.uiowa.edu>.
On Wed, 15 Jul 2015, Jeremiah Rothschild wrote:

> Hello,
>
> I am attempting to trigger SPF_FAIL (or SPF_HELO_FAIL) on a CentOS 6.6 box
> running SA 3.3.1-3. Upon funneling a message through SA, however, this is
> what is occurring:
>
> Jul 15 15:05:10.366 [7318] dbg: spf: checking HELO (helo=1.2.3.4,
> ip=5.6.7.8)
> Jul 15 15:05:10.366 [7318] dbg: spf: cannot check HELO of '1.2.3.4', skipping
>
> Any ideas on why the SPF plugin is not functioning as expected?

Are you literally giving a HELO name of '1.2.3.4' or is that redaction-bait?
That '1.2.3.4' looks like a IPv4 address, not a FQDN host name.
HELO should be a host FQDN, not IP address.

If you are giving it a host FQDN check your DNS functionality.


-- 
Dave Funk                                  University of Iowa
<dbfunk (at) engineering.uiowa.edu>        College of Engineering
319/335-5751   FAX: 319/384-0549           1256 Seamans Center
Sys_admin/Postmaster/cell_admin            Iowa City, IA 52242-1527
#include <std_disclaimer.h>
Better is not better, 'standard' is better. B{