> hi, all.
> here is my situation:
> qmail 1.03 on redhat 6.1 linux. I also installed tcpserver, checkpassword.
> 2 machines.
>    head.paic.com ( IP: 10.16.103.100) , running DNS, qmail1.03, tcpserver, 
>checkpassword.
>
>    alpha.paic.com ( IP: 10.16.103.102), qmail 1.03, tcpserver, checkpassword.
>    no DNS running on this machine. use 10.16.103.100 as a name server.
>
> content in head.paic.com's dns setting file:
> ++++++++++++++++++++++++++++++++++++++++++++++++++
> @               IN      SOA     head.paic.com.  hostsmaster.paic.com (
>                         2000042801 ; serial
>                         108000 ; refresh
>                         18000 ; retry
>                         1900000 ; expire
>                         180000 ; default_ttl
>                         )
> @               IN      MX      0

This MX record is BLANK for the paic.com domain,
you have forgotten to set the hostname of your mailserver(s).


> @               IN      NS      head.paic.com

You have also left out trailing dots in your hostnames!
(you missed it at the TOP aswell, but that was an uncritical record)


> head            IN      A       10.16.103.100

There is no MX for head.paic.com domain.


> alpha           IN      A       10.16.103.102
>                 IN      MX      10

This MX record is BLANK for the alpha.paic.com domain,
you have forgotten to set the hostname of your mailserver(s).


> if i send a mail from head.paic.com to alpha.paic.com, a error message will display:
> ++++++++++++++++++++++++++++++++++++++
> May 16 06:30:22 localhost qmail: 958429822.865096 starting delivery 24: msg 4820 1 
>to remote [EMAIL PROTECTED]
> May 16 06:30:22 localhost qmail: 958429822.865213 status: local 0/10 remote 1/20
> May 16 06:30:22 localhost qmail: 958429822.871568 delivery 24: deferral:
> Sorry,_I_couldn't_find_any_host_by_that_name._(#4.1.2)/
> May 16 06:30:22 localhost qmail: 958429822.871642 status: local 0/10 remote 0/20

The result, "couldn't find hostname" isn't to strange when you forget to set one :D


> did anyone has any experience in qmail + dns in a intranet?
> or could u pls give me some advice on my configuration.

Only advice I can give is an example zone file:

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
@                       IN      SOA     head hostmaster (
                                        2000051713
                                        28800
                                        7200
                                        604800
                                        86400)
;
;  Zone NS Records
;
                        IN      NS      head
;
;  Zone Records
;
@                       IN      MX      10      head
                        IN      MX      20      alpha
head                    IN      A       10.16.103.100
                        IN      MX      10      head
                        IN      MX      20      alpha
alpha                   IN      A       10.16.103.102
                        IN      MX      10      head
                        IN      MX      20      alpha
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

In this case I didn't use trailing dots because in the paic.com zone,
all hostnames without a trailing dot will have .paic.com. added to them.
In this case I've also made to MX records for each of the three mail domains,
and the "master" mailserver for all is head.paic.com. for them all.
Since only head.paic.com & alpha.paic.com is in the rcpthosts file for qmail,
you will need to add paic.com if you'll ever want the top MX record to work.

BTW: you'll need to set this up in your "virtualdomains" file for qmail aswell!


Regards André Paulsberg


Reply via email to