Skip to main content

Whm: Mail Hangs In Mail Queue Manager For No Reason

Comments

18 comments

  • 24x7server
    Hello, What error are you getting in logs file ? Please check your exim mail logs file and let us know what error are you getting on logs file.
    0
  • Floyd R Turbo
    How do I do that? I can't find anything in WHM like that by searching 'exim' or 'log'
    0
  • cPanelMichael
    Hello :) I suggest searching for one of these messages in /var/log/exim_mainlog with a command such as:
    exigrep user@domain /var/log/exim_mainlog
    You can replace "user@domain" with any search term, such as the message subject or message ID. Thank you.
    0
  • Floyd R Turbo
    Newb. I have no idea how to do that. I was able to view the main log file (which is huge and not what I was looking for), and the last 300 entries in the error log file, which led me to fix another unrelated error (favicon missing) but I cannot find the /var directory. Like I said, newb here I need some more dumbed down type of instructions because I can't find the exim log files.
    0
  • cPanelMichael
    Hello :) You will need to access your server via SSH as "root" to run the command referenced in my last response. A guide on how to do this is found at:
    0
  • Floyd R Turbo
    I am quite literally banging my head on the desk, because I can't figure this out, the directions are outdated, or both. at best, not worded for someone who has never touched putty/ssh before. I first tried the "how to SSH with Putty" and that didn't work. What port should I enter? it defaults to 22? I get a pop up saying key is not cached locally, I select no, enter 'root' and the password, access denied. So go now try "How to SSH with PuTTY and a public key."
      ]
    • From the Windows Start menu, open the client. done
    • Navigate to the PuTTY Key Generator interface. where exactly is this? in putty? WHM? cpanel?
    • Under the Actions heading, click Generate. PuTTY will generate the key and display the result under the Key menu. huh?
    • Copy the public key and paste it in the .ssh/authorized_keys file. what?
    • Enter a passphrase in the Key passphrase and Confirm passphrase text boxes. where?
    • Click Save private key and save the key as a .ppk file. Important: You must save PuTTY keys as .ppk files.
    • In the Session interface, from the Saved Sessions menu, select your preferred authorization session and click Load.
    • Navigate to the Auth interface under the SSH category.
    • Click Browse, select the private key file that you wish to upload, and click Open.
    • Navigate to WHM's
    0
  • Floyd R Turbo
    I blew away all the keys I had generated on cPanel and WHM and started over by creating a new key in WHM, authorized it, went to view private key, entered passphrase to unlock key, copy/pasted that into a .ppk file locally, selected that file in putty, I get the exact same result login as: root Authenticating with public key "imported-openssh-key" Passphrase for key "imported-openssh-key": Server refused public-key signature despite accepting key! root@166.62.59.107's password: Access denied
    0
  • Floyd R Turbo
    Still looking for help here. I have tried and tried to figure out the instructions referenced in my posts above but I can't find any way to make sense of them. I'm guessing this is due to outdated documentation, meaning, things aren't in the same place anymore or the way that keys are generated has changed. The instructions describe a way that the public and private keys are generated. As far as I can tell, they are not done this way. For instance, how am I supposed to place something in the .ssh directory? I can do this under cpanel if I create the keys in cpanel instead of WHM, but from what I can tell, cpanel automatically creates the authorized_keys file. Am I wrong here? Can someone PLEASE help me out?
    0
  • cPanelMichael
    You can start by allowing password authentication instead of using a key by ensuring the following option is enabled: "WHM Home " Security Center " SSH Password Authorization Tweak" This will allow you to authenticate with the root password instead of a key. From there, you can follow the guide here if you want to enforce key authentication:
    0
  • Floyd R Turbo
    I figured this out finally. logging in using root is disabled so I had to use the other username and then sudo su - to elevate to root. I'm in now and ran the exigrep command and what I see happening is this:
    2015-08-10 14:01:13 ************ H=dedrelay.where.secureserver.net [*********]: SMTP error from remote mail server after initial connection: *** **** *******.prod.mesa1.secureserver.net : DED : ... temporary failure 2015-08-10 14:01:13 ************ == ***@*****.com R=send_to_smart_host T=remote_smtp defer (0) H=dedrelay.where.secureserver.net [**********] : SMTP error from remote mail server after initial connection: 421 ***********.prod.mesa1.secureserver.net : DED : ... temporary failure
    Correct me if I'm wrong, but this appears to be an issue with the relay server on the host side?
    0
  • Floyd R Turbo
    I ran
    exigrep failure /var/log/exim_mainlog
    ...and I can see a ton of these
    0
  • cPanelMichael
    Hello :) Yes, I suggest consulting with your hosting provider to have them increase any sending limits imposed on your server. It looks like the relay server is not allowing the message to send out to the remote mail server. Thank you.
    0
  • Floyd R Turbo
    It is not an email limit issue.
    0
  • cPanelMichael
    The following snippet from your log output indicates the issue is not with the cPanel server: SMTP error from remote mail server after initial connection: 421 ***********.prod.mesa1.secureserver.net : DED : ... temporary failure
    To clarify, you provided this message to your hosting provider and they confirmed there are no email limitations imposed on your server? Thank you.
    0
  • Floyd R Turbo
    Correct. They were no help at all. They were just like "well it appears there is not much else we can do for you at this time, do you need anything else?" which ticked me off. I ran into the email limitation issue very early on when I opened up the forum and sent out a bulk e-mail to all users that the forum was back online. After having lifted that cap (went to the max they would allow short f a written/formal limit request, which wasn't necessary) we haven't had any problems with the email limitation. Bottom line, this is not an email limitation issue. To me it appears that their relay servers are kicking it back but they don't see it that way. What I can tell you is that it happens to me and several other users regularly. All the time. I am on dozens of other forums, vbulletin, xenforo, IPB, phpBB, etc, and every single one of them, the emails come right through at the same time as my Tapatalk push notification, except this forum. It is most definitely not my email. Something is causing outbound messages from the forum to temporarily fail. The only workaround I've been able to come up with so far is to lower the retry time from 60m to like 3m. So now anything stuck in the queue just hammers it over and over again until it gets through.
    0
  • cPanelMichael
    To me it appears that their relay servers are kicking it back but they don't see it that way.

    I suggest showing them the error output from the log and asking for additional details about why the relay server is not allowing emails, if it's not an imposed limit. Thank you.
    0
  • Floyd R Turbo
    I did.
    0
  • cPanelMichael
    You may need to consult with them further, or request assistance from an administrator that handles the relay server to obtain additional information. Unfortunately, if the relay server is at fault and you don't have access to it, you won't be able to resolve the issue. Thank you.
    0

Please sign in to leave a comment.