Last week, i had a job migrating mail server from exim to postfix, but sadly, till now, this job unfinished yet😦. The main problem was synchronizing mail user from different engine to the new one. Thats the first problem. I wont discuss it in here. And, the second problem is, antispam. On my new mail server, antispam consist of spamassasin,Fuzzy-OCR,clamav,maia,and sane-security. Maia is a virus and spam management system built on SpamAssassin and amavisd-new scanner. It mainly supports scanning for viruses, spam, banned attachment types and invalid mail headers. It gives users control over their email accounts and the ability to manage their own content filtering settings through a web-based interface. Confirmed spam and ham are used to automatically train SpamAssassin’s Bayes engine and these recognitions can be automatically reported to spam-monitoring networks. Sounds interesting, isn’t it ? When i configuring maia using existing ports, i had an error on dependency file😦. Finally, i downgrade maia.
How to downgrade ports in FreeBSD ? here is it :
1. First, install portdowngrade program :
2. install it :
make DEFAULT_CVS_SERVER=\”:pserver:firstname.lastname@example.org:/home/ncvs\” install clean
3. downgrade your ports :
pretty easy right ?
hellow readers, back again. Today,i wanna post a blog litte bit different. on my earlier post, i talk about UNIX world, but now, i wanna share to you about song. Song? yeah, song. Everybody including you must have memorable songs right ? me too😀. here it is :
1. Christian Sugiono – Dewi Malam
This song is original soundtrack of ‘JOMBLO’ movies. Why do i like this song ? This song reminds me of time when i chasing her about 4 years ago. and now, she’s my girlfriend. Simple accoustic guitar, simple songs, and easy to learn. I think, if you chasing someone, you should sing this song to your lover, at night, that’s very romantic moment.
2. Craig David – Unbelivable
This is my fave song’s too. my advice, you should sing this song to your lover. With guitar of course🙂
3. Trisha Yearwood – How Do I Live
this song is original soundtrack of ‘Con Air’. When we watching that movie, i hold her hand, and when the songs is played, i kiss her. my girlfriend said, that when i hear this song, i should remember ‘puppy’, her crocker spaniel dog, and sadly, puppy already in heaven now😦
4. Daniel Bedingfield – If You’re Not The One
this song reminds me of her. when she’s in kalimantan, i said, ‘if you come to bandung, i will sing this song in front of you’. After i said that, i learn this song in 1 week with my guitar. She’s come to Bandung, it’s time for me to sing that song in front of her. i’m very nerveous. and finally, i cannont completed singing that song, only until the reffrain. why ? because i’m so nerveous😐.
in this morning, i’ve make a simple script for copying files from server A to server B. When i try to use sshles password, my remote-server always asked me a password. i’ve give up configuring sshless password between server A to server B, so i try to use FTP. little bit tricky i think, but this is only the way. Here’s the simple script for uploading file via FTP in bash :
ftp -inv $HOST << EOF
# Call 2. Here the login credentials are supplied by calling the variables.
user $USER $PASS
# change to the FTP directory where you want to put or get
# Upload A file to FTP server using put
put uji_coba-`date +%Y-%m-%d`.ypt
# or downloading file from ftp server
# get uji_coba-`date +%Y-%m-%d`.ypt
find /directory -type f -mtime +12 | xargs rm
When you try to securing FTP server with firewall, you should concert about FTP mode. there’s 2 ftp modes, passive and active FTP.I’ve try to configuring pf rules for FTP passive mode with simple rule like this (default block on PF) :
pass in on $ext_if proto tcp to port 21
when servicing passive FTP connection, FTP server using high random ports for transfering data. So, you must passing all of those ports. PF rules will look like this :
pass in on $ext_if proto tcp to port 21
pass in on $ext_if proto tcp to port > 49151
i have 10 oracle enterprise linux running as server. and i want to monitor those server activity (traffic,memory usage, disk usage and etc). i’ve configuring snmp on those server. after 1 week snmp agent running on those server, i’ve shocked. everytime snmp manager run get-request message, and agent gave reply with get-reply message, it logged to /var/log/messages. i dont want my /var/log/messages filled up with snmp log request. And how to fix that problem ?
open file /etc/sysconfig/snmpd.options, and add these following lines :
OPTIONS=”-LS 0-4 d -Lf /dev/null -p /var/run/snmpd.pid”
restart your snmp service, and done🙂
today, after christmas, i have a job, copying backup folder to surabaya. My backup format is dir-name-YYYY-MM-DD, and i want to copy all of file in that directory one day earliear from the current date. So, how i do that task ? after reading man pages of date, i’ve got a clue, here it is :
to get 1 day earlier than today, run this command :
date -v-1d +%Y-%m-%d
on my directory format (dir-name-YYYY-MM-DD), i run this command :
scp -r dir-name-$(date -v-1d +%Y-%m-%d) email@example.com:/wew/