Skip to main content

SMTP error from remote mail server

Comments

23 comments

  • cPanelLauren
    Hello @takeno More information than this would be necessary in order to tell you why your mail wasn't accepted by gmail. The output from the exim logs for the message ID in this instance would be extremely helpful. You could run something like: exigrep 1fnk0F-00036q-Nc /var/log/exim_mainlog
    And let us know the output after removing any actual personal domain names/IP's Thanks!
    0
  • takeno
    i tried find another new failed mail "1fpUBW-00050S-U" by exigrep 1fpUBW-00050S-U /var/log/exim_mainlog
    and output is as below 2018-08-14 15:56:10 1fpUBW-00050S-UY <= master@example.com.tw H=(www.example.com.tw) [199.192.xxx.xx]:44426 P=esmtpsa X=TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128 CV=no A=dovecot_login:master@example.com.tw S=1177 id=86279deb67974f57bee0d2d792571ed6@www.example.com.tw T="\351\233\266\350\202\241\345\200\211 \345\257\246\351\253\224\347\264\200\345\277\265\345\223\201\344\272\244\344\273\230\351\200\232\347\237\245\344\277\241" for someusr@gmail.com 2018-08-14 15:56:10 cwd=/var/spool/exim 3 args: /usr/sbin/exim -Mc 1fpUBW-00050S-UY 2018-08-14 15:56:11 1fpUBW-00050S-UY Sender identification U=stockhousecom D=example.com.tw S=master@example.com.tw 2018-08-14 15:56:11 1fpUBW-00050S-UY SMTP connection outbound 1534233371 1fpUBW-00050S-U example.com.tw someusr@gmail.com 2018-08-14 15:56:12 1fpUBW-00050S-UY ** someusr@gmail.com R=dkim_lookuphost T=dkim_remote_smtp H=mx-tw.mail.gm0.yahoodns.net [180.222.103.9]: SMTP error from remote mail server after end of data: 550 Action not taken 2018-08-14 15:56:12 cwd=/var/spool/exim 7 args: /usr/sbin/exim -t -oem -oi -f <> -E1fpUBW-00050S-UY 2018-08-14 15:56:12 1fpUBY-00050w-SV <= <> R=1fpUBW-00050S-UY U=mailnull P=local S=2666 T="Mail delivery failed: returning message to sender" for master@example.com.tw 2018-08-14 15:56:12 1fpUBW-00050S-UY Completed
    Thanks!
    0
  • cPanelLauren
    HI @takeno Is this happening with one specific account on your server or is it several? Can you ensure that the domain/s is present in /etc/localdomains or /etc/remotedomains?
    0
  • takeno
    It happened in every account in my server,even in root many system mail or alert mail cant relay too I checked that you said,my domains all exist in /etc/localdomains and /etc/localdomains is empty Thanks
    0
  • cPanelLauren
    Hi @takeno That's good with the assumption that all mail *should* be received locally. Can you confirm that the primary IP (as well as all IP's on the server) has a valid PTR record? The PTR or rDNS should resolve the IP address back to the hostname of the server. You can identify this by running the following command: host
    The result should match your hostname. Thanks!
    0
  • takeno
    Yes.i have set PTR record,it wasted me many time,my DNS register is godaddy,and godaddy cant set PTR record. Finally i found I can set PTR in VPS Management Platfaorm. I used mxtoolbox to check,and sure PTR is correctly now. I don`t know if it connect with this question. Yeserday i got dmarc mail from yahoo and google at same time . Content is as below google.com noreply-dmarc-support@google.com https://support.google.com/a/answer/2466580 7400435419999342150 1534118400 1534204799 example.com.tw r r

    none

    none 100 199.192.XX.XXX 4 none fail fail server1.example.com.tw server1.example.com.tw none 199.192.XX.XXX 4 none fail fail example.com.tw example.com.tw fail default example.com.tw none

    Thanks.
    0
  • cPanelLauren
    Hi @takeno That DMARC response indicates that both SPF and DKIM verification checks failed for example.com.tw Can you confirm that both records are present? Thanks!
    0
  • asconsulting
    We have had an identical experience starting around August 10th as well. Same error message, and it's sporadic. Sometimes the messages work, sometimes they don't. SPF are valid, and DKIM isn't being used. PTR records are in place and valid as well.
    0
  • asconsulting
    Here are some details from the error message: Delivery Host: [removed] Delivery IP: [removed] Size: 19.92 KB Result: 25 I=[162.255.117.152]:58950: SMTP error from remote mail server after end of data: 550 Action not taken The IP in the results line is the server's IP. When a message get's rejected all recipients are rejected, even local email addresses. We have a BCC going to an internal email that also fails.
    0
  • cPanelLauren
    Hi @asconsulting Why are you not utilizing DKIM? Some email service providers will reject DKIM verification failures for domains that have invalid configurations or none at all. Thanks!
    0
  • asconsulting
    Because the clients use several outside services, like Mail Chimp and Constant Contact to send as well. We are working on setting that up, but it has been a slow process getting complete answers from clients. The weird thing is that it all recipients fail, the BCC works sometimes and not for others. Also the very generic error 550 instead of a rejection message with details. Also, I have checked remotedomains and localdomains and things seem to be where they should be.
    0
  • asconsulting
    I have setup DKIM on one of the domains that was having issues. I verified the DKIM via MX Toolbox. The emails are still failing. I am getting the same error as before just now it says "dkim_lookuphost" and "dkim_remote_smtp" instead of "lookuphost" and "remote_smtp".
    0
  • cPanelLauren
    Hi @asconsulting What are your DNS resolvers set to? You can see these via SSH by running the following: cat /etc/resolv.conf
    0
  • asconsulting
    ; generated by /sbin/dhclient-script nameserver 8.8.8.8 nameserver 4.2.2.3
    0
  • takeno
    I confirmed spf and DKIM recoed. I found i set spf and DKIM in dns txt record's name seem wrong. I set spf and DKIM txt record 's name is example.com.tw,and mxtoolbox show no spf record. I change name to @ from my domain ,now mxtoolbox can see my spf and DKIM record. Hope this can solve my question.i will report it if my qustion solved. Thanks.
    0
  • cPanelLauren
    ; generated by /sbin/dhclient-script nameserver 8.8.8.8 nameserver 4.2.2.3

    I think your issue might be a bit different @asconsulting Can you please open a ticket using the link in my signature? Once open please reply with the Ticket ID here so that we can update this thread with the resolution once the ticket is resolved.
    I confirmed spf and DKIM recoed. I found i set spf and DKIM in dns txt record's name seem wrong. I set spf and DKIM txt record 's name is example.com.tw,and mxtoolbox show no spf record. I change name to @ from my domain ,now mxtoolbox can see my spf and DKIM record. Hope this can solve my question.i will report it if my qustion solved. Thanks.

    Great! We'll be looking forward to an update from you either way. Thanks!
    0
  • takeno
    I think my question have beed solved. Thanks for helping
    0
  • takeno
    Sorry,I am wrong,550,action not taken happened again. Please see these 2pics below. 2018/08/21 2:26~2:28 in 3mins,i sent 19mails,and 7 failed,12 successed. Fail and success happened in same recipient,you can see gn019XXXX@gmail.com and yamanXXXX@gmail.com have fail and success both. Thanks 54113 54105
    0
  • cPanelLauren
    Hello @takeno Can you double check the DKIM for that domain? It doesn't seem to be valid (I ran the query with your domain name but removed it in my response) $ dig txt default._domainkey.yourdomain.com.tw +short $
    0
  • takeno
    Yes,DKIM's name seems wrong,i changed DKIM TXT record's name to default._domainkey from @. Hope it will fix this question. Thanks
    0
  • cPanelLauren
    Hi @takeno Great, give it some time to propagate everywhere and let me know if you continue to see the issue. Thanks!
    0
  • asconsulting
    My issue ended up being that my emails were getting filtered at the Datacenter level, upstream from my server. So it ended up not being cPanel related.
    0
  • cPanelLauren
    My issue ended up being that my emails were getting filtered at the Datacenter level, upstream from my server. So it ended up not being cPanel related.

    Thank you very much for letting us know, I'm glad for your sake you got that sorted!
    0

Please sign in to leave a comment.