Help - Search - Members - Calendar
Full Version: Exim: blacklisted, or missing the proper dns entries
The Planet Forums > System Administration > Mail Hosting
calvi
Hi,

Since switching from an Ensim server running Sendmail and MailScanner to a cPanel one running Exim and ASSP, a significant number of mails from a local user fail to deliver for this reason:

CODE
    The mail server could not deliver mail to
    someone@somewhere.com.  The account or domain may not
    exist, they may be blacklisted, or missing the proper dns entries.


These recipients have placed online orders and paid for the goods, so it's unlikely that their accounts do not exist, and I've checked that the domains are OK, so that leaves blacklisted, or missing the proper dns entries. ASSP is is not blacklisting the domains, and rbl_domains is commented out in exim.conf. The most likely cause is this entry in exim.conf:

CODE
#
# Trap Failures to Remote Domain
#

fail_remote_domains:
  driver = redirect
  domains = ! +local_domains : ! localhost : ! localhost.localdomain
  allow_fail
  data = ":fail: The mail server could not deliver mail to $local_part@$domain.
  The account or domain may not exist, they may be blacklisted, or missing the
  proper dns entries."


Can anyone advise me how to bypass that trap, and if doing so might have dangerous side effects? (I would have posted this at exim-users.org, but that site has disabled new user registration.)

Thanks!
amarzouk
I am getting the same error when any user from my server tries to send to a certain domain at another server, the strange thing is that when I send to that other server from yahoo it reaches without problems. When I run the command "exim -bt -d+all sherif@culturewheel.com" this is what I get
CODE
00:31:29 16567 Exim version 4.68 uid=0 gid=0 pid=16567 D=fffdffff
Berkeley DB: Sleepycat Software: Berkeley DB 4.2.52: (December 11, 2004)
Support for: crypteq iconv() PAM Perl OpenSSL Content_Scanning Old_Demime Experimental_DomainKeys
Lookups: lsearch wildlsearch nwildlsearch iplsearch dbm dbmnz
Authenticators: cram_md5 plaintext spa
Routers: accept dnslookup ipliteral manualroute queryprogram redirect
Transports: appendfile/maildir autoreply pipe smtp
Size of off_t: 8
00:31:29 16567 changed uid/gid: forcing real = effective
00:31:29 16567 uid=0 gid=0 pid=16567
00:31:29 16567 auxiliary group list: <none>
00:31:29 16567 seeking password data for user "root": cache not available
00:31:29 16567 getpwnam() succeeded uid=0 gid=0
00:31:29 16567 configuration file is /etc/exim.conf
00:31:29 16567 log selectors = 00000ffc 00212001
00:31:29 16567 trusted user
00:31:29 16567 admin user
00:31:29 16567 seeking password data for user "mailman": cache not available
00:31:29 16567 getpwnam() succeeded uid=32001 gid=32001
00:31:29 16567 seeking password data for user "mailman": using cached result
00:31:29 16567 getpwnam() succeeded uid=32001 gid=32001
00:31:29 16567 originator: uid=0 gid=0 login=root name=root
00:31:29 16567 sender address = root@mail1.mydomain.com
00:31:29 16567 Address testing: uid=0 gid=12 euid=0 egid=12
00:31:29 16567 >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
00:31:29 16567 Testing sherif@culturewheel.com
00:31:29 16567 >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
00:31:29 16567 Considering sherif@culturewheel.com
00:31:29 16567 >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
00:31:29 16567 routing sherif@culturewheel.com
00:31:29 16567 --------> mailman_virtual_router router <--------
00:31:29 16567 local_part=sherif domain=culturewheel.com
00:31:29 16567 checking require_files
00:31:29 16567 expanding: $local_part
00:31:29 16567 result: sherif
00:31:29 16567 expanding: $domain
00:31:29 16567 result: culturewheel.com
00:31:29 16567 expanding: /usr/local/cpanel/3rdparty/mailman/lists/${lc:$local_part}_${lc:$domain}/config.pck
00:31:29 16567 result: /usr/local/cpanel/3rdparty/mailman/lists/sherif_culturewheel.com/config.pck
00:31:29 16567 file check: /usr/local/cpanel/3rdparty/mailman/lists/${lc:$local_part}_${lc:$domain}/config.pck
00:31:29 16567 expanded file: /usr/local/cpanel/3rdparty/mailman/lists/sherif_culturewheel.com/config.pck
00:31:29 16567 stat() yielded -1
00:31:29 16567 errno = 2
00:31:29 16567 mailman_virtual_router router skipped: file check
00:31:29 16567 --------> mailman_virtual_router_nodns router <--------
00:31:29 16567 local_part=sherif domain=culturewheel.com
00:31:29 16567 checking domains
00:31:29 16567 search_open: lsearch "/etc/localdomains"
00:31:29 16567 search_find: file="/etc/localdomains"
00:31:29 16567 key="culturewheel.com" partial=-1 affix=NULL starflags=0
00:31:29 16567 LRU list:
00:31:29 16567 :/etc/localdomains
00:31:29 16567 End
00:31:29 16567 internal_search_find: file="/etc/localdomains"
00:31:29 16567 type=lsearch key="culturewheel.com"
00:31:29 16567 file lookup required for culturewheel.com
00:31:29 16567 in /etc/localdomains
00:31:29 16567 lookup failed
00:31:29 16567 culturewheel.com in "lsearch;/etc/localdomains"? no (end of list)
00:31:29 16567 culturewheel.com in "+local_domains"? no (end of list)
00:31:29 16567 mailman_virtual_router_nodns router skipped: domains mismatch
00:31:29 16567 --------> democheck router <--------
00:31:29 16567 local_part=sherif domain=culturewheel.com
00:31:29 16567 checking require_files
00:31:29 16567 file check: +/etc/demousers
00:31:29 16567 expanded file: /etc/demousers
00:31:29 16567 stat() yielded 0
00:31:29 16567 checking "condition"
00:31:29 16567 expanding: democheck
00:31:29 16567 result: democheck
00:31:29 16567 Starting Perl interpreter
00:31:30 16567 expanding: $originator_uid
00:31:30 16567 result: 0
00:31:30 16567 expanding: ${perl{democheck}}
00:31:30 16567 result: no
00:31:30 16567 democheck router skipped: condition failure
00:31:30 16567 --------> boxtrapper_autowhitelist router <--------
00:31:30 16567 local_part=sherif domain=culturewheel.com
00:31:30 16567 checking require_files
00:31:30 16567 file check: +/usr/local/cpanel/bin/boxtrapper
00:31:30 16567 expanded file: /usr/local/cpanel/bin/boxtrapper
00:31:30 16567 stat() yielded 0
00:31:30 16567 checking "condition"
00:31:30 16567 expanding: checkbx_autowhitelist
00:31:30 16567 result: checkbx_autowhitelist
00:31:30 16567 expanding: $authenticated_id
00:31:30 16567 result: root
00:31:30 16567 expanding: $primary_hostname
00:31:30 16567 result: mail1.mydomain.com
00:31:30 16567 expanding: $received_protocol
00:31:30 16567 result:
00:31:30 16567 expanding: ${perl{checkbx_autowhitelist}{$authenticated_id}}
00:31:30 16567 result: no
00:31:30 16567 boxtrapper_autowhitelist router skipped: condition failure
00:31:30 16567 --------> checkspam2 router <--------
00:31:30 16567 local_part=sherif domain=culturewheel.com
00:31:30 16567 checking domains
00:31:30 16567 cached no match for +local_domains
00:31:30 16567 cached lookup data = NULL
00:31:30 16567 culturewheel.com in "! +local_domains"? yes (end of list)
00:31:30 16567 checking "condition"
00:31:30 16567 expanding: checkspam2
00:31:30 16567 result: checkspam2
00:31:30 16567 expanding: $originator_uid
00:31:30 16567 result: 0
00:31:30 16567 expanding: $originator_gid
00:31:30 16567 result: 0
00:31:30 16567 expanding: $primary_hostname
00:31:30 16567 result: mail1.mydomain.com
00:31:30 16567 expanding: $sender_address
00:31:30 16567 result: root@mail1.mydomain.com
00:31:30 16567 expanding: $message_headers
00:31:30 16567 result:
00:31:30 16567 expanding: $original_domain
00:31:30 16567 result: culturewheel.com
00:31:30 16567 expanding: $sender_address_domain
00:31:30 16567 result: mail1.mydomain.com
00:31:30 16567 expanding: $message_size
00:31:30 16567 result: 0
00:31:30 16567 expanding: ${perl{checkspam2}}
00:31:30 16567 result: no
00:31:30 16567 checkspam2 router skipped: condition failure
00:31:30 16567 --------> dk_lookuphost router <--------
00:31:30 16567 local_part=sherif domain=culturewheel.com
00:31:30 16567 checking domains
00:31:30 16567 cached no match for +local_domains
00:31:30 16567 cached lookup data = NULL
00:31:30 16567 culturewheel.com in "! +local_domains"? yes (end of list)
00:31:30 16567 checking require_files
00:31:30 16567 expanding: /var/cpanel/domain_keys/private/${sender_address_domain}
00:31:30 16567 result: /var/cpanel/domain_keys/private/mail1.mydomain.com
00:31:30 16567 file check: /var/cpanel/domain_keys/private/${sender_address_domain}
00:31:30 16567 expanded file: /var/cpanel/domain_keys/private/mail1.mydomain.com
00:31:30 16567 stat() yielded -1
00:31:30 16567 errno = 2
00:31:30 16567 dk_lookuphost router skipped: file check
00:31:30 16567 --------> lookuphost router <--------
00:31:30 16567 local_part=sherif domain=culturewheel.com
00:31:30 16567 checking domains
00:31:30 16567 cached no match for +local_domains
00:31:30 16567 cached lookup data = NULL
00:31:30 16567 culturewheel.com in "! +local_domains"? yes (end of list)
00:31:30 16567 calling lookuphost router
00:31:30 16567 lookuphost router called for sherif@culturewheel.com
00:31:30 16567 domain = culturewheel.com
00:31:30 16567 DNS lookup of culturewheel.com (MX) succeeded
00:31:30 16567 Actual local interface address is 127.0.0.1 (lo)
00:31:30 16567 Actual local interface address is 67.19.216.122 (eth0)
00:31:30 16567 Actual local interface address is 67.19.216.123 (eth0:1)
00:31:30 16567 Actual local interface address is 67.19.216.124 (eth0:2)
00:31:30 16567 Actual local interface address is 67.19.216.125 (eth0:3)
00:31:30 16567 Actual local interface address is 67.19.216.126 (eth0:4)
00:31:30 16567 fully qualified name = culturewheel.com
00:31:30 16567 host_find_bydns yield = HOST_FIND_FAILED (0); returned hosts:
00:31:30 16567 216.127.92.10 <null> MX=0 *
00:31:30 16567 lookuphost router declined for sherif@culturewheel.com
00:31:30 16567 --------> literal router <--------
00:31:30 16567 local_part=sherif domain=culturewheel.com
00:31:30 16567 checking domains
00:31:30 16567 cached no match for +local_domains
00:31:30 16567 cached lookup data = NULL
00:31:30 16567 culturewheel.com in "! +local_domains"? yes (end of list)
00:31:30 16567 calling literal router
00:31:30 16567 literal router called for sherif@culturewheel.com: domain = culturewheel.com
00:31:30 16567 literal router declined for sherif@culturewheel.com
00:31:30 16567 --------> fail_remote_domains router <--------
00:31:30 16567 local_part=sherif domain=culturewheel.com
00:31:30 16567 checking domains
00:31:30 16567 cached no match for +local_domains
00:31:30 16567 cached lookup data = NULL
00:31:30 16567 culturewheel.com in "! +local_domains : ! localhost : ! localhost.localdomain"? yes (end of list)
00:31:30 16567 calling fail_remote_domains router
00:31:30 16567 rda_interpret (string): :fail: The mail server could not deliver mail to $local_part@$domain. The account or domain may not exist, they may be blacklisted, or missing the proper dns entries.
00:31:30 16567 expanding: :fail: The mail server could not deliver mail to $local_part@$domain. The account or domain may not exist, they may be blacklisted, or missing the proper dns entries.
00:31:30 16567 result: :fail: The mail server could not deliver mail to sherif@culturewheel.com. The account or domain may not exist, they may be blacklisted, or missing the proper dns entries.
00:31:30 16567 expanded: :fail: The mail server could not deliver mail to sherif@culturewheel.com. The account or domain may not exist, they may be blacklisted, or missing the proper dns entries.
00:31:30 16567 file is not a filter file
00:31:30 16567 parse_forward_list: :fail: The mail server could not deliver mail to sherif@culturewheel.com. The account or domain may not exist, they may be blacklisted, or missing the proper dns entries.
00:31:30 16567 extract item: :fail: The mail server could not deliver mail to sherif@culturewheel.com. The account or domain may not exist
00:31:30 16567 fail_remote_domains router forced address failure
sherif@culturewheel.com is undeliverable: The mail server could not deliver mail to sherif@culturewheel.com. The account or domain may not exist, they may be blacklisted, or missing the proper dns entries.
00:31:30 16567 search_tidyup called
00:31:30 16567 >>>>>>>>>>>>>>>> Exim pid=16567 terminating with rc=2 >>>>>>>>>>>>>>>>
Panther13
I am also experiencing this same issue after transfering to a new cPanel 11 dedicated server. Has anyone found a solution to this issue. If so, could you please post the fix.

TIA!
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.