Emails not getting delivered

leinteractive

Member
Jan 11, 2011
11
0
51
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!
 

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
40
248
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 [email protected] /var/log/exim_mainlog
In the above, please replace [email protected] 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.
 

leinteractive

Member
Jan 11, 2011
11
0
51
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 [email protected]. However I'm not using my web server as my mail server...we're using a third party for that.
 

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
40
248
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.
 

leinteractive

Member
Jan 11, 2011
11
0
51
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.
 

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
40
248
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.
 

leinteractive

Member
Jan 11, 2011
11
0
51
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?
 

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
40
248
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?
 

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
40
248
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.
 

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
40
248
somewhere over the rainbow
cPanel Access Level
Root Administrator
Is the [email protected] 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?
 

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
40
248
somewhere over the rainbow
cPanel Access Level
Root Administrator
Can you run these commands then:

Code:
Here replace [email protected] with the one that isn't receiving it and replace [email protected] 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.
 

leinteractive

Member
Jan 11, 2011
11
0
51
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:


[email protected]****** [~]# exim -bt [email protected]
[email protected] is undeliverable: No Such User Here

[email protected]******[~]# exim -bt [email protected]
[email protected]
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 [email protected] account so that I know when new support tickets have been submitted so I can reply to them.
 
Last edited:

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
40
248
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.