Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want sendmail to take all outgoing messages from user32 to be from "John Smith" with email address "jsmith_rocks@hotmail.com". How can I go about that without using the -f and -F sendmail options every time?

share|improve this question

If understand you correctly, you can do so by modifying ruleset 0 (or ruleset 1) to rewrite the address:

LOCAL_RULE_0
R$* < @ $=w . > $*       jsmith_rocks < @ hotmail.com . > $3
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.