On Thursday 05 June 2003 12:20, Christophe Zwecker 
<[EMAIL PROTECTED]> wrote:
> >>I host domain bar and I receive a mail [EMAIL PROTECTED] which I
> >> want to sent to [EMAIL PROTECTED] there is not local user
> >> foo on my machine.
> >>
> >>so I put bar in hosteddomains and this in aliases:
> >>
> >>[EMAIL PROTECTED]:      [EMAIL PROTECTED]
> >>
> >>but I always get 550 User unknown.
> >>
> >>what do I have to setup so I can forward those mails ?
> >
> > Remove 'bar' from hosteddomains.
>
> ok, I did and performed makehosteddomains  but same
> result,
>
> as I said if I put foo: [EMAIL PROTECTED] in aliases it works
> but [EMAIL PROTECTED]: [EMAIL PROTECTED] gives me that error. but the
> first would mean mail to foo and anydomain I host will be
> sent to [EMAIL PROTECTED]

What is in your defaultdomain file?  If you haven't 
specified it then it's the same as the server name or the 
me file.   "foo: [EMAIL PROTECTED]" works because courier sees 
there's no domain after "foo" and appends the default 
domain.   Do "makealiases -dump" and you'll see that it 
doesn't say "foo: [EMAIL PROTECTED]" but rather 
"[EMAIL PROTECTED]: [EMAIL PROTECTED]"  This does NOT mean any 
address "foo" will be sent to alias.  Courier adds the 
default domain if you don't specify it.  There's no way to 
say "[EMAIL PROTECTED]" forwards to another account.  You've 
got to list them all separately.

You need to make sure that you've got your locals and 
hosteddomain files set up correctly.  Is "bar" your local 
domain? In which case it needs to be in "locals".  If not 
it needs to be in hosteddomains.  If it's neither (you just 
want to forward mail) then it should be in neither.  But 
regardless it needs to be in esmtpacceptmailfor.

What is specified in locals, hosteddomains and 
esmtpacceptmailfor?  

Jeff Jansen


-------------------------------------------------------
This SF.net email is sponsored by:  Etnus, makers of TotalView, The best
thread debugger on the planet. Designed with thread debugging features
you've never dreamed of, try TotalView 6 free at www.etnus.com.
_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to