I am a qmail newbie <gag>.

I am setting up a virtual domain, with the intent of creating a mailing
list to operate from within that domain, but I cannot seem to get the
virtual domain delivery to operate as expected.  I didn't perform the
qmail install on this box, but I suspect something is highly wrong ... I
just can't figure it out myself.  

I know that dot-forward and fastforwarding are both installed here, but I
can't find anything to explain this behavior (I probably don't know where
to look).

Starting at the beginning:

I RTFMP and RTFFAQ, and followed the directions there:
 add starfire.worlddomination.net:nepolon-starfire to virtualhosts
 add starfire.worlddomination.net to rcpthosts
 kill -HUP the qmail-send proc

But, I had to create a .qmail-starfire-default before local-local mail
to the virtdomain would work.  Otherwise I was getting:
 > <[EMAIL PROTECTED]>:
 > Sorry, no mailbox here by that name. (#5.1.1)

This tips me off that something is rotten, so I play gumshoe...

This is the .qmail-starfire-default:
 /home/nepolon/mail/inbox

Here is a local-local(virt) with the .qmail-starfire-default in place:

Jun 18 23:18:00 worlddomination qmail: 961395480.852534 \
 new msg 40335
Jun 18 23:18:00 worlddomination qmail: 961395480.852843 \
 info msg 40335: bytes 456 from <[EMAIL PROTECTED]> \
 qp 13 11 uid 502
Jun 18 23:18:00 worlddomination qmail: 961395480.864851 starting \
 delivery 53: msg 40335 to local \
 [EMAIL PROTECTED]
Jun 18 23:18:00 worlddomination qmail: 961395480.865076 status: \
 local 1/10 remote 0/20
Jun 18 23:18:01 worlddomination qmail: 961395481.009013 delivery 53: \
 success: did_1+0+0/
Jun 18 23:18:01 worlddomination qmail: 961395481.009293 status: local \
 0/10 remote 0/20
Jun 18 23:18:01 worlddomination qmail: 961395481.009399 end msg 40335

This is as expected (though I didn't expect to need the dot-qmail as
qmail-local does the same thing.  I continue testing.  This is
remote-local(virt) [To: [EMAIL PROTECTED]] with the
.qmail-starfire-default in place:

Jun 18 23:23:29 worlddomination qmail: 961395809.748411 new msg 40335
Jun 18 23:23:29 worlddomination qmail: 961395809.748727 info msg 40335: \
 bytes 3148 from <[EMAIL PROTECTED]> qp 1342 uid 515
Jun 18 23:23:29 worlddomination qmail: 961395809.757755 starting \
 delivery 56: msg 40335 to local [EMAIL PROTECTED]
Jun 18 23:23:29 worlddomination qmail: 961395809.757966 status: local \
 1/10 remote 0/20
Jun 18 23:23:29 worlddomination qmail: 961395809.779638 delivery 56: \
 success: did_0+0+0/
Jun 18 23:23:29 worlddomination qmail: 961395809.779929 status: local \
 0/10 remote 0/20
Jun 18 23:23:29 worlddomination qmail: 961395809.780035 end msg 40335

And this is the crux of _my_ problem (with virtual domains).  Local
delivery can be made to work, but if the mail comes from the outside it
doesn't recognise the destination as a virtual host.  Is this because the
DNS record for starfire.worlddomination.net is a CNAME of
worlddomination.net rather than another record?

Further evidence of foul play...
This is what happens on local-local(bounce):

Jun 18 23:09:35 worlddomination qmail: 961394975.540172 new msg 40335
Jun 18 23:09:35 worlddomination qmail: 961394975.540478 info msg 40335: \
 bytes 438 from <[EMAIL PROTECTED]> qp 12 67 uid 502
Jun 18 23:09:35 worlddomination qmail: 961394975.551006 starting delivery 50: \
 msg 40335 to local [EMAIL PROTECTED]
Jun 18 23:09:35 worlddomination qmail: 961394975.551444 status: local 1/10 remote 0/20
Jun 18 23:09:35 worlddomination qmail: 961394975.590908 delivery 50: success: 
did_0+0+0/
Jun 18 23:09:35 worlddomination qmail: 961394975.591171 status: local 0/10 remote 0/20
Jun 18 23:09:35 worlddomination qmail: 961394975.591278 end msg 40335

Very wrong.  We have no user 'nonexistant' ... where is the bounce?  This
can make it rather difficult to find the message I sent to
[EMAIL PROTECTED]

FWIW:
# ./qmail-showctl
qmail home directory: /var/qmail.
user-ext delimiter: -.
paternalism (in decimal): 2.
silent concurrency limit: 120.
subdirectory split: 23.
user ids: 517, 514, 515, 0, 516, 518, 519, 520.
group ids: 515, 516.

badmailfrom: (Default.) Any MAIL FROM is allowed.

bouncefrom: (Default.) Bounce user name is MAILER-DAEMON.

bouncehost: (Default.) Bounce host name is worlddomination.net.

concurrencylocal: (Default.) Local concurrency is 10.

concurrencyremote: (Default.) Remote concurrency is 20.

databytes: (Default.) SMTP DATA limit is 0 bytes.

defaultdomain: Default domain name is worlddomination.net.

defaulthost: (Default.) Default host name is worlddomination.net.

doublebouncehost: (Default.) 2B recipient host: worlddomination.net.

doublebounceto: (Default.) 2B recipient user: postmaster.

envnoathost: (Default.) Presumed domain name is worlddomination.net.

helohost: (Default.) SMTP client HELO host name is worlddomination.net.

idhost: (Default.) Message-ID host name is worlddomination.net.

localiphost: (Default.) Local IP address becomes worlddomination.net.

locals:
Messages for worlddomination.net are delivered locally.

me: My name is worlddomination.net.

percenthack: (Default.) The percent hack is not allowed.

plusdomain: Plus domain name is worlddomination.net.

qmqpservers: (Default.) No QMQP servers.

queuelifetime: (Default.) Message lifetime in the queue is 604800 seconds.

rcpthosts:
SMTP clients may send messages to recipients at worlddomination.net.
SMTP clients may send messages to recipients at starfire.worlddomination.net.

morercpthosts: (Default.) No effect.

morercpthosts.cdb: (Default.) No effect.

smtpgreeting: (Default.) SMTP greeting: 220 worlddomination.net.

smtproutes: (Default.) No artificial SMTP routes.

timeoutconnect: (Default.) SMTP client connection timeout is 60 seconds.

timeoutremote: (Default.) SMTP client data timeout is 1200 seconds.

timeoutsmtpd: (Default.) SMTP server data timeout is 1200 seconds.

virtualdomains:
Virtual domain: starfire.worlddomination.net:nepolon-starfire


Reply via email to