Mar 10

What is SMTP ?

A protocol to allow mail servers to exchange messages with each other.

What is telnet ?

Telnet is a user command and an underlying TCP/IP protocol for accessing remote computers

mail specification that i use:

ii  sendmail                              8.14.2-2build1                        powerful, efficient, and scalable Mail Trans
ii  sendmail-base                         8.14.2-2build1                        powerful, efficient, and scalable Mail Trans
ii  sendmail-bin                          8.14.2-2build1                        powerful, efficient, and scalable Mail Trans
ii  sendmail-cf                           8.14.2-2build1

Okay here is what i do on my shell

# telnet localhost 25
Trying 127.0.0.1…
Connected to localhost.
Escape character is ‘^]’.
220 blog.test.org ESMTP Sendmail 8.14.2/8.14.2/Debian-2build1; Tue, 10 Mar 2009 12:25:30 +0700; (No UCE/UBE) logging access from: localhost(OK)-localhost [127.0.0.1]
helo blog.test.org
250 binusianblog.blog.binusian.org Hello localhost [127.0.0.1], pleased to meet you
mail from:blog.test.org
250 2.1.0 test@blog.binusian.org… Sender ok
rcpt to: testing@gmail.com
250 2.1.5 testing@gmail.com… Recipient ok
data
354 Enter mail, end with "." on a line by itself
this is a test using telnet.
.
250 2.0.0 n2A5PUKw012413 Message accepted for delivery
quit
221 2.0.0 binusianblog.blog.binusian.org closing connection
Connection closed by foreign host.
 

Feb 16

 How to make cpanel save our custom httpd.conf configuration

Yesterday i just found out that my nagios website on my cpanel server was off, i cannot access the nagios site. Then i tried to checked the server httpd.conf on /usr/local/apache/conf/httpd.conf it seem that my nagios conf path( Include "/usr/local/apache/conf.d/nagios.conf/httpd.conf")  has been deleted , then i tried to search nagios.conf httpd.conf also has bee changes from /usr/local/apache/conf.d/nagios.conf/httpd.conf to /usr/local/apache.backup/conf.d/nagios.conf/httpd.conf. Then i tried to ask the CPANEL support, they said

In order to save changes to the httpd.conf file after manually adding entries, you should run the following command: 

/usr/local/cpanel/bin/apache_conf_distiller –update 

Otherwise, cPanel will overwrite the changes.

How come my httpd.conf changes ? , they said this:

In general, this happens anytime cPanel uses: 

/scripts/rebuildhttpdconf 

This is used whenever new accounts are created, add-on/parked domains are added, or anytime cPanel is required to make changes to the httpd.conf file
By using: 

/usr/local/cpanel/bin/apache_conf_distiller –update 

It saves the changes, so that when the httpd.conf file is rebuilt, the changes are preserved.

 

Okay , so if you make any custom changes on the cpanel httpd.conf on /usr/local/apache/conf/httpd.conf you need to run . /usr/local/cpanel/bin/apache_conf_distiller –update after that so it will be save by cpanel configuration