[ale] Looking for advise on domain names and other info wrt local network.

Jim Popovitch yahoo at jimpop.com
Sun Aug 10 17:44:27 EDT 2008


On Sun, Aug 10, 2008 at 5:08 PM, Jim Lynch
<ale_nospam at fayettedigital.com> wrote:
> Thanks. But
.....
> I don't want messages tossed.  :(

:-) Sorry.  It's the weekend.

What you want is generic mapping (the next section down in that Postfix link)

-----------------------------------------------
Generic mapping for outgoing SMTP mail

Some hosts have no valid Internet domain name, and instead use a name
such as localdomain.local. This can be a problem when you want to send
mail over the Internet, because many mail servers reject mail
addresses with invalid domain names.

With the smtp_generic_maps parameter you can specify generic(5) lookup
tables that replace local mail addresses by valid Internet addresses
when mail leaves the machine via SMTP. The generic(5) mapping replaces
envelope and header addresses, and is non-recursive. It does not
happen when you send mail between addresses on the local machine.

This feature is available in Postfix version 2.2 and later.

Example:

    /etc/postfix/main.cf:
        smtp_generic_maps = hash:/etc/postfix/generic

    /etc/postfix/generic:
        his at localdomain.local		hisaccount at hisisp.example
        her at localdomain.local		heraccount at herisp.example
        @localdomain.local			hisaccount+local at hisisp.example

When mail is sent to a remote host via SMTP, this replaces
his at localdomain.local by his ISP mail address, replaces
her at localdomain.local by her ISP mail address, and replaces other
local addresses by his ISP account, with an address extension of
+local (this example assumes that the ISP supports "+" style address
extensions).
-----------------------------------------------

-Jim P.


More information about the Ale mailing list