Mate Wierdl writes:
> Niels Jensen writes:
> > If I do this, then when I mail stuff remotely through my ISP's
> > mailserver, the return address for me is my work address, which I
> > do not want. Somehow I have to make qmail change my address to
> > [EMAIL PROTECTED] whenever mail is sent rmotely, and keep it to
> > nielsj, or [EMAIL PROTECTED] when mail is sent locally.
>
> virtualdomains to the rescue!
>
> echo '|forward $DEFAULT' >~alias/.qmail-foobar-default
> echo '[EMAIL PROTECTED]:alias-foobar' >>/var/qmail/control/virtualdomains
> (repeat this step for any other local users.)
>
> Does not he have to do
>
> echo '|forward $[EMAIL PROTECTED]' >~alias/.qmail-foobar-default
>
> instead of the first line? Otherwise @sonic.net (defaulthost) will be
> appended?
As configured, yes. It really depends on who he sends more mail to.
That's what defaults are for -- for the most usual circumstance. But
you're right, it ought to name his own host explicitly.
--
-russ nelson <[EMAIL PROTECTED]> http://crynwr.com/~nelson
Crynwr supports Open Source(tm) Software| PGPok | There is good evidence
521 Pleasant Valley Rd. | +1 315 268 1925 voice | that freedom is the
Potsdam, NY 13676-3213 | +1 315 268 9201 FAX | cause of world peace.