Attempting to update an old server application (Sympa) to a newer OS. Fun. This includes related services (Sendmail to Postfix). More Fun.
Going through the sendmail.mc, we have
MASQUERADE_AS(`propersubdomain.domain.com')dnl
FEATURE(`masquerade_entire_domain')dnl
FEATURE(`allmasquerade')dnl
MASQUERADE_DOMAIN(localhost)dnl
MASQUERADE_DOMAIN(localhost.localdomain)dnl
MASQUERADE_DOMAIN(actualhostname.domain.com)dnl
The actual hostname is being masqueraded as propersubdomain. The easy fix is changing the hostname. Can't be done.
In Postfix, I am not sure what is the equivalent behavior, or combinations. Inbound, I add the propersubdomain.domain.com to $mydestinations. Postfix will handle everything for propersubdomain.
Outbound, I am not sure. I believe $myorigin would be part of it. But I also see references to generic mapping? Or is it something else?
Which one should I use?