Postfix Change Header From: outgoing mail using altermime
Biasanya From: header akan di isi oleh nilai dari settingan client masing2 user.
contoh: di thunderbird From: header akan di isi settingan dari Your Name:.
untuk email2 official From header bisa di paksakan supaya menggunakan nama user yg ada di database postfix user.
dengan bantuan altermime dan sedikit coding(c dan bash script).
altermime dapat di download disini:
Coding c (access mysql db):
fungsinya untuk query field “name” (nama lengkap email user) di database postfix
paste code ini di console editor.(vi atau pico)
#include #include #include #include main(int argc,char *argv[]) { MYSQL *conn; MYSQL_RES *res; MYSQL_ROW row; char *server = "localhost"; char *user = "user"; char *password = "password"; char *database = "db"; char strsql[512]; if(argc != 2) { printf("Usage: %s ’string query’\n", argv[0]); exit(EXIT_FAILURE); } snprintf(strsql, 512, "SELECT REPLACE(TRIM(name),’\n’,”) FROM mailbox WHERE username=TRIM(’%s’)", argv[1]); conn = mysql_init(NULL); /* Connect to database */ if (!mysql_real_connect(conn, server, user, password, database, 0, NULL, 0)) { fprintf(stderr, "%s\n", mysql_error(conn)); exit(EXIT_FAILURE); } /* send SQL query */ if (mysql_query(conn, strsql)) { fprintf(stderr, "%s\n", mysql_error(conn)); exit(EXIT_FAILURE); } res = mysql_use_result(conn); while ( (row = mysql_fetch_row(res)) != NULL ) printf("%s\n", row[0]); return(0); /* Release memory used to store results and close connection */ mysql_free_result(res); mysql_close(conn); }
backup gmail account ke format maildir
centos 5 point to point tunneling PPTP VPN
Pernah terpikir buat ngeremote pc di kantor(dengan private ip) dari rumah dengan koneksi isp yg kita pakai? salah satunya dengapn cara tunneling/vpn. kali yg jadi korban kita distro centos 5 dengan kernel 2.6.18-92.1.13.el5. gimana cara installnya?
pertama install yum repository nya
# rpm -Uvh http://pptpclient.sourceforge.net/yum/stable/fc6/pptp-release-current.noarch.rpm
lanjut dengan install pptpnya
# yum --enablerepo=pptp-stable install pptp
download dotnet 3.5 dengan speedy bandwidth flat kurang lebih 1 mbps
The Large Hadron Collider: End of the world, or God’s own particle?
Large
Is an understatement. A giant circular tunnel, with several loops, stretches for 27km under the land between France and Switzerland. One of its experimental chambers is bigger than the nave of Westminster Abbey.
Hadron
The name for one of the types of particle that make up an atom. These tiny bits of energy will be propelled by giant magnets around the tunnel circuit at almost the speed of light.
Collide
Is what they will do when they meet other hadrons being beamed in the opposite direction, at the same great speed. The resulting explosion will create 100,000 times more heat than the sun, apparently. Thankfully, it will only happen for a moment, in an area a billion times smaller than a speck of dust.
The Sound Of Silence
Hello darkness, my old friend,
Ive come to talk with you again,
Because a vision softly creeping,
Left its seeds while I was sleeping,
And the vision that was planted in my brain
Still remains
Within the sound of silence.
speedy + abbatec adsl modem (bridge mode) + linksys WRT54GL (dialer PPPoE)
Pertama kali pakai speedy, nerima apa adanya setingan yg di buatin sama teknisinya(maklum bini yg jadi waspang waktu teknisinya nyeting hehehe). yg di utak atik paling cuma password modem sama password speedy nya. kebetulan punya wireless router merk linksys (WRT54GL) yg bisa PPPoE di port wan nya, jadi kepikiran buat utak atik ngubah settingan.
setingan aslinya di modem adsl nya seperti ini:
speedy quota 1G + winxp(laptop) + squid + bind9 + cache youtube (lanjutan)
Nerusin topik sebelumnya , setelah berhasil bikin proxy pakai squid di winxp, akan di coba nambahin local resolver dns pakai bind9(windows precompile binary).
step pertama, nginstall bind9 di winxp
download precompile bind9 untuk windows di sini:
http://ftp.isc.org/isc/bind9/9.5.0-P2-W2/BIND9.5.0-P2-W2.zip
- extrak di satu folder.
- didalam folder klik 2 kali BINDInstall
- muncul popup windows installer kecil, biarkan semua nya default, kecuali service account password,klik install
tunggu sampai selesai.
hasil instalasi nya nanti akan berada di sini C:\WINDOWS\system32\dns
- klik start -> run -> ketik cmd, cd ke C:\WINDOWS\system32\dns\etc\
– buat file dengan nama named.conf,isinya seperti ini: