Our current topology is that we have several mail servers internally
that interact with the mail hub. The mail hub then passes all of the
outgoing mail to the mail-relay in the DMZ which then sends to other
mail servers on the internet.
For incomming addresses, the mailhub uses the alaises.db to determine
which internal server to deliver to.
We have had a look at the sendmail FAQ which directed us to the manual
page on masquerading. From there we deduced that we should be using the
MASQUERADE_AS() feature.
Our sendmail.mc contains:
MASQUERADE_AS(`leicester.gov.uk')dnl
FEATURE(masquerade_envelope)dnl
We are finding that when the mail reaches the mail-relay it still has
us...@hostname.leicester.gov.uk in the from field.
I have also added MASQUERADE_DOMAIN_FILE(`filename') and created a file
with a list of domains to be re-written, but this had no effect either.
This must be a common problem so can anyone tell me how to resolve it
please?
Is the file owned by root and mode 644?
What do the following commands say?
# echo '$=M' | sendmail -bt
# echo 'canonify,MasqHdr us...@hostname.leicester.gov.uk' | sendmail -bt
In mine, the FEATURE is first, then the MASQUERADE_AS, I'm
not sure if this makes any difference.
And, this is dumb, but you did install the cf, and maybe then
sendmail needs to be restarted?
--
Julien Mills Amoroso's Baking Company
Tel: (215) 471-4740 IS Dept
email: jul...@amorosobaking.com www.amorosobaking.com
Output from the commands as follows:
# echo '$=M' | sendmail -bt
ADDRESS TEST MODE (ruleset 3 NOT automatically invoked)
Enter <ruleset> <address>
# echo 'canonify,MasqHdr us...@hostname.leicester.gov.uk' | sendmail -bt
No output.
I will give this a go.
> And, this is dumb, but you did install the cf, and maybe then
> sendmail needs to be restarted?
Not at all dumb, just obvious - which we sometimes miss. We did restart sendmail though.
This means that the list of domains doesn't get read for some reason,
perhaps an incorrect path... Try listing them explicitly in sendmail.mc:
MASQUERADE_DOMAIN(`hostname1.leicester.gov.uk')dnl
MASQUERADE_DOMAIN(`hostname2.leicester.gov.uk')dnl
...
Hans Spaans wrote:
> Joe Creel wrote in comp.mail.sendmail:
>
>>Try
>>MASQUERADE_AS(`leicester.gov.uk')dnl
>>FEATURE(`masquerade_entire_domain')dnl
>
>
> I would like to, but then I would break what I try to accomplish like
> below. This is also the reason I started to look at the generictable.
>
> user1@domaina -> user1@domainc
> user2@domaina -> user1@domaind
> user3@domainb -> user1@domainc
>
> Hans
>
Bye - Ingo.