Monday, August 2, 2010

Test AUTH SMTP Connection

Lengkapnya bisa diliat di link ini: http://qmail.jms1.net/test-auth.shtml. Saya coba summaries cara mudahnya sbb:

1. Create dulu base64 encode dari email address dan password kita:

$ perl -MMIME::Base64 -e 'print encode_base64("\000[mailbox]\@[domain]\000[password]")'

contoh:
$ perl -MMIME::Base64 -e 'print encode_base64("\000kostka\@cbn.net.id\000passkostka")'
AGtvc3RrYUBjYm4ubmkAGNibm00MWxndTM=


2. menggunakan telnet-ssl

$ telnet-ssl -z ssl smtps.cbn.net.id 465
Trying 210.210.145.21...
Connected to smtps.cbn.net.id.
Escape character is '^]'.
220 mx-corp3b.int.cbn.net.id ESMTP
ehlo cbn.net.id
250-mx-corp3b.int.cbn.net.id Hello cheyenne.cbn.net.id [202.158.50.81]
250-SIZE 10485760
250-PIPELINING
250-AUTH PLAIN LOGIN
250 HELP
auth plain AGtvc3RrYUBjYm4ubmkAGNibm00MWxndTM=
235 Authentication succeeded
mail from: kostka@cbn.net.id
250 OK
rcpt to: tslan@cbn.net.id
250 Accepted
data
354 Enter message, ending with "." on a line by itself
test ke-2 :)
.
250 OK id=1Obqkv-0004Qq-Nf


3. menggunakan openssl

$ openssl s_client -connect smtps.cbn.net.id:465
CONNECTED(00000003)
--- edited for security purposes ---
---
220 mx-corp3e.int.cbn.net.id ESMTP
ehlo cbn.net.id
250-mx-corp3e.int.cbn.net.id Hello cheyenne.cbn.net.id [202.158.50.81]
250-SIZE 10485760
250-PIPELINING
250-AUTH PLAIN LOGIN
250 HELP
auth plain AGtvc3RrYUBjYm4ubmkAGNibm00MWxndTM=
235 Authentication succeeded
mail from: kostka@cbn.net.id
250 OK
rcpt to: tslan@cbn.net.id
250 Accepted
data
354 Enter message, ending with "." on a line by itself
test kirim email via telnet ke smtps cbn :)
.
250 OK id=1ObqiT-000103-Kk

Thursday, July 22, 2010

Creating ISO Image Using DD Command

First, put the CD/DVD you want to make image into your optical drive, do not mount that CD/DVD.

If it was mounted automatically, unmount it with this command:
# umount /[mount]/[directory]

Then, do this command to create your ISO:
# dd if=/dev/cdrom of=/tmp/[isoname].iso
  • if=/dev/cdrom is the source
  • of=/tmp/[isoname].iso is the filename of the ISO you create
Or you could use the long option:
# dd if= of= bs= skip=< > seek=< > conv= count=< >
for bs (byte size), usually some power of 2, not less than 512 bytes, but can be any reasonable number (512, 1024, 2048, 4096, 8192, 16384)

OpenFire Server for Broadcast IM

These are some screenshoot of my OpenFire server configuration, I use this as an integrated service to communicate with all of my colleagues in my department. This way, we can share any update information in a more efficient and simple way :)





I Spent The Night With An iPhone