0% found this document useful (0 votes)
29 views6 pages

Arahan 12

The document provides instructions for configuring mail and webmail services on an Ubuntu server. It includes steps to configure Postfix, Dovecot, Squirrelmail and Roundcube. Specific steps include installing packages, configuring files, setting permissions, testing connections and more. The goal is to set up a full-featured mail server with IMAP, POP3 and web-based mail access using Squirrelmail and Roundcube.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
29 views6 pages

Arahan 12

The document provides instructions for configuring mail and webmail services on an Ubuntu server. It includes steps to configure Postfix, Dovecot, Squirrelmail and Roundcube. Specific steps include installing packages, configuring files, setting permissions, testing connections and more. The goal is to set up a full-featured mail server with IMAP, POP3 and web-based mail access using Squirrelmail and Roundcube.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 6

----------Configure Mail Service--------

sudo service apache2 status

sudo service bind9 status

sudo service mysql status

sudo service postfix status

Ethernet DHCP

Adapter NAT

sudo netplan apply

cat /etc/bind/name.conf.default-zones ---> Cek Domain Nape

dpkg-reconfigure postfix

internet site

wsmb.my

OK

lnx1.wsmb.my mail.wsmb.my

172.16.13.0/24

OK

OK

OK

sudo systemctl reload postfix

sudo sservice postfix reload

sudo apt-get install -y dovecot-core

sudo apt-get install dovecot-imap3d dovecot-pop3d

cd /etc/dovecot

ls

cd conf.d/

ls

sudo cp 10-master.conf 10-master-conf.backup ---> backup file 10-master.conf

ls

sudo nano 10-master-conf.backup

ctrl + w ---> nok cari imap login


imap-login

service imap login {


inet_listener imap {
port = 143
}
# Postfix smtp-auth
unix_listener /var/spool/postfix/private/auth {
mode = 0660
user = postfix
group = postfix
}

ctrl + x

sudo cp 10-auth.conf 10-auth.conf.backup ---> backup file 10-auth.conf

ls

sudo nano 10-auth.conf.backup

ctrl + w ---> nok cari auth_mechanisms

auth_mechanisms

auth_mechanisms = plain login

ctrl + x

sudo service dovecot restart

ls /home ---> untuk tengok user yang ada kat home <--- user yang ada directory
home

sudo tail -7 /etc/passwd ---> blh tgk maklumat user drpd bwh, yer ade slash (/)
home

sudo tail -12 /etc/passwd ---> blh tgk maklumat user drpd bwh, yer ade slash (/)
home

sudo adduser aliq ---> linux wajib ada password, information takyoh letok dakper

sudo adduser meimei ---> linux wajib ada password, information takyoh letok
dakper

Ethernet Static

Adapter NAT

pilihan A : telnet wsmb.my 25 ---> test MTA Agent berjaya ke dok wak masuk maklumat

pilihan B : telnet wsmb.my smtp ---> test MTA Agent berjaya ke dok wak masuk
maklumat

pilihan C : telnet 172.16.13.5 25 ---> test MTA Agent berjaya ke dok wak masuk
maklumat

pilihan B : telnet 172.16.13.5 smtp ---> test MTA Agent berjaya ke dok wak masuk
maklumat

ehlo mailwsmb.my

mail from: [email protected]

rcpt to: [email protected]

data

quit

----------Install MUA Squirrelmail----------

Ethernet DHCP

Adapter NAT

sudo netplan apply

cd /var/www/html ---> untuk install squirrel mail duduk dalam ni, perlu sudo
sebab bukan dalam root

ls

sudo wget
http://downloads.sourceforge.net/project/squirrelmail/1.4.22/squirrelmail-webmail-
1.4.22.zip

ls

sudo apt-get install unzip

----------Install MUA Roundcube----------

sudo wget https://github.com/roundcube/roundcubemail/releases/download/1.6.5/


roundcubemail-1.6.5-complete.tar.gz

ls

Ethernet Static

Adapter Host-only

sudo netplan apply

----------Ubuntu Client----------

ping -c 4 172.16.13.5

ping -c 4 wsmb.my

----------Ubuntu Server----------

sudo unzip squirrelmail-webmail-1.4.22.zip

sudo mv squirrelmail-webmail-1.4.22.zip mail

ls
ls -ld mail

sudo chown -R www-data:www-data mail

sudo chmod -R 755 mail

ls -ld mail

cd mail

ls

cd config

sudo cp config_default.php config.php

sudo nano config.php ---> sebab dok paka root

ctrl + w

domain

'wsmb.my'

ctrl + w

data_dir

'var/www/html/mail/data'

sudo service apache2 restart

cd .. ---> berada kat lokasi ni untuk run script

ls

sudo ./configure ---> nok run script ni

WSMB Webmail

Wsmb.my

dovecot

S
3

mail/

----------Ubuntu Client----------

dokleh wak sebab masaloh version php version, yer dok support

----------Ubuntu Server----------

sudo mysql -u root -p ---> roundcube perlukan database

Skills39

CREATE DATABASE roundcubedb DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;

SHOW DATABASES;

---> create user, untuk user yang boleh kita punya database

GRANT ALL PRIVILEGES ON roundcubedb.* TO phpmyadmin@localhost;

FLASH PRIVILEGES; ---> update

exit

----------Ubuntu Server----------

cd /var/www/html

ls

sudo tar xvf roundcubemail-1.6.5-complete.tar.gz

sudo mv roundcubemail-1.6.5 roundcube

sudo chown -R www-data:www-data roundcube

sudo chmod -R 755 roundcube

ls -ld roundcube

sudo mysql -u php


----------Apache----------

cd /etc/apache2/sites-available

sudo a2dissite mail.conf

sudo service apache2 restart

You might also like