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.

emails to hotmail being blocked

Discussion in 'E-mail Discussions' started by Mugz, Nov 4, 2015.

  1. Mugz

    Mugz Member

    Joined:
    Aug 25, 2015
    Messages:
    22
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    London
    cPanel Access Level:
    Root Administrator
    Hi,

    My server ip is being blocked and our clients are unable to send mail to hotmail. I have a domain with spf and dkim record as well as a domain with no extra records, both are being rejected on hotmail as well as on gmail, it goes straight in to the spam. Strangely enough, it was only last week I placed a limit on hourly emails per domain to 80.

    Any idea where I go from here to get it unblocked? The server is a dedicated server I have root access to.

    **just got a message back from Microsoft:


    We have completed reviewing the IP(s) you submitted. The following table contains the results of our investigation.

    Our investigation has determined that the above IP(s) do not qualify for mitigation. These IP(s) have previously received mitigations from deliverability support, and have failed to maintain patterns within our guidelines, so they are ineligible for additional mitigation at this time.



    Since this is the first time this has happened to us, has the service provider given us a spammy bad ip for our server?

    Thanks
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
  3. Mugz

    Mugz Member

    Joined:
    Aug 25, 2015
    Messages:
    22
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    London
    cPanel Access Level:
    Root Administrator
    Thanks. Our data centre is going to give us an extra ip. How do I configure this through WHM? Do I just follow the two steps for changing ip globally mentioned on this page: Changing Exim's Sending IP - The cPanel Admin

    Sorry, I'm new to this problem.
     
  4. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,481
    Likes Received:
    203
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
  5. Mugz

    Mugz Member

    Joined:
    Aug 25, 2015
    Messages:
    22
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    London
    cPanel Access Level:
    Root Administrator
    Hi,

    This documentation is slightly confusing for me. Where in WHM can I enter the new ip address for mail which will be applied to all accounts on the server?

    Thanks
     
  6. Mugz

    Mugz Member

    Joined:
    Aug 25, 2015
    Messages:
    22
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    London
    cPanel Access Level:
    Root Administrator
    Just to clarify,

    I have a new ip address. This has not been referenced in teh server anywhere and not yet been added. It has a PTR record (I did host xxx.xx....)
    I'm sitting here with an IP address which I'd like to add to the server so I can use it for outgoing mail. Do I need to assign it somewhere else in the server before I add it in the exim config somewhere?
     
  7. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,481
    Likes Received:
    203
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
  8. Mugz

    Mugz Member

    Joined:
    Aug 25, 2015
    Messages:
    22
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    London
    cPanel Access Level:
    Root Administrator
    Thanks for this and thanks for helping - I'm kinda throwing myself in the deep end here so I really appreciate it.

    So it's just a matter of first adding the ip address through:
    Add a New IP Address - 11.50 Documentation - cPanel Documentation

    Then after that's done, I follow the steps listed here:
    How to enable automatic configuration of Exim's outgoing IP addresses

    However, in this step, there is nowhere to say that I want the IP address I have just added in to be used for all outgoing mail.

    Step 1 says to modify the rdns for each domain - how and why would I need to do this? The rdns has already been configured for the IP. I'd like outgoing mail to be sent from the IP.


    Is there no way to configure WHM to send all mail from a new ip address with a simple change or do I need to keep editing files for each new account?
     
  9. tmurdock

    tmurdock Member

    Joined:
    Jul 6, 2015
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    United States
    cPanel Access Level:
    Root Administrator
    look at /etc/mailhelo and /etc/mailips. Adding my dedicated IP address and domain to /etc/mailips helped solve my problem with my rDNS and sending to hotmail/Outlook/AOL email addresses.
     
  10. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
  11. Mugz

    Mugz Member

    Joined:
    Aug 25, 2015
    Messages:
    22
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    London
    cPanel Access Level:
    Root Administrator
    Thanks - I think we are nearly there.

    Here's what I'm planning to do:

    1. Add the IP address to "Add new IP addresses"
    2. Add the IP address in mailips and domain in mailhelo files.

    Then it will work? It just doesn't seem right :(
     
  12. tmurdock

    tmurdock Member

    Joined:
    Jul 6, 2015
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    United States
    cPanel Access Level:
    Root Administrator
    It worked for me. Make sure the IP you're using has a valid reverse DNS lookup and don't forget to restart Exim.
     
  13. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    No, as the document states, you also have to enable the following options in WHM's Exim Configuration Manager - Basic Editor interface (Home >> Service Configuration >> Exim Configuration Manager):
    1. Reference /etc/mailhelo for outgoing SMTP HELO
    2. Reference /etc/mailips for outgoing SMTP connections
    In addition, ensure you add the entry as the example states, rather than just adding the IP address to the file on it's own.

    Thank you.
     
  14. Mugz

    Mugz Member

    Joined:
    Aug 25, 2015
    Messages:
    22
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    London
    cPanel Access Level:
    Root Administrator
    Hi,

    We have asked our server provider to make the neccesary changes to enable all outgoing mail to send from the new ip address. They said they have made changes in the files mailips and mailhelo.

    I have just tested a message to hotmail and it came back as rejected again (showing the new ip I had been assigned). I also tested to gmail which is just not being received at all.

    Any ideas? Why would the message still be rejected by hotmail if the ip has changed?


    What's odd is that if I send the mail from a mail client (and the domain has a mail a record pointing to the new ip) it seems to get straight through to the hotmail inbox but sending directly from webmail just goes to junk. My server provider has advised they have put the correct records in so I'm not sure what to do!


    Thanks
     
  15. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
  16. Mugz

    Mugz Member

    Joined:
    Aug 25, 2015
    Messages:
    22
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    London
    cPanel Access Level:
    Root Administrator
    Thank you however this is a problem for all domains on our server and our server has changed ip address for mail. This is a new ip address the emails are being sent from, why do you think it will still have errors and tell us part of our network is on their block list?

    Thanks
     
  17. Mugz

    Mugz Member

    Joined:
    Aug 25, 2015
    Messages:
    22
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    London
    cPanel Access Level:
    Root Administrator
    Also on Gmail, the message doesn't even get delivered.
     
  18. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    It's difficult to know the exact reason, as Hotmail is the one that's filtering the email. You may need to contact them directly to get additional information. If Google is blocking you, review /var/log/exim_mainlog to see if it left your server successfully.

    Thank you.
     
  19. Mugz

    Mugz Member

    Joined:
    Aug 25, 2015
    Messages:
    22
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    London
    cPanel Access Level:
    Root Administrator
    Code:
    1Zwdmz-00067B-KA SMTP error from remote mail server after end of data: 421-4.7.0 [my.ip.address 15] Our system has detected an unusual rate of\n421-4.7.0 unsolicited mail originating from your IP address. To protect our\n421-4.7.0 users from spam, mail sent from your IP address has been temporarily\n421-4.7.0 rate limited. Please visit\n421-4.7.0 Bulk Senders Guidelines - Gmail Help to review our Bulk Email\n421 4.7.0 Senders Guidelines. q194si15293201wmg.97 - gsmtp
    2015-11-11 23:22:50
    
    
    This is strange because this is a new ip address, why would we be immediately blocked?

    Thanks
     
    #19 Mugz, Nov 11, 2015
    Last edited by a moderator: Nov 12, 2015
  20. Mugz

    Mugz Member

    Joined:
    Aug 25, 2015
    Messages:
    22
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    London
    cPanel Access Level:
    Root Administrator
    I followed the guide here to check for spam:
    Find spam script location with Exim - InMotion Hosting

    And here's the log:

    Code:
    login as: root
    root@myip password:
    Last login: Thu Nov 12 00:04:34 2015 from myip
    root@myserver [~]# grep cwd /var/log/exim_mainlog | grep -v /var/spool | awk -F"cwd=" '{print $2}' | awk '{print $1}' | sort | uniq -c | sort -n
          1 /home/client1/public_html
          1 /home/client2/public_html/wp-admin
          1 /home/client3/public_html/wp-admin
          2 /home/client4/public_html
          3 /home/client5/public_html
          4 /home/client6/public_html
          5 /root
          8 /home/client7/public_html
         15 /
         17 /usr/local/cpanel/whostmgr/docroot
       1667 /etc/csf
    root@myserver [~]# ls -lahtr /etc/csf
    total 492K
    drw-------  2 root root 4.0K Oct 24  2014 messenger/
    drw-------  3 root root 4.0K Oct 24  2014 ui/
    -rw-------  1 root root  457 Dec 21  2014 csf.uidignore
    -rw-------  1 root root 1.2K Dec 21  2014 csf.syslogusers
    -rw-------  1 root root 1.7K Dec 21  2014 csf.syslogs
    -rw-------  1 root root  368 Dec 21  2014 csf.suignore
    -rw-------  1 root root  660 Dec 21  2014 csf.smtpauth
    -rw-------  1 root root  510 Dec 21  2014 csf.sips
    -rw-------  1 root root  413 Dec 21  2014 csf.signore
    -rw-------  1 root root 1.6K Dec 21  2014 csf.rignore
    -rw-------  1 root root 2.1K Dec 21  2014 csf.resellers
    -rw-------  1 root root 1.2K Dec 21  2014 csf.redirect
    -rw-------  1 root root  408 Dec 21  2014 csf.mignore
    -rw-------  1 root root  657 Dec 21  2014 csf.logfiles
    -rw-------  1 root root  617 Dec 21  2014 csf.dirwatch
    -rw-------  1 root root 2.3K May 26 22:19 csf.logignore
    -rw-------  1 root root  936 Aug  4 18:03 csf.fignore
    -rw-------  1 root root  939 Aug  4 18:03 csf.dyndns
    lrwxrwxrwx  1 root root   18 Aug  4 18:03 alerts -> /usr/local/csf/tpl/
    -rw-------  1 root root  747 Sep 10 19:20 csf.rblconf
    -rw-------  1 root root 3.5K Sep 30 00:15 csf.pignore
    -rw-------  1 root root 1.3K Oct  9 20:01 csf.allow
    -rw-------  1 root root  603 Oct  9 20:01 csf.ignore
    -rw-------  1 root root    4 Nov  8 10:22 version.txt
    -rw-------  1 root root 3.9K Nov  8 10:33 csf.blocklists.new
    -rw-------  1 root root 174K Nov  9 00:15 changelog.txt
    -rw-------  1 root root 2.6K Nov  9 00:15 install.txt
    -rw-------  1 root root  10K Nov  9 00:15 license.txt
    -rw-------  1 root root  56K Nov  9 00:15 readme.txt
    lrwxrwxrwx  1 root root   13 Nov  9 00:15 lfd.pl -> /usr/sbin/lfd*
    lrwxrwxrwx  1 root root   13 Nov  9 00:15 csf.pl -> /usr/sbin/csf*
    lrwxrwxrwx  1 root root   39 Nov  9 00:15 pt_deleted_action.pl -> /usr/local/csf/bin/pt_deleted_action.pl*
    lrwxrwxrwx  1 root root   27 Nov  9 00:15 csfui.pl -> /usr/local/csf/bin/csfui.pl*
    lrwxrwxrwx  1 root root   29 Nov  9 00:15 csftest.pl -> /usr/local/csf/bin/csftest.pl*
    lrwxrwxrwx  1 root root   31 Nov  9 00:15 uninstall.sh -> /usr/local/csf/bin/uninstall.sh*
    lrwxrwxrwx  1 root root   36 Nov  9 00:15 remove_apf_bfd.sh -> /usr/local/csf/bin/remove_apf_bfd.sh*
    lrwxrwxrwx  1 root root   25 Nov  9 00:15 webmin -> /usr/local/csf/lib/webmin/
    lrwxrwxrwx  1 root root   34 Nov  9 00:15 regex.custom.pm -> /usr/local/csf/bin/regex.custom.pm*
    -rw-------  1 root root 3.9K Nov  9 00:15 csf.blocklists
    -rw-------  1 root root  95K Nov  9 00:15 csf.conf
    lrwxrwxrwx  1 root root   28 Nov  9 00:15 csfwebmin.tgz -> /usr/local/csf/csfwebmin.tgz
    drw-------  4 root root 4.0K Nov  9 00:15 ./
    -rw-------  1 root root  29K Nov 12 09:50 csf.deny
    drwxr-xr-x 78 root root  12K Nov 12 11:05 ../
    root@myserver[~]#
    
    
     
    #20 Mugz, Nov 12, 2015
    Last edited by a moderator: Nov 12, 2015
Loading...

Share This Page