|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
From: Wietse Venema (wietse_at_porcupine.org)
Date: Mon Feb 03 2003 - 11:49:01 CST
Postfix appends the local domain to addresses before it processes
the canonical map.
The reason is that you would otherwise need multiple entries
for the same host or domain name, one with and one without
the local domain.
Technically, the senders are at fault, because SMTP requires
fully qualified domain names.
Wietse
Lars Kellogg-Stedman:
> We've recently made the switch from sendmail to postfix at my place of
> employment, and we're lovin' it so far :).
>
> We have run into a minor hangup -- we have a large popular of users here
> who are used to sending email to unqualified addresses (e.g., user
foo
> rather than user
foo.company.com, where foo.company.com is a subdomain,
> not a hostname).
>
> I'm having some problems with the configuration on our perimiter mail
> relay(s) -- they don't appear to be rewriting unqualified addresses as I
> would expect.
>
> I have the following in /etc/postfix/canonical:
>
>
foo
foo.company.com
>
bar
bar.company.com
>
otherplace
otherplace.company.com
>
> The following in /etc/postfix/relay_domains:
>
> foo.company.com smtp:[mail.foo.company.com]
> .foo.company.com smtp:[mail.foo.company.com]
> bar.company.com smtp:[mail.bar.company.com]
> .bar.company.com smtp:[mail.bar.company.com]
>
> And the folowing in main.cf:
>
> mydomain = foo.company.com
> mydestination = $myhostname, localhost.$mydomain,
> hash:$config_directory/relay_domains
> canonical_maps = hash:$config_directory/canonical
>
> transport_maps = hash:$config_directory/transport,
> hash:$config_directory/relay_domains
> relay_domains = $mydestination, hash:$config_directory/relay_domains
> masquerade_domains = hash:$config_directory/relay_domain
>
> Both foo.company.com and bar.company.com are included in relay_domains and
> in masquerade_domains.
>
> Given the following session:
>
> HELO host.foo.company.com
> MAIL FROM: <lars
foo.company.com>
> RCPT TO: <lars
otherplace>
> DATA
> ...
> .
>
> I get errors because postfix rewrites <lars
otherplace> to
> <lars
otherplace.foo.company.com> -- apparently ignoring the entries in
> canonical_maps.
>
> I'm assuming the problem here is actually my understanding of the whole
> process, so I'd appreciate some pointers. Let me know if I've provided
> insufficient information.
>
> Thanks,
>
> -- Lars
>
> --
> Lars Kellogg-Stedman <lars
larsshack.org>
>
>
>
>
>
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]