This is a discussion on Re: [PATCH] Feed myhostname attribute to policy servers within the mailing.postfix.users forums, part of the Mail Servers and Related category; Luc Pardon: > Some policy servers add headers that show the host that processed the > request. An example is ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Luc Pardon:
> Some policy servers add headers that show the host that processed the > request. An example is SPF, who adds a Received-SPF header. > > If the public host name differs from gethostname() and you want the > public name in the header, you have to configure the correct name into > the policy server. That seems a waste, since postfix already knows its > $myhostname. > > So I patched 2.2-20041013 to make smtpd pass a "myhostname" attribute > along with the other attributes that it sends to the policy server. > > The patch is at: > > > http://www.skopos.be/downloads/postf...name.patch.txt > > http://www.skopos.be/downloads/postf...e.patch.tar.gz I can see some benefit in propagating local endpoint information (from getsockname() and/or gethostbyaddr()) to the policy daemon, because it is like the other policy attributes: it is dynamic state that carries information about the context of a message delivery request. I can also see some benefit in the ability to specify a list of user-controlled (name, value) pairs that get to be sent across with each policy service request: <policy service name>_attributes = hostname=$myhostname foo=bar But I see little benefit in a patch that adds support for a hard-coded hostname attribute only. Wietse |