HELP: BIND or senmail config problem

Mark.Andrews at nominum.com Mark.Andrews at nominum.com
Tue May 15 15:01:04 UTC 2001


	http://www.sendmail.org/faq/section4.html#4.5

> 
> Dear all,
>     I setup a host with RH Linux. I want to use this host as DNS and
> mail server
> for a domain. ( e.g. mydomain.com).
> 
> When I send mail to root at lnux.mydomain.com, everything is fine.
> but when I send mail to  root at mydomain.com I got a " Local configuration
> error".
> What's wrong?
> 
> BTW: linux.mydomain.com and mydomain.com point to the same host.
> 
> Any suggestion
> Thanks in advance!!
> 
> -----------------------------------------------------------------------------
> ---------------
> 
> Here is the   named.host
> 
> $TTL 86400
> mydomain.com.             IN    SOA   linux   linux.eurotech.com.cn (
>                         20010420    ; serial
>                         10800       ; refresh after 3 hours
>                         3600        ; retry after 1 hour
>                         604800      ; expire after 7 days
>                         86400   )   ; minimum TTL of 1 day
>               IN    NS      linux   ; the name server
> mydomain.com.              IN    MX  10   linux.mydomain.com.   ; the
> mail server
> localhost     IN    A   127.0.0.1
> www           IN    CNAME   linux   ; some aliases
> ftp           IN    CNAME   linux
> mail          IN    CNAME   linux
> linux         IN    A   aa.bb.cc.dd  ; name definitions
> ns            IN    A   aa.bb.cc.dd  ; name definitions
> mydomain.com.         IN    A   210.74.148.52
> linux.mydomain.com. IN A 210.74.148.52
> localhost.mydomain.com. IN A 127.0.0.1
> 
> -----------------------------------------------------------------------------
> ---------------
> 
> Here is the modified redhat.mc
> 
> divert(-1)
> dnl This is the macro config file used to generate the /etc/sendmail.cf
> dnl file. If you modify thei file you will have to regenerate the
> dnl /etc/sendmail.cf by running this macro config through the m4
> dnl preprocessor:
> dnl
> dnl        m4 /etc/sendmail.mc > /etc/sendmail/cf
> dnl
> dnl You will need to have the sendmail-cf package installed for this to
> dnl work.
> include(`../m4/cf.m4')
> define(`confDEF_USER_ID',``8:12'')
> OSTYPE(`linux')
> undefine(`UUCP_RELAY')
> undefine(`BITNET_RELAY')
> define(`confAUTO_REBUILD')
> define(`confTO_CONNECT', `1m')
> define(`confTRY_NULL_MX_LIST',true)
> define(`confDONT_PROBE_INTERFACES',true)
> define(`PROCMAIL_MAILER_PATH',`/usr/bin/procmail')
> FEATURE(`relay_based_on_MX')
> FEATURE(`smrsh',`/usr/sbin/smrsh')
> FEATURE(`virtusertable',`hash -o /etc/mail/virtusertable')
> FEATURE(redirect)
> FEATURE(always_add_domain)
> FEATURE(use_cw_file)
> FEATURE(local_procmail)
> MAILER(procmail)
> MAILER(smtp)
> FEATURE(`access_db')
> FEATURE(`blacklist_recipients')
> dnl We strongly recommend to comment this one out if you want to protect
> 
> dnl yourself from spam. However, the laptop and users on computers that
> do
> dnl not hav 24x7 DNS do need this.
> FEATURE(`accept_unresolvable_domains')
> dnl FEATURE(`relay_based_on_MX')
> -----------------------------------------------------------------------------
> ---------------
> 
> Here is the error report:
> 
> Subject: Returned mail: Local configuration error
> From: Mail Delivery Subsystem <MAILER-DAEMON at linux.mydomain.com>
> 
> The original message was received at xxxxxxx
> from root at xxxxxxx
> 
>    ----- The following addresses had permanent fatal errors -----
> <root at mydomain.com>
> 
>    ----- Transcript of session follows -----
> 553 mydomain.com. config error: mail loops back to me (MX problem?)
> 554 <root at mydomain.com>... Local configuration error
> 
> Reporting-MTA: dns; linux.mydomain.com.
> Received-From-MTA: DNS; xxxxxxxxxxxxxx
> Arrival-Date: xxxxxxxxxxx
> 
> Final-Recipient: RFC822; root at mydomain.com
> Action: failed
> Status: 5.5.0
> Remote-MTA: DNS; mydomain.com
> Last-Attempt-Date: xxxxxxxxxxxxxxxxx
> 
> 
> Subject: root at mydomain.com
> Date:xxxxxxxxxxxx
> From:xxxxxxxxxxxx
> To: root at mydomain.com
> 
> root at mydomain.com
> 
> 
> 
--
Mark Andrews, Nominum Inc.
1 Seymour St., Dundas Valley, NSW 2117, Australia
PHONE: +61 2 9871 4742                 INTERNET: Mark.Andrews at nominum.com


More information about the bind-users mailing list