Newsgroups: vmsnet.uucp
Subject: Re: uuxqt called twice for each incoming mail message?
From: allebrandi@inland.com (Tom Allebrandi)
Date: 14 Sep 92 14:01:44 CST
Organization: Inland Steel Company; East Chicago, IN

In article <1992Sep8.193151.9693@augustana.ab.ca>, bjorndahl@augustana.ab.ca writes:
> Can someone explain to me why most stuff sent here gets uuxqt'd twice?  Our
> hostname is camrose, but our domain name is Augustana.AB.CA .  As far as I
> can see I've got all the logicals properly defined, and I've go no
> MAIL_REWRITE.RULES file.  I'm using DECUS UUCP 2.0 on VMS 5.4 on a MicroVax
> II.
> 
> When mail comes in for foo@Augustana.AB.CA, I'll see one execution of
>   rmail Augustana.AB.CA!foo
> and then a few seconds later
>   rmail foo
> 

This is correct. Anything that looks like non-local mail, that is,
contains an "@" or a "!", is treated as remote mail. In this case,
Augustana.AB.CA is redundant and causes the mail to be routed back to
you.

Since there are so many possible combinations of inbound delivery paths
to the local host, it is much easier to attempt to guarantee pass
through rather than attempt to short circuit the path.

The address rewriter can be used to clean up whatever you happen to be
getting.

>Can I fix it with an entry in mail_rewrite.rules?  (I
> tried doing an [INBOUND-TO] of *@Augustana.AB.CA \001 but it didn't seem to
> work.  Have I missed something?)

Eh, yes. Look at your input it is not

	*@Augustana.AB.CA

but instead

	Augustana.AB.CA!*

The address rewriter is a text string pattern matcher. It makes no
attempts whatsoever to devine context information for the pattern.


Following my signature are the rules I use here. My host serves as
as the gateway to a large collection of DECnet machines.

--- Tom
Tom Allebrandi             | Mail guru   - DECUS UUCP Development Team
Inland Steel Research Labs | NFS grunt   - CMU/Tek-IP
East Chicago, IN           | Chairperson - VMSnet Working Group, DECUS VAX SIG
219 399 6306               | Internet:  allebrandi@inland.com
DECUServe: allebrandi      | UUCP:      ...!uunet!inland!allebrandi

#
# INLAND.COM domain gateway rules.
#
#	inland.com will "alias" to the Research VAXCluster
#
[INBOUND-TO]
*@inland.com			\001
*%inland.com			\001
inland.com!*			\001
[OUTBOUND-FROM]
# 						-- No outbound rules required
#
#	aviary.inland.com is the fully qualified domain name for the Research
#	VAXCluster
#
[INBOUND-TO]
*@aviary.inland.com		\001
*%aviary.inland.com		\001
aviary.inland.com!*		\001
[OUTBOUND-FROM]
aviary::*			\001@aviary.inland.com
#
#
#	Special rules for Mail headed to MRGATE. The rule we use
#	here is node-sub.inland.com. ie: office-a1.inland.com is
#	office::mrgate::"a1..."
#
[INBOUND-TO]
*@*.*-*.inland.com		\003::mrgate::"\004::\002::\001"
*%*.*-*.inland.com		\003::mrgate::"\004::\002::\001"
*.*-*.inland.com!*		\002::mrgate::"\003::\001::\004"
*@*-*.inland.com		\002::mrgate::"\003::\001"
*%*-*.inland.com		\002::mrgate::"\003::\001"
*-*.inland.com!*		\001::mrgate::"\002::\003"
[OUTBOUND-FROM]
*::*::mrgate::"*::*"		\004@\001-\003.inland.com
*::mrgate::"*::*"		\003@\001-\002.inland.com
#
#	All other known hosts at Inland are connected via DECnet. So, 
#	convert node::user to user@node.inland.com and vice versa.
#
[INBOUND-TO]
*@*.inland.com			\002::\001
*%*.inland.com			\002::\001
*.inland.com!*			\001::\002
[OUTBOUND-FROM]
*::*::*				\003@\002.inland.com
*::*				\002@\001.inland.com
#
#	Allow users in the inland.com domain to send to other hosts
#	in the domain.
#
[OUTBOUND-TO]
*@*.inland.com			inland!\002.inland.com!\001
#
# end of INLAND.COM domain gateway rules