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 not getting delivered

Discussion in 'E-mail Discussions' started by leinteractive, Feb 22, 2011.

  1. leinteractive

    leinteractive Member

    Joined:
    Jan 11, 2011
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    1
    I'm new to this whole cPanel/WHM thing...so I'm not sure how to make this work.

    I've got two problems, and I think they're both related:

    1.) I installed a copy of Hesk Help Desk onto my server. I ran through a couple of test support tickets, and I am not getting email sent to me to notify of the new tickets
    2.) I tried to send a couple of test messages through the contact form on our website and those are not being delivered either.

    In WHM, when I go to Email>View Relayers, I see the messages that were supposedly sent...but I'm not getting them on my end.

    I've checked my junk folders and i've verified that the 'send mail from nobody' setting is disabled.

    Where else could I have a setting wrong?

    Thanks!
     
  2. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    Hello,

    Could you please try the following command on your machine to see the results to see if these are being sent out definitively?

    Code:
    exigrep emailrecipient@domain.com /var/log/exim_mainlog
    In the above, please replace emailrecipient@domain.com with the email address where you should be receiving the emails. This should show any entries in the exim log for emails sent out to that address.
     
  3. leinteractive

    leinteractive Member

    Joined:
    Jan 11, 2011
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    1
    Where do I do this at? WHM is pretty new to me...

    Also...I discovered this:

    I DO get the email auto-responses when I put in my personal email account. However, when I use my work email account, I do NOT get the email auto-responses. My work email is under the same domain as my webserver. So my server is at server.mydomain.com and my email is at myname@mydomain.com. However I'm not using my web server as my mail server...we're using a third party for that.
     
  4. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    You'd do this in root SSH to run the previously mentioned command, so you'd have to log into SSH.

    If you are getting them at your personal email account but not your work email account, then it seems possible that your work email is spam filtering them.
     
  5. leinteractive

    leinteractive Member

    Joined:
    Jan 11, 2011
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    1
    See that's the other problem...the emails are not showing up in my spam filter for my work email...not even at the server level.

    I have two different email accounts for work under different domains...but both are hosted on the same third party mail server. I DO get the messages for one of these accounts, but not for the one that shares the same domain as my web-server.
     
  6. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    Have you run the command mentioned initially yet to see the results?
     
  7. leinteractive

    leinteractive Member

    Joined:
    Jan 11, 2011
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    1
    And how do I run that command? Never used SSH before...no idea where to even start...
     
  8. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    What operating system do you use? If it is Windows, then you can download putty at PuTTY Download Page to log into SSH. You'll need to know the root password and server's IP address. You'd enter the IP as the name for the machine to connect in putty, then enter root as the username and the root password. Once you are logged into SSH, you simply run the command exactly as I pasted but replacing the email account name with the email account recipient one.

    You cannot get the details needed for many administrative actions in WHM such as viewing logs, so learning to run commands in root SSH is vital for system administration on a Linux machine.
     
  9. leinteractive

    leinteractive Member

    Joined:
    Jan 11, 2011
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    1
    Well I was on the right track then. I downloaded Putty, put in my server's IP and then it asks 'login as:' so I type root.
    Then it asks for the password...so I type my WHM root password...but I get Access Denied.

    Is my whm root password the one I need to use to access SSH?
     
  10. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    It should be the same password unless whoever setup your server disabled direct root login for SSH. If they did, then you'd have to enter a sudo user prior to going to root. Do you have details from whoever setup the machine for logins? Can you check if SSH is mentioned in the email to see whether there's a wheel group user or sudo user mentioned in it? Otherwise, can you contact whoever setup the machine to ask them about it?
     
  11. leinteractive

    leinteractive Member

    Joined:
    Jan 11, 2011
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    1
    I figured out how to get in. Now, when I run the commen, I get this:

    -bash: exigrep: comman not found
     
  12. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    If you are still using the sudo user (not root user), you need to su - to root user to run the command.
     
  13. leinteractive

    leinteractive Member

    Joined:
    Jan 11, 2011
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    1
    Alright...this is what got returned...once for each time I tried to send the message through


    2011-02-22 10:42:30 1PrvJm-0001aj-TR <= user@server.mydomain.com U=user P=local S=879 id=f2259793cef1ae36c5663fd1624cc051@www.mydomain.com
    2011-02-22 10:42:30 1PrvJm-0001aj-TR ** user@mydomain.com R=virtual_aliases: No Such User Here
    2011-02-22 10:42:30 1PrvJm-0001aj-TR Completed
     
    #13 leinteractive, Feb 22, 2011
    Last edited: Feb 22, 2011
  14. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    Is the user@mydomain.com email account that is returning the "No Such User Here" error the one that is sending out the email or the one that is supposed to be receiving the email?
     
  15. leinteractive

    leinteractive Member

    Joined:
    Jan 11, 2011
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    1
    That one that is supposed to be receiving the email.
     
  16. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    Can you run these commands then:

    Code:
    exim -bt user@mydomain.com
    exim -bt workingrecipient@mydomain.com
    Here replace user@mydomain.com with the one that isn't receiving it and replace workingrecipient@mydomain.com with the email account that is working to receive the message. Also, are you checking the email address isn't misspelled in some way when trying to send from the script? I've seen people accidentally misspell an address and not realize it.
     
  17. leinteractive

    leinteractive Member

    Joined:
    Jan 11, 2011
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    1
    Yes, I've double checked the spelling on the email addresses several times. It appears that any email using @mydomain.com won't work. But my other work email, @myotherdomain.com works just fine.

    There is the result of the command you just asked for:


    root@****** [~]# exim -bt user@mydomain.com
    user@mydomain.com is undeliverable: No Such User Here

    root@******[~]# exim -bt user@myotherdomain.com
    user@myotherdomain.com
    router = send_to_smart_host, transport = remote_smtp
    host ***.***.*****.*****.net [xxx.xxx.xx.xxx]

    EDIT:

    It basically appears that any user @mydomain.com isn't working. Every other email account I've tried using is getting the automated reply. The only reason this is a big deal is because I need to get automated messages to the user@mydomain.com account so that I know when new support tickets have been submitted so I can reply to them.
     
    #17 leinteractive, Feb 22, 2011
    Last edited: Feb 22, 2011
  18. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    Can you provide the actual domain name being used that is returning the errors (that is currently being replaced by mydomain.com)? I don't need the email address, but I'd like to do digs on the domain on my machine to see if the domain is showing the proper entries.
     
  19. leinteractive

    leinteractive Member

    Joined:
    Jan 11, 2011
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    1
    Sure...I just sent you a Private Message.
     
Loading...

Share This Page