I'm sure this must be a simple task, but we are trying get our mailhub to re-write all sender addresses from internal mail hosts(hostname.leicester.gov.uk) to leicester.gov.uk.
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.
I'm sure this must be a simple task, but we are trying get our mailhub to re-write all sender addresses from internal mail hosts(hostname.leicester.gov.uk) to leicester.gov.uk.
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.
I'm sure this must be a simple task, but we are trying get our mailhub to re-write all sender addresses from internal mail hosts(hostname.leicester.gov.uk) to leicester.gov.uk.
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.
> 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.
paul.fis...@leicester.gov.uk wrote: > I'm sure this must be a simple task, but we are trying get our mailhub > to re-write all sender addresses from internal mail > hosts(hostname.leicester.gov.uk) to leicester.gov.uk.
> 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.
> I'm sure this must be a simple task, but we are trying get our mailhub > to re-write all sender addresses from internal mail > hosts(hostname.leicester.gov.uk) to leicester.gov.uk.
> 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.
> We are finding that when the mail reaches the mail-relay it still has > u...@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?
I use define(`confDOMAIN_NAME', `domain.com')dnl MASQUERADE_AS(`domain.com')dnl FEATURE(`allmasquerade')dnl FEATURE(`masquerade_envelope')dnl FEATURE(`always_add_domain', `domain.com')dnl <- this made it work