Jay Chandler wrote:
> On my gateway machine I have generic set to rewrite addresses from
> @... to @..., after which point transport redirects
> those messages to server.domain.com.
> Unfortunately, when email arrives from other internal sources to
> @..., my gateway rejects them, as it's not correlating the
> user@... with user@....
> Is there a way to make this work without having to have duplicate
> entries (one for user@domain, one for user@...) in
> relay_recipients for validation? I do realize that generic won't work
> until after a message is accepted, but was hoping I may have overlooked
> another way to do this...
If you're using local indexed files (hash, dbm, cdb, etc.),
use multiple entries. Use sed/perl/awk/whatever to generate
the alternate entires automatically; let the computer do the
work. The extra entries in the table will make no measurable
difference in lookup speed. You can script this under the
control of a Makefile, something like:
If you are using *sql lookup tables, you can configure your
query to look for either name form (examples in the archives).
An alternative is to use "reject_unverified_recipient"