r***@resecco.com
2014-01-14 17:12:51 UTC
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
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