You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Walter Hurry <wa...@gmail.com> on 2013/12/31 17:19:33 UTC
Confused about Mail::SPF::Query
I'm following (and adapting where appropriate) the instructions at:
http://wiki.apache.org/spamassassin/SingleUserUnixInstall
to get SpamAssassin up and running on Fedora 20.
Spamassassin, Pyzor and Razor2 were all installed from the Fedora
repositories. DCC wasn't available - for licence reasons I assume - so I
downloaded and installed it locally, per the web page.
So far so good, but when I got to the part which says:
"Test spamassassin installation
...
These lines confirm, in order, that DB_File, Net::DNS, Mail::SPF::Query,
Razor, Pyzor, and DCC are all correctly installed and configured"
all tests passed except the Mail::SPF::Query one.
I have a package called perl-Mail-SPF installed from the Fedora
repositories, but there doesn't seem to be a Query Module.
Can anyone point me in the right direction please?
Re: Confused about Mail::SPF::Query
Posted by Marco Volkert <ad...@proman.org>.
You can check the SPF entries for your (or other) domain here:
http://mxtoolbox.com/SuperTool.aspx?action=spf%3ayour-domain.com&run=networktools
Am 31.12.2013 19:39, schrieb Blason R:
>
> It seems you did not publish TXT record for your domain hence gmail
> mail servers are unable to identify the SPF record for your domain.
>
> On 1 Jan 2014 00:06, "Walter Hurry" <walterhurry@gmail.com
> <ma...@gmail.com>> wrote:
>
> On Tue, 31 Dec 2013 19:27:22 +0100, Matus UHLAR - fantomas wrote:
>
> > On 31.12.13 16:19, Walter Hurry wrote:
> >>all tests passed except the Mail::SPF::Query one.
> >>
> >>I have a package called perl-Mail-SPF installed from the Fedora
> >>repositories, but there doesn't seem to be a Query Module.
> >>
> >>Can anyone point me in the right direction please?
> >
> > you don't need Mail::SPF::Query when you have Mail::SPF The
> latter does
> > the job and it does it better.
>
> Thanks.
>
> In a typical (ham) email I see the following header:
>
> Received-SPF: neutral (google.com <http://google.com>:
> 85.158.143.251 is neither permitted nor
> denied by best guess record for domain of
> donotreply.evl@dvla.gsi.gov.uk
> <ma...@dvla.gsi.gov.uk>)
> client-ip=85.158.143.251;
>
> Does that indicate that it's all working properly, or should I be
> looking
> for something else?
>
Re: Confused about Mail::SPF::Query
Posted by Blason R <bl...@gmail.com>.
It seems you did not publish TXT record for your domain hence gmail mail
servers are unable to identify the SPF record for your domain.
On 1 Jan 2014 00:06, "Walter Hurry" <wa...@gmail.com> wrote:
> On Tue, 31 Dec 2013 19:27:22 +0100, Matus UHLAR - fantomas wrote:
>
> > On 31.12.13 16:19, Walter Hurry wrote:
> >>all tests passed except the Mail::SPF::Query one.
> >>
> >>I have a package called perl-Mail-SPF installed from the Fedora
> >>repositories, but there doesn't seem to be a Query Module.
> >>
> >>Can anyone point me in the right direction please?
> >
> > you don't need Mail::SPF::Query when you have Mail::SPF The latter does
> > the job and it does it better.
>
> Thanks.
>
> In a typical (ham) email I see the following header:
>
> Received-SPF: neutral (google.com: 85.158.143.251 is neither permitted nor
> denied by best guess record for domain of donotreply.evl@dvla.gsi.gov.uk)
> client-ip=85.158.143.251;
>
> Does that indicate that it's all working properly, or should I be looking
> for something else?
>
>
Re: Confused about Mail::SPF::Query
Posted by Blason R <bl...@gmail.com>.
But then sending a mail with prvs or BATV tag would definitely help
stopping backscatter attack. Is it not?
On 2 Jan 2014 20:35, "David F. Skoll" <df...@roaringpenguin.com> wrote:
> On Wed, 1 Jan 2014 20:46:58 +0100
> Matus UHLAR - fantomas <uh...@fantomas.sk> wrote:
>
> > On 01.01.14 11:34, David F. Skoll wrote:
> > >I don't find it very effective. It would stop maybe 5% of all the
> > >spam on our systems at most.
>
> > ...and how many forgeries did this stop?
>
> A few. Our current incident database contains the following quarantined
> messages:
>
> Total incidents: 16 260 780 (16 million)
> SPF softfail: 914 609 (~1 million)
> SPF fail: 429 697 (~400K)
>
> So SPF only applies to about 8.4% of our quarantined mail and SPF "fail"
> to only about 2.6%.
>
> Furthermore, SPF "softfail" is usually indicative of a domain owner
> who is clueless about how to set up a proper SPF record rather than a
> forgery.
>
> SPF is very good at stopping forgeries of the envelope sender.
> However, it's completely useless at stopping forgeries where the From:
> header is <se...@paypal.com> but the envelope sender is
> <ww...@hacked.luser.org>
>
> It's also only mildly effective at stopping backscatter because not
> enough sites actually check SPF to significantly reduce backscatter.
> What it *is* good at is acting as a CYA mechanism. If someone
> complains that we are spamming, we can prove to them that the mail
> originated from a server we didn't authorize and was therefore forged.
>
> Regards,
>
> David.
>
Re: Confused about Mail::SPF::Query
Posted by "David F. Skoll" <df...@roaringpenguin.com>.
On Wed, 1 Jan 2014 20:46:58 +0100
Matus UHLAR - fantomas <uh...@fantomas.sk> wrote:
> On 01.01.14 11:34, David F. Skoll wrote:
> >I don't find it very effective. It would stop maybe 5% of all the
> >spam on our systems at most.
> ...and how many forgeries did this stop?
A few. Our current incident database contains the following quarantined
messages:
Total incidents: 16 260 780 (16 million)
SPF softfail: 914 609 (~1 million)
SPF fail: 429 697 (~400K)
So SPF only applies to about 8.4% of our quarantined mail and SPF "fail"
to only about 2.6%.
Furthermore, SPF "softfail" is usually indicative of a domain owner
who is clueless about how to set up a proper SPF record rather than a
forgery.
SPF is very good at stopping forgeries of the envelope sender.
However, it's completely useless at stopping forgeries where the From:
header is <se...@paypal.com> but the envelope sender is
<ww...@hacked.luser.org>
It's also only mildly effective at stopping backscatter because not
enough sites actually check SPF to significantly reduce backscatter.
What it *is* good at is acting as a CYA mechanism. If someone
complains that we are spamming, we can prove to them that the mail
originated from a server we didn't authorize and was therefore forged.
Regards,
David.
Re: Confused about Mail::SPF::Query
Posted by Benny Pedersen <me...@junc.eu>.
Matus UHLAR - fantomas skrev den 2014-01-01 20:46:
> On 01.01.14 11:34, David F. Skoll wrote:
>> I don't find it very effective. It would stop maybe 5% of all the
>> spam
>> on our systems at most.
> ...and how many forgeries did this stop?
5% of nothing is still nothing, David know his numbers :/
spf is nothing to do with stopping spam from spf pass domaions, but it
helps to find if we can complain to domaion owners or isps
if all domains in this world was fully spf protected it would still be
spam from spf pass domains
Re: Confused about Mail::SPF::Query
Posted by Matus UHLAR - fantomas <uh...@fantomas.sk>.
>On Wed, 1 Jan 2014 08:30:50 +0530
>Blason R <bl...@gmail.com> wrote:
>> Well I wouldn' t agree with it. Personally I found rejecting mails at
>> MTA level for the domains who has wrong SPF can be very effective
>> mechanism to fight against SPAM.
On 01.01.14 11:34, David F. Skoll wrote:
>I don't find it very effective. It would stop maybe 5% of all the spam
>on our systems at most.
...and how many forgeries did this stop?
--
Matus UHLAR - fantomas, uhlar@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
He who laughs last thinks slowest.
Re: Confused about Mail::SPF::Query
Posted by "David F. Skoll" <df...@roaringpenguin.com>.
On Wed, 1 Jan 2014 08:30:50 +0530
Blason R <bl...@gmail.com> wrote:
> Well I wouldn' t agree with it. Personally I found rejecting mails at
> MTA level for the domains who has wrong SPF can be very effective
> mechanism to fight against SPAM.
I don't find it very effective. It would stop maybe 5% of all the spam
on our systems at most.
Regards,
David.
Re: Confused about Mail::SPF::Query
Posted by Blason R <bl...@gmail.com>.
Well I wouldn' t agree with it. Personally I found rejecting mails at MTA
level for the domains who has wrong SPF can be very effective mechanism to
fight against SPAM.
Above that I would do BATV tagging to avoid backscattering.
On 1 Jan 2014 03:12, "Martin Gregorie" <ma...@gregorie.org> wrote:
> On Tue, 2013-12-31 at 18:35 +0000, Walter Hurry wrote:
> > Does that indicate that it's all working properly, or should I be looking
> > for something else?
> >
> Personally, I'm not convinced that SPF is much use for detecting spam.
>
> What it *is* good for, though, is preventing backscatter.
>
> What an SPF record does is publish the IPs that are valid recipients of
> mail sent to a domain. Spammers don't need or use this info because
> they're going to send mail to your domain (somebody@example.com) anyway.
> Where it comes in useful is when a third party's MTA wants to bounce
> mail it received for an unknown user. If its being well behaved, before
> it bounces the message it will check for an SPF record at the message
> sender's domain and, if there is one, check the IP in the From: header
> against it. If the IP doesn't match a valid IP in the SPF record it
> knows that the sender was forged and that nothing will be achieved by
> sending a bounce message.
>
> The result: if you set up an SPF you won't get backscatter (spam with
> your address forged and used as the sender).
>
> If you haven't created and validated an SPF record for your domain, I
> recommend that you do so. There are useful tools these tasks here:
> http://www.kitterman.com/spf/validate.html
>
>
> Martin
>
>
>
>
Re: Confused about Mail::SPF::Query
Posted by Martin Gregorie <ma...@gregorie.org>.
On Tue, 2013-12-31 at 18:35 +0000, Walter Hurry wrote:
> Does that indicate that it's all working properly, or should I be looking
> for something else?
>
Personally, I'm not convinced that SPF is much use for detecting spam.
What it *is* good for, though, is preventing backscatter.
What an SPF record does is publish the IPs that are valid recipients of
mail sent to a domain. Spammers don't need or use this info because
they're going to send mail to your domain (somebody@example.com) anyway.
Where it comes in useful is when a third party's MTA wants to bounce
mail it received for an unknown user. If its being well behaved, before
it bounces the message it will check for an SPF record at the message
sender's domain and, if there is one, check the IP in the From: header
against it. If the IP doesn't match a valid IP in the SPF record it
knows that the sender was forged and that nothing will be achieved by
sending a bounce message.
The result: if you set up an SPF you won't get backscatter (spam with
your address forged and used as the sender).
If you haven't created and validated an SPF record for your domain, I
recommend that you do so. There are useful tools these tasks here:
http://www.kitterman.com/spf/validate.html
Martin
Re: Confused about Mail::SPF::Query
Posted by Matus UHLAR - fantomas <uh...@fantomas.sk>.
On 31.12.13 18:35, Walter Hurry wrote:
>Received-SPF: neutral (google.com: 85.158.143.251 is neither permitted nor
> denied by best guess record for domain of donotreply.evl@dvla.gsi.gov.uk)
> client-ip=85.158.143.251;
>
>Does that indicate that it's all working properly, or should I be looking
>for something else?
This means that it's your MTA, not the SpamAssassin that is doing the SPF
lookups. However, you should keep Mail::SPF installed.
Also, that means you primary MX has received mail from secondary MX
(85.158.143.251 is one of your secondary MX servers for dvla.gsi.gov.uk).
The primary MX should not add SPF header when receiving mail from secondary,
and the secondary MX should add this header.
So, you first have to set up your mailservers to add Received-SPF headers
properly.
--
Matus UHLAR - fantomas, uhlar@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
You have the right to remain silent. Anything you say will be misquoted,
then used against you.
Re: Confused about Mail::SPF::Query
Posted by Walter Hurry <wa...@gmail.com>.
On Tue, 31 Dec 2013 19:27:22 +0100, Matus UHLAR - fantomas wrote:
> On 31.12.13 16:19, Walter Hurry wrote:
>>all tests passed except the Mail::SPF::Query one.
>>
>>I have a package called perl-Mail-SPF installed from the Fedora
>>repositories, but there doesn't seem to be a Query Module.
>>
>>Can anyone point me in the right direction please?
>
> you don't need Mail::SPF::Query when you have Mail::SPF The latter does
> the job and it does it better.
Thanks.
In a typical (ham) email I see the following header:
Received-SPF: neutral (google.com: 85.158.143.251 is neither permitted nor
denied by best guess record for domain of donotreply.evl@dvla.gsi.gov.uk)
client-ip=85.158.143.251;
Does that indicate that it's all working properly, or should I be looking
for something else?
Re: Confused about Mail::SPF::Query
Posted by Matus UHLAR - fantomas <uh...@fantomas.sk>.
On 31.12.13 16:19, Walter Hurry wrote:
>all tests passed except the Mail::SPF::Query one.
>
>I have a package called perl-Mail-SPF installed from the Fedora
>repositories, but there doesn't seem to be a Query Module.
>
>Can anyone point me in the right direction please?
you don't need Mail::SPF::Query when you have Mail::SPF
The latter does the job and it does it better.
--
Matus UHLAR - fantomas, uhlar@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
I feel like I'm diagonally parked in a parallel universe.
Re: Confused about Mail::SPF::Query
Posted by Blason R <bl...@gmail.com>.
Why not install from perl MCPAN -e shell? Its far easy that way
On 31 Dec 2013 21:56, "Dominic Benson" <do...@lenny.cus.org> wrote:
>
> On 31 Dec 2013, at 16:19, Walter Hurry <wa...@gmail.com> wrote:
>
> > I'm following (and adapting where appropriate) the instructions at:
> > http://wiki.apache.org/spamassassin/SingleUserUnixInstall
> > to get SpamAssassin up and running on Fedora 20.
> >
> [snip]
> >
> > all tests passed except the Mail::SPF::Query one.
> >
> > I have a package called perl-Mail-SPF installed from the Fedora
> > repositories, but there doesn't seem to be a Query Module.
> >
> > Can anyone point me in the right direction please?
> >
>
> I believe it is in the package perl-Mail-SPF-Query (
> https://admin.fedoraproject.org/pkgdb/acls/name/perl-Mail-SPF-Query). I’m
> not a Fedora user, so I can’t promise!
>
>
>
>
Re: Confused about Mail::SPF::Query
Posted by Dominic Benson <do...@lenny.cus.org>.
On 31 Dec 2013, at 16:19, Walter Hurry <wa...@gmail.com> wrote:
> I'm following (and adapting where appropriate) the instructions at:
> http://wiki.apache.org/spamassassin/SingleUserUnixInstall
> to get SpamAssassin up and running on Fedora 20.
>
[snip]
>
> all tests passed except the Mail::SPF::Query one.
>
> I have a package called perl-Mail-SPF installed from the Fedora
> repositories, but there doesn't seem to be a Query Module.
>
> Can anyone point me in the right direction please?
>
I believe it is in the package perl-Mail-SPF-Query (https://admin.fedoraproject.org/pkgdb/acls/name/perl-Mail-SPF-Query). I’m not a Fedora user, so I can’t promise!