Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Member
    Join Date
    Jan 2002
    Posts
    74

    Default URGENT: Exim routing problem...

    I have a client who cannot send email through our server. He keeps getting bounced mail and the exim_rejectlog reports this:

    2002-09-02 16:38:48 refused relay (host) to &b4@marketingtoolshed.com& from &client@clientsdomain.com& H=(web3.assortedinternet.com) [216.40.242.60] (failed to find host name from IP address)

    But, what I don't get is, their sending from the localhost. So I ran some diagnostics with exim:

    root@web3 [/etc]# exim -d9 -bh 216.40.242.60
    Exim version 3.35 debug level 9 uid=0 gid=0
    Berkeley DB: Sleepycat Software: DB 2.4.14: (6/2/98)
    Caller is an admin user
    Caller is a trusted user
    originator: uid=0 gid=0 login=root name=root
    sender address = root@web3.assortedinternet.com
    sender_fullhost = [216.40.242.60]
    sender_rcvhost = [216.40.242.60]

    **** SMTP testing session as if from host 216.40.242.60
    **** Not for real!

    host in host_lookup? no (!0.0.0.0/0)
    host in host_reject? no (end of list)
    host in host_reject_recipients? no (option unset)
    host in auth_hosts? no (option unset)
    host in auth_over_tls_hosts? no (option unset)
    host in tls_hosts? no (option unset)
    host in sender_unqualified_hosts? yes (216.40.242.0/24)
    host in receiver_unqualified_hosts? no (option unset)
    host in helo_verify? no (option unset)
    host in helo_accept_junk_hosts? no (option unset)
    SMTP&& 220-web3.assortedinternet.com ESMTP Exim 3.35 #1 Mon, 02 Sep 2002 16:39:19 -0400
    220-We do not authorize the use of this system to transport unsolicited,
    220 and/or bulk e-mail.
    220-web3.assortedinternet.com ESMTP Exim 3.35 #1 Mon, 02 Sep 2002 16:39:19 -0400
    220-We do not authorize the use of this system to transport unsolicited,
    220 and/or bulk e-mail.
    smtp_setup_msg entered


    So, as you can see, its blocking mail from that IP. But, that is a local IP! What the hell??

    root@web3 [/etc]# ifconfig
    eth0 Link encap:Ethernet HWaddr 00:07:95:5B7:E6
    inet addr:216.40.242.219 Bcast:216.40.242.255 Mask:255.255.255.0
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:1380723 errors:0 dropped:0 overruns:0 frame:0
    TX packets:1477611 errors:0 dropped:0 overruns:0 carrier:0
    collisions:16577 txqueuelen:100
    Interrupt:12 Base address:0xd400

    eth0:1 Link encap:Ethernet HWaddr 00:07:95:5B7:E6
    inet addr:216.40.242.239 Bcast:216.40.242.255 Mask:255.255.255.0
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    Interrupt:12 Base address:0xd400

    eth0:2 Link encap:Ethernet HWaddr 00:07:95:5B7:E6
    inet addr:216.40.242.52 Bcast:216.40.242.255 Mask:255.255.255.0
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    Interrupt:12 Base address:0xd400

    eth0:3 Link encap:Ethernet HWaddr 00:07:95:5B7:E6
    inet addr:216.40.242.53 Bcast:216.40.242.255 Mask:255.255.255.0
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    Interrupt:12 Base address:0xd400

    eth0:4 Link encap:Ethernet HWaddr 00:07:95:5B7:E6
    inet addr:216.40.242.60 Bcast:216.40.242.255 Mask:255.255.255.0
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    Interrupt:12 Base address:0xd400


    Any ideas what might be going on? Help is greatly appreciated.

    Thanks - Brian

  2. #2
    Member rpmws's Avatar
    Join Date
    Aug 2001
    Location
    back woods of NC, USA
    Posts
    1,858

    Default

    For 3-4 days I have been getting this every 3 seconds in my exim_maillog

    2002-09-04 00:55:39 17mSCZ-0007T2-00 remote host address is the local host: localhost.myservername.com

    2002-09-04 00:55:39 17mSCZ-0007T2-00 rejected from tomts14.bellnexxia.net (tomts14-srv.bellnexxia.net) [209.226.175.35]: can't currently verify any sender in the header lines (envelope sender is &mail-daemon@tomts21.bellnexxia.net&amp - try later


    For teh life of me would like to find out who or what account is causing this .Who it is .. it just won't stop.
    Just keeping my "eye" on things....
    R. Paul Mathews
    RPMWS - diehard cPanel Nutcase

  3. #3
    Member
    Join Date
    Sep 2001
    Location
    Spain
    Posts
    779

    Default

    Is clientdomain.com in the localdomains file? If Exim first determines that it's a remote host (because it's not in the localdomains file) and then finds that it's a local host (because its MX records points to the server), it won't try to deliver the message.

  4. #4
    Member
    Join Date
    Jan 2002
    Posts
    74

    Default

    Actually, I figured it out already.

    Basically what happens in exim is whenever you use a:

    lsearch;/etc/whatever

    in a rule, like host_accept, exim will not process anything after that in the rule, so if you specify the rule like this:

    host_accept = lsearch;/etc/whatever : 1.2.3.4

    and your sending mail from the IP 1.2.3.4 which is not in /etc/whatever, it will bounce the message. This happens because it doesn't read anything in the rule after the lsearch. So you need to re-order the specification of the rule like so:

    host_accept = 1.2.3.4 : lsearch;/etc/whatever

    Now it will check 1.2.3.4 before it does the search and it will allow the mail to go through.

    Strange, but that was the problem. :-0

    Thanks for your help.

    Brian

Similar Threads & Tags
Similar threads

  1. Exim Compiling problem on Freebsd 7.1, urgent
    By lgadmin in forum E-mail Discussions
    Replies: 1
    Last Post: 09-16-2009, 09:26 AM
  2. Exim routing...
    By dr2web in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 02-16-2006, 01:35 PM
  3. Null routing mail in Exim
    By Ben-Orbital in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 10-14-2004, 10:06 AM
  4. Urgent exim 4 problem , 501 error
    By promak in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 08-09-2004, 02:04 AM
  5. Spamassassin/exim routing issue
    By JustinK in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 08-30-2003, 08:16 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube