Urgh... an old lesson I should have learned... Don't try to solve problems when 
sleepy. Sorry.
Using defaultdomain instead of defaulthost will solve the local delivery problem, but 
will mess up with the "masquerading" of outgoing mails. I can't think of anything 
that'll get both things functional. Any clues, anyone?

RC

On Thu, Jul 27, 2000 at 01:01:02AM +0100, Ricardo Cerqueira wrote:
> 
> 
> 
> On Wed, Jul 26, 2000 at 06:55:13PM -0400, Vince Vielhaber wrote:
> > 
> > Try this from the qmail source directory:
> > 
> > # ./config-fast satellite.local.lan
> > 
> > and see if that fixes it.
> > 
> 
> It won't. I've just realized what's going on... it's his "defaulthost". It gets 
>appended to any address without a domain by qmail-inject. Including the one he's 
>testing with. Since his default "domainless" addresses match a remote domain, it'll 
>deliver remotely.
> On the other hand... "defaultdomain" isn't appended to "domainless" addresses, just 
>to dotless hosts. So... Harry, try renaming your defaulthost file to "defaultdomain". 
>That should do it.
> 
> RC
> 
> > Vince.
> > 
> > 
> > On 26 Jul 2000, Harry Putnam wrote:
> > 
> > > Harry Putnam <[EMAIL PROTECTED]> writes:
> > > 
> > > > [New user alert]
> > > 
> > > > machine) which is connected via DSL to local ISP.  My main internet
> > > > mailbox is with the commercial news service newsguy.com.  
> > > > 
> > > > The laptops name is satellite.local.lan.  At the end of the qmail
> > > > build a message was displayed:
> > > > 
> > > > Your hostname is satellite.local.lan.
> > > >         hard error
> > > >         Sorry, I couldn't find your host's canonical name in DNS.
> > > >         You will have to set up control/me yourself.
> > > > 
> > > > So `/var/qmail/control/me' says: satellite.local.lan
> > > > 
> > > > 
> > > > Past experience indicates that if I want my From address to reflect
> > > > the newsguy.com address, I need to Masquerade that domain
> > > > (newsguy.com).
> > > > 
> > > > Qmail FAQ indicates that is done by placing a `default' file in
> > > > /var/qmail/control/default containing:
> > > > newsguy.com
> > > 
> > > [...]
> > > 
> > > > 
> > > > My problem:
> > > > Going through the various tests I find the local-local test doesn't
> > > > insert a message in my inbox ~/Mailbox ( a symlink to /var/mail/$USER)
> > > > directly as expected but instead sends the message to [EMAIL PROTECTED]
> > > > 
> > > > That is:
> > > >   `echo to: reader | /var/qmail/bin/qmail-inject' 
> > > > 
> > > > Does not insert a message directly to ~/Mailbox but instead sends it
> > > > to [EMAIL PROTECTED]
> > > > 
> > > > So if the DSL link isn't up then local delivery fails.
> > > > What do I need to do to correct this?
> > > 
> > > Ricardo Cerqueira <[EMAIL PROTECTED]> writes:
> > > 
> > > 
> > > > qmail-local (local delivery in general) trusts control/locals as a
> > > > list of local domains.
> > > > 
> > > > "echo satellite.local.lan >> control/locals" should do the trick.
> > > 
> > > [...]
> > > 
> > > Harry Putnam <[EMAIL PROTECTED]> writes:
> > > 
> > > > On Tue, Jul 25, 2000 at 01:44:46PM -0700, Harry Putnam wrote:
> > > > > Ricardo Cerqueira <[EMAIL PROTECTED]> writes:
> > > 
> > > > > cat /var/qmail/control/defaulthost:
> > > > > newsguy.com
> > > > > 
> > > > > cat /var/qmail/contol/me:
> > > > > satellite.local.lan
> > > > > 
> > > > > cat /var/qmail/control/locals
> > > > > satellite.local.lan
> > > > > 
> > > > > When I call (as root) `echo to: reader | /var/qmail/bin/qmail-inject
> > > > > I see:
> > > > 
> > > > > 
>209.155.56.71_accepted_message./Remote_host_said:_250_NAA24636_Message_accepted_for_delivery/
> > > > > Jul 25 13:36:05 satellite qmail: 964557365.160189 status: local
> > > > > 0/10 remote 0/20 Still sending to remote host.
> > > > 
> > > 
> > > > As I said... locals is trusted for local domains. If you're sending
> > > > to "newsguy.com" and that is a local domain, put it into
> > > > control/locals.
> > > 
> > > 
> > > Maybe I'm missing something here.  I tried to make it as clear as I
> > > could as to the local setup.  Reiterated here for clarity:
> > > 
> > > Local machine LAPTOP (satellite.local.lan)    (on home network)
> > >   Connected to desktop by ethernet and IP masquerade access to
> > >   internet.
> > > 
> > > Local machine DESKTOP (reader.local.lan) (on home network)
> > > connected by ethernet to LAPTOP.  Connected by ethernet-DSL on  a separate
> > > NIC to ISP provider (networkone.net) (NOT on local network)
> > > 
> > > Main mailbox is on the COMMERCIAL provider newsguy.com (NOT on local network)
> > > 
> > > Running the qmail LOCAL-LOCAL test.  That is, testing LOCAL only delivery.
> > > 
> > > `echo to: reader | /var/qmail/bin/qmail-inject' 
> > > 
> > > This message is not delivered locally although `reader' is a luser.
> > > Instead it is delivered to the main mailserver (NOT on local network)
> > > newsguy.com.
> > > 
> > > Log messages in part:
> > > 
> > > Jul 26 15:35:55 satellite qmail: 964650955.032190 info msg 67: bytes
> > > 210 from <[EMAIL PROTECTED]> qp 289 uid 1000
> > > 
> > > Jul 26 15:35:55 satellite qmail: 964650955.046157 starting delivery 3:
> > > msg 67 to remote [EMAIL PROTECTED]
> > >           ^^^^^^ 
> > > [NOTE:  It is sent to REMOTE using LOCAL-LOCAL test.
> > > 
> > > Jul 26 15:35:55 satellite qmail: 964650955.049824 status: local 0/10 remote 1/20
> > > 
> > > Jul 26 15:35:56 satellite qmail: 964650956.837892 delivery 3: success: 
>209.155.56.71_accepted_message./Remote_host_said:_250_PAA64340_Message_accepted_for_delivery/
> > >                    ^^^^^^^^^^^
> > > [NOTE: REMOTE HOST]
> > > 
> > > Jul 26 15:35:56 satellite qmail: 964650956.848938 status: local 0/10 remote 0/20
> > > 
> > > Jul 26 15:35:56 satellite qmail: 964650956.851071 end msg 67
> > > How can I deliver to local mbox's without going through a REMOTE host?
> > > 
> > > Adding satellite.local.lan to /var/qmail/control/locals  Does not help.
> > > 
> > > I'm using the /var/qmail/doc/TEST.deliver (LOCAL-LOCAL test).. IE to
> > > inject mail directly to a ~/Mailbox without sending through a remote host.
> > > 
> > 
> > -- 
> > ==========================================================================
> > Vince Vielhaber -- KA8CSH    email: [EMAIL PROTECTED]    http://www.pop4.net
> >  128K ISDN from $22.00/mo - 56K Dialup from $16.00/mo at Pop4 Networking
> >         Online Campground Directory    http://www.camping-usa.com
> >        Online Giftshop Superstore    http://www.cloudninegifts.com
> > ==========================================================================
> > 
> > 
> > 
> 
> -- 
> +-------------------
> | Ricardo Cerqueira  
> | PGP Key fingerprint  -  B7 05 13 CE 48 0A BF 1E  87 21 83 DB 28 DE 03 42 
> | Novis  -  Engenharia ISP / Rede Técnica 
> | Pç. Duque Saldanha, 1, 7º E / 1050-094 Lisboa / Portugal
> | Tel: +351 21 3166700 (24h/dia) - Fax: +351 21 3166701

-- 
+-------------------
| Ricardo Cerqueira  
| PGP Key fingerprint  -  B7 05 13 CE 48 0A BF 1E  87 21 83 DB 28 DE 03 42 
| Novis  -  Engenharia ISP / Rede Técnica 
| Pç. Duque Saldanha, 1, 7º E / 1050-094 Lisboa / Portugal
| Tel: +351 21 3166700 (24h/dia) - Fax: +351 21 3166701

Reply via email to