rob...@resecco.com
unread,Jan 14, 2014, 12:12:51 PM1/14/14You do not have permission to delete messages in this group
Sign in to report message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
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 recipient@recipientdomain
REQUEST
in mail envelope,
from: <user@senderdomain>
should be rewritten in
from: Firstname Lastname <user@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