OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Re: Postfix behavior

From: Mike Futerko (mikeLITech.lviv.ua)
Date: Mon Mar 01 2004 - 12:07:02 CST


Hi Wietse,

Sorry that bother you again, but:

> > 2) When I send mail I see that Postfix checks sender address/domain in the
> > virtual_alias_maps. Why does Postfix do this?
>
> Because by default, virtual_alias_domains = $virtual_alias_maps, for
> backwards compatibility with Postfix 1.1.

Here I mean Postfix checks SENDER address and then SENDER domain in the
virtual_alias_maps, as shown in the logs attached. So why Postfix checks
SENDER address/domain in recipient aliases? What is the reason to check SENDER
address and domain in RECIPIENT aliases?

Strings in log are:
[...snip...]
dict_pgsql_lookup using sql query: SELECT DISTINCT * FROM getForwards('mikeexternal.net')
dict_pgsql_lookup using sql query: SELECT DISTINCT * FROM getForwards('external.net')
[...snip...]

The SMTP session follows:

mikejump> telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 jump.internal.com ESMTP Postfix
MAIL FROM:<mikeexternal.net>
250 Ok
RCPT TO:<mikeinternal.com>
250 Ok
DATA
354 End data with <CR><LF>.<CR><LF>
Test
.
250 Ok: queued as 7CB03206C
QUIT
221 Bye
Connection closed by foreign host.
mikejump>

Note that 127.0.0.1 is excluded from mynetworks (mynetworks = 127.0.0.254).

Many thanks for the time spent for me,
Mike.