Since the qmail virtualdomains file can list different [EMAIL PROTECTED] entries which route to different addresses, when checking the virtualdomains file for a 'match' for the original envelope domain you need to check that the 'prepend' coupled with the user part of the virtualdomain matches the 'ousername'.


I sent this directly to Jason, but didn't hear back, so I'm trying again to the right place :-)

Robert


bluesky_rthille> diff -u /usr/pkg/bin/tmda-rfilter ~/bin/tmda-rfilter --- /usr/pkg/bin/tmda-rfilter Sat Nov 1 17:20:15 2003 +++ /home/rthille/bin/tmda-rfilter Thu Nov 6 22:26:04 2003 @@ -299,7 +299,8 @@ # [EMAIL PROTECTED]:prepend else: try: - if vdomain.split('@', 1)[1] == odomain.lower(): + if (vdomain.split('@', 1)[1] == odomain.lower() and + (ousername == (prepend + '-' + vdomain.split('@', 1)[0]))): vdomain_match = 1 except IndexError: pass bluesky_rthille>


_________________________________________________ tmda-workers mailing list ([EMAIL PROTECTED]) http://tmda.net/lists/listinfo/tmda-workers

Reply via email to