
spf at metro
Jul 27, 2004, 1:57 PM
Post #2 of 16
(2118 views)
Permalink
|
Hi, You'll need to put support for spf somewhere in your MTA, and your implementation should be able to reject the mail before the DATA stage. So the question that is the answer to your question is: what MTA are you using? If you're using eg. sendmail you can install a milter (i personally have had it with milters atm), or choose one of the spf libraries, and patch your MTA for them (eg libspf / libspsf2). Koen On Tue, Jul 27, 2004 at 08:47:27PM +0100, Richard Ibbotson wrote: > Hi > > I'm trying to configure SPF on my own SuSE 9.1 mailserver. > > I already use Spamassassin 2.63 and Mail::Audit but recent spam and a > chat with another system admin explains that I should be using SPF. > With this in mind I have installed Mail::SPF::Query from CPAN. > > Looked at the docs and configuration options at... > > http://search.cpan.org/~freeside/Mail-SPF-Query-1.997/Query.pm > > > I see that I might need to use.. $query->result() .. but I'm not quite > sure how to implement it. Or, how to include it into my own script for > spam scanning..... > > #!/usr/bin/perl > > use strict; > use warnings; > > use Mail::Audit qw/KillDups/; > use Mail::Audit; > use Mail::SpamAssassin; > use Mail::SPF::Query > > my $mailbox = "/home/mail/Mail/inbox"; > > my $mail = Mail::Audit->new( nomime => 1, ); > my $spamtest = Mail::SpamAssassin->new(); > my $status = $spamtest->check( $mail ); > > if ( $status->is_spam() ) { > $status->rewrite_mail(); > $mail->accept( "/home/mail/Mail/Spam" ); > } else { > $mail->accept( "home/mail/Mail/inbox" ); > } > > > As you can see, I've put the line "use Mail::SPF::Query" into this but > so far it's not doing anything. Anyone know where to put > $query->result() or something more appropriate ? > > The above works fine. I don't want anything else. Just some help with > SPF :) > > Regards > > > > > Richard > > www.sheflug.co.uk > > ------- > Archives at http://archives.listbox.com/spf-help/current/ > Donate! http://spf.pobox.com/donations.html > To unsubscribe, change your address, or temporarily deactivate your subscription, > please go to http://v2.listbox.com/member/?listname=spf-help[at]v2.listbox.com -- K.F.J. Martens, Sonologic, http://www.sonologic.nl/ Networking, embedded systems, unix expertise, artificial intelligence. Public PGP key: http://www.metro.cx/pubkey-gmc.asc Wondering about the funny attachment your mail program can't read? Visit http://www.openpgp.org/ ------- Archives at http://archives.listbox.com/spf-help/current/ Donate! http://spf.pobox.com/donations.html To unsubscribe, change your address, or temporarily deactivate your subscription, please go to http://v2.listbox.com/member/?listname=spf-help[at]v2.listbox.com
|