Linux Tutorial | Matt Cooper - Open Source Support
Linux Tutorial | Matt Cooper - Open Source Support
CPanel Troubleshooting

Cpanel – R=localuser T=local_delivery – email won’t deliver

Cpanel is trying to deliver mail to the local server as the domain you are trying to send to is more than likely hosted on the same server.

When setting up the web domain Cpanel creates localdomains hence it tries to deliver to itself.

To fix simply edit the localdomains file and remove the domain in question:

vim /etc/localdomains

Delete the domain and write/quit.

September 23, 2014by Matt Cooper
FacebookTwitterPinterestGoogle +Stumbleupon
CPanel Troubleshooting

Cpanel – There was a problem removing the subdomain

I was unable to remove a subdomain from my Cpanel giving me the error:

There was a problem removing the subdomain

To fix the issue I carried out the following steps:

1. Backup the following files:

/var/cpanel/userdata/username/main
/var/cpanel/userdata/username/sub.maindomain.com
/var/cpanel/users/username
/var/named/maindomain.com.db
/var/cpanel/userdata/account/sub.domain.com
/var/cpanel/userdata/account/sub.domain.com.cache
/usr/local/apache/conf/httpd.conf

2. Remove all lines containing the subdomain from /var/cpanel/userdata/username/main:

vim /var/cpanel/userdata/username/main

3. Remove the subdomain file completely from /var/cpanel/userdata/username/:

rm /var/cpanel/userdata/username/sub.maindomain.com

4. Remove all lines containing the subdomain from /var/cpanel/users/username:

vim /var/cpanel/users/username

5. Remove all lines containing the subdomain from /var/named/maindomain.com.db:

vim /var/named/maindomain.com.db

6. Remove subdomain files from /var/cpanel/userdata/account/:

rm /var/cpanel/userdata/account/sub.domain.com
rm /var/cpanel/userdata/account/sub.domain.com.cache

7. Now we need to rebuild some files and restart apache:

/scripts/rebuildhttpdconf
/etc/init.d/httpd restart
/scripts/updateuserdomains

Now login to your CPanel interface and check the subdomain is removed.

If not try and add the same subdomain again and then remove. This worked for me.

That should be it gone.

*This was taken from http://forums.cpanel.net/f5/clean-subdomain-removal-192441.html. Step 6 was the extra step I needed to take to complete the removal.

July 2, 2014by Matt Cooper
FacebookTwitterPinterestGoogle +Stumbleupon

About me

Hi, I'm Matt Cooper. I started this blog to pretty much act as a brain dump area for things I learn from day to day. You can contact me at: matt@linuxtutorial.co.uk

Recent Comments

  • Andrew on Export list of Amazon EC2 Instances to CSV
  • Matt Cooper on Proxmox – add a second hard drive to node for Backups
  • karis on Proxmox – add a second hard drive to node for Backups
  • Matt Cooper on Remote MySQL Database – Slow Connection
  • Matt Cooper on Bash script to send public IP address to Email

Categories

  • AdvancedTomato
  • Amazon AWS
  • Amazon Linux
  • Amazon S3
  • Apache
  • Backup Tutorial
  • Bash Scripting
  • Centos Tutorial
  • CloudFlare
  • Command line Tutorial
  • CPanel Troubleshooting
  • CPanel Tutorial
  • Debian Troubleshooting
  • Debian Tutorial
  • DKIM
  • Docker
  • EC2
  • ESXi
  • Faildows
  • Google Adwords
  • Google Analytics
  • Google Chromebook
  • Google Mail
  • graylog
  • IAM
  • imapsync
  • iRedmail Tutorial
  • ISPConfig3 Tutorial
  • Java
  • ldap
  • letsencrypt
  • MyDNS
  • MySQL Troubleshooting
  • MySQL Tutorial
  • Nest Install
  • Netbeans
  • Nginx
  • Nginx Troubleshooting
  • openssl
  • PCI Compliance
  • Percona
  • PHP
  • Plex Media Server Tutorial
  • Postfix
  • Proxmox Tutorial
  • Pure FTPd
  • Resourcespace Tutorial
  • Route 53
  • Rsync Tutorial
  • Security
  • Smoothwall Troubleshooting
  • Smoothwall Tutorial
  • SSH
  • tcpdump
  • Thunderbird
  • Tomcat Troubleshooting
  • Ubuntu Tutorial
  • Uncategorized
  • Unison
  • vmware
  • vzdump
  • WHM
  • Wireshark
  • Wordpress Troubleshooting
  • WordPress Tutorial

“See, you not only have to be a good coder to create a system like Linux, you have to be a sneaky bastard too." Linus Torvalds

© 2017 copyright www.linuxtutorial.co.uk // All rights reserved