Google Answers Logo
View Question
 
Q: Modify "From:" for outgoing email, using sendmail ( No Answer,   2 Comments )
Question  
Subject: Modify "From:" for outgoing email, using sendmail
Category: Computers > Internet
Asked by: ujang-ga
List Price: $50.00
Posted: 24 Dec 2003 10:43 PST
Expires: 23 Jan 2004 10:43 PST
Question ID: 290040
I am looking for a way to use sendmail to modify an outbound email; I
want to trim the "From:" header so that certain trailing characters
are stripped off.  Email destined for the Internet is generated from
within the company (using Exchange) with a "From:" line that looks
like this:

Firstname Lastname (Company Name)

Outbound email is relayed through a machine running the most recent
version of sendmail. I would like sendmail to strip off the " (Company
Name)" so that the resulting "From:" line appears to external
recipients as simply:

Firstname Lastname

Due to factors beyond my control, I cannot take the straightforward
approach and simply modify Exchange so that the From: starts out
correctly.

I have searched comp.mail.sendmail, and have scanned the 1200+ page
Sendmail O'Reilly book.  I expect sendmail can do this, but how?  If
it can be done, I expect that this would be via one or more rulesets
placed strategically within sendmail.cf.

Clarification of Question by ujang-ga on 25 Dec 2003 21:43 PST
Editing the source code for sendmail is not option available to me.
I can only edit the sendmail.cf, or any of the other config files.
Answer  
There is no answer at this time.

Comments  
Subject: Re: Modify "From:" for outgoing email, using sendmail
From: wonlay-ga on 25 Dec 2003 07:18 PST
 
rpm -e sendmail
download the source file of sendmail
edit the headers.c
edit the chompheader function:(when come to From:.... line, change it
and save it with new value)
make
make install
Subject: Re: Modify "From:" for outgoing email, using sendmail
From: wonlay-ga on 25 Dec 2003 07:20 PST
 
You can also edit other parts of the source.
(When sending out etc.)

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy