|
MSA SPF Policy Checks: msg#00016mail.spam.spf.devel
It ocurred to me that it might be useful for an MSA to check and see if a message that is being submitted to it for transmission would pass an SPF check using the MSA's local IP address. I'm trying this in Postfix 2.1. I have the latest Mail:SPF:Query and postfix-SPF-policyd from Debian Testing installed and running. I need to modify postfix-SPF-policyd to use the local IP address rather than the client IP address. So, what I need to do is insert one line of code here: sub sender_permitted_from { local %_ = @_; my %attr = %{ $_{attr} }; ................................. my $query = eval { new Mail::SPF::Query (ip =>$attr{client_address}, sender=>$attr{sender}, helo =>$attr{helo_name}) }; That line of code needs to change $attr{client_address} to the local IP address. This would be a manual entry (or if there's an easy way to get the local IP address automagically be gotten that's fine too). I assume that for anyone versed in PERL, this is trivial. I'm not at all, so I was wondering if someone here could tell me what needs to be changed. On a related note, I've started working on re-implementing postfix-SPF-policyd in Python. If it were done in Python, then I'd know how to deal with it. Thanks, Scott K ------- To unsubscribe, change your address, or temporarily deactivate your subscription, please go to http://v2.listbox.com/member/?listname=spf-devel@xxxxxxxxxxxxxx |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Subversion repositories: 00016, Julian Mehnle |
|---|---|
| Next by Date: | Re: MSA SPF Policy Checks: 00016, Arjen de Korte |
| Previous by Thread: | Subversion repositoriesi: 00016, Julian Mehnle |
| Next by Thread: | Re: MSA SPF Policy Checks: 00016, Arjen de Korte |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |