Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 17 Jul 1998 08:43:24 +0000
From:      chem@i-p-d.com
To:        andrew@squiz.co.nz
Cc:        isp@FreeBSD.ORG
Subject:   Re: subdomain mail for a vitual user
Message-ID:  <199807170642.IAA13145@i-p-d.com>
In-Reply-To: <Pine.BSF.3.96.980717044211.17168C-100000@aniwa.sky>
References:  <199807161227.OAA10887@i-p-d.com>

next in thread | previous in thread | raw e-mail | index | archive | help
> Date:          Fri, 17 Jul 1998 04:44:23 +1200 (NZST)
> From:          Andrew McNaughton <andrew@squiz.co.nz>
> Reply-to:      andrew@squiz.co.nz
> To:            chem@i-p-d.com
> Cc:            isp@FreeBSD.ORG
> Subject:       Re: subdomain mail for a vitual user

> On Thu, 16 Jul 1998 chem@i-p-d.com wrote:
> 
> > Date: Thu, 16 Jul 1998 14:28:09 +0000
> > From: chem@i-p-d.com
> > To: isp@FreeBSD.ORG
> > Subject: subdomain mail for a vitual user
> > 
> > Hi,
> > 
> > I have made a subdomain like sub.domain.com and they would like to
> > have the E-mail-adress info@sub.domain.com. Normally I use the
> > virtusertable for sendmail and have an entry like
> > 
> > info@domain.com         user
> > 
> > now when I have:
> > 
> > info@sub.domain.com     user
> > 
> > i get: user unknown when I sent a testmail.
> > I have sub.domain.com in the sendmail.cw file.
> > 
> > When I change the entry in:
> > 
> > info.sub@domain.com     user
> > 
> > everything is working just fine.
> > 
> > What am I overlooking? Anyone have any suggestions?
> > 
> > TIA
> > Gina van Zundert
> 
> IF you're sending from the local host, sendmail may be rewriting the mail
> addresses on the way out.  Check what address the email is actually being
> delivered to.
> 
> Aside from that, try using sendmail -bt to see what the host does with the
> address.
> 
> Andrew

Hi, 

This is what I get from parsing the E-mail adress.

 
> /parse info@vitesse.groep.nl
Cracked address = $g
Parsing envelope recipient address
rewrite: ruleset   3   input: info @ vitesse . groep . nl
rewrite: ruleset  96   input: info < @ vitesse . groep . nl >
rewrite: ruleset  96 returns: info < @ groep . nl . >
rewrite: ruleset   3 returns: info < @ groep . nl . >
rewrite: ruleset   0   input: info < @ groep . nl . >
rewrite: ruleset 199   input: info < @ groep . nl . >
rewrite: ruleset 199 returns: info < @ groep . nl . >
rewrite: ruleset  98   input: info < @ groep . nl . >
rewrite: ruleset  98 returns: info < @ groep . nl . >
rewrite: ruleset 198   input: info < @ groep . nl . >
rewrite: ruleset 198 returns: $# local $: info
rewrite: ruleset   0 returns: $# local $: info
rewrite: ruleset   2   input: info
rewrite: ruleset   2 returns: info
rewrite: ruleset  20   input: info
rewrite: ruleset  20 returns: info
rewrite: ruleset   4   input: info
rewrite: ruleset   4 returns: info
mailer local, user info

obviously, user info is unknown.

This is the ruleset 96 in sendmail.cf. As far as I know (I did not 
install this system) there have been no lines changed in this part.

S96

# handle special cases for local names
R$* < @ localhost > $*          $: $1 < @ $j . > $2             no
domain at all R$* < @ localhost . $m > $*     $: $1 < @ $j . > $2     
       local domain R$* < @ localhost . UUCP > $*   $: $1 < @ $j . >
$2             .UUCP domain R$* < @ [ $+ ] > $*             $: $1 < @@
[ $2 ] > $3          mark [a.b.c.d] R$* < @@ $=w > $*               $:
$1 < @ $j . > $3             self-literal R$* < @@ $+ > $*            
   $@ $1 < @ $2 > $3               canon IP addr

# look up domains in the domain table
#R$* < @ $+ > $*                $: $1 < @ $(domaintable $2 $) > $3


# pass UUCP addresses straight through
R$* < @ $+ . UUCP > $*          $@ $1 < @ $2 . UUCP . > $3

# pass to name server to make hostname canonical
R$* < @ $* $~P > $*             $: $1 < @ $[ $2 $3 $] > $4

# local host aliases and pseudo-domains are always canonical
R$* < @ $=w > $*                $: $1 < @ $2 . > $3
R$* < @ $j > $*                 $: $1 < @ $j . > $2
R$* < @ $=M > $*                $: $1 < @ $2 . > $3
R$* < @ $* $=P > $*             $: $1 < @ $2 $3 . > $4
R$* < @ $* . . > $*             $1 < @ $2 . > $3

I have been having problems with getting the subdomains itself to 
work. There still is a problem with the secondairy nameserver, that 
is being maintained by another company. Could that be the cause of 
the mail problem too?

This is my db.file:
groep.nl. IN SOA ns1.i-p-d.com. root.host4u.com. (
                        1998071694      ; Serial
                        14400           ; Refresh after 4 hours
                        3600            ; Retry after 1 hour
                        604800          ; Expire after 1 week
                        86400 )         ; Minimum TTL of 1 day

; DNS Servers
@       IN NS           ns1.i-p-d.com.
@       IN NS           hedra.host4u.com.

; Machine Names
localhost               IN A    127.0.0.1
groep.nl.               IN A    209.60.43.5

; Aliases
www             IN CNAME        @
ftp             IN CNAME        @
mail            IN CNAME        @
smtp            IN CNAME        @
ces             IN CNAME        @
vitesse         IN CNAME        @


; MX Records
@                       IN MX   5       ns1.i-p-d.com.

Thanks.

Gina
Gina van Zundert

Internet Page Design
tel: 0165-571675     fax: 0165-571710

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-isp" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199807170642.IAA13145>