|
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 (andy
xecu.net)Date: Fri Apr 28 2000 - 10:14:10 CDT
- Next message: Vivek Khera: "Re: Bug?"
- Previous message: Vivek Khera: "Re: Silent Discard?"
- Next in thread: Vivek Khera: "Re: Bug?"
- Reply: Vivek Khera: "Re: Bug?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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 something
buybubblewrap.com, it will go to
bubble (which is a valid account on the system), and thus translates to (I
assume) bubble
cribs2go.com. It will then recurse and decide that
bubble
crib2go.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 bubble
localhost
alertware.com alertware
localhost
One thing that I did that I thought would work, but did not, was to add
lines:
bubble
cribs2go.com bubble
alertware
cribs2go.com alertware
However, that did not work (although other usernames
cribs2go.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: `skjnbsvf
buybubblewrap.com' -> t=`smtp'
h=`buybubblewrap.com' r=`skjnbsvf
buybubblewrap.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: skjnbsvf
buybubblewrap.com -> bubble
Apr 28 22:33:00 www postfix/qmgr[15876]:
CDF542CED8B: from=<andy
xecu.net>, size=321 (queue active)
Apr 28 22:33:00 www postfix/local[15881]:
CDF542CED8B: to=<rootmail
cribs2go.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
- Next message: Vivek Khera: "Re: Bug?"
- Previous message: Vivek Khera: "Re: Silent Discard?"
- Next in thread: Vivek Khera: "Re: Bug?"
- Reply: Vivek Khera: "Re: Bug?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]