OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Subject: Bug?
From: Andy Dills (andyxecu.net)
Date: Fri Apr 28 2000 - 10:14:10 CDT


Well, I've found something that may be a bug. Or maybe not, it could just
be a downside to the desired recursive behavior of the map lookups.

If you attempt to setup a catchall for the primary domain (I'm not sure if
it would be $myhostname, $mydestination, or what) in a virtual map, such
as:

myhostname = cribs2go.com
virtual_maps = btree:/etc/postfix/virtual

With /etc/postfix/virtual looking like:
alertware.com OK
buybubblewrap.com OK
cribs2go.com rootmail
buybubblewrap.com bubble
alertware.com alertware

What happens is, if you send to somethingbuybubblewrap.com, it will go to
bubble (which is a valid account on the system), and thus translates to (I
assume) bubblecribs2go.com. It will then recurse and decide that
bubblecrib2go.com needs to go to rootmail. (There's a log snippet at the
bottom to verify this).

The solution was to change the virtual file to:
alertware.com OK
buybubblewrap.com OK
cribs2go.com rootmail
buybubblewrap.com bubblelocalhost
alertware.com alertwarelocalhost

One thing that I did that I thought would work, but did not, was to add
lines:
bubblecribs2go.com bubble
alertwarecribs2go.com alertware

However, that did not work (although other usernamescribs2go.com mappings
work fine, I just didn't paste all of that into this email).

So, not a big deal to me at this point, I've found my workaround. But it's
something that might be improved upon (if the RHS of the map lookup is
local, recurse but then exempt it from being handled by a catch-all...or
maybe not even recurse at all?)

Thanks,
Andy

Log entries:

Apr 28 22:32:57 www postfix/smtpd[15878]:
        resolve_clnt_query: `skjnbsvfbuybubblewrap.com' -> t=`smtp'
        h=`buybubblewrap.com' r=`skjnbsvfbuybubblewrap.com'

Apr 28 22:32:57 www postfix/smtpd[15878]:
        maps_find: btree:/etc/postfix/virtual: buybubblewrap.com = bubble
Apr 28 22:32:57 www postfix/smtpd[15878]:
        mail_addr_find: skjnbsvfbuybubblewrap.com -> bubble

Apr 28 22:33:00 www postfix/qmgr[15876]:
        CDF542CED8B: from=<andyxecu.net>, size=321 (queue active)

Apr 28 22:33:00 www postfix/local[15881]:
        CDF542CED8B: to=<rootmailcribs2go.com>, relay=local, delay=14,
        status=sent (mailbox)

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Andy Dills 301-682-9972
Xecunet, LLC www.xecu.net
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Dialup * Webhosting * E-Commerce * High-Speed Access