The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Problem with EXIM and Hostname/TimeOut

Discussion in 'E-mail Discussions' started by secrefice, Jan 20, 2017.

  1. secrefice

    secrefice Registered

    Joined:
    Jan 20, 2017
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Germany
    cPanel Access Level:
    Root Administrator
    Hello,

    i have a problem with sending mails to some adresses.
    I tried than to connect via Telnet and i see a problem with the Hostname different to the helo.
    I fixed this with the settings in the hosts-file (its dedicated IPs).
    So on Telnet all seems to work for the mailadresses i have problems with over exim.

    When i send mails normally (Outlook or Webmail) to the Problem-Adress i get this error ...

    R=dkim_lookuphost T=dkim_remote_smtp defer (110): Connection timed out
    I can ping the Adress, i can connect via Telnet.

    So i was thinking if Exim still sends the primary hostname to the server so he denies it because of difference between Helo (i seleted for each domain to show up) and primary hostname.

    So what can this problem cause? - is there a way to get the primary hostname out of it?

    Please help because these adresses are important.

    Thanks a lot!
     
  2. secrefice

    secrefice Registered

    Joined:
    Jan 20, 2017
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Germany
    cPanel Access Level:
    Root Administrator
    Maybe the log would help? - i changed the real values of ip and mailadresses to placeholder.
    I hope someone can give me a hit what the problem could be??? ...

    Thanks a lot!!!
    Code:
    >>>>>>>>>>>>>>>> Remote deliveries >>>>>>>>>>>>>>>>
    --------> info@targetdomain.de<--------
    search_tidyup called
    set_process_info: 31411 delivering 1cUZnV-0005yJ-DV: waiting for a remote delive                                                                                ry subprocess to finish
    selecting on subprocess pipes
    changed uid/gid: remote delivery to info@targetdomain.dewith transport=dkim_                                                                                remote_smtp
      uid=47 gid=12 pid=31414
      auxiliary group list: <none>
    set_process_info: 31414 delivering 1cUZnV-0005yJ-DV using dkim_remote_smtp
    dkim_remote_smtp transport entered
      info@targetdomain.de
    search_open: lsearch "/etc/mailips"
    search_find: file="/etc/mailips"
      key="senderdomain.de" partial=-1 affix=NULL starflags=0
    LRU list:
      5/etc/mailips
      End
    internal_search_find: file="/etc/mailips"
      type=lsearch key="senderdomain.de"
    file lookup required for senderdomain.de
      in /etc/mailips
    lookup yielded: xx.senderip.xx
    checking status of xxtargetmailserverdomainxx
    locking /var/spool/exim/db/retry.lockfile
    locked /var/spool/exim/db/retry.lockfile
    EXIM_DBOPEN(/var/spool/exim/db/retry)
    returned from EXIM_DBOPEN
    opened hints database /var/spool/exim/db/retry: flags=O_RDONLY
    dbfn_read: key=T:xxtargetmailserverdomainxx:xx.targetmailserverip.xx/xx.senderip.xx
    dbfn_read: key=T:xxtargetmailserverdomainxx:xx.targetmailserverip.xx/xx.senderip.xx:1cUZnV-0005yJ-                                                                                DV
    no message retry record
    xxtargetmailserverdomainxx [xx.targetmailserverip.xx]/xx.senderip.xx status = usable
    xx.targetmailserverip.xx in serialize_hosts? no (option unset)
    delivering 1cUZnV-0005yJ-DV to xxtargetmailserverdomainxx [xx.targetmailserverip.xx] (info@sped                                                                                ition-michl.de)
    set_process_info: 31414 delivering 1cUZnV-0005yJ-DV to xxtargetmailserverdomainxx [80                                                                                .244.246.238] (info@targetdomain.de)
    exim -d -M 1cUZnV-0005yJ-DVselecting on subprocess pipes
    selecting on subprocess pipes
    Connecting to xxtargetmailserverdomainxx [xx.targetmailserverip.xx]:25 from xx.senderip.xx ... fai                                                                                led: Connection timed out (timeout=5m)
    LOG: MAIN
      H=xxtargetmailserverdomainxx [xx.targetmailserverip.xx] Connection timed out
    set_process_info: 31414 delivering 1cUZnV-0005yJ-DV: just tried mailsrv.viacontr                                                                                ol.de [xx.targetmailserverip.xx] for info@targetdomain.de: result DEFER
    added retry item for T:xxtargetmailserverdomainxx:xx.targetmailserverip.xx/xx.senderip.xx: errno=1                                                                                10 more_errno=1,M flags=2
    all IP addresses skipped or deferred at least one address
    updating wait-dkim_remote_smtp database
    locking /var/spool/exim/db/wait-dkim_remote_smtp.lockfile
    locked /var/spool/exim/db/wait-dkim_remote_smtp.lockfile
    EXIM_DBOPEN(/var/spool/exim/db/wait-dkim_remote_smtp)
    returned from EXIM_DBOPEN
    opened hints database /var/spool/exim/db/wait-dkim_remote_smtp: flags=O_RDWR
    dbfn_read: key=xxtargetmailserverdomainxx
    already listed for xxtargetmailserverdomainxx
    Leaving dkim_remote_smtp transport
    set_process_info: 31414 delivering 1cUZnV-0005yJ-DV (just run dkim_remote_smtp f                                                                                or info@targetdomain.dein subprocess)
    search_tidyup called
    header write id:H,subid:0,size:17,final:H000017
    header write id:S,subid:0,size:4,final:S000004
    header write id:D,subid:0,size:4,final:D000004
    DSN write: addr->dsn_aware = 0
    header write id:R,subid:0,size:61,final:R000061
    header write id:A,subid:0,size:15,final:A000015
    header write id:Z,subid:0,size:1,final:Z000001
    reading pipe for subprocess 31414 (not ended)
    read() yielded 144
    header read  id:H,subid:0,size:00017,required:24,remaining:144,unfinished:0
    header read  id:S,subid:0,size:00004,required:11,remaining:120,unfinished:0
    header read  id:D,subid:0,size:00004,required:11,remaining:109,unfinished:0
    DSN read: addr->dsn_aware = 0
    header read  id:R,subid:0,size:00061,required:68,remaining:98,unfinished:0
    reading retry information for T:xxtargetmailserverdomainxx:xx.targetmailserverip.xx/xx.senderip.xx                                                                                 from subprocess
      added retry item
    header read  id:A,subid:0,size:00015,required:22,remaining:30,unfinished:0
    header read  id:Z,subid:0,size:00001,required:8,remaining:8,unfinished:0
    Z00 item read
    remote delivery process 31414 ended
    set_process_info: 31411 delivering 1cUZnV-0005yJ-DV
    post-process info@targetdomain.de(1)
    LOG: MAIN
      == info@targetdomain.deR=dkim_lookuphost T=dkim_remote_smtp defer (110): C                                                                                onnection timed out
    >>>>>>>>>>>>>>>> deliveries are done >>>>>>>>>>>>>>>>
    changed uid/gid: post-delivery tidying
      uid=47 gid=12 pid=31411
      auxiliary group list: <none>
    set_process_info: 31411 tidying up after delivering 1cUZnV-0005yJ-DV
    Processing retry items
    Succeeded addresses:
    Failed addresses:
    Deferred addresses:
    info@targetdomain.de
    locking /var/spool/exim/db/retry.lockfile
    locked /var/spool/exim/db/retry.lockfile
    EXIM_DBOPEN(/var/spool/exim/db/retry)
    returned from EXIM_DBOPEN
    opened hints database /var/spool/exim/db/retry: flags=O_RDWR
    address match test: subject=*@xxtargetmailserverdomainxx pattern=*
    xxtargetmailserverdomainxx in "*"? yes (matched "*")
    *@xxtargetmailserverdomainxx in "*"? yes (matched "*")
    retry for T:xxtargetmailserverdomainxx:xx.targetmailserverip.xx/xx.senderip.xx (targetdomain.de                                                                               ) = * 0 0
    dbfn_read: key=T:xxtargetmailserverdomainxx:xx.targetmailserverip.xx/xx.senderip.xx
    failing_interval=127364 message_age=159031
    Writing retry data for T:xxtargetmailserverdomainxx:xx.targetmailserverip.xx/xx.senderip.xx
      first failed=1484952843 last try=1485080207 next try=1485109007 expired=0
      errno=110 more_errno=1,M Connection timed out
    dbfn_write: key=T:xxtargetmailserverdomainxx:xx.targetmailserverip.xx/xx.senderip.xx
    end of retry processing
    time on queue = 1d20h12m38s
    warning counts: required 1 done 1
    delivery deferred: update_spool=0 header_rewritten=0
    end delivery of 1cUZnV-0005yJ-DV
    search_tidyup called
    search_tidyup called
    >>>>>>>>>>>>>>>> Exim pid=31411 terminating with rc=0 >>>>>>>>>>>>>>>>
    
    Telnetconnection works - all fine - just delivery with exim does make problems.
    But just on some domains - all others are running fine ...
     
    #2 secrefice, Jan 22, 2017
    Last edited by a moderator: Jan 22, 2017
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    36,980
    Likes Received:
    1,275
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    Could you verify you can successfully telnet to this remote mail server over port 25 from the cPanel server? Could you also let us know the output from /var/log/exim_mainlog for an affected message? EX:

    Code:
    exigrep user@remote-domain /var/log/exim_mainlog
    Thank you.
     
Loading...

Share This Page