Fixes

If any of the ip does not ping, then we need to change it to google’s ip. i.e. 8.8.8.8  or  8.8.4.4  . Check with the below command.

# more /etc/resolv.conf

If, it does not ping, then :

# vi /etc/resolv.conf

nameserver 8.8.8.8   OR

nameserver 8.8.4.4

and save..

==============================================
Allow ip to servers :

vi /etc/hosts

vi /etc/snmp/snmpd.conf

service snmpd restart

 

vi /etc/xinetd.d/nrpe

/etc/init.d/xinetd restart

 

vi /etc/sysconfig/iptables

service iptables restart

 

vi /etc/csf/csf.ignore

vi /etc/csf/csf.allow

csf -r

==============================================
reset password for ssh:

login to webmain >> system >> users and groups >> select “user”, and copy password from keypass for the same and save.

done…..

==============================================
Check resource usage for reseller’s domain i.e. vps named:

Login to Whm>> list accounts >>> enter domain name >>>> then “click on c-panel” >>>> metrics >> click on “cpu and concurrent connection usage” >>> click on “details” >> select “Timeframe:” and submit query to check.

Done.

==============================================
Resources setting up to unlimited in whm for particular account:

Resources setting up to unlimited in whm >> Cloud Linux LVE manager >> click on settings >>> search for domain >>> and edit. and then set as per requirement..

==============================================
Uninstall and reinstall logwatch :

To erase package :
rpm -e logwatch-7.4.1-1.noarch

To install package:
rpm -ivh logwatch-7.4.1-1.noarch.rpm

Logwatch installation and configuration :

Download latest RPM from:
http://www.logwatch.org/
–> Current at the time of documenting http://sourceforge.net/projects/logwatch/files/logwatch-7.4.1/logwatch-7.4.1-1.noarch.rpm

# cd /usr/local/src/
# wget RPM download link
# rpm -ivh logwatch-<downloaded>.rpm

The logwatch configuration files are in /etc/logwatch/ and the default configuration is in /usr/share/logwatch/. This is not to be modified. We will modify the localized copy.

# cd /etc/logwatch/conf
# cp /usr/share/logwatch/default.conf/logwatch.conf logwatch.conf
# vi logwatch.conf
Find and change following parameters:

Output = mail
MailTo = root
MailFrom = root@hostname [Eg. MailFrom = root@abc.server.com]
Detail = Med
Add the following under the option “# You can also disable certain services (when specifying all)”
Service = “-iptables”

Save file.

Now test the logwatch by command:
# logwatch

==============================================
Clamd service stopped.

It happens after the cpanel update.

# ps auxf | grep clamd

Solution :
kill the clamd processes running and then start clamd service to get this fixed.

Done…

==============================================

WHM Whitelist to Exclude from Exim Sender Verify Callbacks :

Sender verification is an important feature used by email servers to help prevent spam. When sender verification is enabled, the receiving email server checks to make sure the sender exists. Various email servers have different ways of handling this feature. Exim, for example, uses a mechanism called ‘sender callouts’ or ‘callbacks’. (When the sending server does not accept a verification request, it does not comply with RFC 2821.)

However, in the event that the network route from the receiving email server to the originating email server is broken (or a firewall blocks the connection), the result can be a bit confusing. The receiving email server treats a failed verification as a failed verification, regardless of whether or not it could even connect to the originating server. This means the email never comes through to the recipient. After all, as far as the email server knows, it’s spam.

One of my hosting clients was experiencing this “lost email” problem and a quick grep at /var/log/exim_mainlog confirmed the problem (hosts and IPs changed for obvious reasons):


2008-11-17 15:02:27 [30121] H=relay1.example.com (qsv-spam1.example.com) [67.26.151.59]:36752 I=[69.161.211.25]:25 sender verify defer for <administrator@customer.example.com>: could not connect to customer.example.com [163.112.75.15]: Connection timed out
2008-11-17 15:02:27 [30121] H=relay1.example.com (qsv-spam1.example.com) [67.26.151.59]:36752 I=[69.161.211.25]:25 F=<administrator@customer.example.com> temporarily rejected RCPT <raam@mydomain.com>: Could not complete sender verify callout
2008-11-17 15:02:27 [30120] H=relay1.example.com (qsv-spam1.example.com) [67.26.151.59]:36751 I=[69.161.211.25]:25 incomplete transaction (RSET) from <administrator@customer.example.com>

As you can see, the email server was unable to connect to customer.example.com to verify the existence of the sender (administrator@customer.example.com). This doesn’t mean the sending server doesn’t verify callbacks, but rather that the network connection from my server to the sending server could not be established.

Most of the stuff I found online related to solving this problem on a server running WHM (here and here) explain how to modify exim.conf to add special whitelist rules. Luckily, my server is running WHM 11.23.2 and has a whitelist option that makes it really easy to exclude a particular IP address from sender verification without any manual changes to exim.conf:

1. Click Service Configuration -> Exim Configuration Editor
2. Under Access Lists, find “Whitelist: Bypass all SMTP time recipient/sender/spam/relay checks” and click [EDIT]
3. Add the IP address for the sending server for which you wish to skip sender verification (as the note at the bottom explains, hosts cannot be used in this list)
4. Click Save
5. Click Save again near the bottom of the Exim Configuration Editor page

That’s it! Now any emails from that IP that were failing to come through because of a sender verification failure will come through without a problem (again, you can watch /var/log/exim_mainlog to confirm).

==============================================

Email issue:
warning: mail() [function mail]: Failed to connect to mailserver at bnet129.balasai.com” port 465, verify your “SMTP” and “smtp_port” setting in php.ini or use ini_set() in D:xampp\htdocs\email_transfer\final_send_mail.php on line 105. Error in mail.

 

Solution, step 1:
As per the header Kindly check once your SMTP settings. If you are using port 465 then Please select the option “This server requires an encrypted connection” and make it SSL. or else use SMTP port no. 25 or 587 and make “This server requires an encrypted connection” as TLS. Kindly check once and confirm the same.
Solution step 2:
We have checked the attached screenshots. This error means your mail server requires SMTP authentication to send emails. Built-in PHP mail() function that PHPRunner uses doesn’t support SMTP authentication.

To resolve this issue use custom PHP mail function.
==============================================
Error:

Emails sent from a particular domain has set to autoresponder. But it only autoresponds to the domains within the same

environment. for eg. abc@sagar.com can send auto response to all other domains ending with xyz@sagar.com ccc@sagar.com,

but when it comes to amol@balasai.com, then the autoresponder does not send any message and no bounceback received.

 

Solution:

Make sure that the SMTP authentication is set to enable at the client erp or any application he is using.

without smtp authentication no auto responder works, only within same domain it will work as it requires no specific

authentication for autoresponder within the same domains.

==============================================

Email issue:
warning: mail() [function mail]: Failed to connect to mailserver at bnet129.balasai.com” port 465, verify your “SMTP” and “smtp_port” setting in php.ini or use ini_set() in D:xampp\htdocs\email_transfer\final_send_mail.php on line 105. Error in mail.

 

Solution, step 1:
As per the header Kindly check once your SMTP settings. If you are using port 465 then Please select the option “This server requires an encrypted connection” and make it SSL. or else use SMTP port no. 25 or 587 and make “This server requires an encrypted connection” as TLS. Kindly check once and confirm the same.
Solution step 2:
We have checked the attached screenshots. This error means your mail server requires SMTP authentication to send emails. Built-in PHP mail() function that PHPRunner uses doesn’t support SMTP authentication.

To resolve this issue use custom PHP mail function.
=================================================================================
Error:

Emails sent from a particular domain has set to autoresponder. But it only autoresponds to the domains within the same

environment. for eg. abc@sagar.com can send auto response to all other domains ending with xyz@sagar.com ccc@sagar.com,

but when it comes to amol@balasai.com, then the autoresponder does not send any message and no bounceback received.

 

Solution:

Make sure that the SMTP authentication is set to enable at the client erp or any application he is using.

without smtp authentication no auto responder works, only within same domain it will work as it requires no specific

authentication for autoresponder within the same domains.

=================================================================================

Redirect from HTTPS to HTTP

There are some specific cases when you want to redirect particular URL or a single website to be opened through HTTP instead of HTTPS. For that purpose you should add the following rewrite rule in your .htaccess file:

 

 

# Redirect HTTPS to HTTP

RewriteCond %{HTTP:X-Forwarded-Proto} =https

RewriteRule ^(.*)$ http://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

This will redirect your “https://yourdomain.com&#8221; to “http://yourdomain.com&#8221;. That is, the opposite of what everyone teaches.

=================================================================================
Update DNS from webmin :

Login to webmin with admin details>> Click on “servers”>>> MySQL Database Server >>> power dns>>> records>>> view data>>> Search for rows where field: select “name” ”contains” and enter “domain name” for which we are making changes and then click on “search”.
Then select the “domain id” and note it in notepad, of the concerned domain in tab2.

Then click on “Add row” >>> Enter the “domain id” for particular domain. Enter “Name” i.e. domain or subdomain which entry is required to update or add.
Enter “type” i.e. A or SOA

Enter “ttl” 600 or whatever is required.

And click on save..
Then again search for domain’s “SOA” with check mark in front of that.
And click on “Edit selected rows”

In “content” section make changes for particular date on which changes are made.
And click on “save”

DONE..

==================================================================================
FILEZILLA ERROR :

421 Too many connections (4) from this IP

 

 

 

As per the screenshot, please do following settings to increase the count of connection IP addresses in filezilla.
———
1) Open FileZilla.
2) Access the “Site Manager”.
3) Click on “Transfer Settings” tab
4) Check the box for Limit number of simultaneous connections, and set the Maximum number of connections as per your requirement.
5) Click the OK button.
———-

 

or

http://www.inmotionhosting.com/support/website/ftp/too-many-simultaneous-connections

==================================================================================

How to install Rkhunter:

http://r6host.blogspot.in/2009/09/how-to-install-rkhunter.html

===============================================================================

Increase email limit per hour from whm :

 

Login to whm>> configserver mail manage>> search for the required domain>>>manage mail hourly limits>>> enter the email limit that you need to setup>>> and click on “change”.

Cross verify the settings again once done.

 

================================================================================

OTRS updating online : commands provided by bhushan sir..

su -c “./otrs.Console.pl Maint::Config::Rebuild” -s /bin/bash otrs
su -c “./otrs.Daemon.pl start” -s /bin/bash otrs
su -c “./Cron.sh start” -s /bin/bash otrs

================================================================================

Exclude domains from rbl if it is blacklisted in isp, then make the changes in whm to get this fixed:

https://documentation.cpanel.net/display/1146Docs/RBLs

================================================================================
How do I verify my SSL Certificate details/expiry date?

https://help.crucial.com.au/hc/en-gb/articles/202376474-How-do-I-verify-my-SSL-Certificate-details-expiry-date-

================================================================================
Iphone email account setup :
https://support.apple.com/en-in/HT201320
https://mediatemple.net/community/products/dv/204404384/how-can-i-set-up-email-on-my-iphone-or-ipod-touch

================================================================================
Installing SSL certificate on vesta control panel:
https://www.namecheap.com/support/knowledgebase/article.aspx/9681//installing-a-ssl-certificate-in-vesta-cp

================================================================================
Upgrading an existing package in WHM:
Login to WHM >>> Modify an account >>> Search for the account >>> Enter required domain in “search box” and enter >>> Select “domain” >>> Click on “modify” >>> change the “user” and “package” and save.
Done.

================================================================================
Apache permissions for a folder/directory:
chown apache:apache foldername

================================================================================
Unable to create email accounts, after deleting all email accounts from Cpanel :

or

Create email account error: No such file or directory

 

Error
File open for /home/userna5/etc/domain.com/passwd failed with error No such file or directory

How to fix the No such file or directory error

  1. First, contacttech support to see if you can have your files restored from a backup.

If support does not have the files in the backups, proceed to step 2.

  1. Login into your cPanel.
  2. Go to the File Manager.Select the Home directory and click Go.
  3. Check for the following Necessary files for your server to function. The following are the files you need for your server.

– public_html
– public_ftp
– mail
– etc

If any of these are missing, you can just recreate them in the file manager. Once you have the etc and/or the mail folder created, your will be able to create email addresses again.

 

================================================================================
How do I fix the error “Mysql Server has gone away”?

https://piwik.org/faq/troubleshooting/faq_183/

========================================================================

Mailing list :
https://www.namecheap.com/support/knowledgebase/article.aspx/9565/29/how-to-create-and-manage-mailing-lists-in-cpanel

========================================================================

Error:  Unactivated License File after Upgrading Kernel

 

After updating the kernel to the latest version and rebooting I get this error when I try to log into WHM!

 

Unactivated License File

 

Following the instructions on the screen, running /usr/local/cpanel/cpkeyclt as root resolved the issue. Posted as an FYI in case anyone else gets this problem.

# /usr/local/cpanel/cpkeyclt

==================================================================