> Hello
>
> I have been skimming through the archives and I cannot find out how to
> do the following:
>
> Have:
> FROM: news@startups.com
> TO: test@hostname.domain.com
>
> Want:
> FROM: news@startups.com
> TO: test@startups.com
>
> I want to remove the hostname. I have tried the '-h domain.com' in the
> resend line in /etc/aliases, but no luck....
>
> test: "|/var/test/majordomo/wrapper resend -h startups.com -l test
> test-list"
Get an MX entry in the DNS for startups.com which is attached to
hostname.domain.com (this tells MTAs, via DNS, that hostname.domain.com
accepts mail for startups.com). Without the MX entry masquerading will
not work.
Set up sendmail to do masquerading
the stuff I added to my config.mc file was this:
MASQUERADE_AS(domain.org)
FEATURE(`allmasquerade')
FEATURE(`masquerade_envelope')
EXPOSED_USER(root)
regenerate the sendmail.cf file. Restart sendmail.
Then I did : $whereami = "domain.org"; in the majordomo.cf and I did /not/
use the -h flag in my resend
It works fine for me.
You could also do something with virt. users table but I haven't tried
that.
____________________________
Mike Neuharth
ADCS Technology Specialist
http://www.umn.edu/adcs
E-Mail : mjn@umn.edu
Page Mail : 6126486512@page.metrocall.com
http://nifty.dsl.visi.com/
____________________________
References:
|
|