1.
Instalasi
mail klien berbasis web Squirrelmail
File setup perangkat lunak Squirrelmail tidak
terdapat pada DVD installer Linux Fedora 7. Kita harus mendownload sendiri file
ini secara manual dari situs resminya di www.squirrelmail.org.
Diasumsikan dalam jawaban ini bahwa peserta
mendownload file instalasi Squirrelmail dari komputer yang berbeda dan
menyalinnya ke komputer yang digunakan dalam pelaksanaan ujian menggunakan USB
flashdisk.
Versi terakhir Squirrelmail ketika jawaban
ini dibuat ( Kamis, 27 Januari 2011 ) adalah 1.4.21. download squirellmail-1.4.21.tar.gz
Setelah file didownload dengan sempurna,
salin file squirrelmail-1.4.21.tar.gz yang telah didownload ke komputer yang
digunakan dalam pelaksanaan ujian.
Untuk dapat menyalin file squirrelmail-1.4.21.tar.gz dari USB flashdisk ke komputer yang
digunakan ujian, USB flashdisk harus di-mount terlebih dahulu. Pada jawaban
ini, mount point USB flashdisk yang kita gunakan adalah /fd.
a.
Buat
direktori /fd terlebih dahulu dengan memberikan perintah :
[root@server
~]# mkdir /fd
b. Jalankan
proses mounting USB flashdisk dengan mount point /fd dengan memberikan perintah :
[root@server
~]# mount –t vfat /dev/sdb1 /fd
Catatan :
Nama
perangkat /dev/sda1 bukan merupakan nama divais yang
selalu baku.
Nama ini harus dicek dan disesuaikan dengan hasil pengenalan komputer yang
digunakan terhadap USB flashdisk yang digunakan.
ketik fdisk-l untuk melihat nama flasdiks
ketik fdisk-l untuk melihat nama flasdiks
c.
Untuk
mengakses file squirrelmail-1.4.21.tar.gz, kita harus berpindah ke direktori /fd. Perintah yang digunakan adalah :
[root@server
~]# cd /fd
d.
Salin
file squirrelmail-1.4.21.tar.gz menuju direktori /root dengan perintah :
[root@server
fd]# cp squirrelmail-1.4.21.tar.gz /root
e. Setelah
file squirrelmail-1.4.21.tar.gz disalin ke direktori /root, kita harus menuju ke direktori /root untuk mengekstrak file squirrelmail-1.4.21.tar.gz. Perintah yang digunakan adalah :
[root@server
fd]# cd /root
f.
Ekstrak
file squirrelmail-1.4.21.tar.gz menggunakan perintah :
[root@server
~]# tar –zxvf squirrelmail-1.4.21.tar.gz
g. Secara
default, squirrelmail-1.4.21.tar.gz akan diekstrak pada direktori dengan nama /root/squirrelmail-1.4.21. Ubahlah nama direktori ini menjadi mail
dengan menggunakan perintah :
[root@server
~]# mv /root/squirrelmail-1.4.21 /root/mail
h.
Direktori
mail kemudian ditempatkan di direktori /home/data_user dengan jalan disalin menuju direktori /home/data_user supaya dapat diakses menggunakan layanan web server Apache.
Untuk menyalin direktori squirrelmail-1.4.21 dari /root menuju direktori /home/data_user, perintah yang digunakan adalah :
[root@server
~]# cp –r /root/mail /home/data_user
2. Konfigurasi
mail klien berbasis web Squirrelmail
Squirrelmail versi 1.4.21 menyediakan layanan
konfigurasi secara interaktif sehingga memudahkan pengguna dalam
mengkonfigurasikan Squirrelmail versi 1.4.21.
Untuk mengkonfigurasikan Squirrelmail 1.4.21,
jalankan langkah-langkah berikut :
a. Kita
harus masuk di direktori utama Squirrelmail yang kita gunakan ( dalam hal ini
pada direktori /home/data_user/mail ). Perintah yang digunakan adalah :
[root@server
~]# cd /home/data_user/mail
b.
Jalankan
skrip konfigurasi dengan perintah :
[root@server
mail]# ./configure
Akan ditampilan antarmuka konfigurasi
Squirrelmail sebagaimana berikut :
SquirrelMail
Configuration : Read: config.php (1.4.0)
---------------------------------------------------------
Main Menu --
1. Organization Preferences
2. Server Settings
3. Folder Defaults
4. General Options
5. Themes
6. Address Books
7. Message of the Day (MOTD)
8. Plugins
9. Database
10. Languages
D. Set pre-defined settings for specific IMAP
servers
C Turn color on
S Save data
Q Quit
Command >>
tambahan brow : yang berwarna ini..adalah yang di edit
c. Akses
setting ServerSetting dengan memberikan perintah 2 pada prompt Command:
SquirrelMail Configuration
: Read: config.php (1.4.0)
---------------------------------------------------------
Main Menu --
1. Organization Preferences
2. Server
Settings
3. Folder Defaults
4. General Options
5. Themes
6. Address Books
7. Message of the Day (MOTD)
8. Plugins
9. Database
10. Languages
D. Set pre-defined settings for specific IMAP
servers
C Turn color on
S Save data
Q Quit
Command
>> 2
d.
Setelah
masuk ke setting ServerSetting, akan ditampilkan tampilan ServerSetting
sebagaimana berikut :
SquirrelMail
Configuration : Read: config_default.php (1.4.0)
---------------------------------------------------------
Server Settings
General
-------
1. Domain : example.com
2. Invert Time : false
3. Sendmail or SMTP :
SMTP
A. Update IMAP Settings : localhost:143 (other)
B. Update SMTP Settings : localhost:25
R Return to Main Menu
C Turn color on
S Save data
Q Quit
Command >>
e. Ubah
parameter Domain dengan memberikan perintah 1 pada prompt Command :
SquirrelMail
Configuration : Read: config_default.php (1.4.0)
---------------------------------------------------------
Server Settings
General
-------
1.
Domain :
example.com
2. Invert Time : false
3. Sendmail or SMTP :
SMTP
A. Update IMAP Settings : localhost:143 (other)
B. Update SMTP Settings : localhost:25
R Return to Main Menu
C Turn color on
S Save data
Q Quit
Command
>> 3
The domain name is
the suffix at the end of all email addresses.
If
for example, your
email address is jdoe@example.com, then your domain
would be
example.com.
[example.com]:
Pada posisi kursor, ketikkan smkngudo.sch.id dan akhiri dengan menekan Enter.
f. Anda
akan kembali ke posisi setting ServerSetting, ubah setting Update IMAP Settings
dengan memberikan perintah A pada prompt Command :
SquirrelMail
Configuration : Read: config_default.php (1.4.0)
---------------------------------------------------------
Server Settings
General
-------
1. Domain : smkunu.sch.id
2. Invert Time : false
3. Sendmail or SMTP : SMTP
A. Update
IMAP Settings : localhost:143 (other)
B. Update SMTP Settings : localhost:25
R Return to Main Menu
C Turn color on
S Save data
Q Quit
Command
>> A
g.
Parameter-parameter
IMAP Settings ditampilkan, ubah parameter IMAP Server dengan memberikan
perintah 4 pada prompt Command :
SquirrelMail
Configuration : Read: config.php (1.4.0)
---------------------------------------------------------
Server Settings
General
-------
1. Domain : smkunu.sch.id
2. Invert Time : false
3. Sendmail or SMTP : SMTP
IMAP Settings
--------------
4. IMAP
Server : localhost
5. IMAP
Port : 143
6. Authentication type : login
7. Secure IMAP (TLS) : false
8. Server software : other
9. Delimiter : detect
B. Update SMTP Settings : localhost:25
H. Hide IMAP Server Settings
R Return to Main Menu
C Turn color on
S Save data
Q Quit
Command >>
4
This is the
hostname where your IMAP server can be contacted.
[localhost]:
Pada posisi kursor, ketikkan smkngudo.sch.id dan akhiri dengan menekan Enter.
h.
Anda
akan kembali ke posisi setting IMAP Setting, ubah setting Update SMTP Settings
dengan memberikan perintah B pada prompt Command :
SquirrelMail
Configuration : Read: config_default.php (1.4.0)
---------------------------------------------------------
Server Settings
General
-------
1. Domain : smkunu.sch.id
2. Invert Time : false
3. Sendmail or SMTP : SMTP
IMAP Settings
--------------
4. IMAP Server : smkunu.sch.id
5. IMAP
Port : 143
6. Authentication type : login
7. Secure IMAP (TLS) : false
8. Server software : other
9. Delimiter : detect
B. Update
SMTP Settings : localhost:25
H. Hide IMAP Server Settings
R Return to Main Menu
C Turn color on
S Save data
Q Quit
Command
>> B
i.
Parameter-parameter
SMTP Settings ditampilkan, ubah parameter SMTP Server dengan memberikan
perintah 4 pada prompt Command :
SquirrelMail
Configuration : Read: config_default.php (1.4.0)
---------------------------------------------------------
Server Settings
General
-------
1. Domain : smkunu.sch.id
2. Invert Time : false
3. Sendmail or SMTP : SMTP
SMTP Settings
-------------
4. SMTP
Server : localhost
5. SMTP
Port : 25
6. POP before SMTP : false
7. SMTP Authentication : none
8. Secure SMTP (TLS) : false
9. Header encryption key :
A. Update IMAP Settings : smkunu.sch.id:143 (other)
H. Hide SMTP Settings
R Return to Main Menu
C Turn color on
S Save data
Q Quit
Command
>> 4
This is the
hostname of your SMTP server.
[localhost]:
Pada posisi kursor, ketikkan smkunu.sch.id dan akhiri dengan menekan Enter.
j. Simpan
perubahan dengan memberikan perintah S pada prompt Command :
SquirrelMail
Configuration : Read: config.php (1.4.0)
---------------------------------------------------------
Server Settings
General
-------
1. Domain : smkunu.sch.id
2. Invert Time : false
3. Sendmail or SMTP : SMTP
SMTP Settings
-------------
4. SMTP Server : smkunu.sch.id
5. SMTP
Port : 25
6. POP before SMTP : false
7. SMTP Authentication : none
8. Secure SMTP (TLS) : false
9. Header encryption key :
A. Update IMAP Settings : smkunu.sch.id:143 (other)
H. Hide SMTP Settings
R Return to Main Menu
C Turn color on
S Save data
Q Quit
Command
>> S
Muncul pesan konfirmasi
Data saved in
config.php
Press Enter to
continue...
Tekan Enter untuk melanjutkan.
k. Kita
kembali menuju ke menu utama konfigurasi Squirrelmail dengan memberikan
perintah R pada prompt Command :
SquirrelMail
Configuration : Read: config.php (1.4.0)
---------------------------------------------------------
Server Settings
General
-------
1. Domain : smkunu.sch.id
2. Invert Time : false
3. Sendmail or SMTP :
SMTP
SMTP Settings
-------------
4. SMTP Server : smkunu.sch.id
5. SMTP
Port : 25
6. POP before SMTP : false
7. SMTP Authentication : none
8. Secure SMTP (TLS) : false
9. Header encryption key :
A. Update IMAP Settings : smkunu.sch.id:143 (other)
H. Hide SMTP Settings
R Return to
Main Menu
C Turn color on
S Save data
Q Quit
Command
>> R
l. Pilih
menu Set pre-defined settings for specific IMAP servers dengan memberikan
perintah D pada prompt Command :
SquirrelMail
Configuration : Read: config_default.php (1.4.0)
---------------------------------------------------------
Main Menu --
1. Organization Preferences
2. Server Settings
3. Folder Defaults
4. General Options
5. Themes
6. Address Books
7. Message of the Day (MOTD)
8. Plugins
9. Database
10. Languages
D. Set
pre-defined settings for specific IMAP servers
C Turn color on
S Save data
Q Quit
Command
>> D
m.
Karena
kita menggunakan Dovecot sebagai IMAP Server, kita berikan informasi dovecot
pada prompt Command :
SquirrelMail
Configuration : Read: config_default.php
---------------------------------------------------------
While we have been
building SquirrelMail, we have discovered some
preferences that
work better with some servers that don't work so
well with
others. If you select your IMAP server,
this option will
set some
pre-defined settings for that server.
Please note that
you will still need to go through and make sure
everything is
correct. This does not change everything. There are
only a few settings
that this will change.
Please select your
IMAP server:
bincimap
= Binc IMAP server
courier
= Courier IMAP server
cyrus
= Cyrus IMAP server
dovecot = Dovecot Secure IMAP
server
exchange
= Microsoft Exchange IMAP server
hmailserver = hMailServer
macosx
= Mac OS X Mailserver
mercury32
= Mercury/32
uw
= University
of Washington's IMAP
server
gmail
= IMAP access to Google mail (Gmail) accounts
quit = Do not change
anything
Command
>> dovecot
imap_server_type = dovecot
default_folder_prefix = <none>
trash_folder = Trash
sent_folder = Sent
draft_folder = Drafts
show_prefix_option = false
default_sub_of_inbox = false
show_contain_subfolders_option
= false
optional_delimiter = detect
delete_folder = false
Press any key to
continue...
Tekan Enter untuk melanjutkan.
n. Kita
dibawa kembali menuju ke menu utama konfigurasi Squirrelmail.
o.
Pilih
menu General Options dengan memberikan perintah 4 pada prompt Command :
SquirrelMail
Configuration : Read: config_default.php (1.4.0)
---------------------------------------------------------
Main Menu --
1. Organization Preferences
2. Server Settings
3. Folder Defaults
4. General
Options
5. Themes
6. Address Books
7. Message of the Day (MOTD)
8. Plugins
9. Database
10. Languages
D. Set pre-defined settings for specific IMAP
servers
C Turn color on
S Save data
Q Quit
Command
>> 4
p. Parameter-parameter
General Options ditampilkan, ubah parameter Data Directory dengan memberikan
perintah 1 pada prompt Command :
SquirrelMail
Configuration : Read: config_default.php (1.4.0)
---------------------------------------------------------
General Options
1. Data
Directory :
/var/local/squirrelmail/data/
2. Attachment Directory : /var/local/squirrelmail/attach/
3. Directory Hash Level : 0
4. Default Left Size : 150
5. Usernames in Lowercase : false
6. Allow use of priority : true
7. Hide SM attributions : false
8. Allow use of receipts : true
9. Allow editing of identity : true
Allow editing of name : true
Remove username from header : false
10. Allow server
thread sort : false
11. Allow
server-side sorting : false
12. Allow server
charset search : true
13. Enable UID
support : true
14. PHP session
name : SQMSESSID
15. Location
base :
16. Only secure
cookies if poss. : true
17. Disable secure
forms : false
18. Page referal
requirement :
R Return to Main Menu
C Turn color on
S Save data
Q Quit
Command
>> 1
q.
Akan
ditampilkan tampilan lebih kurang sebagaimana berikut :
Specify the
location for your data directory.
The path name can
be absolute or relative (to the config directory).
You probably need
to create this directory yourself. Here are two examples:
Absolute:
/var/local/squirrelmail/data/
Relative:
../data/
Relative paths to
directories outside of the SquirrelMail distribution
will be converted
to their absolute path equivalents in config.php.
Note: There are
potential security risks with having a writable directory
under the web
server's root directory (ex: /home/httpd/html).
For this reason, it
is recommended to put the data directory
in an alternate
location of your choice.
[/var/local/squirrelmail/data/]:
Pada
posisi kursor, ketikkan : ../data/
r. Kita
akan dibawa kembali ke menu General Options, ubah parameter Data Directory
dengan memberikan perintah 2 pada prompt Command :
SquirrelMail
Configuration : Read: config_default.php (1.4.0)
---------------------------------------------------------
General Options
1. Data Directory : ../data/
2. Attachment
Directory :
/var/local/squirrelmail/attach/
3. Directory Hash Level : 0
4. Default Left Size : 150
5. Usernames in Lowercase : false
6. Allow use of priority : true
7. Hide SM attributions : false
8. Allow use of receipts : true
9. Allow editing of identity : true
Allow editing of name : true
Remove username from header : false
10. Allow server
thread sort : false
11. Allow
server-side sorting : false
12. Allow server
charset search : true
13. Enable UID
support : true
14. PHP session
name : SQMSESSID
15. Location
base :
16. Only secure
cookies if poss. : true
17. Disable secure
forms : false
18. Page referal
requirement :
R Return to Main Menu
C Turn color on
S Save data
Q Quit
Command
>> 2
Path to directory
used for storing attachments while a mail is
being sent. The
path name can be absolute or relative (to the config directory).
It doesn't
matter. Here are two examples:
Absolute:
/var/spool/squirrelmail/attach/
Relative:
../attach/
Relative paths to
directories outside of the SquirrelMail distribution
will be converted
to their absolute path equivalents in config.php.
Note: There are a few security considerations
regarding this
directory:
1. It
should have the permission 733 (rwx-wx-wx) to make it
impossible for a random person with
access to the webserver
to list files in this directory. Confidential data might
be laying around in there.
Depending on your user:group assignments,
730 (rwx-wx---)
may be possible, and more secure (e.g.
root:apache)
2.
Since the webserver is not able to list the files in the
content is also impossible for the
webserver to delete files
lying around there for too long.
3. It
should probably be another directory than the data
directory specified in option 3.
[/var/spool/squirrelmail/attach/]:
Pada posisi
kursor, ketikkan : ../attach/
s. Simpan
perubahan dengan memberikan perintah S pada prompt Command :
SquirrelMail
Configuration : Read: config_default.php (1.4.0)
---------------------------------------------------------
General Options
1. Data Directory : ../data/
2. Attachment Directory : ../attach/
3. Directory Hash Level : 0
4. Default Left Size : 150
5. Usernames in Lowercase : false
6. Allow use of priority : true
7. Hide SM attributions : false
8. Allow use of receipts : true
9. Allow editing of identity : true
Allow editing of name : true
Remove username from header : false
10. Allow server
thread sort : false
11. Allow
server-side sorting : false
12. Allow server
charset search : true
13. Enable UID
support : true
14. PHP session
name : SQMSESSID
15. Location
base :
16. Only secure
cookies if poss. : true
17. Disable secure
forms : false
18. Page referal
requirement :
R Return to Main Menu
C Turn color on
S Save data
Q Quit
Command
>> S
Muncul pesan konfirmasi
Data saved in
config.php
Press Enter to
continue…
Tekan Enter untuk melanjutkan.
t.
Berikan
perintah R untuk kembali ke menu utama konfigurasi Squirrelmail
SquirrelMail
Configuration : Read: config_default.php (1.4.0)
---------------------------------------------------------
General Options
1. Data Directory : ../data/
2. Attachment Directory : ../attach/
3. Directory Hash Level : 0
4. Default Left Size : 150
5. Usernames in Lowercase : false
6. Allow use of priority : true
7. Hide SM attributions : false
8. Allow use of receipts : true
9. Allow editing of identity : true
Allow editing of name : true
Remove username from header : false
10. Allow server
thread sort : false
11. Allow
server-side sorting : false
12. Allow server
charset search : true
13. Enable UID
support : true
14. PHP session
name : SQMSESSID
15. Location
base :
16. Only secure
cookies if poss. : true
17. Disable secure
forms : false
18. Page referal
requirement :
R Return to
Main Menu
C Turn color on
S Save data
Q Quit
Command
>> R
u. Pada
tampilan menu utama konfigurasi Squirrelmail, sekali lagi kita berikan perintah
penyimpanan dengan memberikan perintah S pada prompt Command :
SquirrelMail
Configuration : Read: config_default.php (1.4.0)
---------------------------------------------------------
Main Menu --
1. Organization Preferences
2. Server Settings
3. Folder Defaults
4. General Options
5. Themes
6. Address Books
7. Message of the Day (MOTD)
8. Plugins
9. Database
10. Languages
D. Set pre-defined settings for specific IMAP
servers
C Turn color on
S Save data
Q Quit
Command
>> S
Muncul pesan konfirmasi
Data saved in
config.php
Press Enter to
continue...
Tekan Enter untuk melanjutkan.
v.
Berikan
perintah Q untuk keluar dari menu utama konfigurasi Squirrelmail.
Muncul tampilan lebih kurang sebagaimana
berikut :
Exiting conf.pl.
You might want to
test your configuration by browsing to
http://your-squirrelmail-location/src/configtest.php
Happy
SquirrelMailing!
Tampilan tersebut menandakan konfigurasi
berhasil disimpan dan berhasil dilaksanakan.
Apabila muncul konfirmasi sebagaimana berikut
:
You have not saved
your data.
Save? [Y/n]:
Ketikkan Y dan diakhiri dengan Enter.
w.
Proses
konfigurasi Squirrelmail selesai. Untuk menampung file attachment dari e-mail,
kita juga harus membuat direktori /home/data_user/mail/attach dengan
menggunakan perintah :
[root@server ~]#
mkdir /home/data_user/mail/attach
x.
Untuk
memastikan supaya seluruh direktori /home/data_user/mail dapat diakses oleh siapa saja, kita harus
mengatur kode akses direktori /home/data_user/mail beserta isinya menjadi 777. Pengaturan ini hendaknya
dilakukan di luar direktori /home/data_user/mail. Oleh karena itu, sebelum mengubah kode akses direktori /home/data_user/mail, kita berpindah ke direktori /root terlebih dahulu dengan perintah :
[root@server
data_user]# cd /root
Jalankan perintah mengubah kode akses
direktori /home/data_user/mail beserta isinya menjadi 777 dengan perintah :
[root@server
~]# chmod –R 777 /home/data_user/mail