Sounds like you want to setup a mail hub.  Appendix A of the sendmail book from 
Oreilly books has a great example which should do the trick.

Basically setup your definitions as such:

D{REMOTE} masq.server.com
D{HUB} server.others.think.email.comes.from.com


Basically the "REMOTE" address is the hub you forward email's to.  This is where every 
email comes from.  The "HUB" is where everyone thinks your email comes from.  They can 
be the same server but in my case I split them up.

In ruleset #0 I setup the following rule:


R$+          $#hub $@${REMOTE} $:$1   forward to hub


I think that was basically it.  I don't often hack sendmail.cf.  The book while 
slightly out of date was EXTREEMELY useful.  I strongly recommend it!





---

I ams sending mail from an internal host - loki.fred.home - and I want
all mail to come from out external server fred.com. I'm not sure how to
do this.
I thought it was a sendmail.m4 parameter: MASQUERADE_AS(fred.com)dnl But this doesn't 
work. Chris Mason
[EMAIL PROTECTED]
Box 340, The Valley, Anguilla, British West Indies
Tel: 264 497 5670 Fax: 264 497 8463 Cell: 264 235 5670
http://www.anguillaguide.com/ The Anguilla Guide
Talk to me in real time:
Yahoo:netconcepts_anguilla
US Fax and Voicemail: (815)301-9


Join 18 million Eudora users by signing up for a free Eudora Web-Mail account at 
http://www.eudoramail.com



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to