Index: [Article Count Order] [Thread]

Date:  Thu, 05 Apr 2007 14:02:09 +0200
From:  Roman Buerkle <buerkle (at mark) stimme.net>
Subject:  [coba-e:09467] Re: sendmail: "user unknown" only on aliases
To:  coba-e (at mark) bluequartz.org
Message-Id:  <1175774530.2788.79.camel@silverbird>
In-Reply-To:  <200704051217.58698.bq (at mark) solarspeed.net>
References:  <1175766217.2788.57.camel (at mark) silverbird>	 <200704051217.58698.bq (at mark) solarspeed.net>
X-Mail-Count: 09467


Hi Michael,

well, the first cause i checked before i wrote to the list. 

But the second hint was the solution... OMG i didn't know that C-NAMES
are THAT EVIL!

Thanx again Michael! 

Greetz 
Roman
 

On Thu, 2007-04-05 at 11:17 +0100, Michael Stauber wrote:
> Hi Roman,
> 
> > i just set up another new BQ-server, set up a new site, set up a new
> > user ("roman") , gave him an alias ("rob").
> >
> > Sending mails to the user roman works, but sending mails to user rob
> > results in "user unknown".
> 
> There are two possible causes:
> 
> 1.) Sendmail config: 
> ================
> 
> The map files of Sendmail either weren't updated properly (by makemap) or 
> Sendmail wasn't restarted so that the change couldn't take effect. Usually 
> the GUI will do this automatically for you, but there are known cases where 
> this may fail.
> 
> Fix: Run these two commands from SSH as root and see if you get errors:
> 
> makemap hash /etc/mail/aliases.db < /etc/mail/aliases
> makemap hash /etc/mail/virtusertable.db < /etc/mail/virtusertable 
> 
> If you get errors, then the error message will tell you in which line of which 
> config file the problem is.  So it's usually easy to fix.
> 
> Once you get no more errors, restart Sendmail:
> 
> /etc/init.d/sendmail stop
> killall -9 sendmail
> /etc/init.d/sendmail start
> 
> Then try again to email to "rob" and see if it gets through.
> 
> 2.) DNS issue:
> ============
> 
> If you are using C-Names in your DNS for the domain in question, then the 
> Sendmail on BlueQuartz will not accept emails for aliases, as it's unable to 
> resolve the domain part of the recipients email address and can't therefore 
> map the alias to the real user. Do NOT use C-Names! C-Names are evil.
>