Quoting Meng Weng Wong (mengwong(_at_)dumbo(_dot_)pobox(_dot_)com):
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.
The hostname is obtained from Sys::Hostname in Mail::SPF::Query and
not in the policy daemon. That's why I suggested passing in a name
from the policy daemon.
I believe Mail::SPF::Query only returns it in the header_coment as a /^(\S+):/
the hostname winds up in the Postfix reject. w3.irbs.com is the
physical machine name but the Postifx MX server is mx2.mxes.net:
Dec 18 11:43:08 w3 postfix/smtpd[92846]: B769F78205: reject_warning: RCPT from
dfw-smtpout4.email.verio.net[129.250.36.44]: 554
<kliroff(_at_)munged(_dot_)com>: Recipient address rejected: please see
http://spf.pobox.com/why.html?sender=vOeJoH%40softhome.net&ip=129.250.36.44&receiver=w3.irbs.com;
from=<vOeJoH(_at_)softhome(_dot_)net> to=<kliroff(_at_)munged(_dot_)com>
proto=ESMTP helo=<dfw-smtpout4.email.verio.net>
John Capo
-------
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;±¤Ö¤Íµø?¡