Ricardo Cerqueira <[EMAIL PROTECTED]> writes:
> 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.
>
Above technique also fails, but apparently needs a .dot-forward file
in place.
Jul 26 17:19:17 satellite qmail: 964657157.478889 new msg 384
Jul 26 17:19:17 satellite qmail: 964657157.480339 info msg 384: bytes
226 from <[EMAIL PROTECTED]> qp 300 uid 1000
Jul 26 17:19:17 satellite qmail: 964657157.485480 starting delivery 2:
msg 384 to local [EMAIL PROTECTED]
Jul 26 17:19:17 satellite qmail: 964657157.486268 status: local 1/10 remote 0/20
Jul 26 17:19:17 satellite qmail: 964657157.636503 delivery 2:
deferral: dot-forward:_not_found/
A further question: I had the `defaulthost' file in place before above
experiment, because the qmail FAQ says that is the way to masquerade
your `From' address.
FAQ:
1.1. How do I set up host masquerading? All the users on this host,
zippy.af.mil, are users on af.mil. When joe sends a message to fred, the
message should say ``From: [EMAIL PROTECTED]'' and ``To: [EMAIL PROTECTED]'', without
``zippy'' anywhere.
Answer: echo af.mil > /var/qmail/control/defaulthost; chmod 644
/var/qmail/control/defaulthost.
Trying your suggestion above still doesn't deliver direct to a luser,
but does have the effect that mail sent to a remote host now fails.
`echo to: [EMAIL PROTECTED] | /var/qmail/bin/qmail-inject':
Jul 26 17:37:15 satellite qmail: 964658235.990973 new msg 413
Jul 26 17:37:15 satellite qmail: 964658235.992442 info msg 413: bytes
218 from <[EMAIL PROTECTED]> qp 485 uid 1000
Jul 26 17:37:15 satellite qmail: 964658235.997244 starting delivery
17: msg 413 to remote [EMAIL PROTECTED]
Jul 26 17:37:15 satellite qmail: 964658235.998048 status: local 0/10
remote 1/20
Jul 26 17:37:21 satellite qmail: 964658241.786083 delivery 17:
failure:
Connected_to_209.155.56.71_but_sender_was_rejected./Remote_host_said:_501_<[EMAIL PROTECTED]>..._Sender_domain_must_exist/
Jul 26 17:37:22 satellite qmail: 964658242.059378 status: local 0/10
remote 0/20
Jul 26 17:37:22 satellite qmail: 964658242.072006 bounce msg 413 qp 493
Jul 26 17:37:22 satellite qmail: 964658242.073210 end msg 413
So still the question remains, how to masquerade the HOST name of my
main mail server and be able to deliver to lusers directly.