Discussion:
Add user real name retrieved by a LDAP query to sender addres
(too old to reply)
r***@resecco.com
2014-01-14 17:12:51 UTC
Permalink
Hi all,

I read manuals and many mailing lists and examples, but I cannot figure out how to configure postfix in order to achieve this "simple" result (see below)

I am lost

Can anyone help?
Thanks in advance

roberto

--

Advance caveat: using sendmail -f is not a viable solution for my needs.

SCENARIO

a script running as any valid user on a linux box sends email like:

echo "Hello world" | sendmail ***@recipientdomain


REQUEST
in mail envelope,

from: <***@senderdomain>

should be rewritten in

from: Firstname Lastname <***@senderdomain>

where Firstname Lastname is the result of a query to an LDAP server.

I could successfully set up LDAP lookup table and I can get all needed info.

From what I read, I suspect this result is achieved via header_checks, but I cannot figure out how to use the result of LDAP query inside a header_check rule
d***@gmail.com
2016-04-13 20:23:06 UTC
Permalink
Hello,
Post by r***@resecco.com
should be rewritten in
where Firstname Lastname is the result of a query to an LDAP server.
I've come across a similar problem and I'm wondering if you found a solution to it.

Best regards,
--
DoubleF
Loading...