On Sat, Mar 20, 1999 at 06:23:58PM +0000, RJP wrote:
> Hello all.
>
> After about a month of frustrating investigation & experimentation
> I am still unable to find out how to get Qmail to send my mail
> to sedric.demon.co.uk.
Rather than beat around the bush and make people wade through a lot of words to
try to deduce what it is you're trying to accomplish, why don't you just say
explicitly what it is you're trying to accomplish, and give us a few details of
your setup?
I'll put on my detective cap, and try to deduce what I can.
Apparently, you're on a dialup connection with a dynamic IP. You've installed
serialmail, and in control/virtualdomains you have a line that looks like this:
:qmail-ppp
In ~alias, you have a file called .qmail-qmail-ppp-default, in which we find
the following:
./pppdir/
The reason you set things up this way is that you'd like all non-local mail to
be queued in ~alias/pppdir/ for eventual handling by serialmail, which will
deliver this mail to your ISP's mail server when your PPP connection is up.
How am I doing so far?
[snip]
> Then I attempted to send to sedric.demon.co.uk again, what I expected
> was for the message to find it's way back.
>
> what I actually get is '553 sorry, that domain is not in my list of
> allowed rcpthosts (#5.7.1)'
>
> OK - so I edit rcpthosts to include sedric.demon.co.uk
>
> A message to [EMAIL PROTECTED] (again) is now accepted, but (as far
> as I can understand it), this message should also find it's way back. It
> does not - it gets sent to [EMAIL PROTECTED] and the
> message text is in /var/qmail/alias/pppdir/new.
What do you mean by "find it's [sic] way back"? Back from where?
The reason that it's getting sent to qmail-ppp-rjp and ending up in
/var/qmail/alias/pppdir/new is the control/virtualdomains entry. Mail to any
domain not listed in control/locals or without a more specific entry in
control/virtualdomains will be delivered there, as per you instructions.
> .qmail-ppp-rjp was not generated by the installation script so perhaps
> this is a 'red herring'?
>
> If I introduce a file into /var/qmail/alias/pppdir called .qmail-ppp-rjp
> (pure guesswork this) I then find that messages start appearing in
> /var/log/maillog:
>
> Mar 20 01:13:12 SedricWorks qmail: 921892392.990956 starting delivery 14:
> msg 496 to local [EMAIL PROTECTED]
> Mar 20 01:13:12 SedricWorks qmail: 921892392.991371 status:
> local 1/10 remote 0/20
> Mar 20 01:13:13 SedricWorks qmail: 921892393.547002 delivery 14:
> deferral: Unable_to_chdir_to_maildir._(#4.2.1)/
>
>
> /var/qmail/alias/pppdir.qmail-ppp-rjp contains:
>
> /home/rjp/Mailbox/
At this point, qmail-local is running as the alias user, so it can't deliver
mail into rjp's mailbox, which is owned by rjp.
Apparently, you'd like mail sent to [EMAIL PROTECTED] to be sent to the
local user rjp. What about mail to [EMAIL PROTECTED]? Is
mail to anyone @sedric.demon.co.uk to be considered local, or just rjp?
If you want mail sent to [EMAIL PROTECTED] to be delivered locally for
any user, stick sedric.demon.co.uk in control/locals and SIGHUP qmail-send. If
you want mail to [EMAIL PROTECTED] to be delivered locally, but you want
mail to [EMAIL PROTECTED] to be delivered to your ISP, put
the following in control/virtualdomains (along with the qmail-ppp entry):
[EMAIL PROTECTED]:rjp
Then touch .qmail-rjp-default and SIGHUP qmail-send.
By the way, do you have something in your ppp-up (or whatever) script to run
serialmail when your PPP connection is up?
Chris