Remote Email Issues

Nathan Riley
Nathan Riley used Ask the Experts™
on
When I send mail from the server it inboxes with no issues.  When I try to use a client to send out to a mailing list from my desktop computer using the servers smtp they never arrive.  I do find them in cpanel in the mail queue manager.  Why are they stuck there?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Top Expert 2005

Commented:
> Why are they stuck there?
You should tell it. There (inb the cpanel or logs) should be a reason the mail get delayed/holded.
Which mailing list are you using ? Are you referring to mailman that is available with cPanel ?

Have you checked the logs are /var/log/exim_mainlogs ? Going through these logs should tell you what is wrong.
nociSoftware Engineer
Distinguished Expert 2018

Commented:
Very many mail server reject messages with some set number of addresses in a mail.
that limit can be as low as 5 or 10. To verify you need to check the logs in your mail server. It should say why a remote party rejected the mail transfer.
11/26 Forrester Webinar: Savings for Enterprise

How can your organization benefit from savings just by replacing your legacy backup solutions with Acronis' #CyberProtection? Join Forrester's Joe Branca and Ryan Davis from Acronis live as they explain how you can too.

Nathan RileyFounder

Author

Commented:
Where can I view the error log within cPanel?  I have also noticed that some of my other e-mails that the server should be sending are bouncing back after 24 hours.  I will check the logs after I figure out where to find them in cPanel.
Not all logs can be checked from cPanel gui , do you have Reseller level access or root level access to the server ?

If you have root level access then it is recommended to check the logs on shell, if you are not comfortable on shell then you might need to ask your host or some friend or professional help.

If you have basic shell access/usage knowledge , you can use below commands to check the mail logs.

cPanel uses the Exim mail server for smtp and its logs are located at /var/log/exim_mainlog

Below command can help check the active logs at any time :

 
tail -f /var/log/exim_mainlog

Open in new window


or you can use below command to check logs for specific command :

 
grep someemail@yourdomain.com /var/log/exim_mainlog

Open in new window


Then you can check the related mail/exim id and search it further in the logs and these logs can tell what is wrong with outgoing email.

You can paste the related log here and we can help/guide you with that and tell what some certain log errors mean.
Nathan RileyFounder

Author

Commented:
Here are a few from the log looks like all the same error.
2011-05-15 15:51:01 1QLXkx-0000RV-FO == italian****@gmail.com R=send_to_smar                                                          t_host T=remote_smtp defer (-53): retry time not reached for any host
2011-05-15 15:51:01 1QLgi3-0007MB-79 == xma****@gmail.com R=send_to_smart_host                                                           T=remote_smtp defer (-53): retry time not reached for any host
2011-05-15 15:51:01 1QLgi3-0007M9-6a == thie****01@gmail.com R=send_to_smart                                                          _host T=remote_smtp defer (-53): retry time not reached for any host
2011-05-15 15:51:01 1QLPse-0001V2-EK == gator****@yahoo.com R=send_to_smart_host                                                           T=remote_smtp defer (-53): retry time not reached for any host
2011-05-15 15:51:01 1QLJUV-0006kH-QM == elem****@yahoo.com R=send_to_smart_ho                                                          st T=remote_smtp defer (-53): retry time not reached for any host
2011-05-15 15:51:01 1QLJYY-0007uJ-F2 == elem****@yahoo.com R=send_to_smart_ho                                                          st T=remote_smtp defer (-53): retry time not reached for any host
2011-05-15 15:51:01 1QLfcr-0003iK-Kf == gregory****@comcast.net R=send_to_sma                                                          rt_host T=remote_smtp defer (-53): retry time not reached for any host
2011-05-15 15:51:01 1QLO62-0004mR-Bc == gimmy****@yahoo.com R=send_to_smar                                                          t_host T=remote_smtp defer (-53): retry time not reached for any host
2011-05-15 15:51:01 1QLUBN-0002a0-8R == root@ip-184-168-109-56.ip.secureserver.n                                                          et R=localuser T=local_delivery defer (-52): Retry time not yet reached
2011-05-15 15:51:01 End queue run: pid=13793

Open in new window

If these are among the emails which have failed to deliver then please provide output for following :


 
grep 1QLXkx-0000RV-FO /var/log/exim_mainlog

Open in new window

Nathan RileyFounder

Author

Commented:
2011-05-15 15:51:01 1QLXkx-0000RV-FO == italian****@gmail.com R=send_to_smart_host T=remote_smtp defer (-53): retry time not reached f                              or any host
these do not look like complete log, but from remote_smtp defer looks like your IP is grey listed at gmail.com and thus not getting delivered and being queued for redelivery.  Make sure proper rdns and spf exist for the sending domain.
Try to copy the complete logs here, i.e. all lines that have the id " 1QLXkx-0000RV-FO " .
nociSoftware Engineer
Distinguished Expert 2018

Commented:
If you have your retry timer too short mail messages may endup in the queue a long time. This is because SMTP actualy requires you to wait for 1 hour before retrying a transmission of a message.
Greylisting uses this timeout property to validate mail messages, as most spammers don't want to wait one hour to retry thair mail shot. the way they do it.

Many greylisting implementation require you to have about 50 minutes of a pause between delivery attempts. The retrying too soon will only yield a blocking set of messages.
Nathan RileyFounder

Author

Commented:
@RizyDeWino: RizyDeWino:
these do not look like complete log, but from remote_smtp defer looks like your IP is grey listed at gmail.com and thus not getting delivered and being queued for redelivery.  Make sure proper rdns and spf exist for the sending domain.

Where do I setup the proper rdns and spf?
rdns i.e. reverse dns need to be setup by your Provider for the main IP of  vps/server which is being used for sending the emails.

For spf record it can be setup for the account using below command :


/usr/local/cpanel/bin/spf_installer CPANELUSER

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial