Skip to Content

Konfigurasi Server USK

Konfigurasi IP Address

nano /etc/network/interfaces

auto eth0
iface eth0 inet static
	address 10.10.139.99
	netmask 255.255.255.0
	gateway 10.10.139.1

/etc/init.d/networking restart

Pengujian uji koneksi ke client dan sebaliknya

Konfigurasi DNS (Resolv.conf)

nano /etc/resolv.conf

search yunasnovela.id
nameserver 10.10.139.99
nameserver 8.8.8.8
Konfigurasi DNS Server

Install Aplikasi DNS

apt-get install bind9 dnsutils

Konfigurasi Domain Zone

nano /etc/bind/named.conf.local

//include "/etc/bind/zones.rfc1918";

zone "yunasnovela.id" {
type master;
file "/etc/bind/db.server";
};

zone "10.10.in-addr.arpa" {
type master;
file "/etc/bind/db.10";
};

Konfigurasi file forward dan mengkonfigurasinya

cp /etc/bind/db.local /etc/bind/db.yunas

nano /etc/bind/db.yunas


;
; BIND data file for local loopback interface
;
$TTL    604800
@       IN      SOA     yunasnovela.id. root.yunasnovela.id. (
                              2         ; Serial
                         604800         ; Refresh
                          86400         ; Retry
                        2419200         ; Expire
                         604800 )       ; Negative Cache TTL
;
@       IN      NS      yunasnovela.id.
@       IN      A       10.10.139.99
www     IN      A       10.10.139.99
mail    IN      A       10.10.139.99
@       IN      MX      1       mail.yunasnovela.id
@       IN      AAAA    ::1

Konfigurasi file reverse dan mengkonfigurasinya

cp /etc/bind/db.127 /etc/bind/db.10

nano /etc/bind/db.10

;
; BIND reverse data file for local loopback interface
;
$TTL    604800
@       IN      SOA     yunasnovela.id. root.yunasnovela.id. (
                              1         ; Serial
                         604800         ; Refresh
                          86400         ; Retry
                        2419200         ; Expire
                         604800 )       ; Negative Cache TTL
;
@       IN      NS      yunasnovela.id.
99.139  IN      PTR     yunasnovela.id.

Restart service aplikasi bind9

/etc/init.d/bind9 restart

Pengujian

nslookup www.yunasnovela.id

Server:		10.10.139.99
Address:	10.10.139.99#53

Name:	www.yunasnovela.id
Address: 10.10.139.99

nslookup mail.yunasnovela.id

Server:		10.10.139.99
Address:	10.10.139.99#53

Name:	mail.yunasnovela.id
Address: 10.10.139.99

nslookup 10.10.139.99

Server:		10.10.139.99
Address:	10.10.139.99#53

99.139.10.10.in-addr.arpa	name = yunasnovela.id.
Konfigurasi Mail dan Web Mail Server

Konfigurasi Mail Server

apt-get install postfix courier-imap roundcube mysql-server

Package configuration
┌───────────────────────────┤ Postfix Configuration ├───────────────────────────┐
│ Please select the mail server configuration type that best meets your needs.  │ 
│                                                                               │ 
│  No configuration:                                                            │ 
│   Should be chosen to leave the current configuration unchanged.              │ 
│  Internet site:                                                               │ 
│   Mail is sent and received directly using SMTP.                              │ 
│  Internet with smarthost:                                                     │ 
│   Mail is received directly using SMTP or by running a utility such           │ 
│   as fetchmail. Outgoing mail is sent using a smarthost.                      │ 
│  Satellite system:                                                            │ 
│   All mail is sent to another machine, called a 'smarthost', for delivery.    │ 
│  Local only:                                                                  │ 
│   The only delivered mail is the mail for local users. There is no network.   │ 
│                                                                               │ 
│ General type of mail configuration:                                           │ 
│                                                                               │ 
│                            No configuration                                   │ 
│                            Internet Site                                      │ 
│                            Internet with smarthost                            │ 
│                            Satellite system                                   │ 
│                            Local only                                         │ 
│                                                                               │ 
│                                                                               │ 
│                     <Ok>                         <Cancel>                     │ 
│                                                                               │ 
└───────────────────────────────────────────────────────────────────────────────┘ 
                                                                                                                              

Pilih <Internet Site>
Package configuration
 ┌─────────────────────────┤ Postfix Configuration ├─────────────────────────┐
 │ The "mail name" is the domain name used to "qualify" _ALL_ mail           │ 
 │ addresses without a domain name. This includes mail to and from <root>:   │ 
 │ please do not make your machine send out mail from root@example.org       │ 
 │ unless root@example.org has told you to.                                  │ 
 │                                                                           │ 
 │ This name will also be used by other programs. It should be the single,   │ 
 │ fully qualified domain name (FQDN).                                       │ 
 │                                                                           │ 
 │ Thus, if a mail address on the local host is foo@example.org, the         │ 
 │ correct value for this option would be example.org.                       │ 
 │                                                                           │ 
 │ System mail name:                                                         │ 
 │                                                                           │ 
 │ mail.yunasnovela.id______________________________________________________ │ 
 │                                                                           │ 
 │                    <Ok>                        <Cancel>                   │ 
 │                                                                           │ 
 └───────────────────────────────────────────────────────────────────────────┘ 
                                                                               
masukan domain mail contoh mail.yunasnovela.id kemudian pilih <OK>
Package configuration
 ┌────────────────────────────┤ Configuring roundcube-core ├─────────────────────────────┐
 │                                                                                       │ 
 │ The roundcube package must have a database installed and configured before it can be  │ 
 │ used. This can be optionally handled with dbconfig-common.                            │ 
 │                                                                                       │ 
 │ If you are an advanced database administrator and know that you want to perform this  │ 
 │ configuration manually, or if your database has already been installed and            │ 
 │ configured, you should refuse this option. Details on what needs to be done should    │ 
 │ most likely be provided in /usr/share/doc/roundcube.                                  │ 
 │                                                                                       │ 
 │ Otherwise, you should probably choose this option.                                    │ 
 │                                                                                       │ 
 │ Configure database for roundcube with dbconfig-common?                                │ 
 │                                                                                       │ 
 │                        <Yes>                           <No>                           │ 
 │                                                                                       │ 
 └───────────────────────────────────────────────────────────────────────────────────────┘ 
                                                                                           
Pilih <yes>
Package configuration
   ┌───────────────────────────┤ Configuring roundcube-core ├───────────────────────────┐
   │ Please provide a password for roundcube to register with the database server. If   │ 
   │ left blank, a random password will be generated.                                   │ 
   │                                                                                    │ 
   │ MySQL application password for roundcube:                                          │ 
   │                                                                                    │ 
   │ __________________________________________________________________________________ │ 
   │                                                                                    │ 
   │                       <Ok>                           <Cancel>                      │ 
   │                                                                                    │ 
   └────────────────────────────────────────────────────────────────────────────────────┘ 
                                                                                          
Masukkan Password
Package configuration
 ┌─────────────────────────────┤ Configuring courier-base ├──────────────────────────────┐
 │                                                                                       │ 
 │ Courier uses several configuration files in /etc/courier. Some of these files can be  │ 
 │ replaced by a subdirectory whose contents are concatenated and treated as a single,   │ 
 │ consolidated, configuration file.                                                     │ 
 │                                                                                       │ 
 │ The web-based administration provided by the courier-webadmin package relies on       │ 
 │ configuration directories instead of configuration files. If you agree, any           │ 
 │ directories needed for the web-based administration tool will be created unless       │ 
 │ there is already a plain file in place.                                               │ 
 │                                                                                       │ 
 │ Create directories for web-based administration?                                      │ 
 │                                                                                       │ 
 │                        <Yes>                           <No>                           │ 
 │                                                                                       │ 
 └───────────────────────────────────────────────────────────────────────────────────────┘ 
                                                                                           
Pilih <No>
Package configuration
 ┌─────────────────────────────┤ Configuring courier-base ├──────────────────────────────┐
 │                                                                                       │ 
 │ SSL certificate required                                                              │ 
 │                                                                                       │ 
 │ POP and IMAP over SSL requires a valid, signed, X.509 certificate. During the         │ 
 │ installation of courier-pop or courier-imap, a self-signed X.509 certificate will be  │ 
 │ generated if necessary.                                                               │ 
 │                                                                                       │ 
 │ For production use, the X.509 certificate must be signed by a recognized certificate  │ 
 │ authority, in order for mail clients to accept the certificate. The default location  │ 
 │ for this certificate is /etc/courier/pop3d.pem or /etc/courier/imapd.pem.             │ 
 │                                                                                       │ 
 │                                        <Ok>                                           │ 
 │                                                                                       │ 
 └───────────────────────────────────────────────────────────────────────────────────────┘ 
                                                                                           
Piih <Ok>
Package configuration
 ┌─────────────────────────────┤ Configuring courier-base ├──────────────────────────────┐
 │                                                                                       │ 
 │ Courier MTA under courier user                                                        │ 
 │                                                                                       │ 
 │ The Courier MTA packaging has been extensively rewritten and major changes had been   │ 
 │ done to the default setup of Courier MTA.                                             │ 
 │                                                                                       │ 
 │ The default user and group for Courier MTA has been changed to courier:courier.  The  │ 
 │ package tries hard to make all files belong to correct user:group and the             │ 
 │ permissions on those files are correct, but if you have a non-default setup, you      │ 
 │ will have to make sure that:                                                          │ 
 │                                                                                       │ 
 │  + All file owners and file in /etc/courier and /var/lib/courier                      │ 
 │    are correctly set.                                                                 │ 
 │  + MAILUSER and MAILGROUP settings in /etc/courier/esmtpd is set to                   │ 
 │    correct user and group, both has to be set to `courier'.                           │ 
 │                                                                                       │ 
 │                                        <Ok>                                           │ 
 │                                                                                       │ 
 └───────────────────────────────────────────────────────────────────────────────────────┘ 
Pilih <Ok>

maildirmake /etc/skel/Maildir

nano /etc/postfix/main.cf

Tambahkan pada baris paling akhir homemailbox = Maildir/ seperti dibawah ini

..............................................
..............................................
..............................................
inet_interfaces = all
homemailbox = Maildir/

dpkg-reconfigure postfix

Package configuration
                    ┌──────┤ Postfix Configuration ├───────┐
                    │ General type of mail configuration:  │ 
                    │                                      │ 
                    │       No configuration               │ 
                    │       Internet Site                  │ 
                    │       Internet with smarthost        │ 
                    │       Satellite system               │ 
                    │       Local only                     │ 
                    │                                      │ 
                    │                                      │ 
                    │       <Ok>           <Cancel>        │ 
                    │                                      │ 
                    └──────────────────────────────────────┘ 
                                                             
Pilih Internet Site kemudian Pilih <Ok>
Package configuration
 ┌─────────────────────────┤ Postfix Configuration ├─────────────────────────┐
 │ The "mail name" is the domain name used to "qualify" _ALL_ mail           │ 
 │ addresses without a domain name. This includes mail to and from <root>:   │ 
 │ please do not make your machine send out mail from root@example.org       │ 
 │ unless root@example.org has told you to.                                  │ 
 │                                                                           │ 
 │ This name will also be used by other programs. It should be the single,   │ 
 │ fully qualified domain name (FQDN).                                       │ 
 │                                                                           │ 
 │ Thus, if a mail address on the local host is foo@example.org, the         │ 
 │ correct value for this option would be example.org.                       │ 
 │                                                                           │ 
 │ System mail name:                                                         │ 
 │                                                                           │ 
 │ mail.yunasnovela.id______________________________________________________ │ 
 │                                                                           │ 
 │                    <Ok>                        <Cancel>                   │ 
 │                                                                           │ 
 └───────────────────────────────────────────────────────────────────────────┘ 
                                                                               
masukan domain mail contoh mail.yunasnovela.id kemudian pilih <OK>
Package configuration
 ┌─────────────────────────┤ Postfix Configuration ├─────────────────────────┐
 │ Mail for the 'postmaster', 'root', and other system accounts needs to be  │ 
 │ redirected to the user account of the actual system administrator.        │ 
 │                                                                           │ 
 │ If this value is left empty, such mail will be saved in                   │ 
 │ /var/mail/nobody, which is not recommended.                               │ 
 │                                                                           │ 
 │ Mail is not delivered to external delivery agents as root.                │ 
 │                                                                           │ 
 │ If you already have a /etc/aliases file and it does not have an entry     │ 
 │ for root, then you should add this entry.  Leave this blank to not add    │ 
 │ one.                                                                      │ 
 │                                                                           │ 
 │ Root and postmaster mail recipient:                                       │ 
 │                                                                           │ 
 │ _________________________________________________________________________ │ 
 │                                                                           │ 
 │                    <Ok>                        <Cancel>                   │ 
 │                                                                           │ 
 └───────────────────────────────────────────────────────────────────────────┘ 
                                                                               
langsung pilih <Ok>
Package configuration
  ┌────────────────────────┤ Postfix Configuration ├─────────────────────────┐
  │ Please give a comma-separated list of domains for which this machine     │ 
  │ should consider itself the final destination. If this is a mail domain   │ 
  │ gateway, you probably want to include the top-level domain.              │ 
  │                                                                          │ 
  │ Other destinations to accept mail for (blank for none):                  │ 
  │                                                                          │ 
  │ ver.localdomain, localhost.localdomain, localhost, mail.yunasnovela.id,_ │ 
  │                                                                          │ 
  │                   <Ok>                       <Cancel>                    │ 
  │                                                                          │ 
  └──────────────────────────────────────────────────────────────────────────┘ 
                                                                               

Periksa domain mail sudah ada? jika belum ketik domain mail yg digunakan
seperti diatas
Package configuration
 ┌─────────────────────────┤ Postfix Configuration ├─────────────────────────┐
 │                                                                           │ 
 │ If synchronous updates are forced, then mail is processed more slowly.    │ 
 │ If not forced, then there is a remote chance of losing some mail if the   │ 
 │ system crashes at an inopportune time, and you are not using a journaled  │ 
 │ filesystem (such as ext3).                                                │ 
 │                                                                           │ 
 │ Force synchronous updates on mail queue?                                  │ 
 │                                                                           │ 
 │                    <Yes>                       <No>                       │ 
 │                                                                           │ 
 └───────────────────────────────────────────────────────────────────────────┘ 
                                                                               
Pilih <No>
Package configuration
 ┌─────────────────────────┤ Postfix Configuration ├─────────────────────────┐
 │ Please specify the network blocks for which this host should relay mail.  │ 
 │ The default is just the local host, which is needed by some mail user     │ 
 │ agents. The default includes local host for both IPv4 and IPv6. If just   │ 
 │ connecting via one IP version, the unused value(s) may be removed.        │ 
 │                                                                           │ 
 │ If this host is a smarthost for a block of machines, you need to specify  │ 
 │ the netblocks here, or mail will be rejected rather than relayed.         │ 
 │                                                                           │ 
 │ To use the postfix default (which is based on the connected subnets),     │ 
 │ leave this blank.                                                         │ 
 │                                                                           │ 
 │ Local networks:                                                           │ 
 │                                                                           │ 
 │ 127.0.0.0/8 0.0.0.0/0____________________________________________________ │ 
 │                                                                           │ 
 │                    <Ok>                        <Cancel>                   │ 
 │                                                                           │ 
 └───────────────────────────────────────────────────────────────────────────┘ 
                                                                               
tambahkan 0.0.0.0/0
Package configuration
 ┌─────────────────────────┤ Postfix Configuration ├─────────────────────────┐
 │ Please specify the limit that Postfix should place on mailbox files to    │ 
 │ prevent runaway software errors. A value of zero (0) means no limit. The  │ 
 │ upstream default is 51200000.                                             │ 
 │                                                                           │ 
 │ Mailbox size limit (bytes):                                               │ 
 │                                                                           │ 
 │ 0________________________________________________________________________ │ 
 │                                                                           │ 
 │                    <Ok>                        <Cancel>                   │ 
 │                                                                           │ 
 └───────────────────────────────────────────────────────────────────────────┘ 
                                                                               
Pilih <Ok>
Package configuration
 ┌─────────────────────────┤ Postfix Configuration ├─────────────────────────┐
 │ Please choose the character that will be used to define a local address   │ 
 │ extension.                                                                │ 
 │                                                                           │ 
 │ To not use address extensions, leave the string blank.                    │ 
 │                                                                           │ 
 │ Local address extension character:                                        │ 
 │                                                                           │ 
 │ +________________________________________________________________________ │ 
 │                                                                           │ 
 │                    <Ok>                        <Cancel>                   │ 
 │                                                                           │ 
 └───────────────────────────────────────────────────────────────────────────┘ 
                                                                               
Pilih <Ok>
Package configuration
  ┌────────────────────────┤ Postfix Configuration ├─────────────────────────┐
  │ By default, whichever Internet protocols are enabled on the system at    │ 
  │ installation time will be used. You may override this default with any   │ 
  │ of the following:                                                        │ 
  │                                                                          │ 
  │  all : use both IPv4 and IPv6 addresses;                                 │ 
  │  ipv6: listen only on IPv6 addresses;                                    │ 
  │  ipv4: listen only on IPv4 addresses.                                    │ 
  │                                                                          │ 
  │ Internet protocols to use:                                               │ 
  │                                                                          │ 
  │                                   all                                    │ 
  │                                   ipv6                                   │ 
  │                                   ipv4                                   │ 
  │                                                                          │ 
  │                                                                          │ 
  │                   <Ok>                       <Cancel>                    │ 
  │                                                                          │ 
  └──────────────────────────────────────────────────────────────────────────┘ 
                                                                               

Pilih Ipv4 kemudian Pilih <Ok>
Konfigurasi FTP Server
Categories: Ujian
Tags:
comments powered by Disqus