On a cPanel server we were facing problems while sending mails it was giving the below errors:
2009-01-29 15:58:22 1LSYLW-0005Is-8d <= email@example.com U=root P=local S=377 2009-01-29 15:58:22 1LSYLW-0005Is-8d ** firstname.lastname@example.org: Unrouteable address
The solution for this issue is find if the domains entry is present within /etc/localdomains , /etc/userdomains and /etc/trueuserdomains . If the domains entry is missing in any of the file – do add the domain within the files.
Also, make sure that the domains entry is in the /etc/valiases/domain.com , if this file is blank do add the line:
Then, you can test the mail from your server using the command line:
root# mail -s "Test Mail" email@example.com
Here are the exim logs, which says the delivery is completed.
2009-01-29 16:06:39 1LSYTX-0007Jo-6D => user <firstname.lastname@example.org> R=virtual_user T=virtual_userdelivery 2009-01-29 16:06:39 1LSYTX-0007Jo-6D Completed