Index: [Article Count Order] [Thread]

Date:  Thu, 5 Apr 2007 06:14:49 -0700
From:  "Nick Baba" <dr.polo (at mark) cox.net>
Subject:  [coba-e:09468] Re: sendmail: "user unknown" only on aliases
To:  <coba-e (at mark) bluequartz.org>
Message-Id:  <010a01c77784$63e5ee30$640b0b0a@trektop>
In-Reply-To:  <1175774530.2788.79.camel@silverbird>
References:  <1175766217.2788.57.camel (at mark) silverbird> <200704051217.58698.bq (at mark) solarspeed.net> <1175774530.2788.79.camel (at mark) silverbird>
X-Mail-Count: 09468

Actually, I found that stopping and re-starting the mail services using the
supplied command line code:


/etc/init.d/sendmail stop
killall -9 sendmail
/etc/init.d/sendmail start

Via remote access using the Java application (Mindterm) thru the GUI has
solved the problems I encounted regarding email each time I set up a new
domain on my two new servers running BlueQuartz.

I was trying to accomplish the same thing by un-checking, saving,
re-checking, saving the mail server through the GUI but that did not work.

Maybe a "button" thru the GUI in a future BlueQuartz update pkg that does
that same thing as the three lines of code above would be a handy item to
stop and restart the mail services, but no big deal to use the command line.

The main thing is knowing that there is an issue and to stop and re-start
the mail services after you add a new domain and users if one is having mail
issues.

Thanks!

                   Nick Baba

                   dr.polo (at mark) cox.net 

                   cell: 949.689.0500
-----Original Message-----
From: Roman Buerkle [mailto:buerkle (at mark) stimme.net] 
Sent: Thursday, April 05, 2007 5:02 AM
To: coba-e (at mark) bluequartz.org
Subject: [coba-e:09467] Re: sendmail: "user unknown" only on aliases


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.
>