spf-discuss
[Top] [All Lists]

Re: Hostname foo in Mail::SPF::Query

2003-12-18 12:20:24
On Thu, Dec 18, 2003 at 01:31:44PM -0500, John Capo wrote:
| The name returned by hostname() is not always the name of the MX
| server that is handling the mail. Returning that name in the reject
| message is of no value to the sender.  I'm wondering how common
| this situation is?
| 
| I have modified Postfix to permit arguments to the policy daemon
| for other purposes and I will use that mechanism to pass the MX
| server name into the Query method.  I think that letting the caller
| specify the hostname is a general solution to the problem rather
| than having to modify Query for each machine it runs on.  Adding a
| hostname argument to result() seems to be the best way to do this
| since result() is where the hostname is used.

it would probably be easier to s/// the correct hostname in the policy
daemon, rather than in Mail::SPF::Query.

I believe Mail::SPF::Query only returns it in the header_coment as a /^(\S+):/

-------
Sender Permitted From: http://spf.pobox.com/
Archives at http://archives.listbox.com/spf-discuss/current/
Latest draft at http://spf.pobox.com/draft-mengwong-spf-02.9.4.txt
To unsubscribe, change your address, or temporarily deactivate your 
subscription, 
please go to 
http://v2.listbox.com/member/?listname(_at_)©#«Mo\¯HÝÜîU;±¤Ö¤Íµø?¡