<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/3.32.2">
</HEAD>
<BODY BGCOLOR="#ffffff">
Hi all,<BR>
thanks : you were right.<BR>
<BR>
The "www" record was missing for the principal domain of the server. It is necessary for BO because all aliases in virtusertable depends on "@www.systea.fr".<BR>
Now I know that for a BO box, a MX can be a CNAME if this CNAME point to a A record, but the domain (without hostname) and the www records must use a A record.<BR>
<BR>
And thanks for the link to intodns.com : useful !!<BR>
<BR>
Regards,<BR>
Frank<BR>
<BR>
Le samedi 21 mai 2011 à 15:27 +0100, Richard Morgan a écrit :
<BLOCKQUOTE TYPE=CITE>
<FONT SIZE="2">Hi Frank</FONT>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
<FONT SIZE="2">Charles spotted a good point. I used <A HREF="http://www.intodns.com">www.intodns.com</A> and both the domains are returning errors; sort these first and the trouble shooting of the aliases will be far easier:</FONT>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
<A HREF="http://www.intodns.com/systea.net">http://www.intodns.com/systea.net</A>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
<A HREF="http://www.intodns.com/systea.fr">http://www.intodns.com/systea.fr</A>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
<FONT SIZE="2">Regards, Richard</FONT>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
<BLOCKQUOTE>
----- Original Message -----
</BLOCKQUOTE>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
<BLOCKQUOTE>
<B>From:</B> <A HREF="mailto:charlesebowman@googlemail.com">Charles Bowman</A>
</BLOCKQUOTE>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
<BLOCKQUOTE>
<B>To:</B> <A HREF="mailto:blueonyx@mail.blueonyx.it">BlueOnyx General Mailing List</A>
</BLOCKQUOTE>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
<BLOCKQUOTE>
<B>Sent:</B> Saturday, May 21, 2011 2:40 PM
</BLOCKQUOTE>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
<BLOCKQUOTE>
<B>Subject:</B> [BlueOnyx:07340] Re: alias (virtusertable ?) issue
</BLOCKQUOTE>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
<BLOCKQUOTE>
<BR>
<BR>
</BLOCKQUOTE>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
<BLOCKQUOTE>
Hi Frank,
</BLOCKQUOTE>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
<BLOCKQUOTE>
<BR>
<BR>
</BLOCKQUOTE>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
<BLOCKQUOTE>
there appear to be DNS and hostname issues.
</BLOCKQUOTE>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
<BLOCKQUOTE>
<BR>
<BR>
</BLOCKQUOTE>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
<BLOCKQUOTE>
The hostname "<A HREF="http://systea.fr">systea.fr</A>" uses CNAME records.
</BLOCKQUOTE>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
<BLOCKQUOTE>
Will not work, use A records only.
</BLOCKQUOTE>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
<BLOCKQUOTE>
<BR>
<BR>
</BLOCKQUOTE>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
<BLOCKQUOTE>
Cheers,
</BLOCKQUOTE>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
<BLOCKQUOTE>
C
</BLOCKQUOTE>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
<BLOCKQUOTE>
<BR>
</BLOCKQUOTE>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
<BLOCKQUOTE>
On 21 May 2011 10:29, <A HREF="mailto:fsoyer@systea.net">fsoyer@systea.net</A> <<A HREF="mailto:fsoyer@systea.net">fsoyer@systea.net</A>> wrote:<BR>
<BLOCKQUOTE>
Hi guys<BR>
<BR>
On a BO box already in production, emails are working, but I now want<BR>
use mail aliases.<BR>
But all aliases return "user unknown...". It's like<BR>
virtusertable file was not used, but aliases.db ? I've no more idea.<BR>
Please heeeelp !<BR>
<BR>
I tried :<BR>
makemap hash /etc/mail/mailertable < /etc/mail/mailertable<BR>
makemap hash /etc/mail/access.db < /etc/mail/access<BR>
makemap hash /etc/mail/virtusertable.db < /etc/mail/virtusertable<BR>
/etc/init.d/sendmail restart<BR>
<BR>
and then to be sure :<BR>
cd /etc/mail<BR>
make clean<BR>
make<BR>
/etc/init.d/sendmail restart<BR>
<BR>
For example, I've an alias "frank.soyer" on a "fsoyer" user :<BR>
# sendmail -bv <A HREF="mailto:fsoyer@systea.net">fsoyer@systea.net</A><BR>
fsoyer@systea.net... deliverable: mailer local, user fsoyer<BR>
<BR>
# sendmail -bv <A HREF="mailto:frank.soyer@systea.net">frank.soyer@systea.net</A><BR>
frank.soyer@systea.net... User unknown<BR>
<BR>
I also have an alias "f.soyer" on this user. But on another domain<BR>
"<A HREF="http://systea.fr">systea.fr</A>" on the same host I have a *user* f.soyer.<BR>
Normally, <A HREF="mailto:f.soyer@systea.net">f.soyer@systea.net</A> should point to fsoyer in the domain<BR>
<A HREF="http://systea.net">systea.net</A>, but :<BR>
# sendmail -bv <A HREF="mailto:f.soyer@systea.net">f.soyer@systea.net</A><BR>
f.soyer@systea.net... deliverable: mailer local, user f.soyer<BR>
<BR>
And more : I tried alias names "support" and "info", and receive :<BR>
# sendmail -bv <A HREF="mailto:support@systea.net">support@systea.net</A><BR>
admin... deliverable: mailer local, user admin<BR>
# sendmail -bv <A HREF="mailto:info@systea.net">info@systea.net</A><BR>
admin... deliverable: mailer local, user admin<BR>
<BR>
"admin" ??? Oh yes : this two aliases are in aliases file, pointing to<BR>
the user admin !<BR>
So I suppose that sendmail use aliases.db but not virtusertable.db.<BR>
<BR>
Then :<BR>
# sendmail -d60.5 -bv <A HREF="mailto:frank.soyer@systea.net">frank.soyer@systea.net</A><BR>
map_lookup(dequote, root, %0=root) => NOT FOUND (0)<BR>
map_lookup(host, <A HREF="http://systea.net">systea.net</A>, %0=<A HREF="http://systea.net">systea.net</A>) => <A HREF="http://systea.net">systea.net</A>. (0)<BR>
map_lookup(virtuser, <A HREF="mailto:frank.soyer@systea.net">frank.soyer@systea.net</A>, %0=<A HREF="mailto:frank.soyer@systea.net">frank.soyer@systea.net</A>,<BR>
%1=frank.soyer) => NOT FOUND (0)<BR>
map_lookup(virtuser, @<A HREF="http://systea.net">systea.net</A>, %0=@<A HREF="http://systea.net">systea.net</A>, %1=frank.soyer) =><BR>
<A HREF="mailto:frank.soyer@www.systea.net">frank.soyer@www.systea.net</A> (0)<BR>
map_lookup(host, <A HREF="http://www.systea.net">www.systea.net</A>, %0=<A HREF="http://www.systea.net">www.systea.net</A>) => <A HREF="http://www2.systea.fr">www2.systea.fr</A>.<BR>
(0)<BR>
map_lookup(virtuser, <A HREF="mailto:frank.soyer@www2.systea.fr">frank.soyer@www2.systea.fr</A>, %<BR>
0=<A HREF="mailto:frank.soyer@www2.systea.fr">frank.soyer@www2.systea.fr</A>, %1=frank.soyer) => NOT FOUND (0)<BR>
map_lookup(virtuser, @<A HREF="http://www2.systea.fr">www2.systea.fr</A>, %0=@<A HREF="http://www2.systea.fr">www2.systea.fr</A>, %<BR>
1=frank.soyer) => NOT FOUND (0)<BR>
frank.soyer@systea.net... User unknown<BR>
<BR>
You see ? What is strange is the line :<BR>
map_lookup(host, <A HREF="http://www.systea.net">www.systea.net</A>, %0=<A HREF="http://www.systea.net">www.systea.net</A>) => <A HREF="http://www2.systea.fr">www2.systea.fr</A>.<BR>
(0)<BR>
where <A HREF="http://www2.systea.fr">www2.systea.fr</A> is the local hostname. On another BO working fine<BR>
(I use it to try to find differences with the sick one, without<BR>
success...) this line point to the vhost name (with the right domain<BR>
name) not to the hostname !<BR>
<BR>
And without surprise, I find :<BR>
# sendmail -d60.5 -bv <A HREF="mailto:info@systea.net">info@systea.net</A><BR>
map_lookup(dequote, root, %0=root) => NOT FOUND (0)<BR>
map_lookup(host, <A HREF="http://systea.net">systea.net</A>, %0=<A HREF="http://systea.net">systea.net</A>) => <A HREF="http://systea.net">systea.net</A>. (0)<BR>
map_lookup(dequote, info, %0=info) => NOT FOUND (0)<BR>
map_lookup(virtuser, <A HREF="mailto:info@systea.net">info@systea.net</A>, %0=<A HREF="mailto:info@systea.net">info@systea.net</A>, %1=info) =><BR>
NOT FOUND (0)<BR>
map_lookup(virtuser, @<A HREF="http://systea.net">systea.net</A>, %0=@<A HREF="http://systea.net">systea.net</A>, %1=info) =><BR>
<A HREF="mailto:info@www.systea.net">info@www.systea.net</A> (0)<BR>
map_lookup(host, <A HREF="http://www.systea.net">www.systea.net</A>, %0=<A HREF="http://www.systea.net">www.systea.net</A>) => <A HREF="http://www2.systea.fr">www2.systea.fr</A>.<BR>
(0)<BR>
map_lookup(dequote, info, %0=info) => NOT FOUND (0)<BR>
map_lookup(virtuser, <A HREF="mailto:info@www2.systea.fr">info@www2.systea.fr</A>, %0=<A HREF="mailto:info@www2.systea.fr">info@www2.systea.fr</A>, %<BR>
1=info) => NOT FOUND (0)<BR>
map_lookup(virtuser, @<A HREF="http://www2.systea.fr">www2.systea.fr</A>, %0=@<A HREF="http://www2.systea.fr">www2.systea.fr</A>, %1=info) =><BR>
NOT FOUND (0)<BR>
map_lookup(dequote, postmaster, %0=postmaster) => NOT FOUND (0)<BR>
map_lookup(dequote, root, %0=root) => NOT FOUND (0)<BR>
map_lookup(dequote, admin, %0=admin) => NOT FOUND (0)<BR>
admin... deliverable: mailer local, user admin<BR>
<BR>
returning the alias (from aliases.db) "info" to "admin" (via postmaster,<BR>
then root, then admin).<BR>
<BR>
A part of the virtusertable file :<BR>
<------ snip<BR>
<A HREF="mailto:support@www.systea.net">support@www.systea.net</A> support<BR>
<A HREF="mailto:info@www.systea.net">info@www.systea.net</A> support<BR>
@<A HREF="http://systea.net">systea.net</A> %<A HREF="mailto:1@www.systea.net">1@www.systea.net</A><BR>
<------ snip<BR>
<BR>
<A HREF="http://sendmail.mc">sendmail.mc</A> (I have regenerated <A HREF="http://sendmail.cf">sendmail.cf</A> from this one with m4) :<BR>
...<BR>
define(`ALIAS_FILE',`/etc/mail/aliases, /etc/mail/aliases.majordomo')dnl<BR>
...<BR>
FEATURE(`mailertable',`hash -o /etc/mail/mailertable.db')dnl<BR>
FEATURE(`virtusertable',`hash -o /etc/mail/virtusertable.db')dnl<BR>
FEATURE(redirect)dnl<BR>
FEATURE(always_add_domain)dnl<BR>
...<BR>
<BR>
So in the .cf I have<BR>
Kvirtuser hash -o /etc/mail/virtusertable.db<BR>
<BR>
<BR>
How many hours on that problem.......<BR>
Thank you for any suggestion ! :/<BR>
Frank<BR>
<BR>
_______________________________________________<BR>
Blueonyx mailing list<BR>
<A HREF="mailto:Blueonyx@mail.blueonyx.it">Blueonyx@mail.blueonyx.it</A><BR>
<A HREF="http://mail.blueonyx.it/mailman/listinfo/blueonyx">http://mail.blueonyx.it/mailman/listinfo/blueonyx</A>
</BLOCKQUOTE>
</BLOCKQUOTE>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
<BLOCKQUOTE>
<BR>
<HR ALIGN="center">
<BR>
<BR>
_______________________________________________<BR>
Blueonyx mailing list<BR>
Blueonyx@mail.blueonyx.it<BR>
http://mail.blueonyx.it/mailman/listinfo/blueonyx
</BLOCKQUOTE>
<PRE>
_______________________________________________
Blueonyx mailing list
<A HREF="mailto:Blueonyx@mail.blueonyx.it">Blueonyx@mail.blueonyx.it</A>
<A HREF="http://mail.blueonyx.it/mailman/listinfo/blueonyx">http://mail.blueonyx.it/mailman/listinfo/blueonyx</A>
</PRE>
</BLOCKQUOTE>
</BODY>
</HTML>