On 6 Sep 1999, Harald Meland wrote:
> [Jeremy C. Reed]
>
> > I am trying to set up virtual emails but I can't get it to deliver
> > locally.
>
> And local_domains is set appropriately?
>
> > For example, I want all email that doesn't match to deliver locally
> > to user "reed."
> >
> > It seems to add my qualify_domain to the unqualified address.
>
> Yup -- unless your aliasfile director has set the option
> `qualify_preserve_domain'.
>
> > So my question is: how can I get it to try to deliver locally if it
> > doesn't have a domain address?
>
> As Exim insists that every address it handles has a domain attached,
> you can't. But, as you can control with what domain an unqualified
> address gets qualified, you can put the qualifying domain in
> local_domains.
> --
> Harald
>
Sorry. I didn't explain my situation correctly.
I tried to set up virtual hosts by adding:
local_domains = "lsearch;/etc/mail/local_domains"
virtual:
driver = aliasfile
domains = lsearch;/etc/mail/local_domains
no_more
rewrite = false
file = /etc/mail/domains/${lc:${length_1:${domain}}/${domain}}
search_type = lsearch*
But now it will check for the second virtual domain container which is
local. How can I just get it to deliver locally! (I can do it with out my
added virtual configuration above but then lambert@??? and
lambert@??? will deliver in the same mailbox.)
I want my domain file to be like this:
for reedmedia.com
*: reed
heather: reedhr@???
where everything other than heather will be delivered locally to reed's
box.
sendmail -d9 -bv jeJJremy@???
outputs this at the end (sigmahosting.com is teh local machine name)
if I don't have sigmahosting.com in my /etc/mail/local_domains luist.
lowest MX record for sigmahosting.com points to local host
lookuphost router: error for sigmahosting.com
message: lowest numbered MX record points to local host
reed@??? cannot be resolved at this time:
lowest numbered MX record points to local host
If it is in the list then I get:
trying to match *
internal_search_find: file="/etc/mail/domains/s/sigmahosting.com"
type=lsearch key="*"
file lookup required for *
in /etc/mail/domains/s/sigmahosting.com
lookup failed
virtual director failed for reed:
reed@??? failed to verify:
unknown local-part "reed" in domain "sigmahosting.com"
search_tidyup called
If I add
reed: reed
in my /etc/mail/domains/s/sigmahosting.com file I get:
cached data used for lookup of sigmahosting.com
in /etc/mail/local_domains
lookup yielded:
virtual director has more set FALSE
virtual director skipped: previously directed reed@???
reed@??? failed to verify:
unknown local-part "reed" in domain "sigmahosting.com"
search_tidyup called
How can I get it to deliver locally?
Any suggestions, direct URLs etc. would be appreciated. Thanks.
Jeremy C. Reed
------------------------------------------------------------
http://www.reedmedia.net