I need to delete hostname which i added accidentally

khubbaib

Member
Jun 1, 2021
8
1
3
Pakistan
cPanel Access Level
Root Administrator
Hello Every one, I setup WHM panel on AWS EC2 instance while ago and i accidentally add following hostname,
hostname.example.com
Now i am unable to send and receive emails. can any body help if i can delete or edit it and the be able to send email from my cpanel accounts? if not how i can send emails through my cpanel accounts?
 
Last edited by a moderator:

khubbaib

Member
Jun 1, 2021
8
1
3
Pakistan
cPanel Access Level
Root Administrator
Hi, i am able to setup hostname same as my server address, but i am unable to receive email, no error showing it says email send but i did not receive email on my email address.

Although i can receive email from same gmail account.
 

khubbaib

Member
Jun 1, 2021
8
1
3
Pakistan
cPanel Access Level
Root Administrator
I tried to send email on same server with different email account and i can receive email quickly but unable to receive email on gmail or other accounts. Is this due to dmarc record?
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
6,852
904
313
cPanel Access Level
Root Administrator
Alright - that's good information to have. The next thing to check is the outbound message log on the server. If you check /var/log/exim_mainlog, you'll see the message leave the server and get sent to the remote mailserver. If that action happens, and the mailserver accepts the message properly, there isn't anything you can do on your machine to help resolve the issue.

If there are errors with the message leaving the server we may be able to provide further assistance.
 

khubbaib

Member
Jun 1, 2021
8
1
3
Pakistan
cPanel Access Level
Root Administrator
Hi, Here is complete log

Code:
2021-05-30 03:30:01 1lmpSH-00035A-V3 Completed
2021-05-30 03:30:01 1ln1SU-0001an-6q Message is frozen
2021-05-30 03:30:01 1lmxaU-0005GZ-EK Message is frozen
2021-05-30 03:30:01 1lmxJU-00049Z-2V Message is frozen
2021-05-30 03:30:01 1ln0UU-0006lf-JI Message is frozen
2021-05-30 03:30:01 1ln0UU-0006lp-Kt Message is frozen
2021-05-30 03:30:01 1lmqKU-0005zl-ST Message is frozen
2021-05-30 03:30:01 1lmqKU-0005zb-Qs Message is frozen
2021-05-30 03:30:01 1lmpMU-0002oA-RM Unfrozen by errmsg timer
2021-05-30 03:30:02 1lmpMU-0002oA-RM ** [email protected] <[email protected]> R=virtual_user T=dovecot_virtual_delivery: LMTP error after RC$
2021-05-30 03:30:02 1lmpMU-0002oA-RM [email protected] <[email protected]>: error ignored
2021-05-30 03:30:02 1lmpMU-0002oA-RM Completed
2021-05-30 03:30:02 1lmpMU-0002oK-Sy Unfrozen by errmsg timer
2021-05-30 03:30:02 1lmpMU-0002oK-Sy ** [email protected] <[email protected]> R=virtual_user T=dovecot_virtual_delivery: LMTP error after RC$
2021-05-30 03:30:02 1lmpMU-0002oK-Sy [email protected] <[email protected]>: error ignored
2021-05-30 03:30:02 1lmpMU-0002oK-Sy Completed
2021-05-30 03:30:02 1lmskU-0005nj-9i Message is frozen
2021-05-30 03:30:02 1lmxaU-0005GP-Cl Message is frozen
2021-05-30 03:30:02 1lmyFU-0007Nu-Qk Message is frozen
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
6,852
904
313
cPanel Access Level
Root Administrator
There's several different messages there, but none of them look like a normal email being sent out from a cPanel account.

It might be easier to run the following command on the server while you send a test message so you can watch the mail logs in real-time:

Code:
tail -f /var/log/exim_mainlog
Just let that run while you send a message from webmail and you'll see the entire mail transaction show up in the log.
 

khubbaib

Member
Jun 1, 2021
8
1
3
Pakistan
cPanel Access Level
Root Administrator
here is the full log

Code:
[[email protected] ~]# tail -f /var/log/exim_mainlog
2021-06-06 08:09:06 1lpnqE-0001zo-Pq <= <> R=1lpnqE-0001zh-Me U=mailnull P=local S=48084 T="Mail delivery failed: returning message to sender" for [email protected]
2021-06-06 08:09:06 1lpnqE-0001zh-Me Completed
2021-06-06 08:09:06 1lpnqE-0001zy-RS <= <> R=1lpnqE-0001zh-OJ U=mailnull P=local S=5310 T="Mail delivery failed: returning message to sender" for [email protected]
2021-06-06 08:09:06 cwd=/var/spool/exim 3 args: /usr/sbin/exim -Mc 1lpnqE-0001zo-Pq
2021-06-06 08:09:06 1lpnqE-0001zh-OJ Completed
2021-06-06 08:09:06 cwd=/var/spool/exim 3 args: /usr/sbin/exim -Mc 1lpnqE-0001zy-RS
2021-06-06 08:09:06 1lpnqE-0001zo-Pq => cubikum ([email protected]) <[email protected]> R=localuser T=dovecot_delivery C="250 2.0.0<[email protected]> sJneNqKCvGBMFwAAxXa0LQ Saved"
2021-06-06 08:09:06 1lpnqE-0001zo-Pq Completed
2021-06-06 08:09:06 1lpnqE-0001zy-RS => cubikum ([email protected]) <[email protected]> R=localuser T=dovecot_delivery C="250 2.0.0<[email protected]> 6HfwNqKCvGCnGQAAxXa0LQ Saved"
2021-06-06 08:09:06 1lpnqE-0001zy-RS Completed
2021-06-06 08:10:01 cwd=/home/t10cricket 9 args: /usr/sbin/sendmail -FCronDaemon -i -odi -oem -oi -t -f t10cricket
2021-06-06 08:10:01 cwd=/home/cricketmobileapp 9 args: /usr/sbin/sendmail -FCronDaemon -i -odi -oem -oi -t -f cricketmobileapp
2021-06-06 08:10:01 cwd=/home/gifincric 9 args: /usr/sbin/sendmail -FCronDaemon -i -odi -oem -oi -t -f gifincric
2021-06-06 08:10:01 1lpnr7-00022g-JX <= [email protected] U=cricketmobileapp P=local S=1436 T="Cron <[email protected]> wget -O /dev/null http://api.cricketmobileapp.com/save_json.php" for [email protected]
2021-06-06 08:10:01 cwd=/var/spool/exim 4 args: /usr/sbin/exim -odi -Mc 1lpnr7-00022g-JX
2021-06-06 08:10:01 1lpnr7-00022g-JX Sender identification U=cricketmobileapp D=cricketmobileapp.com S=cricketmobileapp
2021-06-06 08:10:01 1lpnr7-00022g-JX SMTP connection outbound 1622967001 1lpnr7-00022g-JX cricketmobileapp.com [email protected]
2021-06-06 08:10:01 1lpnr7-00022h-Kv <= [email protected] U=t10cricket P=local S=1400 T="Cron <[email protected]> wget -O /dev/null http://t10cricket.live/myrest/user/match_playing_eleven" for t10cricket
2021-06-06 08:10:01 cwd=/var/spool/exim 4 args: /usr/sbin/exim -odi -Mc 1lpnr7-00022h-Kv
2021-06-06 08:10:01 1lpnr7-00022g-JX ** [email protected] R=dkim_lookuphost T=dkim_remote_smtp: all hosts for 'gmail.com' have been failing for a long time (and retry time not reached)
2021-06-06 08:10:01 cwd=/var/spool/exim 8 args: /usr/sbin/exim -odi -t -oem -oi -f <> -E1lpnr7-00022g-JX
2021-06-06 08:10:01 1lpnr7-00024T-MS <= <> R=1lpnr7-00022g-JX U=mailnull P=local S=2912 T="Mail delivery failed: returning message to sender" for [email protected]
2021-06-06 08:10:01 cwd=/var/spool/exim 4 args: /usr/sbin/exim -odi -Mc 1lpnr7-00024T-MS
2021-06-06 08:10:01 1lpnr7-00022h-Kv => t10cricket <[email protected]> R=localuser T=dovecot_delivery C="250 2.0.0 <[email protected]> ACBSKdmCvGCnGQAAxXa0LQ Saved"
2021-06-06 08:10:01 1lpnr7-00022h-Kv Completed
2021-06-06 08:10:02 1lpnr7-00024T-MS => cricketmobileapp <[email protected]> R=localuser T=dovecot_delivery C="250 2.0.0 <[email protected]> MM74K9mCvGBMFwAAxXa0LQ Saved"
2021-06-06 08:10:02 1lpnr7-00024T-MS Completed
2021-06-06 08:10:02 1lpnr7-00022g-JX Completed
2021-06-06 08:11:01 cwd=/home/cricketmobileapp 9 args: /usr/sbin/sendmail -FCronDaemon -i -odi -oem -oi -t -f cricketmobileapp
2021-06-06 08:11:01 cwd=/home/t10cricket 9 args: /usr/sbin/sendmail -FCronDaemon -i -odi -oem -oi -t -f t10cricket
2021-06-06 08:11:01 1lpns5-00025C-T2 <= [email protected] U=cricketmobileapp P=local S=1436 T="Cron <[email protected]> wget -O /dev/null http://api.cricketmobileapp.com/save_json.php" for [email protected]
2021-06-06 08:11:01 cwd=/var/spool/exim 4 args: /usr/sbin/exim -odi -Mc 1lpns5-00025C-T2
2021-06-06 08:11:01 1lpns5-00025C-T2 Sender identification U=cricketmobileapp D=cricketmobileapp.com S=cricketmobileapp
2021-06-06 08:11:01 1lpns5-00025B-UB <= [email protected] U=t10cricket P=local S=1400 T="Cron <[email protected]> wget -O /dev/null http://t10cricket.live/myrest/user/match_playing_eleven" for t10cricket
2021-06-06 08:11:01 1lpns5-00025C-T2 SMTP connection outbound 1622967061 1lpns5-00025C-T2 cricketmobileapp.com [email protected]
2021-06-06 08:11:01 cwd=/var/spool/exim 4 args: /usr/sbin/exim -odi -Mc 1lpns5-00025B-UB
2021-06-06 08:11:01 1lpns5-00025C-T2 ** [email protected] R=dkim_lookuphost T=dkim_remote_smtp: all hosts for 'gmail.com' have been failing for a long time (and retry time not reached)
2021-06-06 08:11:01 cwd=/var/spool/exim 8 args: /usr/sbin/exim -odi -t -oem -oi -f <> -E1lpns5-00025C-T2
2021-06-06 08:11:02 1lpns5-00026v-Vr <= <> R=1lpns5-00025C-T2 U=mailnull P=local S=2912 T="Mail delivery failed: returning message to sender" for [email protected]
2021-06-06 08:11:02 cwd=/var/spool/exim 4 args: /usr/sbin/exim -odi -Mc 1lpns5-00026v-Vr
2021-06-06 08:11:02 1lpns5-00025B-UB => t10cricket <[email protected]> R=localuser T=dovecot_delivery C="250 2.0.0 <[email protected]> MCA+OhWDvGCnGQAAxXa0LQ Saved"
2021-06-06 08:11:02 1lpns5-00025B-UB Completed
2021-06-06 08:11:02 1lpns5-00026v-Vr => cricketmobileapp <[email protected]> R=localuser T=dovecot_delivery C="250 2.0.0 <[email protected]> gFqcARaDvGBMFwAAxXa0LQ Saved"
2021-06-06 08:11:02 1lpns5-00026v-Vr Completed
2021-06-06 08:11:02 1lpns5-00025C-T2 Completed
 

cPJustinD

Administrator
Staff member
Jan 12, 2021
286
50
103
Houston
cPanel Access Level
Root Administrator
Hello khubbaib! One thing from the log entries you provided that stands out most to me is the following line:
Code:
2021-06-06 08:10:01 1lpnr7-00022g-JX ** [email protected] R=dkim_lookuphost T=dkim_remote_smtp: all hosts for 'gmail.com' have been failing for a long time (and retry time not reached)
We've published an article that offers some guidance on troubleshooting these errors here:

All hosts for 'example.tld' have been failing for a long time (and retry time not reached)

I hope that this information helps. If you have any other questions or concerns, please let us know!
 
  • Like
Reactions: cPRex
Thread starter Similar threads Forum Replies Date
E Miscellaneous 5
C Miscellaneous 9