Author Archives: cahpct

Configuring Active Directory (AD DS) in Windows Server 2012

Windows Server 2012 introduces a plethora of new features with a key emphasis on Cloud integration being the buzz word in the industry over the last 24 months.  Windows continues to grow and mature as an operating system with the latest iteration being more secure, reliable and robust and more importantly making it easily interoperable with other systems.

This post will focus on Installing a Windows 2012 Server and then promoting it as the first domain controller in a new Forest.  Even though the logical steps haven’t really changed dramatically since the introduction of Windows 2008, the interface has! especially with the new metro look.  So let’s begin our journey with Windows Server 2012 as this will be the first of many articles on configuring different components that Windows Server 2012 has to offer. Continue reading

Setting Up Your First Active Directory Domain Controller With Windows Server 2012

Dcpromo can’t be used anymore with Windows Server 2012. dcpromo has been deprecated. We have been always using Dcpromo to setup a domain controller. However, with Windows Server 2012, you can only use it for an unattended installation. So what is the alternative ? well, you have to use Server Manager

If you tried to run dcpromo, you will receive the below popup message

Continue reading

How to unblock IP address from CSF

You can simply check this by running following command on terminal:
grep <IP address> /etc/csf/*
grep <IP address> /var/log/lfd.log
If the IP is blocked with the firewall(CSF), you can unblock it using following methods:

Temporary Method:
csf -tr <IP address>
After unblocking do not forget to restart CSF to make this step effective by hitting this command:
csf -r
/etc/init.d/csf restart

Permanent Method:
csf -dr <IP address>
Again, restart the firewall to make  changes effective.
csf -r
/etc/init.d/csf restart

How to create a SPF record in cPanel

  1. Login to the cPanel Account.
  2. Click the “Email Authentication” button.
  3. Click the “Enable” button found under the SPF heading
  4. You now have a basic SPF record setup for the domain name. Advanced users may wish to tweak it by modifying the settings below the “Enable” button.

Enterprise storage

Senin dan selasa tanggal 24 dan 25 juni saya berkesempatan nimbrung bareng dengan team surya University (selanjutnya saya singkat SU), di summarecon gading serpong untuk mempersiapkan datacenter kampus baru SU.

Selama ini dalam pekerjaan sehari – hari yang berhubungan datacenter saya masih menggunakan server yang  berbasiskan singel server dan virtual server yang gratis. Untuk os server saya biasa menggunakan LINUX dengan apalikasi cPanel, bind, postfix, apache, nginx dll , untuk kebutuhan virtual server saya menggunakan vmware versi gratisan dengan alasan cukup mudah dalam hal installasi dan maintenance, tapi tidak untuk backup sampai saat ini saya belum pernah explore bagaimana membackup vmware yang versi free ini. Continue reading

Membuat Smtp email Gateway

Dua hari ini saya berkesempatan membantu teman untuk membuat smtp email gateway. Sebenarnya saya sudah lama tidak ngoprek smtp. Mumpung ada kesempatan untuk merefresh ulang ingatan maka saya siap membantu.

Berikut hal yang akan di bangun

  • Smtp email gateway untuk menerima dan mengirim email dari emailserver dengan detail : hostname :(server ip = Setting mx pada dns sudah mengarah ke = smtp IN MX 10
  • Email server menggunakan zimbra 8.0 dengan detail : hostname: ( ip =

Langkah – langkah pembuatan email server gateway:

      • Install linux centos 6.4 64 bit ( akan di gabungkan dengan kaspersky mailgateway dikemudian hari)
      • Pastikan hostname dengan command: nano /etc/hosts  :-> untuk melihat hostname yang sudah di buat dengan perintah : hostname -f
      • Install postfix = yum install Postfix
      • Settup = nano /etc/postfix/

alias_database = hash:/etc/aliases
append_at_myorigin = no
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
data_directory = /var/lib/postfix
debug_peer_level = 2
html_directory = no
inet_interfaces = all
inet_protocols = all
mail_owner = postfix
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain,
mydomain =
myhostname =
mynetworks =
mynetworks_style = host
myorigin =
newaliases_path = /usr/bin/newaliases.postfix
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.6.6/README_FILES
relay_domains =
sample_directory = /usr/share/doc/postfix-2.6.6/samples
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
transport_maps = hash:/etc/postfix/transport
unknown_local_recipient_reject_code = 550
    • Edit file  : nano /etc/postfix/transport  smtp:[]
  • Setiap perubahan perlu melakukan map ulang dan restart system postfix:
postmap /etc/postfix/transport

Dan lakukan restart Postfix:

/etc/init.d/postfix restart

Selanjutnya untuk server zimbra. Asumsinya bahwa server zimbra sudah berjalan dan tinggal mensetting relay ke server smtp dengan mengganti pada MTA setting.

Home -> Configure -> Global Settings -> MTA

Relay MTA for external delivery:

Web mail MTA

Inbound SMTP host name:

MTA Trusted Networks:

Selanjutnya tes kirim email dan cek log pada smtp server email gateway

tail -f /var/log/maillog

May 30 06:28:49 smtp postfix/qmgr[18042]: EA47022034A: from=<>, size=13742, nrcpt=1 (queue active)
May 30 06:28:49 smtp postfix/smtpd[23059]: disconnect from[]
May 30 06:28:49 smtp postfix/smtp[23064]: EA47022034A: to=<>, 
relay=[]:25, delay=0.77, delays=0.57/0.01/0.12/0.08, dsn=2.0.0, status=sent (250 2.0.0 Ok: 
queued as 0659B30002F)

Apabila anda atau perusahaan anda memerlukan jasa setting email gateway dan membangun email server yang free alias gratis silahkan menggunakan zimbra, jangan lupa contact saya di jamin maknyus!!

clnt_create: RPC: Program not registered

Usually you get this error if the you are trying to using showmount command to see the available nfs shares on your remote nfs server.

[root@client ~]# showmount -e
clnt_create: RPC: Program not registered

If the nfs service is runnging on your remote nfs server, you get this error on your client machine after running showmount command.To resolve this issue, just check if the nfs service is running on your server or not

[root@manny ~]# /etc/init.d/nfs status
rpc.svcgssd is stopped
rpc.mountd is stopped
nfsd is stopped
rpc.rquotad is stopped

Simply restart the nfs service on server and also make it start at startup using chkconfig command

[root@server ~]# /etc/init.d/nfs restart

[root@server ~]# chkconfig nfs on



Recomended wordpress security mode

.htaccess    ../.htaccess    404
wp-config.php    ../wp-config.php    400
index.php    ../index.php    400
wp-blog-header.php    ../wp-blog-header.php    400
root folder    ../    705
wp-admin/    ../wp-admin    705
wp-includes/    ../wp-includes    705
wp-content/    ../wp-content    705
wp-content/bps-backup/    ../wp-content/bps-backup    755