On Tue, Jul 25, 2000 at 01:44:46PM -0700, Harry Putnam wrote:
> Ricardo Cerqueira <[EMAIL PROTECTED]> writes:
> 
> > On Tue, Jul 25, 2000 at 05:10:13AM -0700, Harry Putnam wrote:
> > > 
> > > [New user alert]
> > > Running FreeBSD 4.0
> > > Just installed qmail-1.03 from the FreeBSD ports collection.
> > > 
> > > My setup is a home user machine, laptop running FreeBSD that accesses
> > > the internet by IP masquerade of desktop machine (also home user
> > > 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
> > > 
> > > This works for sending mail via the internet and my `From' address
> > > comes out right.
> > > 
> > > Currently the only files in /var/qmail/control are the two mentioned
> > > above:  `default' and `me'
> > > 
> > > 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]
> > 
> > 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.
> 
> Still not working here.
> 
> 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:
> Jul 25 13:35:58 satellite qmail: 964557358.900609 new msg 66
> Jul 25 13:35:58 satellite qmail: 964557358.902731 info msg 66: bytes
> 207 from <[EMAIL PROTECTED]> qp 471 uid 0
> Jul 25 13:35:58 satellite qmail: 964557358.911375 starting delivery 3:
> msg 66 to remote [EMAIL PROTECTED]
> Jul 25 13:35:58 satellite qmail: 964557358.912673 status: local 0/10 remote 1/20
> Jul 25 13:36:05 satellite qmail: 964557365.151312 delivery 3: success:
> 
>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.

RC

-- 
+-------------------
| 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