"F.V.V." wrote:
> 
> Hello
> 
> PLEASE HELP ! /\ !
> I installed Connectiva Red Hat Linux on a standalone machine.
> No Ethernet card. I configured some IPs using linuxconf
> 
> My IPs are      127.0.0.1       localhost
>                 200.137.128.1   dns.aldeia.com.br
>                 200.137.128.1   pop.aldeia.com.br
>                 200.137.128.1   mail.aldeia.com.br
> 
>                 200.137.128.10  www.aldeia.com
>                 200.137.128.11  www1.aldeia.com
> 
> All this work, Apache serves 3 different pages for all these IPs, acessed by
> IP AND by names.
> 
> My mail is not getting anywhere. I tried 'mailq' command and it shows that
> mail is not being delivered.
> 
> I am trying to send mail to adresses :  [EMAIL PROTECTED]
>                                         [EMAIL PROTECTED]
>                                         [EMAIL PROTECTED]
>                                         [EMAIL PROTECTED]
>                                         [EMAIL PROTECTED]
> 
> Nothing works. Account frank is ordinary user account.
> I've created an account frankva as 'POP user' and tried to mail to
> frankva@... but the result is the same...nothing.
> 
> I opened /var/log/maillig and it looks terrible showing things like
> 'operating system error....
> 
> I suspect that the problem might be missing MX records. I configured DNS
> using linuxconf but there's nothing about MX records. I read lots of stuff
> about what the MXrecords are good for but I haven't figured out how to
> actually add them.
> 
> Thanks for any help
> Frank

First you would have to find your DNS "database" or DB files.  This are
ussally under /usr/local/named.  They can be called anything you want,
but most people call them db.domain.com.  If you can't find them under
/usr/local/named open the file /etc/named in a text editor or with the
more (or less) command.  That will tell you will the files are located.

Once you find you db files, you will have to edit them as root with your
favorite text editor.  If you are using Bind 4.XX add a lines that looks
like this


dns.aldeia.com.br.      IN MX   2 mail.aldeia.com.br.


What this does is tell DNS that domain dns.aldeia.com.br needs an MX
(Mail Exchange) record pointing to the mail host mail.aldeia.com.br. 
The number 2, is used to decide which mail server to send it to first. 
If you have 4 mail servers and want to send it to a XYZ machine if ZYX
is down, you would set each MX with a differant number.  It will try to
send to the lowest number first, it that doesn't work, it will try the
next lowest number and so on.  If you have only 1 MX record, use the
number 2.

If you are running Bind 8 (more than likely) the sytnax /might/ be
alittle differant.  If I remeber correctly the db files sytnax didn't
change to much.

One thing to note, in db files it is a good idea to put a dot at the end
of any domain names, like dns.aledia.com.br. dns dot aledia dot com dot
br dot

After you have the db files edited, you will need to restart named, send
it's PID a HUP signal. 

You can also use nslookup to see if the MX records are already there or
not.

just type nslookup a the command line, this will put your in interactive
mode

then type "set type=mx" that will set the type of record to get to MX
then type the name of the domain.

This will return info about the MX record, etc.  I did a nslookup on
mail.aldeia.com.br and it is using aldeia.com.br as it's mail
exchange..... 

Hope that helps,
Jack

Reply via email to