Wednesday, January 15, 2014

Mail server (using dovecot)

Finally, for a long time i'm not posting in my blog. Now i will make tutorial about mail server. If you see my old post, you can see i have make tutorial about mail server too ..., so what's different ?. In this tutorial i'm using dovecot for imap and pop3, roundcube v 0.9 (new) and non linux account.
well let's begin .. !!!

  • install linux ubuntu server version (i'm using ubuntu 12.04 LTS)
  • install postfix and mailutils : apt-get install postfix mailutils
  •   configure postfix
  • open file /etc/postfix/main.cf, edit to like this
  • restart postfix : /etc/init.d/postfix restart
  • test postfix configuration
  • create virtual mailbox group and virtual mailbox owner
  • add to /etc/postfix/main.cf
  • create new file:  /etc/postfix/vhosts (for your domain), i'm using rizal.net and ubuntu.com
  • create new file:  /etc/postfix/vmaps. To make an alias, map to same folder as another user.
  • convert vmaps into hash file by running : postmap /etc/postfix/vmaps
  • test send mail with postfix
  • install dovecot : apt-get install dovecot-common dovecot-imapd dovecot pop3d
  • configure dovecot, backup your dovecot default configuration : mv /etc/dovecot/dovecot.conf
  • create new file for dovecot configuration : nano /etc/dovecot/dovecot.conf
  • for reduce errors will be better if we using ftp server and then you can upload this file to your server. Download dovecot.conf file here
  • if you have upload dovecot.conf to your server, next step  you must copy dovecot.conf to /etc/dovecot/dovecot.conf
  • now i will make scripts for add and delete dovecot user, i hope you install ftp server, because that's really helpful
  • download script for add user here, and then upload with ftp server to your server, copy to /usr/local/sbin/
  • make file executable : chmod +x /usr/local/sbin/adddovecotuser
  • if you get error like this : /bin/sh^M bad interprenter, try this for fix it : perl -i -pe 'y|\r||d' /usr/local/sbin/adddovecotuser
  • add user like this (example) : adddovecotuser nabilah@rizal.net, and then press enter you will be required fill a password
  • download script for delete user here, and then upload and copy to : /usr/local/sbin/
  • make file executable : chmod +x /usr/local/sbin/deldovecotuser
  • if you get error like this : /bin/sh^M bad interprenter, try this for fix it : perl -i -pe 'y|\r||d' /usr/local/sbin/deldovecotuser
  • for delete user like this : deldovecotuser nabilah@rizal.net
  • restart postfix and dovecot service
  • now i will test the configuration
  • install clamav for filtering your email from virus : apt-get install clamav-daemon clamav clamsmtp
  • and then do this for completing clamav
  • now you can run clamav
  •  add to main.cf : nano /etc/postfix/main.cf
  • add to master.cf : nano /etc/postfix/master.cf
  • restart postfix : service postfix restart
  • restart dovecot: service dovecot restart
  • restart clamav: service clamav-daemon restart
  • now i will test clamav
  • install mutt : apt-get install mutt ( for attach file from command line)
  • download eicar_com.zip using wget
  • for attach eicar_com.zip do like this : mutt nabilah@rizal.net -a eicar_com.zip -s "<virus>"
  • if you finish, press enter until you see like this ..., and then press "Y" for send email
  • for check the clamav : tail /var/log/mail.log, you can see "Virus detected", and the message will be deleted
  • next step i will install roundcube 0.9 for webmail, but before install roundcube you must install lamp server : apt-get install lamp-server^
  • if you have finished install lamp server, configure mysql to like this :
  • download roundcube 0.9 from here, download complete package, and then upload to your server again with ftp and copy to /var/www
  • extrack roundcube : tar -xzvf roundcubemail-0.9.5.tar.gz
  • rename roundcubemail-0.9.5 to webmail : mv /var/www/roundcubemail-0.9.2 /var/www/webmail
  • change directory to /var/www/webmail : cd /var/www/webmail
  • change the owner for logs and temp
  • logs : chown -R www-data.www-data logs/
  • temp : chown -R www-data.www-data temp/
  • import roundcube database to mysql : mysql -u root -p roundcube < /var/www/webmail/SQL/mysql.initial.sql
  • edit file /etc/apache2/sites-available/default to like this
  • edit file /etc/apache2/httpd.conf to like this 
  • restart apache : service apache2 restart
  • go to client, open a browser and then go to roundcube installter
  • you can see there are some that not ok, for fix it do this : apt-get install php5-mcrypt php5-intl. Edit file /etc/php5/apache2/php.ini and fink "date.timezone" like this :
  •  restart you apache2 and refresh you browser
  •  click continue, edit database and imap setting to like this
  • edit smpt setting and display settings to like this
  • click create config, download main.inc.php and db.inc, upload to your server and then copy to /var/www/webmail/config
  • change the owner 
    • chown -R www-data.www-data /var/www/webmail/config/main.inc.php
    • chown -R www-data.www-data /var/www/webmail/config/db.inc.php
  •  restart apache2
  • and then click continue, if you have error like this 
  • back to mysql and do this :
    • GRANT ALL PRIVILEGES ON roundcube.* TO 'rizal'@'localhost' IDENTIFIED BY 'yourpassword' WITH GRANT OPTION;
    • flush privileges;
    • quit on mysql and restart apache and refresh a browser
  • delete installer page
  • finish ... ^o ^
 

i am sorry about my English, i just want improve my English and if you have question contact me on  
  • email : rizalubuntuuser@gmail.com
  • facebook (you can see on this blog hehehe) but before ask please add me on facebook 
 reference : https://help.ubuntu.com/community/PostfixVirtualMailBoxClamSmtpHowto#Install_Dovecot_IMAP.2BAC8-POP3_server

Sunday, October 20, 2013

how to install EPSON T20E in ubuntu 13.10

when i will install printer EPSON T20T in UBUNTU 13.10, i get trouble "failed to add new printer", the way for fix it :

  • open your browser, and type on address bar : localhost:631
  • you can see web page like this

  • switch to administrator,click add printer and you must type user and password
  • select your local printer and continue
  • if you will not share the printer, click continue
  • select your printer model, and click continue
  • click set default options
  • switch to printer, you can see like this
  • finish, you can see printer in system setting ---> printers

note :  printer must "on"

sorry ya gan kalo bahasa inggris nya rada kacau, soalnya ane lagi belajar wkwkwkkw

referensi : forum.linuxmint.com

Friday, September 13, 2013

emoticon kaskus di facebook chat dengan pidgin (Linux Ubuntu)

Mohon maaf kalau emoticon nya masih sedikit  dan hanya bisa terlihat oleh teman yang menggunakan PC dan laptop. Langsung saja ke tutorialnya :
  1. Download Pidgin instant messenger di sini, sesua sistem operasi yang anda pakai, kemudia install
  2. setelah itu setting account di pidgin agar bisa terhubung dengan facebook messenger
  • kemudia download emoticon kaskus nya di sini
  • kemudia copy kan ke /home/.purple/smileys
  • setelah itu jalankan pidgin dan klik  tools ----> prefrences -----> themes, kemudian pilih kaskus emoticon di smiley themes

  • selesai, sekarang kita tes emoticon chat nya 

referensi : www.pidgin.im

Saturday, September 7, 2013

Membuat Tampilan Ubuntu 13.04 Seperti MAC OS

Sekarang saya akan menjelaskan bagaimana caranya agar tampilan linux ubuntu seperti mac os. Yah walaupun tidak 100% mirip dan masih terdapat banyak bug hehehe. Sebetulnya tutorial ini sudah ada pada nooblabs.com hahahahahah. Oke deh langsung saja kita mulai tutorial nya :

  • install ubuntu 13.04 atau versi yang lain
  • install dekstop environment gnome
  • install compiz config setting manager
  • install cairo dock
  • install tweak tool
  • install tema dan icon mac os
    • sudo add-apt-repository ppa:noobslab/themes
    • sudo apt-get update
    • sudo apt-get install mac-icons-noobslab
    • sudo apt-get install mac-ithemes-noobslab

  • disablekan crash report : sudo sed -i "s/enabled=1/enabled=0/g" '/etc/default/apport'
  • setelah itu logout dan masuk dengan dekstop gnome fallback session
  • masuk ke tweak tool lalu pilih icon dan tema mac os 
  • nah setelah itu delete panel bawah dengan menekan tombol yang ada gambar windows + alt + klik kanan  pada panel bawa lalu pilih delete this panel
  • setelah itu jalankan cairo-dock, dan setting di start up manager agar berjalan secara otomatis saat pc dihidupkan pertama kali
  • selanjutnya install indicator synapse

    • sudo add-apt-repository ppa:noobslab/apps
    • sudo apt-get update
    • sudo apt-get install indicator-synapse

  • setelah itu kita install indicator applet menu nya : sudo apt-get install indicator-applet-appmenu
  • setelah semuanya selesai anda tinggal menambahkan applet yang sudah di install ke panel atas dengan menekan tombol windows+alt+klik kanan lalu add to panel 
  • ini adalah hasil nya 

note : masih terdapat banyak sekali bug dan sering terjadi crash
referensi : www.noobslab.com, www.google.com