spf-discuss
[Top] [All Lists]

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

2003-12-18 12:25:42
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


Meng Weng Wong writes:
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+):/

Note that Sys::Hostname just runs "hostname"/"uname" using the PATH,
so isn't taint-safe either.  Also because it's an exec, it'll slow
things down a little?

Is use of the hostname strictly needed in M:S:Q?

- --j.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)
Comment: Exmh CVS

iD8DBQE/4f82QTcbUG5Y7woRAlUDAJ0bm/ALaTm/zGwzpVN3HaDslyvkIgCffgH0
T6lD46tNks/FKcCcgGgOovQ=
=tVQL
-----END PGP SIGNATURE-----

-------
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;±¤Ö¤Íµø?¡