catatanlepas.com

  • Increase font size
  • Default font size
  • Decrease font size
  • default color
  • black color
Home Komputer Aplikasi Linux Instalasi Postfix Menggunakan Courier IMAP di Centos 5.4

Instalasi Postfix Menggunakan Courier IMAP di Centos 5.4

Email Cetak PDF

I. PENDAHULUAN

Postfix merupakan program server mail yang banyak digunakan karena kemudahan dalam mengkonfigurasinya. Program yang dibuat oleh Wietse Venema ini dirancang supaya mudah dikonfigurasi, aman, dan cepat dalam operasinya. Karena keuntungan-keuntungan yang didapatkan sangat banyak ketika menggunakan postfix, maka banyak distro linux memaketkan program ini kedalam paket distronya yang salah satunya adalah distro Centos. Mungkin banyak tutorial di internet yang telah menjelaskan tentang bagaimana cara instalasi postfix di berbagai macam distro linux namun di dalam tutorial ini, kita akan menginstal postfix di Centos 5.4 dengan virtual domain yang dilengkapi dengan SASL, SSL, Courier Authlib, dan menggunakan Courier IMAP sebagai POP3/IMAP. Kita akan menggunakan mysql sebagai database postfix  dan squirrelmail sebagai webmailnya. Dan untuk memudahkan membuat user dan domain di dalam postfix, kita akan menggunakan postfixadmin. Penulis menggunakan domain latihanlinux.co.cc dengan IP 192.168.0.248. Penulis menyarankan agar pembaca dapat mempraktekannya dengan memiliki domain dan IP Publik. Nama domain gratis bisa di dapat di co.cc dan settingan mailnya (MX) diarahkan ke IP Publik.

II. INSTALASI POSTFIX

A. Mengorganisasi Paket-Paket
1. Instalasi paket-paket
# yum -y install openldap-devel openldap-servers expect-devel gamin-devel httpd* php* 
mysql* rpm-build* libtool gdbm-devel pam-devel gcc-c++ redhat-rpm-config 
libtool-ltdl-devel libtool-ltdl postgresql-devel pam-devel

2. Download Paket-Paket
# cd /usr/local/src
# wget ftp://ftp.reverse.net/pub/postfix/official/postfix-2.6.5.tar.gz
# wget ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/cyrus-sasl-2.1.22.tar.gz
# wget http://repository.wowtutorial.org/courier-authlib-0.62.4.tar.bz2
# wget http://repository.wowtutorial.org/courier-imap-4.5.1.tar.bz2
# wget  squirrelmail 
# wget postfixadmin   
3. Cek Paket-Paket
# rpm -qa | grep sendmail;rpm -qa | grep postfix;rpm -qa | grep cyrus;rpm -qa | grep dovecot

4. Uninstal Paket-Paket
# rpm -e sendmail-8.13.8-2.el5 sendmail-cf-8.13.8-2.el5 postfix-2.3.3-2.1.el5_2  
cyrus-imapd-perl-2.3.7-2.el5 cyrus-imapd-2.3.7-2.el5 cyrus-imapd-2.3.7-2.el5  
cyrus-sasl-2.1.22-4 cyrus-imapd-utils-2.3.7-2.el5 dovecot-1.0.7-7.el5 --nodeps
 
B. Konfigurasi Hostname
1. Merubah Hostname
Penulis mengisi file network sebagai berikut:
# vi /etc/sysconfig/network
NETWORKING=yes
NETWORKING_IPV6=yes
HOSTNAME=mail

2. Merubah Hosts

Penulis merubah file hosts sehingga menjadi seperti berikut:
# vi /etc/hosts
127.0.0.1       localhost.localdomain localhost
192.168.0.248   mail.latihanlinux.co.cc        mail

3. Restart hostname
Restart hostname dengan cara:
/bin/hostname -f /etc/hosts

C. Instalasi Cyrus-SASL
Cyrus-SASL merupakan software yang menyediakan metode dan mekanisme yang berbeda untuk autentifikasi.
1. Ekstrak Paket
# cd /usr/local/src
# tar -zxvf cyrus-sasl-2.1.22.tar.gz
# cd cyrus-sasl-2.1.22

2. Instalasi Paket
# export CPPFLAGS="-I/usr/include/mysql"
# export LDFLAGS="-L/usr/lib/mysql -lmysqlclient -lz -lm"
# ./configure --enable-anon --enable-plain --enable-login --enable-sql --disable-krb4 
--disable-otp --disable-cram --disable-digest --with-mysql=/usr/lib/mysql --without-pam 
--without-saslauthd --without-pwcheck --prefix=/usr --with-plugindir=/usr/lib/sasl2;
make -j2; make install
 
D. Instalasi Postfix
1. Menghapus user dan grup
# userdel postfix
# groupdel postdrop
 
2. Membuat user dan grup
# groupadd -g 500 postfix
# groupadd -g 501 postdrop
# useradd -g 500 -G postdrop postfix
# id postfix

 
3. Ekstrak Postfix
# cd /usr/local/src
# tar -zxvf postfix-2.6.5.tar.gz
# cd postfix-2.6.5
# make makefiles 'CCARGS=-DHAS_MYSQL -I/usr/include/mysql -DUSE_SASL_AUTH -DUSE_TLS 
-DUSE_CYRUS_SASL -I/usr/include/sasl' 'AUXLIBS=-L/usr/lib/mysql -lmysqlclient -lz
-lm -L/usr/lib -lssl -lcrypto -lsasl2'
# make install

Setelah itu, kita akan diberikan banyak pertanyaan tentang folder-folder yang akan dijadikan sebagai folder postfix. Daripada bingung, sebaiknya tekan enter saja semua pertanyaan tersebut karena linux telah menyediakan folder-folder default untuk postfix jika kita menekan enter.


4. Konfigurasi Postfix
a. Konfigurasi main.cf
# cd /etc/postfix/
# cp main.cf main.cf.ori
Tambahkan file main.cf dengan skrip sebagai berikut:

# vi main.cf
alias_maps = mysql:/etc/postfix/mysql_virtual_alias_maps.cf
broken_sasl_auth_clients = yes
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
data_directory = /var/lib/postfix
debug_peer_level = 2
home_mailbox = Maildir/
html_directory = no
mail_owner = postfix
mailq_path = /usr/bin/mailq
manpage_directory = /usr/local/man
mydomain = latihanlinux.co.cc
myhostname = mail.latihanlinux.co.cc
myorigin = #myhostname
newaliases_path = /usr/bin/newaliases
queue_directory = /var/spool/postfix
readme_directory = no
sample_directory = /etc/postfix
sendmail_path = /usr/sbin/sendmail
setgid_group = postdrop
smtp_tls_note_starttls_offer = yes
smtp_use_tls = yes
smtpd_banner = #myhostname ESMTP "mail.latihanlinux.co.cc"
smtpd_recipient_restrictions = permit_mynetworks,permit_sasl_authenticated,reject_invalid_hostname,  reject_non_fqdn_hostname,  reject_unknown_sender_domain,reject_non_fqdn_sender,  reject_non_fqdn_recipient, reject_unknown_recipient_domain, reject_unauth_pipelining,reject_unauth_destination,permit
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = #myhostname
smtpd_sasl_security_options = noanonymous
smtpd_tls_CAfile = /etc/postfix/ssl/cacert.pem
smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.crt
smtpd_tls_key_file = /etc/postfix/ssl/smtpd.key
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
smtpd_use_tls = yes
tls_random_source = dev:/dev/urandom
unknown_local_recipient_reject_code = 550
virtual_alias_maps = proxy:mysql:/etc/postfix/mysql_virtual_alias_maps.cf
virtual_gid_maps = static:500
virtual_mailbox_base = /var/vmail/
virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql_virtual_domains_maps.cf
virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql_virtual_mailbox_maps.cf
virtual_minimum_uid = 500
virtual_transport = virtual
virtual_uid_maps = static:500

Perlu diingat bahwa di dalam penulisan di file main.cf diusahakan bagaimana caranya agar satu skrip dalam satu baris khususnya pada bagian smtpd_recipient_restrictions.

b. Membuat file-file
Buat file tersebut di foler /etc/postfix dan tambahkan skrip sebagai berikut:
# vi mysql_virtual_alias_maps.cf
user = postfix
password = password123
hosts = localhost
dbname = postfix
query = SELECT goto FROM alias WHERE address='%s' AND active = '1'  
# vi mysql_virtual_domains_maps.cf
user = postfix
password = password123
hosts = localhost
dbname = postfix
query = SELECT domain FROM domain WHERE domain='%s' AND active = '1'
# vi mysql_virtual_mailbox_maps.cf
user = postfix
password = password123
hosts = localhost
dbname = postfix
query = SELECT maildir FROM mailbox WHERE username='%s' AND active = '1'
E. Membuat Sertifikat SSL
SSL (Secure Sockets Layer) adalah teknologi standar keamanan yang diperlukan untuk komunikasi melalui jaringan seperti internet dan sekarang berubah menjadi TLS (Transport Layer Security). Berikut adalah langkah-langkahnya:
# mkdir /etc/postfix/ssl
# cd /etc/postfix/ssl/
# openssl genrsa -des3 -rand /etc/hosts -out smtpd.key 1024
# chmod 600 smtpd.key
# openssl req -new -key smtpd.key -out smtpd.csr
# openssl x509 -req -days 3650 -in smtpd.csr -signkey smtpd.key -out smtpd.crt
# openssl rsa -in smtpd.key -out smtpd.key.unencrypted
# mv -f smtpd.key.unencrypted smtpd.key
# openssl req -new -x509 -extensions v3_ca -keyout cakey.pem -out cacert.pem -days 3650
# chmod o= /etc/postfix/ssl/smtpd.key

F. Instalasi Courier Authlib
Courier Authlib merupakan sebuah set dari program-program yang dibuat untuk menangani autentifikasi request login ke service-service paket courier IMAP.
# cd /usr/local/src
# rpmbuild -ta courier-authlib-0.62.4.tar.bz2
# cd /usr/src/redhat/RPMS/i386/
# rpm -ivh courier-authlib*

G. Instalasi Courier-IMAP
Courier-IMAP merupakan software dari courier yang digunakan untuk metode pengiriman email. Program ini mendukung format penyimpanan email dengan menggunakan format Maildir. Dalam hal ini kita menggunakan Courier-Imap untuk backend dari webmail squirrelmail. Untuk menginstalasinya, tidak bisa langsung melalui root, tetapi harus non root.
# useradd courier
$ su courier
$ mkdir $HOME/rpm
$ mkdir $HOME/rpm/SOURCES 
$ mkdir $HOME/rpm/SPECS
$ mkdir $HOME/rpm/BUILD
$ mkdir $HOME/rpm/SRPMS
$ mkdir $HOME/rpm/RPMS
$ mkdir $HOME/rpm/RPMS/i386
$ echo "%_topdir $HOME/rpm" >> $HOME/.rpmmacros
$ mkdir $HOME/downloads
$ cd $HOME/downloads
$ cd /usr/local/src
$ sudo mv courier-imap* $HOME/downloads
Tekan saja Enter untuk menjawab tentang password.
$ rpmbuild -ta courier-imap*

Balik lagi menjadi root
$ su
# cd /home/courier/rpm/RPMS/i386
# rpm -ivh courier-imap*

H. Edit File-File

1. Edit file authmysqlrc
Tambahkan di file authmysqlrc dengan skrip sebagai berikut:
# cd /etc/authlib/
# mv authmysqlrc authmysqlrc.ori
# vi  /etc/authlib/authmysqlrc
MYSQL_SERVER localhost
MYSQL_USERNAME postfix
MYSQL_PASSWORD password123
MYSQL_PORT 0
MYSQL_OPT 0
MYSQL_DATABASE postfix
MYSQL_USER_TABLE mailbox
MYSQL_CRYPT_PWFIELD password
MYSQL_CLEAR_PWFIELD password
MYSQL_UID_FIELD '500'
MYSQL_GID_FIELD '500'
MYSQL_LOGIN_FIELD username
MYSQL_HOME_FIELD '/var/vmail/'
MYSQL_NAME_FIELD name
MYSQL_MAILDIR_FIELD maildir

2. File authdaemonrc
Rubah file authdaemonrc dengan cara merubah authmodulelist dan DEBUG_LOGIN:
# cp authdaemonrc authdaemonrc.ori
# vi authdaemonrc
authmodulelist="authmysql authpam"
DEBUG_LOGIN=1

3. Membuat file SMTP-AUTH
Buat file smtpd.conf dan tambahkan skrip di bawah:
# vi /usr/lib/sasl2/smtpd.conf
pwcheck_method: authdaemond
log_level: 3 
mech_list: PLAIN LOGIN 
authdaemond_path:/var/spool/authdaemon/socket
# chmod o+x /var/spool/authdaemon

4. Membuat file direktori vmail
File vmail digunakan untuk menyimpan data user postfix.
# mkdir /var/vmail
# chown -R postfix:postfix /var/vmail/

I. MENYALAKAN SERVICE

1. Nyalakan courier-authlib
# chkconfig --levels 235 courier-authlib on
# /etc/init.d/courier-authlib start

2. Nyalakan authdaemon
# chkconfig --levels 235 courier-imap on
# /etc/init.d/courier-imap start


3. Nyalakan Postfix
# postfix start
TROUBLESHOOTING
Jika ada error seperti ini:


Hal ini dikarenakan kita tidak menulis salah satu bagian skrip di /etc/postfix/main.cf dalam satu baris. Usahakanlah bagaimana caranya agar satu skrip di dalam file tersebut berada dalam satu baris. Jika sudah diperbaiki, tuliskan perintah postfix start dan seharusnya postfix sudah dapat menyala dengan baik seperti pada gambar:

J. Menginstal Postfixadmin

1. Ekstrak Paket
# cd /usr/local/src
# tar -zxvf postfixadmin_2.3.tar.gz

2. Konfigurasi Postfixadmin
# mv postfixadmin-2.3 postfixadmin
# cp -r postfixadmin /var/www/html/
# cd /var/www/html/postfixadmin

Merubah file config.inc.php menjadi seperti berikut:
# vi config.inc.php
$CONF['configured'] = true;
$CONF['database_type'] = 'mysql';
$CONF['database_host'] = 'localhost';
$CONF['database_user'] = 'postfix';
$CONF['database_password'] = 'password123';
$CONF['database_name'] = 'postfix';
$CONF['database_prefix'] = '';

K. Konfigurasi mysql
1. Masuk ke mysql
# mysql -u root -p
2. Membuat database postfix
> create database postfix;
3. Membuat Grant untuk database postfix
> grant all on postfix.* to postfix@localhost identified by 'password123'; 
> \q

L. Melihat Postfixadmin
1. Restart webserver
# service httpd restart
2. Lihat ke browser lalu ketikkan:
http://alamat_ip/postfixadmin/setup.php
Jika tidak ada error, maka akan terlihat sebagai berikut:


Masukkan password di dalam kotak yang telah disediakan Lalu tekan tombol Generate Password Hash.


Kemudian terlihat gambar seperti ini:


Masukkan password yang sudah digenerate itu (ce3157e...) ke dalam file conf.inc.php yang berada di folder /var/www/html/postfixadmin pada bagian $CONF['setup_password']. Setelah itu isi kotak Setup password yang berada di atas dengan menuliskan password yang belum digenerate. Kemudian tuliskan email admin dan password yang akan digunakan  untuk mengakses postfixadmin. Jika semuanya selesai dan tidak ada error, maka Setelah kita menekan tombol Add Admin, akan terlihat gambar seperti berikut:


Masukkan nama email dan password yang sudah kita buat sebelumnya. Jika sudah tekan tombol Login dan akan terlihat gambar seperti berikut:


Kita akan membuat virtual domain dan user account email. Untuk membuat domain baru, pilih item Domain List, lalu pilih New Domain. Sedangkan untuk membuat user account yang baru pilih item Virtual List lalu pilih Add Mailbox. Di tutorial ini, penulis membuat domain latihanlinux.co.cc dengan akun email This e-mail address is being protected from spambots, you need JavaScript enabled to view it .

M. Instalasi Webmail
Webmail yang akan kita gunakan adalah squirrelmail. Berikut adalah langkah-langkahnya:
# cd /usr/local/src
# tar -zxvf squirrelmail-1.4.19.tar.gz
# mv squirrelmail-1.4.19 webmail
# mv webmail /var/www/html/
# mkdir -p /var/local/squirrelmail/data/
# mkdir -p /var/local/squirrelmail/attach/
# chown apache:apache /var/local/squirrelmail/data/
# chown apache:apache /var/local/squirrelmail/attach/
 
Kemudian kita konfigurasi webmail dengan cara:
# cd /var/www/html/webmail
# ./configure
- Pilih Nomor 2 (Server Settings)
- Pilih Huruf A (Update IMAP Settings)
- Pilih nomor 4 lalu ketikkan alamat IP anda
- Pilih Nomor 6 (Authentification type)
Jawab Pertanyaan dengan menjawab N dan login
- Pilih Nomor 8 (Server Software)
Tulis courier
- Pilih Huruf B (Update SMTP Settings)
- Pilih Nomor 7 (SMTP Authentification)
Jawab Pertanyaan dengan N, login, dan N
- Pilih Huruf S
- Pilih Huruf Q
Jika tidak ada error, maka bisa melihat webmail ini dengan membuka browser namun sebelumnya restart webserver terlebih dahulu:
http://alamat_ip/webmail

Masukkan username dan passwordnya, dan setelah itu tekan tombol Login. Maka, akan terlihat sebagai berikut:

 

TROUBLESHOOTING

Jika setelah menekan tombol login, terlihat gambar seperti berikut:


Masalah ini biasanya timbul jika kita menginstal squirrelmail bawaan dari centos atau menginstalnya melalui yum. Untuk menghilangkannya, coba ke folder /etc/squirrelmail lalu buka file config_local.php kemudian hapus atau beri tanda pagar pada bagian $default_folder_prefix. Setelah itu restart webserver dan seharusnya error itu sudah hilang.

III. Testing Postfix

Jika kita sudah selesai menginstal postfix dan membuat postfixadmin, kini saatnya kita menguji postfix.
1. Pengujian Courier Authdaemon
Untuk menguji Authdaemon, ketikkan format sebagai berikut:
# authtest -s smtp alamat_email password_email
Untuk lebih jelasnya perhatikan gambar di bawah ini:
 
2. Pengujian POP3
Untuk menguji POP3 dalam sistem kita, ketikkan format sebagai berikut:
# telnet localhost 110
lalu masukkan alamat email dengan terlebih dahulu menulis kata user. Setelah itu masukkan password dengan terlebih dahulu menulis kata pass. Untuk lebih jelasnya perhatikan gambar berikut:
 
 
3. Pengujian IMAP
Untuk menguji IMAP, kita menggunakan format:
# telnet localhost 143
lalu tuliskan a login kemudian tuliskan alamat_email dan passwordnya. Jika mau keluar tulis a logout. Untuk lebih jelasnya perhatikan gambar berikut:
 

4. Pengujian smtp
Untuk menguji smtp, tuliskan perintah berikut:
# telnet localhost 25 
setelah itu tuliskan ehlo localhost maka akan tampil item-item. Tuliskan starttls untuk melihat apakah smtp kita dapat menggunakn tls atau tidak. Untuk keluar gunakan perintah quit sebanyak 2 kali. Untuk lebih jelasnya perhatikan gambar berikut:
 
 
6. Menguji email
Untuk menguji email, buatlah 2 user dengan menggunakan postfixadmin dan cobalah saling kirim dengan menggunakan webmail (squirrelmail) dan seharusnya email sudah dapat saling terkirim dengan baik. Jika email tidak terkirim, cobalah cek error lognya di /var/log/maillog.
 
Tulisan selanjutnya akan dijelaskan tentang bagaimana cara menginstal anti virus dan spamassassin di postfix.

Referensi:

15 Dzulqa'dah 1430 H
3 November 2009 M

+ 14
+ 8
Comments
Add New Search
penchot  - makasih     |118.96.72.xxx |2010-02-24 11:54:13
om... numpang copas yach di blog saya... makasih.. saya berhasil...

klo bisa semua masalah administrator linux dunk..
LDAP primary dan slave, pokoknya semua deh... sekali lagi makasih atas ilmunya...
catatan   |SAdministrator |2010-02-24 15:23:03
Oh silahkan mas, Copas saja.
Saya juga berkeinginan seperti itu.
Doakan saja mas.
ichan  - permisi mohon bantuanx,.   |114.58.33.xxx |2010-03-15 15:17:30
mas,,maaf ganggu mas,,mau tanya,,maaf kl sy msh newbie d bidang linux,.koq pas bagian ekstrak postfix langkah D point 3, kq g bisa y mas,,gini mas recordnya:

[root@localhost postfix-2.6.5]# make makefiles 'CCARGS=-DHAS_MYSQL -I/usr/include/mysql -DUSE_SASL_AUTH -DUSE_TLS -DUSE_CYRUS_SASL -I/usr/include/sasl' 'AUXLIBS=-L/usr/lib/mysql -lmysqlclient -lz -lm -L/usr/lib -lssl -lcrypto -lsasl2'
make -f Makefile.in MAKELEVEL= Makefiles
(echo "# Do not edit -- this file documents how Postfix was built for your machine."; /bin/sh makedefs) >makedefs.tmp
No include file found.
Install the appropriate db*-devel package first.
See the RELEASE_NOTES file for more information.
make: *** [Makefiles] Error 1
make: *** [makefiles] Error 2

Knp y mas?,.boleh minta saranya,,terima kasih,.
catatan   |SAdministrator |2010-03-17 23:08:35
Halo mas Ichan,
Kalau dilihat dari errornya, sepertinya mas Ichan belum menginstal db* -devel ya?

Install the appropriate db*-devel package first.

Cobalah instal terlebih dahulu devel tersebut. Hal ini berhubungan dengan database karena file db.h tidak ada dalam sistem mas Ichan. Coba saja ulangi lagi ketika menginstal paket-paket langkah A poin 1.

Semoga Membantu.
ichan  - minta bantuan lg mas,.   |114.59.178.xxx |2010-03-20 01:49:44
akhirnya bisa mas,,,permasalahan sepertinya memang belum menginstall db* -devel ,,makasih ya mas,,,
tapi saya mengalami masalah lagi pd langkah G.Instalasi courier imap,,.Paz bagian terakhir mas,,:

[root@localhost i386]# rpm -ivh courier-imap*
error: File not found by glob: courier-imap*

tu knp lg y mas?,.knp file courier-imap g ad?,.ato harus saya ulangi lagi dari awal mas?,.tapi langkah" sebelum point G telah berhasi semua,,

Makasih y mas,,,sory kl mengganggu,,
catatan   |SAdministrator |2010-03-22 11:37:57
Apakah benar sudah berhasil semua ketika mengetikkan perintah-perintah sebelum perintah rpm -ivh courier-imap*?
Sepertinya ada error deh.
ichan   |114.56.101.xxx |2010-03-20 02:23:54
tp sebelumnya,,pd point G,,sewaktu mengetikkan perintah:
#rpmbuild -ta courier-imap*

pada bagian akhir terdapat informasi error seperti ini:
make[2]: *** [check-am] Error 1
make[2]: Leaving directory `/home/courier/rpm/BUILD/courier-imap-4.5.1/imap'
make[1]: *** [check] Error 2
make[1]: Leaving directory `/home/courier/rpm/BUILD/courier-imap-4.5.1/imap'
make: *** [check-recursive] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.88671 (%build)


RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.88671 (%build)
catatan   |SAdministrator |2010-03-22 11:46:58
Sudah saya duga sebelumnya, kemungkinan besar ada error sebelum mengetikkan perintah rpm -ivh courier-imap*.

Cobalah cek apakah SELinux-nya enabled atau tidak? Kalau memnag enabled, coba di disabled.

Kalau misalnya memang masih seperti itu, coba di ulang lagi perintah-perintah sebelumnya. Mungkin ada yang terlewat.

Semoga Membantu.
ichan   |114.56.237.xxx |2010-03-22 23:09:41
Ok mas saya coba dulu,,mau install ulang linux n mulai dari awal,,,

Tp m'f mas sy masih newbie,,cara men-disable SELinux gmn y mas?,,.

Kemudian apabila saya melakukan instalasi linux lagi mulai dari awal,,paket apa saja yang harus saya pilih untuk pertama kali?,.

M'f merepotkan,,.terima kasih,,
catatan   |SAdministrator |2010-03-23 08:54:41
Untuk Mendisable SELinux, buka file di /etc/selinux/config lalu cari kata SELINUX. Jika SELINUX=enabled rubah jadi disabled setelah itu simpan dan keluar.

Kalau boleh saya sarankan, sebaiknya mas menggunakan vmware saja untuk menginstal linuxnya. Setelah menginstal linux dalam vmware maka langsung saja dikopi file tersebut sehingga kalau linuxnya ada masalah tinggal dihapus dan diganti dengan yang dikopi itu.

Kemudian mengenai paket-paket yang akan diinstal, kalau kompie mas ichan terhubung dengan internet, maka tidak perlu banyak menginstal paket-paket ketika menginstal linux, sebab nanti akan diinstal dari internet.

Gak kok mas, bagi saya ini gak merepotkan. Saya pun ketika belajar postfix sama seperti mas bahkan saya belajar postfix membutuhkan waktu sebulan hanya untuk menginstalnya saja . Jadi terus saja trial and error sampai bisa.

Semoga Membantu
ichan   |114.56.249.xxx |2010-04-17 14:50:52
Alhamdulillah masalah yang kemarin udah beres mas,.
Ternyata sepertinya memang benar karena selinux enable,.
Ini mau tanya lagi mas,,
Kenapa pada langkah I.2.Pada waktu menyalakan service authdaemon terjadi masalah mas,,seperti ini:

[root@localhost authlib]# chkconfig --levels 235 courier-imap on
error reading information on service courier-imap: No such file or directory
[root@localhost authlib]# /etc/init.d/courier-imap start
bash: /etc/init.d/courier-imap: No such file or directory

Mohon bantuanx mas,,thx,,
catatan   |SAdministrator |2010-04-19 16:48:06
Halo mas Ichan,
Kalau dilihat dari errornya, sepertinya paket IMAP-nya belum terinstal ya?

Sebelum menggunakan perintah /etc/init.d/courier-imap start, kan kita harus menginstal IMAP dulu kan di sistem kita? Nah, pada saat menginstal IMAP di di sistem mas Ichan, ada error gak?
ichan   |114.56.249.xxx |2010-04-17 14:56:00
oh y mas,,kalau boleh saya minta nomor HPnya boleh g mas?,.biar gmpang nanyanya,,hehehe,,kirimin via email aja mas kl boleh,,thx,.
catatan   |SAdministrator |2010-04-19 16:54:45
Halo mas Ichan,
Saya kirimkan YM saya saja ya mas,
kita ceting-ceting mas
ichan   |114.56.249.xxx |2010-04-17 14:56:44
ini email saya mas,,

acz007_jbr@yahoo.co.id
catatan   |SAdministrator |2010-04-19 16:57:46
Halo mas ichan,
Sudah saya kirimkan YM saya melalui email mas Ichan.
ajituelegi  - Squirrelmail Forbidden     |202.58.79.xxx |2010-04-28 13:21:27
Selamat siang mas Admin, saya mau tanya..kenapa ya ketika saya menjalankan http://ipServer/webmail/ koq hasilnya malah seperti ini ya : Forbidden

You don't have permission to access /postfixadmin/ on this server.

padahal saya udah ngikitin yang ada di tutorial mas. Terima kasih
catatan   |SAdministrator |2010-04-28 18:53:12
Selamat Siang Juga Mas,
Ini errornya pada bagian mana ya?
ajituelegi  - re: Squirrelmail Forbidden     |202.58.79.xxx |2010-04-29 09:49:48
ajituelegi wrote:
Forbidden

You don't have permission to access /postfixadmin/ on this server.



Jadi pas dibuka di browser tampil seperti diatas.. sekarang malah tambah kacau kalao httpdnya di restart, malah muncul seperti ini :

[root@censmtp ~]# service httpd restart
Stopping httpd: [FAILED]
Starting httpd: Warning: DocumentRoot [/var/www/html/webmail/] does not exist
(9Address already in use: make_sock: could not bind to address [::]:80
(9Address already in use: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
[FAILED]
ajituelegi  - re: re: Squirrelmail Forbidden     |202.58.79.xxx |2010-04-29 09:54:40
Mohon maaf mas, saya ada sedikit ralat. saya salah memberikan informasi, untuk yang bermasalah squirrelmailnya seperti ini
ajituelegi wrote:

Forbidden

You don't have permission to access /webmail on this server.
Apache/2.2.3 (CentOS) Server at 10.10.2.209 Port 80


Terima kasih
catatan   |SAdministrator |2010-04-29 10:32:41
Halo mas ajituelegi,
Seharusnya ketika membuka squirrelmail di browser, itu tidak mengalami masalah seperti yang mas alami. Tapi jika terjadi error seperti yang mas alami, coba mainkan permission dan ownernya.

Semoga Membantu.
ajituelegi  - Minta YM     |202.58.79.xxx |2010-04-29 10:17:32
Mohon ijin nih mas,Bolehkah saya minta YM mas? supaya saya bisa tanya sama masnya lewat chating.Kalau boleh, tolong kirim via email ya mas, ini email saya : ajituelegi@gmail.com .terima kasih
catatan   |SAdministrator |2010-04-29 10:34:26
Boleh, Saya sudah kirim lewat email mas YM saya.
ichan   |114.59.1.xxx |2010-05-04 22:50:12
mas,mau nanya,,pas ngonekin mysql tu kan minta password,,.paswordnya tu "password123" kan?,.tp kenapa pas saya masukan pasword tersebut terdapat yang berbunyi bahwa tidak bisa konek dengan suatu soket tertentu,,,apakah paswordnya yang salah atau ada penyebab lain y mas,,thx,,
catatan   |SAdministrator |2010-05-05 14:10:30
Halo mas Ichan,
Bisa ditulis tidak errornya seperti apa?
Tapi kalau dilihat dari pertanyaannya, sepertinya service mysql belum di hidupkan. Coba cek apakah mysql sudah hidup atau belum dengan cara:

# service mysqld status

Semoga Membantu
ichan   |114.59.204.xxx |2010-05-09 19:13:58
Seperti ini mas,,Pada langkah K sewaktu mau masuk database mysql:
[[root@mail ~]# service mysqld status
mysqld is stopped
[root@mail ~]# mysql -u root -p
Enter password:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
[root@mail ~]#



Apakah password yang saya masukkan salah atau ada hal yang lain mas?..
Password yang saya masukkan = password123

Cara menghidupkan service mysql gmn mas?
catatan   |SAdministrator |2010-05-14 10:39:29
Oh, kalau error seperti itu berarti mysqlnya belum dihidupkan. Hidupkan dulu service mysql-nya. Tahu kan caranya?
ichan   |114.59.204.xxx |2010-05-09 20:05:14
apakah betul saya menggunakan perintah untuk menghidupkan mysql seperti ini:
#/etc/init.d/mysqld start

setelah menggunakan perintah tersebut service mysql berhasil berjalan,tetapi sewaktu saya masuk menggunakan mysql -u root -p ternyata kembali muncul informasi bahwa akses denied seperti ini:

Starting MySQL: [ OK ]
[root@mail rc.d]# service mysqld status
mysqld (pid 5069) is running...
[root@mail rc.d]# mysql -u root -p
Enter password:
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)

apakah password yg saya masukan salah atau ada sebab lain?,,.thx
catatan   |SAdministrator |2010-05-14 10:41:45
Halo mas Ichan,
Biasanya untuk mysql yang pertama kali di akses dengan menggunakan user root, passwordnya tidak ada. Jadi cukup menekan tombol enter saja.
ajituelegi  - Can't connect to local MySQL     |202.58.79.xxx |2010-05-12 11:08:20
ichan wrote:

[root@mail ~]# mysql -u root -p
Enter password:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)




Mas Arie, nongol lagi nih mas..setelah yang kemarin gagal untuk setting squirrelmailnya, sekarang saya mengalami masalah yang sama dengan mas ichan seperti diatas...itu gmn ya mas??? passwordnya bener pake yang password123 ?
catatan   |SAdministrator |2010-05-14 10:46:40
Halo mas Ajutuelegi,
Hal itu karena mysqlnya belum dinyalakan. Dan jika ditanya password root tekan enter saja.

Semoga Membantu
ajituelegi  - Mysql sudah bisa     |202.58.79.xxx |2010-05-12 11:54:56
Mas Arie, ternyata mysqlnya itu ngga pake password ya?? sekarang sudah bisa saya masuk ke mysql..bisa lanjut deh..
catatan   |SAdministrator |2010-05-14 10:46:58
Siiplah ...
ajituelegi  - Tanya letak admin postfixadmin     |202.58.79.xxx |2010-05-12 17:32:51
Mas Arie, mau tanya lagi donk..tempat setelah kita AddAdmin itu dmn ya mas? masalahnya saya ada sedikit kekeliruan. saya mau buat ulang admin dengan account email yang sama, sedangkan disitu tulisannya : The admin already exists or is not valid itu bagaimana ya mas? terima kasih.
catatan   |SAdministrator |2010-05-14 11:00:27
Halo mas Ajituelegi,

Gini aja mas,
mas buka folder dimana postfixadmin itu diletakkan dalam sistem, misalnya di:

# cd /var/www/html/postfixadmin

terus di file config.inc.php dilihat database_passwordnya apa?

Lalu masuk ke mysql, kemudian hapus database dengan nama postfix. Setelah itu buat lagi database dengan menggunakan menggunakan nama postfix dan password yang sama dengan file di config.inc.php pada bagian database_password.

Semoga membantu
ichan  - re: Mysql sudah bisa   |114.59.128.xxx |2010-05-13 00:37:41
ajituelegi wrote:
Mas Arie, ternyata mysqlnya itu ngga pake password ya?? sekarang sudah bisa saya masuk ke mysql..bisa lanjut deh..


mas aji,,itu gimana caranya masuk mysqlnya?,.apakah langsung enter saja?,,.thx
catatan   |SAdministrator |2010-05-14 11:01:56
Halo mas ichan,
Memang hanya tinggal menekan enter saja ketika ditanya untuk menuliskan password root.

Semoga Membantu
ajituelegi  - Re: Mysql sudah bisa     |202.58.79.xxx |2010-05-14 10:16:13
Mas Ichan, sebenernya cuma langsung enter aja....tapi hari ini, jum'at 14 - mei - 2010 pas saya mau masuk postfixadmin/setup.php sudah ngga bisa...katanya Error: Can't connect to database..pas mau masuk ke mysql lagi, udah ga bisa...aneh juga ya??? jadi bingung saya.padahal sebelumnya saya ngga apa2in konfigurasinya...skrg mau saya cari tau lagi.Doakan saya ya.hehehe
catatan   |SAdministrator |2010-05-14 11:03:53
Halo mas Ajituelegi,
Apa mysqlnya sudah dinyalakan?
ichan   |114.59.96.xxx |2010-05-14 12:04:59
Ia ni mas Aji,mas Arief,,semoga saja usaha ini berhasil,,soalnya kl g selesai berarti saya jg g lulus ni mas,,hehehe,,
Terus terang judul PA saya terinspirasi dari tulisan catatan lepas ini,,hhe,,,
Ini judul saya mas,,

"PERANCANGAN SERVER EMAIL ANTISPAM
BERBASIS LINUX CENTOS 5.4 "

Jadi mungkin nanti saya akan banyak bertanya lagi pada pembahasan Antispamnya mas Arief,,
Jangan bosen" y mas sama pertanyaan saya,,,hhee,,Thx b4 buat semuanya,.
catatan   |SAdministrator |2010-05-18 11:15:43
Halo mas Ichan,
Sepanjang yang saya bisa jawab akan saya jawab mas. Jadi jangan berhenti untuk mencoba ya
ajituelegi     |202.58.79.xxx |2010-05-14 13:50:58
Sudah mas arief, dan nda tau kenapa..ketika saya restart servernya, ternyata bisa lagi...ketika saya lihat di setup, service mysqld, httpd, dan service yang berhubungan dengan ini sudah otomatis jalan.
catatan   |SAdministrator |2010-05-18 11:18:48
Oh ya, aneh juga. Seharusnya sih ketika di setup service-service tersebut di beri tanda bintang (*), service-service tersebut akan otomatis berjalan ketika direstart servernya.
ajituelegi  - Virtual list     |202.58.79.xxx |2010-05-14 13:54:28
Mas Arie, ketika saya mau add domain pada virtual list. malah muncul seperti ini : Invalid domain selasalegi.org, and/or not discoverable in DNS. Domain tsb sudah saya buat din named.conf, selasalegi.org.zone. mohon koreksinya apabila masih ada yang kurang mas..Terima kasih
catatan   |SAdministrator |2010-05-18 11:20:32
Wah mas, ketika instalasi postfix di server, tidak perlu membuat konfigurasi DNS di server kita. Kita hanya cukup dengan mempunyai nama DNS dan IP Publik saja.

Semoga Membantu
jufry   |118.97.34.xxx |2010-05-18 07:17:09
#make makefiles 'CCARGS=-DHAS_MYSQL -I/usr/include/mysql -DUSE_SASL_AUTH -DUSE_TLS -DUSE_CYRUS_SASL -I/usr/include/sasl' 'AUXLIBS=-L/usr/lib/mysql -lmysqlclient –lz -lm -L/usr/lib -lssl -lcrypto -lsasl2'
pada bagian akhir mucul pesan :
gcc: .lz: No such file or directory
make: *** [master] Error 1
make: *** [update] Error 1

blh minta sarannya mas..kenapa ya..??
trimakasih sebelumnya..
catatan   |SAdministrator |2010-05-18 11:38:52
Mas Jufry,
Pada waktu mengkompile postfix apakah service mysqlnya sudah dihidupkan?
jufry   |118.97.34.xxx |2010-05-18 14:56:53
Setup password not specified correctly

If you want to use the password you entered as setup password, edit config.inc.php and set

$CONF['setup_password'] = '9a60e8e37211ed5461284167e85c0d4a:af34a9ad557652d311873c59971da1a7ef8f7d60';

saya sudah memasukkan pass generate di config.inc.php, sama yang di atas tetapi setiap menekan tombol Add Admin mucul pesan seperti diatas..
mohon bantuannya mas..
catatan   |SAdministrator |2010-05-19 23:02:02
Halo Mas Jufry,
Sepertinya dari pesan error jelas terlihat bahwa mas salah memasukkan password di file config.inc.php di bagian setup_password.

Semoga Membantu
jufry   |118.97.34.xxx |2010-05-18 22:12:26
SquirrelMail configtest

This script will try to check some aspects of your SquirrelMail configuration and point you to errors whereever it can find them. You need to go run conf.pl in the config/ directory first before you run this script.

SquirrelMail version: 1.4.19
Config file version: 1.4.0
Config file last modified: 18 May 2010 18:41:41
Checking PHP configuration...
PHP version 5.1.6 OK.
display_errors:
error_reporting: 2047
variables_order OK: EGPCS.
PHP extensions OK. Dynamic loading is enabled.
Checking paths...
Data dir OK.
Attachment dir OK.
Plugins are not enabled in config.
Themes OK.
Default language OK.
Base URL detected as: http://118.97.34.125/webmail/src (location base autodetected)
Checking outgoing mail service....

ERROR: Error connecting to SMTP server "localhost:25".Server error: (111) Connection refused


kira2 masalahnya dimna ya mas..??
bingung ni mass..mohon bantuannya ya..trimakasih sebelumnya..
catatan   |SAdministrator |2010-05-19 23:49:48
Halo mas Jufry,
Maaf mas, itu mas mengetikkan perintah apa ya di squirrelmail? Saya sendiri baru tahu tuh mas.
ichan   |114.57.159.xxx |2010-05-18 23:38:00
Ass,,mas aji,,mau tanya,,
Pada langkah I.Melihat postfix admin,,.
Saya sudah menggenerate passowrd dan mengkopinya ke file config.inc.php dan succesfull

Tetapi sewaktu proses selanjutnya,yaitu create superadmin account,,saya sudah memasukkan password dengan benar,,tetapi email yang saya masukkn not valid,,seperti gambar ini:
http://i899.photobucket.com/albums/ac199/donirichard77/postfixadmin.jpg

Pertanyaan saya,,alamat email apa yang saya masukkan mas?,,.mohon bantuanx,,thx,,
ajituelegi     |202.58.79.xxx |2010-05-19 10:54:37
Wa'alaikumsalam mas Icha, sebelum saya menjawab, saya mau minta izin dulu sama mas Arie. Mas Arie, mohon ijin untuk menjawab pertanyaan dari mas ichan.

Sebenernya untuk alamat email itu ngga masalah alamatnya apa aja (sudah saya kirim ke email mas gambar saya ketika add admin dengan email yahoo), asalkan alamat itu valid atau terdaftar.
kemungkinan mas ichan salah ketika mengisi setup password, apa sudah betul mengisi passwordnya dengan password yang sudah di hash?
catatan   |SAdministrator |2010-05-19 23:12:00
Halo mas Ajituelegi,
Kalo mau jawab pertanyaan gak perlu minta izin sama saya mas. Di sini itu forum bebas artinya setiap orang bebas menjawab pertanyaan sesuai dengan yang dia ketahui. Kalau salah, nanti juga ada yang mengoreksinya, ok?

Kemudian mas, menegenai masalah di cetingan kita mengenai masalah mas yang sudah selesai instal postfix namun mengapa email tersebut hanya bisa mengirim dan tidak bisa menerima email dari luar yahoo misalnya. Hal ini karena mas tidak mempunyai domain dan IP publik. Ingat kan di waktu ceting kenapa ketika kita mengeping mail.xxx.co.cc tidak bisa tetapi ketika kita mengeping xxx.co.cc itu bisa.

Kalau kita bisa mengeping mail.xxx.co.cc, maka kita bisa mendapatkan email dari yahoo. Maka dari itu, agar bisa mengirim dan menerima email sebaiknya mas mempunyai nama domain dan IP Publik karena email luar misalnya Yahoo, dia mencari dahulu nama domain, lalu mencari smtp dari domain tersebut. Jika tidak ketemu, maka pengiriman dianggap gagal.

Mungkin mas bingung kenapa kok bisa mengirim email ke luar misalnya ke yahoo pake domain tersebut? Karena domain mas tersebut menggunakan smtp kantor mas sehingga bisa terkirim ke luar. Dan tidak bisa sebaliknya. Mudah-mudahan bisa ngerti ya. Kalau gak bisa kita cetingan lagi ya

Semoga Membantu
ichan   |114.59.195.xxx |2010-05-19 19:04:06
Duh,,kq tetep g bisa y mas?,,.kan sebelumnya passwordnya di generate,,saya menggunakan 'password123',,sdh saya generate dan kode generate tersebut sudah saya kopi ke file config.inc.php dan sudah saya save,,

nah kemudian pada create superadmin,saya sudah masukkan pasword dengan 'password123',,

Apakah konfigurasi email di file config.inc.php harus di ganti jg?,.soalnya saya curiga di situ ada bagian alamat email admin,,

Tolong bantuan mas-masnya,,,terutama buat mas arie kl g ngrepotin,,hhehee,.thx
catatan   |SAdministrator |2010-05-19 23:17:09
Begini Mas Ichan,
Memang terkadang ada error seperti itu ketika kita membuat domain baru di postfixadmin. Untuk mengatasinya, coba buka di file conf.inc.php lalu cari kata resolve_domain. Jika sudah ganti YES menjadi NO sehingga menjadi :

$CONF['emailcheck_resolve_domain']='NO';

Setelah itu seharusnya error tersebut tidak ada lagi. Untuk langkah selanjutnya mas membuka browser dan ketikkan:

http://alamat_ip/postfixadmin/

Lalu masukkan user dan password yang tadi dimasukkan.

Semoga Membantu
ichan   |114.59.195.xxx |2010-05-19 19:05:17
mas,,kalau boleh saya minta file config.inc.php punya mas donk,,soalnya kemaren ada bagian config email admin yang saya utak-atik,,thx
catatan   |SAdministrator |2010-05-19 23:21:26
Halo mas Ichan,
konfigurasi file config.inc.php sama dengan apa yang saya tulis di tutorial ini ditambah dengan konfigurasi di bagian resolve_domain seperti yang diatas dijelaskan.

Kemudian mas, saya mengusulkan agar setiap mas mau mengkonfigurasi sebuah file maka di backup dulu file originalnya. Misalnya file originalnya namanya test dan mas ingin mengkonfigurasi file tersebut, maka sebelumnya mas harus membackup file tersebut dengan cara:

# cp test test.ori

jadi kalau ada kesalahan bisa di rollback dengan cara:

# cp test.ori test

Semoga Membantu
Felix   |118.97.34.xxx |2010-05-19 21:21:44
selamat malam dan salam kenal mass Admin..
saya mau minta bantuan untuk masalah yang muncul setelah mencoba menginstall squirrelmail..errornya muncul pada saat aku mencoba login di squirrelmail(webmail)..timbul pesan sbb :
ERROR: Connection dropped by IMAP server.

apa ya solusinya..mohon bantuannya..???
catatan   |SAdministrator |2010-05-19 23:44:36
Halo mas Felix,
Error itu disebabkan karena IMAP-nya gak jalan. Coba cek di bagian Pengujian IMAP dengan cara:

# telnet localhost 143

Tuliskan nama usernya dan passwordnya. Jika memang IMAPnya nyala maka akan terlihat pesan seperti di tutorial pada pengujian IMAP. Kalau tidak, maka akan ada error sebagai berikut:

* BYE [ALERT] Fatal error: No such file or directory: No such file or directory
Connection closed by foreign host.

Coba lihat error di bagian /var/log/messages maka akan terlihat bahwa ada pesan error seperti berikut:

May 19 22:28:37 GUI imapd: chdir budi@latihanlinux.co.cc/: No such file or directory
May 19 22:28:37 GUI imapd: budi@latihanlinux.co.cc: No such file or directory

Hal ini karena direktori mail user tersebut tidak terbentuk secara otomatis. Penyebab IMAP mati diantaranya karena postfix mati.

Semoga membantu
felix   |118.97.34.xxx |2010-05-20 05:29:11
mmg betul mas..saya coba telnet localhost 143 tidak bisa, terjadi error sesuai yg mass bilang...
kalo menjalankan postfixnya kalo tidak salah dengan perintah : postfix start
aku coba cek status postfix dengan perintah : postfix status ...> hasilnya : postfix/postfix-script: the Postfix mail system is running: PID: 27202

kalo mengenai direktori mail user kalo tidak terbentuk otomatis, apakah bisa dibuat secara manual dan kl blh tau caranya gimana ya mass..??
catatan   |SAdministrator |2010-05-24 08:04:08
Halo Mas Felix,
Sebenarnya menggunakan tutorial di atas bisa langsung terbentuk direktori mail user secara otomatis. Jadi tidak perlu membuat direktori mail user secara manual.

Namun, jika ingin membuat direktori mail user secara manual, bisa saja yaitu dengan cara:

Di file main.cf:
home_mailbox = Maildir/

Misalnya nama usernya budi, maka ikuti perintah berikut:

# mkdir ~budi/Maildir
# mkdir ~budi/Maildir/new ~budi/Maildir/tmp ~budi/Maildir/cur
# chmod -R 700 ~budi/Maildir

Namun, saya tidak tahu apakah membuat direktoi mail user secara manual bisa atau tidak menggunakan tutorial yang saya buat karena seperti yang saya bilang tadi tutorial ini membuat secara otomatis direktori mail user.

Semoga Membantu
ajituelegi     |202.58.79.xxx |2010-05-20 15:53:57
Hallo Juga Mas Arie,
memang sih ini kan forum bebas, tap saya ini kan cuma pengunjung webnya mas Arie, jadi kalo ga minta ijin takut dikira mcm2..hehhe, terima kasih berarti mas kalo begitu...oia, untuk yang waktu itu di cetingan, itu kan sudah saya arahkan ke IP 202.x.x.x, dan sya juga sudah ada domain .co.cc. apa itu bm cukup mas?
gini aja, saya mau coba lagi bikin domain baru dan IP public masih menggunakan yang itu. nanti saya kabarin mas lagi ya ? gmn mas?
catatan   |SAdministrator |2010-05-24 08:10:04
Halo mas ajituelegi,
Memang belum cukup mas, karena mas hanya mengarahkan IP publik mas ke domain xxx.co.cc tapi tidak ke mail.xxx.co.cc.

Mas megirimkan email ke saya menggunakan domain tuelegi.web.id ya? Email itu emang sampai ke saya, tetapi ketika saya mereply, ternyata mengalamai kegagalan karena tidak tahu dimana domain itu berada.
ichan   |114.58.127.xxx |2010-05-21 15:48:57
Ass,,,mas,,saya juga mengalami permasalahn seperti mas felix,,sewaktu login webmail terdapat message error seperti ini:
ERROR: Connection dropped by IMAP server.


dan sewaktu saya tes IMAP menggunakan telnet ternyata tampilanx seperti ini:
[root@mail ~]# telnet localhost 143
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
* OK [CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE ACL ACL2=UNION STARTTLS] Courier-IMAP ready. Copyright 1998-2008 Double Precision, Inc. See COPYING for distribution information.
Connection closed by foreign host.

Service postfix jg sudah di nyalakan,,tetapi sewaktu login kembali tenyata masih muncul message error mas,,
Kira" solusinya sperti ap mas,,,thx,,
catatan   |SAdministrator |2010-05-24 08:17:22
Halo mas Ichan,
Bisa melihat output di /etc/hosts?
Lalu output dari ifconfignya seperti apa?
Lalu apakah SELinux sudah disable?
ichan   |114.58.127.xxx |2010-05-21 15:58:00
apakah mungkin pengaruhnya gara" service telnet saya mati atau tidak ada mas?
catatan   |SAdministrator |2010-05-24 08:20:15
Halo Mas Ichan,
IMAP itu menggunakan port 143 sedangkan telnet menggunakan port 23. Jadi walaupun service telnet mati, tidak mempengaruhi IMAP.
ichan  - re:   |114.58.127.xxx |2010-05-21 16:00:01
cara mengecek service telnet ada hidup atau mati atau ada atau tidak ada gmn carax mas?
catatan   |SAdministrator |2010-05-24 08:21:09
# netstat -tap
ichan  - re:   |114.58.34.xxx |2010-05-24 12:24:29
catatan wrote:
Halo mas Ichan,
Bisa melihat output di /etc/hosts?
Lalu output dari ifconfignya seperti apa?
Lalu apakah SELinux sudah disable?


Output di /etc/hosts seperti ini mas:
127.0.0.1 localhost.localdomain localhost
192.168.0.248 mail.latihanlinux.co.cc mail

Kalau ifconfig seperti ini:
[root@mail selinux]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:90:F5:55:6E:A4
inet addr:192.168.0.248 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets errors dropped overruns frame
TX packets errors dropped overruns carrier
collisions txqueuelen:1000
RX bytes (0.0 b) TX bytes (0.0 b)
Interrupt:169 Base addressx2c00

sedangkan untuk SELINUX sudah saya disable mas,,.
catatan   |SAdministrator |2010-05-24 17:29:05
Kalau begitu, apakah service mysql-nya sudah dihidupkan?
ichan   |114.58.105.xxx |2010-05-24 14:57:43
ataukah mungkin port 143 IMAP saya belum di buka y mas?,,.cara mengecek suatu port terbuka atau tidak gmn mas?,.
catatan   |SAdministrator |2010-05-24 17:30:07
lihat saja dengan melihat di iptables

# iptables -L
ichan   |114.58.105.xxx |2010-05-24 15:02:25
ternyata saya sdh mengecek port 143 ternyata open mas,,kira mslhnya di mn lg y mas,,.

[root@mail etc]# nmap localhost

Starting Nmap 4.11 ( http://www.insecure.org/nmap/ ) at 2010-05-24 150 WIT
Interesting ports on localhost.localdomain (127.0.0.1):
Not shown: 1665 closed ports
PORT STATE SERVICE
22/tcp open ssh
25/tcp open smtp
80/tcp open http
110/tcp open pop3
111/tcp open rpcbind
143/tcp open imap
443/tcp open https
465/tcp open smtps
587/tcp open submission
631/tcp open ipp
864/tcp open unknown
993/tcp open imaps
995/tcp open pop3s
3306/tcp open mysql
8443/tcp open https-alt

Nmap finished: 1 IP address (1 host up) scanned in 0.153 seconds
catatan   |SAdministrator |2010-05-24 17:30:50
sip sip
ichan   |114.58.105.xxx |2010-05-24 15:11:27
Apakah kita menggunakan dovecot mas?,.apakah IMAPnya di hidupkan dengan menggunakan service dovecot mas?,,.ada artikel yang menyebutkan service IMAP dhidupkan dengan dovecot,,
Tetapi setelah saya coba nyalakan service dovecot muncul pesan bahwa port 143 telah digunakan:

[root@mail etc]# service dovecot restart
Stopping Dovecot Imap: [FAILED]
Starting Dovecot Imap: Fatal: listen(143) failed: Address already in use
[FAILED]
catatan   |SAdministrator |2010-05-24 17:33:54
Halo Mas Ichan,
Karena kita sudah menggunakan Courier IMAP, maka kita tidak bisa menggunakan dovecot.
ichan   |114.58.225.xxx |2010-05-24 19:34:52
service mysql udh hidup mas,,tp masih belum bisa,,,hhehe,,,
kira" knp lg y,,???
catatan   |SAdministrator |2010-05-25 09:49:54
Hmm, aneh juga ya.
Oh ya mas, apakah mas ichan benar-benar mengikuti perintah di tutorial ini dengan baik dan benar ?
Lalu apakah dalam mengerjakannya dalam satu waktu tanpa terputus? Maksudnya tidak menunda sampai esok hari gitu? Masalahnya terkadang ketika kita merestart kembali server mail servernya mungkin saja ada yang belum menyala.
ichan   |114.56.46.xxx |2010-05-24 23:45:46
mas,,konfigurasi postfix yaitu file main.cf di /etc/postfix kira" mempengaruhi error yang saya alami ini tidak mas?,.soalnya konfigurasi file main.cf hanya saya kopi di file aslinya,,mungkin saja ada perintah yang double,,apakah itu tidak mempengaruhi file konfigurasi tersebut?,,.
catatan   |SAdministrator |2010-05-25 09:50:19
Bisa dilihat konfigurasi file main.cf nya seperti apa?
ichan   |114.56.185.xxx |2010-05-25 10:55:20
memang benar saya tidak mengerjakanx dalam satu waktu mas,,tetapi saya cicil,,,kl gitu cara hidupkan serverx gmn mas?,,.

oh ia ini file main.cf nya mas,,

alias_maps = mysql:/etc/postfix/mysql_virtual_alias_maps.cf
broken_sasl_auth_clients = yes
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
data_directory = /var/lib/postfix
debug_peer_level = 2
home_mailbox = Maildir/
html_directory = no
mail_owner = postfix
mailq_path = /usr/bin/mailq
manpage_directory = /usr/local/man
mydomain = latihanlinux.co.cc
myhostname = mail.latihanlinux.co.cc
myorigin = #myhostname
newaliases_path = /usr/bin/newaliases
queue_directory = /var/spool/postfix
readme_directory = no
sample_directory = /etc/postfix
sendmail_path = /usr/sbin/sendmail
setgid_group = postdrop
smtp_tls_note_starttls_offer = yes
smtp_use_tls = yes
smtpd_banner = #myhostname ESMTP "mail.latihanlinux.co.cc"
smtpd_recipient_restrictions = permit_mynetworks,permit_sasl_authenticated,reject_invalid_hostname, reject_non_fqdn_hostname, reject_unknown_sender_domain,reject_non_fqdn_sender, reject_non_fqdn_recipient, reject_unknown_recipient_domain, reject_unauth_pipelining,reject_unauth_destination,permit
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = #myhostname
smtpd_sasl_security_options = noanonymous
smtpd_tls_CAfile = /etc/postfix/ssl/cacert.pem
smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.crt
smtpd_tls_key_file = /etc/postfix/ssl/smtpd.key
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
smtpd_use_tls = yes
tls_random_source = dev:/dev/urandom
unknown_local_recipient_reject_code = 550
virtual_alias_maps = proxy:mysql:/etc/postfix/mysql_virtual_alias_maps.cf
virtual_gid_maps = static:500
virtual_mailbox_base = /var/vmail/
virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql_virtual_domains_maps.cf
virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql_virtual_mailbox_maps.cf
virtual_minimum_uid = 500
virtual_transport = virtual
virtual_uid_maps = static:500


# Global Postfix configuration file. This file lists only a subset
# of all parameters. For the syntax, and for a complete parameter
# list, see the postconf(5) manual page (command: "man 5 postconf".
#
# For common configuration examples, see BASIC_CONFIGURATION_README
# and STANDARD_CONFIGURATION_README. To find these documents, use
# the command "postconf html_directory readme_directory", or go to
# http://www.postfix.org/.
#
# For best results, change no more than 2-3 parameters at a time,
# and test if Postfix still works after every change.

# SOFT BOUNCE
#
# The soft_bounce parameter provides a limited safety net for
# testing. When soft_bounce is enabled, mail will remain queued that
# would otherwise bounce. This parameter disables locally-generated
# bounces, and prevents the SMTP server from rejecting mail permanently
# (by changing 5xx replies into 4xx replies). However, soft_bounce
# is no cure for address rewriting mistakes or mail routing mistakes.
#
#soft_bounce = no

# LOCAL PATHNAME INFORMATION
#
# The queue_directory specifies the location of the Postfix queue.
# This is also the root directory of Postfix daemons that run chrooted.
# See the files in examples/chroot-setup for setting up Postfix chroot
# environments on different UNIX systems.
#
queue_directory = /var/spool/postfix

# The command_directory parameter specifies the location of all
# postXXX commands.
#
command_directory = /usr/sbin

# The daemon_directory parameter specifies the location of all Postfix
# daemon programs (i.e. programs listed in the master.cf file). This
# directory must be owned by root.
#
daemon_directory = /usr/libexec/postfix

# The data_directory parameter specifies the location of Postfix-writable
# data files (caches, random numbers). This directory must be owned
# by the mail_owner account (see below).
#
data_directory = /var/lib/postfix

# QUEUE AND PROCESS OWNERSHIP
#
# The mail_owner parameter specifies the owner of the Postfix queue
# and of most Postfix daemon processes. Specify the name of a user
# account THAT DOES NOT SHARE ITS USER OR GROUP ID WITH OTHER ACCOUNTS
# AND THAT OWNS NO OTHER FILES OR PROCESSES ON THE SYSTEM. In
# particular, don't specify nobody or daemon. PLEASE USE A DEDICATED
# USER.
#
mail_owner = postfix

# The default_privs parameter specifies the default rights used by
# the local delivery agent for delivery to external file or command.
# These rights are used in the absence of a recipient user context.
# DO NOT SPECIFY A PRIVILEGED USER OR THE POSTFIX OWNER.
#
#default_privs = nobody

# INTERNET HOST AND DOMAIN NAMES
#
# The myhostname parameter specifies the internet hostname of this
# mail system. The default is to use the fully-qualified domain name
# from gethostname(). $myhostname is used as a default value for many
# other configuration parameters.
#
#myhostname = host.domain.tld
#myhostname = virtual.domain.tld

# The mydomain parameter specifies the local internet domain name.
# The default is to use $myhostname minus the first component.
# $mydomain is used as a default value for many other configuration
# parameters.
#
#mydomain = domain.tld

# SENDING MAIL
#
# The myorigin parameter specifies the domain that locally-posted
# mail appears to come from. The default is to append $myhostname,
# which is fine for small sites. If you run a domain with multiple
# machines, you should (1) change this to $mydomain and (2) set up
# a domain-wide alias database that aliases each user to
# user@that.users.mailhost.
#
# For the sake of consistency between sender and recipient addresses,
# myorigin also specifies the default domain name that is appended
# to recipient addresses that have no @domain part.
#
#myorigin = $myhostname
#myorigin = $mydomain

# RECEIVING MAIL

# The inet_interfaces parameter specifies the network interface
# addresses that this mail system receives mail on. By default,
# the software claims all active interfaces on the machine. The
# parameter also controls delivery of mail to user@[ip.address].
#
# See also the proxy_interfaces parameter, for network addresses that
# are forwarded to us via a proxy or network address translator.
#
# Note: you need to stop/start Postfix when this parameter changes.
#
#inet_interfaces = all
#inet_interfaces = $myhostname
#inet_interfaces = $myhostname, localhost

# The proxy_interfaces parameter specifies the network interface
# addresses that this mail system receives mail on by way of a
# proxy or network address translation unit. This setting extends
# the address list specified with the inet_interfaces parameter.
#
# You must specify your proxy/NAT addresses when your system is a
# backup MX host for other domains, otherwise mail delivery loops
# will happen when the primary MX host is down.
#
#proxy_interfaces =
#proxy_interfaces = 1.2.3.4

# The mydestination parameter specifies the list of domains that this
# machine considers itself the final destination for.
#
# These domains are routed to the delivery agent specified with the
# local_transport parameter setting. By default, that is the UNIX
# compatible delivery agent that lookups all recipients in /etc/passwd
# and /etc/aliases or their equivalent.
#
# The default is $myhostname + localhost.$mydomain. On a mail domain
# gateway, you should also include $mydomain.
#
# Do not specify the names of virtual domains - those domains are
# specified elsewhere (see VIRTUAL_README).
#
# Do not specify the names of domains that this machine is backup MX
# host for. Specify those names via the relay_domains settings for
# the SMTP server, or use permit_mx_backup if you are lazy (see
# STANDARD_CONFIGURATION_README).
#
# The local machine is always the final destination for mail addressed
# to user@[the.net.work.address] of an interface that the mail system
# receives mail on (see the inet_interfaces parameter).
#
# Specify a list of host or domain names, /file/name or type:table
# patterns, separated by commas and/or whitespace. A /file/name
# pattern is replaced by its contents; a type:table is matched when
# a name matches a lookup key (the right-hand side is ignored).
# Continue long lines by starting the next line with whitespace.
#
# See also below, section "REJECTING MAIL FOR UNKNOWN LOCAL USERS".
#
#mydestination = $myhostname, localhost.$mydomain, localhost
#mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
#mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain,
# mail.$mydomain, www.$mydomain, ftp.$mydomain

# REJECTING MAIL FOR UNKNOWN LOCAL USERS
#
# The local_recipient_maps parameter specifies optional lookup tables
# with all names or addresses of users that are local with respect
# to $mydestination, $inet_interfaces or $proxy_interfaces.
#
# If this parameter is defined, then the SMTP server will reject
# mail for unknown local users. This parameter is defined by default.
#
# To turn off local recipient checking in the SMTP server, specify
# local_recipient_maps = (i.e. empty).
#
# The default setting assumes that you use the default Postfix local
# delivery agent for local delivery. You need to update the
# local_recipient_maps setting if:
#
# - You define $mydestination domain recipients in files other than
# /etc/passwd, /etc/aliases, or the $virtual_alias_maps files.
# For example, you define $mydestination domain recipients in
# the $virtual_mailbox_maps files.
#
# - You redefine the local delivery agent in master.cf.
#
# - You redefine the "local_transport" setting in main.cf.
#
# - You use the "luser_relay", "mailbox_transport", or "fallback_transport"
# feature of the Postfix local delivery agent (see local().
#
# Details are described in the LOCAL_RECIPIENT_README file.
#
# Beware: if the Postfix SMTP server runs chrooted, you probably have
# to access the passwd file via the proxymap service, in order to
# overcome chroot restrictions. The alternative, having a copy of
# the system passwd file in the chroot jail is just not practical.
#
# The right-hand side of the lookup tables is conveniently ignored.
# In the left-hand side, specify a bare username, an @domain.tld
# wild-card, or specify a user@domain.tld address.
#
#local_recipient_maps = unix:passwd.byname $alias_maps
#local_recipient_maps = proxy:unix:passwd.byname $alias_maps
#local_recipient_maps =

# The unknown_local_recipient_reject_code specifies the SMTP server
# response code when a recipient domain matches $mydestination or
# ${proxy,inet}_interfaces, while $local_recipient_maps is non-empty
# and the recipient address or address local-part is not found.
#
# The default setting is 550 (reject mail) but it is safer to start
# with 450 (try again later) until you are certain that your
# local_recipient_maps settings are OK.
#
unknown_local_recipient_reject_code = 550

# TRUST AND RELAY CONTROL

# The mynetworks parameter specifies the list of "trusted" SMTP
# clients that have more privileges than "strangers".
#
# In particular, "trusted" SMTP clients are allowed to relay mail
# through Postfix. See the smtpd_recipient_restrictions parameter
# in postconf(5).
#
# You can specify the list of "trusted" network addresses by hand
# or you can let Postfix do it for you (which is the default).
#
# By default (mynetworks_style = subnet), Postfix "trusts" SMTP
# clients in the same IP subnetworks as the local machine.
# On Linux, this does works correctly only with interfaces specified
# with the "ifconfig" command.
#
# Specify "mynetworks_style = class" when Postfix should "trust" SMTP
# clients in the same IP class A/B/C networks as the local machine.
# Don't do this with a dialup site - it would cause Postfix to "trust"
# your entire provider's network. Instead, specify an explicit
# mynetworks list by hand, as described below.
#
# Specify "mynetworks_style = host" when Postfix should "trust"
# only the local machine.
#
#mynetworks_style = class
#mynetworks_style = subnet
#mynetworks_style = host

# Alternatively, you can specify the mynetworks list by hand, in
# which case Postfix ignores the mynetworks_style setting.
#
# Specify an explicit list of network/netmask patterns, where the
# mask specifies the number of bits in the network part of a host
# address.
#
# You can also specify the absolute pathname of a pattern file instead
# of listing the patterns here. Specify type:table for table-based lookups
# (the value on the table right-hand side is not used).
#
#mynetworks = 168.100.189.0/28, 127.0.0.0/8
#mynetworks = $config_directory/mynetworks
#mynetworks = hash:/etc/postfix/network_table

# The relay_domains parameter restricts what destinations this system will
# relay mail to. See the smtpd_recipient_restrictions description in
# postconf(5) for detailed information.
#
# By default, Postfix relays mail
# - from "trusted" clients (IP address matches $mynetworks) to any destination,
# - from "untrusted" clients to destinations that match $relay_domains or
# subdomains thereof, except addresses with sender-specified routing.
# The default relay_domains value is $mydestination.
#
# In addition to the above, the Postfix SMTP server by default accepts mail
# that Postfix is final destination for:
# - destinations that match $inet_interfaces or $proxy_interfaces,
# - destinations that match $mydestination
# - destinations that match $virtual_alias_domains,
# - destinations that match $virtual_mailbox_domains.
# These destinations do not need to be listed in $relay_domains.
#
# Specify a list of hosts or domains, /file/name patterns or type:name
# lookup tables, separated by commas and/or whitespace. Continue
# long lines by starting the next line with whitespace. A file name
# is replaced by its contents; a type:name table is matched when a
# (parent) domain appears as lookup key.
#
# NOTE: Postfix will not automatically forward mail for domains that
# list this system as their primary or backup MX host. See the
# permit_mx_backup restriction description in postconf(5).
#
#relay_domains = $mydestination

# INTERNET OR INTRANET

# The relayhost parameter specifies the default host to send mail to
# when no entry is matched in the optional transport(5) table. When
# no relayhost is given, mail is routed directly to the destination.
#
# On an intranet, specify the organizational domain name. If your
# internal DNS uses no MX records, specify the name of the intranet
# gateway host instead.
#
# In the case of SMTP, specify a domain, host, host:port, [host]:port,
# [address] or [address]:port; the form [host] turns off MX lookups.
#
# If you're connected via UUCP, see also the default_transport parameter.
#
#relayhost = $mydomain
#relayhost = [gateway.my.domain]
#relayhost = [mailserver.isp.tld]
#relayhost = uucphost
#relayhost = [an.ip.add.ress]

# REJECTING UNKNOWN RELAY USERS
#
# The relay_recipient_maps parameter specifies optional lookup tables
# with all addresses in the domains that match $relay_domains.
#
# If this parameter is defined, then the SMTP server will reject
# mail for unknown relay users. This feature is off by default.
#
# The right-hand side of the lookup tables is conveniently ignored.
# In the left-hand side, specify an @domain.tld wild-card, or specify
# a user@domain.tld address.
#
#relay_recipient_maps = hash:/etc/postfix/relay_recipients

# INPUT RATE CONTROL
#
# The in_flow_delay configuration parameter implements mail input
# flow control. This feature is turned on by default, although it
# still needs further development (it's disabled on SCO UNIX due
# to an SCO bug).
#
# A Postfix process will pause for $in_flow_delay seconds before
# accepting a new message, when the message arrival rate exceeds the
# message delivery rate. With the default 100 SMTP server process
# limit, this limits the mail inflow to 100 messages a second more
# than the number of messages delivered per second.
#
# Specify 0 to disable the feature. Valid delays are 0..10.
#
#in_flow_delay = 1s

# ADDRESS REWRITING
#
# The ADDRESS_REWRITING_README document gives information about
# address masquerading or other forms of address rewriting including
# username->Firstname.Lastname mapping.

# ADDRESS REDIRECTION (VIRTUAL DOMAIN)
#
# The VIRTUAL_README document gives information about the many forms
# of domain hosting that Postfix supports.

# "USER HAS MOVED" BOUNCE MESSAGES
#
# See the discussion in the ADDRESS_REWRITING_README document.

# TRANSPORT MAP
#
# See the discussion in the ADDRESS_REWRITING_README document.

# ALIAS DATABASE
#
# The alias_maps parameter specifies the list of alias databases used
# by the local delivery agent. The default list is system dependent.
#
# On systems with NIS, the default is to search the local alias
# database, then the NIS alias database. See aliases(5) for syntax
# details.
#
# If you change the alias database, run "postalias /etc/aliases" (or
# wherever your system stores the mail alias file), or simply run
# "newaliases" to build the necessary DBM or DB file.
#
# It will take a minute or so before changes become visible. Use
# "postfix reload" to eliminate the delay.
#
#alias_maps = dbm:/etc/aliases
#alias_maps = hash:/etc/aliases
#alias_maps = hash:/etc/aliases, nis:mail.aliases
#alias_maps = netinfo:/aliases

# The alias_database parameter specifies the alias database(s) that
# are built with "newaliases" or "sendmail -bi". This is a separate
# configuration parameter, because alias_maps (see above) may specify
# tables that are not necessarily all under control by Postfix.
#
#alias_database = dbm:/etc/aliases
#alias_database = dbm:/etc/mail/aliases
#alias_database = hash:/etc/aliases
#alias_database = hash:/etc/aliases, hash:/opt/majordomo/aliases

# ADDRESS EXTENSIONS (e.g., user+foo)
#
# The recipient_delimiter parameter specifies the separator between
# user names and address extensions (user+foo). See canonical(5),
# local(, relocated(5) and virtual(5) for the effects this has on
# aliases, canonical, virtual, relocated and .forward file lookups.
# Basically, the software tries user+foo and .forward+foo before
# trying user and .forward.
#
#recipient_delimiter = +

# DELIVERY TO MAILBOX
#
# The home_mailbox parameter specifies the optional pathname of a
# mailbox file relative to a user's home directory. The default
# mailbox file is /var/spool/mail/user or /var/mail/user. Specify
# "Maildir/" for qmail-style delivery (the / is required).
#
#home_mailbox = Mailbox
#home_mailbox = Maildir/

# The mail_spool_directory parameter specifies the directory where
# UNIX-style mailboxes are kept. The default setting depends on the
# system type.
#
#mail_spool_directory = /var/mail
#mail_spool_directory = /var/spool/mail

# The mailbox_command parameter specifies the optional external
# command to use instead of mailbox delivery. The command is run as
# the recipient with proper HOME, SHELL and LOGNAME environment settings.
# Exception: delivery for root is done as $default_user.
#
# Other environment variables of interest: USER (recipient username),
# EXTENSION (address extension), DOMAIN (domain part of address),
# and LOCAL (the address localpart).
#
# Unlike other Postfix configuration parameters, the mailbox_command
# parameter is not subjected to $parameter substitutions. This is to
# make it easier to specify shell syntax (see example below).
#
# Avoid shell meta characters because they will force Postfix to run
# an expensive shell process. Procmail alone is expensive enough.
#
# IF YOU USE THIS TO DELIVER MAIL SYSTEM-WIDE, YOU MUST SET UP AN
# ALIAS THAT FORWARDS MAIL FOR ROOT TO A REAL USER.
#
#mailbox_command = /some/where/procmail
#mailbox_command = /some/where/procmail -a "$EXTENSION"

# The mailbox_transport specifies the optional transport in master.cf
# to use after processing aliases and .forward files. This parameter
# has precedence over the mailbox_command, fallback_transport and
# luser_relay parameters.
#
# Specify a string of the form transport:nexthop, where transport is
# the name of a mail delivery transport defined in master.cf. The
# :nexthop part is optional. For more details see the sample transport
# configuration file.
#
# NOTE: if you use this feature for accounts not in the UNIX password
# file, then you must update the "local_recipient_maps" setting in
# the main.cf file, otherwise the SMTP server will reject mail for
# non-UNIX accounts with "User unknown in local recipient table".
#
#mailbox_transport = lmtp:unix:/file/name
#mailbox_transport = cyrus

# The fallback_transport specifies the optional transport in master.cf
# to use for recipients that are not found in the UNIX passwd database.
# This parameter has precedence over the luser_relay parameter.
#
# Specify a string of the form transport:nexthop, where transport is
# the name of a mail delivery transport defined in master.cf. The
# :nexthop part is optional. For more details see the sample transport
# configuration file.
#
# NOTE: if you use this feature for accounts not in the UNIX password
# file, then you must update the "local_recipient_maps" setting in
# the main.cf file, otherwise the SMTP server will reject mail for
# non-UNIX accounts with "User unknown in local recipient table".
#
#fallback_transport = lmtp:unix:/file/name
#fallback_transport = cyrus
#fallback_transport =

# The luser_relay parameter specifies an optional destination address
# for unknown recipients. By default, mail for unknown@$mydestination,
# unknown@[$inet_interfaces] or unknown@[$proxy_interfaces] is returned
# as undeliverable.
#
# The following expansions are done on luser_relay: $user (recipient
# username), $shell (recipient shell), $home (recipient home directory),
# $recipient (full recipient address), $extension (recipient address
# extension), $domain (recipient domain), $local (entire recipient
# localpart), $recipient_delimiter. Specify ${name?value} or
# ${name:value} to expand value only when $name does (does not) exist.
#
# luser_relay works only for the default Postfix local delivery agent.
#
# NOTE: if you use this feature for accounts not in the UNIX password
# file, then you must specify "local_recipient_maps =" (i.e. empty) in
# the main.cf file, otherwise the SMTP server will reject mail for
# non-UNIX accounts with "User unknown in local recipient table".
#
#luser_relay = $user@other.host
#luser_relay = $local@other.host
#luser_relay = admin+$local

# JUNK MAIL CONTROLS
#
# The controls listed here are only a very small subset. The file
# SMTPD_ACCESS_README provides an overview.

# The header_checks parameter specifies an optional table with patterns
# that each logical message header is matched against, including
# headers that span multiple physical lines.
#
# By default, these patterns also apply to MIME headers and to the
# headers of attached messages. With older Postfix versions, MIME and
# attached message headers were treated as body text.
#
# For details, see "man header_checks".
#
#header_checks = regexp:/etc/postfix/header_checks

# FAST ETRN SERVICE
#
# Postfix maintains per-destination logfiles with information about
# deferred mail, so that mail can be flushed quickly with the SMTP
# "ETRN domain.tld" command, or by executing "sendmail -qRdomain.tld".
# See the ETRN_README document for a detailed description.
#
# The fast_flush_domains parameter controls what destinations are
# eligible for this service. By default, they are all domains that
# this server is willing to relay mail to.
#
#fast_flush_domains = $relay_domains

# SHOW SOFTWARE VERSION OR NOT
#
# The smtpd_banner parameter specifies the text that follows the 220
# code in the SMTP server's greeting banner. Some people like to see
# the mail version advertised. By default, Postfix shows no version.
#
# You MUST specify $myhostname at the start of the text. That is an
# RFC requirement. Postfix itself does not care.
#
#smtpd_banner = $myhostname ESMTP $mail_name
#smtpd_banner = $myhostname ESMTP $mail_name ($mail_version)

# PARALLEL DELIVERY TO THE SAME DESTINATION
#
# How many parallel deliveries to the same user or domain? With local
# delivery, it does not make sense to do massively parallel delivery
# to the same user, because mailbox updates must happen sequentially,
# and expensive pipelines in .forward files can cause disasters when
# too many are run at the same time. With SMTP deliveries, 10
# simultaneous connections to the same domain could be sufficient to
# raise eyebrows.
#
# Each message delivery transport has its XXX_destination_concurrency_limit
# parameter. The default is $default_destination_concurrency_limit for
# most delivery transports. For the local delivery agent the default is 2.

#local_destination_concurrency_limit = 2
#default_destination_concurrency_limit = 20

# DEBUGGING CONTROL
#
# The debug_peer_level parameter specifies the increment in verbose
# logging level when an SMTP client or server host name or address
# matches a pattern in the debug_peer_list parameter.
#
debug_peer_level = 2

# The debug_peer_list parameter specifies an optional list of domain
# or network patterns, /file/name patterns or type:name tables. When
# an SMTP client or server host name or address matches a pattern,
# increase the verbose logging level by the amount specified in the
# debug_peer_level parameter.
#
#debug_peer_list = 127.0.0.1
#debug_peer_list = some.domain

# The debugger_command specifies the external command that is executed
# when a Postfix daemon program is run with the -D option.
#
# Use "command .. & sleep 5" so that the debugger can attach before
# the process marches on. If you use an X-based debugger, be sure to
# set up your XAUTHORITY environment variable before starting Postfix.
#
debugger_command =
PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
ddd $daemon_directory/$process_name $process_id & sleep 5

# If you can't use X, use this to capture the call stack when a
# daemon crashes. The result is in a file in the configuration
# directory, and is named after the process name and the process ID.
#
# debugger_command =
# PATH=/bin:/usr/bin:/usr/local/bin; export PATH; (echo cont;
# echo where) | gdb $daemon_directory/$process_name $process_id 2>&1
# >$config_directory/$process_name.$process_id.log & sleep 5
#
# Another possibility is to run gdb under a detached screen session.
# To attach to the screen sesssion, su root and run "screen -r
# " where uniquely matches one of the detached
# sessions (from "screen -list".
#
# debugger_command =
# PATH=/bin:/usr/bin:/sbin:/usr/sbin; export PATH; screen
# -dmS $process_name gdb $daemon_directory/$process_name
# $process_id & sleep 1

# INSTALL-TIME CONFIGURATION INFORMATION
#
# The following parameters are used when installing a new Postfix version.
#
# sendmail_path: The full pathname of the Postfix sendmail command.
# This is the Sendmail-compatible mail posting interface.
#
sendmail_path = /usr/sbin/sendmail

# newaliases_path: The full pathname of the Postfix newaliases command.
# This is the Sendmail-compatible command to build alias databases.
#
newaliases_path = /usr/bin/newaliases

# mailq_path: The full pathname of the Postfix mailq command. This
# is the Sendmail-compatible mail queue listing command.
#
mailq_path = /usr/bin/mailq

# setgid_group: The group for mail submission and queue management
# commands. This must be a group name with a numerical group ID that
# is not shared with other accounts, not even with the Postfix account.
#
setgid_group = postdrop

# html_directory: The location of the Postfix HTML documentation.
#
html_directory = no

# manpage_directory: The location of the Postfix on-line manual pages.
#
manpage_directory = /usr/local/man

# sample_directory: The location of the Postfix sample configuration files.
# This parameter is obsolete as of Postfix 2.1.
#
sample_directory = /etc/postfix

# readme_directory: The location of the Postfix README files.
#
readme_directory = no
ichan   |114.56.185.xxx |2010-05-25 11:02:04
memang benar saya tidak mengerjakanx dalam satu waktu mas,,tetapi saya cicil,,,kl gitu cara hidupkan serverx gmn mas?,,.

oh ia ini file main.cf nya mas,,

alias_maps = mysql:/etc/postfix/mysql_virtual_alias_maps.cf
broken_sasl_auth_clients = yes
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
data_directory = /var/lib/postfix
debug_peer_level = 2
home_mailbox = Maildir/
html_directory = no
mail_owner = postfix
mailq_path = /usr/bin/mailq
manpage_directory = /usr/local/man
mydomain = latihanlinux.co.cc
myhostname = mail.latihanlinux.co.cc
myorigin = #myhostname
newaliases_path = /usr/bin/newaliases
queue_directory = /var/spool/postfix
readme_directory = no
sample_directory = /etc/postfix
sendmail_path = /usr/sbin/sendmail
setgid_group = postdrop
smtp_tls_note_starttls_offer = yes
smtp_use_tls = yes
smtpd_banner = #myhostname ESMTP "mail.latihanlinux.co.cc"
smtpd_recipient_restrictions = permit_mynetworks,permit_sasl_authenticated,reject_invalid_hostname, reject_non_fqdn_hostname, reject_unknown_sender_domain,reject_non_fqdn_sender, reject_non_fqdn_recipient, reject_unknown_recipient_domain, reject_unauth_pipelining,reject_unauth_destination,permit
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = #myhostname
smtpd_sasl_security_options = noanonymous
smtpd_tls_CAfile = /etc/postfix/ssl/cacert.pem
smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.crt
smtpd_tls_key_file = /etc/postfix/ssl/smtpd.key
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
smtpd_use_tls = yes
tls_random_source = dev:/dev/urandom
unknown_local_recipient_reject_code = 550
virtual_alias_maps = proxy:mysql:/etc/postfix/mysql_virtual_alias_maps.cf
virtual_gid_maps = static:500
virtual_mailbox_base = /var/vmail/
virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql_virtual_domains_maps.cf
virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql_virtual_mailbox_maps.cf
virtual_minimum_uid = 500
virtual_transport = virtual
virtual_uid_maps = static:500


# Global Postfix configuration file. This file lists only a subset
# of all parameters. For the syntax, and for a complete parameter
# list, see the postconf(5) manual page (command: "man 5 postconf".
#
# For common configuration examples, see BASIC_CONFIGURATION_README
# and STANDARD_CONFIGURATION_README. To find these documents, use
# the command "postconf html_directory readme_directory", or go to
# http://www.postfix.org/.
#
# For best results, change no more than 2-3 parameters at a time,
# and test if Postfix still works after every change.

# SOFT BOUNCE
#
# The soft_bounce parameter provides a limited safety net for
# testing. When soft_bounce is enabled, mail will remain queued that
# would otherwise bounce. This parameter disables locally-generated
# bounces, and prevents the SMTP server from rejecting mail permanently
# (by changing 5xx replies into 4xx replies). However, soft_bounce
# is no cure for address rewriting mistakes or mail routing mistakes.
#
#soft_bounce = no

# LOCAL PATHNAME INFORMATION
#
# The queue_directory specifies the location of the Postfix queue.
# This is also the root directory of Postfix daemons that run chrooted.
# See the files in examples/chroot-setup for setting up Postfix chroot
# environments on different UNIX systems.
#
queue_directory = /var/spool/postfix

# The command_directory parameter specifies the location of all
# postXXX commands.
#
command_directory = /usr/sbin

# The daemon_directory parameter specifies the location of all Postfix
# daemon programs (i.e. programs listed in the master.cf file). This
# directory must be owned by root.
#
daemon_directory = /usr/libexec/postfix

# The data_directory parameter specifies the location of Postfix-writable
# data files (caches, random numbers). This directory must be owned
# by the mail_owner account (see below).
#
data_directory = /var/lib/postfix

# QUEUE AND PROCESS OWNERSHIP
#
# The mail_owner parameter specifies the owner of the Postfix queue
# and of most Postfix daemon processes. Specify the name of a user
# account THAT DOES NOT SHARE ITS USER OR GROUP ID WITH OTHER ACCOUNTS
# AND THAT OWNS NO OTHER FILES OR PROCESSES ON THE SYSTEM. In
# particular, don't specify nobody or daemon. PLEASE USE A DEDICATED
# USER.
#
mail_owner = postfix

# The default_privs parameter specifies the default rights used by
# the local delivery agent for delivery to external file or command.
# These rights are used in the absence of a recipient user context.
# DO NOT SPECIFY A PRIVILEGED USER OR THE POSTFIX OWNER.
#
#default_privs = nobody

# INTERNET HOST AND DOMAIN NAMES
#
# The myhostname parameter specifies the internet hostname of this
# mail system. The default is to use the fully-qualified domain name
# from gethostname(). $myhostname is used as a default value for many
# other configuration parameters.
#
#myhostname = host.domain.tld
#myhostname = virtual.domain.tld

# The mydomain parameter specifies the local internet domain name.
# The default is to use $myhostname minus the first component.
# $mydomain is used as a default value for many other configuration
# parameters.
#
#mydomain = domain.tld

# SENDING MAIL
#
# The myorigin parameter specifies the domain that locally-posted
# mail appears to come from. The default is to append $myhostname,
# which is fine for small sites. If you run a domain with multiple
# machines, you should (1) change this to $mydomain and (2) set up
# a domain-wide alias database that aliases each user to
# user@that.users.mailhost.
#
# For the sake of consistency between sender and recipient addresses,
# myorigin also specifies the default domain name that is appended
# to recipient addresses that have no @domain part.
#
#myorigin = $myhostname
#myorigin = $mydomain

# RECEIVING MAIL

# The inet_interfaces parameter specifies the network interface
# addresses that this mail system receives mail on. By default,
# the software claims all active interfaces on the machine. The
# parameter also controls delivery of mail to user@[ip.address].
#
# See also the proxy_interfaces parameter, for network addresses that
# are forwarded to us via a proxy or network address translator.
#
# Note: you need to stop/start Postfix when this parameter changes.
#
#inet_interfaces = all
#inet_interfaces = $myhostname
#inet_interfaces = $myhostname, localhost

# The proxy_interfaces parameter specifies the network interface
# addresses that this mail system receives mail on by way of a
# proxy or network address translation unit. This setting extends
# the address list specified with the inet_interfaces parameter.
#
# You must specify your proxy/NAT addresses when your system is a
# backup MX host for other domains, otherwise mail delivery loops
# will happen when the primary MX host is down.
#
#proxy_interfaces =
#proxy_interfaces = 1.2.3.4

# The mydestination parameter specifies the list of domains that this
# machine considers itself the final destination for.
#
# These domains are routed to the delivery agent specified with the
# local_transport parameter setting. By default, that is the UNIX
# compatible delivery agent that lookups all recipients in /etc/passwd
# and /etc/aliases or their equivalent.
#
# The default is $myhostname + localhost.$mydomain. On a mail domain
# gateway, you should also include $mydomain.
#
# Do not specify the names of virtual domains - those domains are
# specified elsewhere (see VIRTUAL_README).
#
# Do not specify the names of domains that this machine is backup MX
# host for. Specify those names via the relay_domains settings for
# the SMTP server, or use permit_mx_backup if you are lazy (see
# STANDARD_CONFIGURATION_README).
#
# The local machine is always the final destination for mail addressed
# to user@[the.net.work.address] of an interface that the mail system
# receives mail on (see the inet_interfaces parameter).
#
# Specify a list of host or domain names, /file/name or type:table
# patterns, separated by commas and/or whitespace. A /file/name
# pattern is replaced by its contents; a type:table is matched when
# a name matches a lookup key (the right-hand side is ignored).
# Continue long lines by starting the next line with whitespace.
#
# See also below, section "REJECTING MAIL FOR UNKNOWN LOCAL USERS".
#
#mydestination = $myhostname, localhost.$mydomain, localhost
#mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
#mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain,
# mail.$mydomain, www.$mydomain, ftp.$mydomain

# REJECTING MAIL FOR UNKNOWN LOCAL USERS
#
# The local_recipient_maps parameter specifies optional lookup tables
# with all names or addresses of users that are local with respect
# to $mydestination, $inet_interfaces or $proxy_interfaces.
#
# If this parameter is defined, then the SMTP server will reject
# mail for unknown local users. This parameter is defined by default.
#
# To turn off local recipient checking in the SMTP server, specify
# local_recipient_maps = (i.e. empty).
#
# The default setting assumes that you use the default Postfix local
# delivery agent for local delivery. You need to update the
# local_recipient_maps setting if:
#
# - You define $mydestination domain recipients in files other than
# /etc/passwd, /etc/aliases, or the $virtual_alias_maps files.
# For example, you define $mydestination domain recipients in
# the $virtual_mailbox_maps files.
#
# - You redefine the local delivery agent in master.cf.
#
# - You redefine the "local_transport" setting in main.cf.
#
# - You use the "luser_relay", "mailbox_transport", or "fallback_transport"
# feature of the Postfix local delivery agent (see local().
#
# Details are described in the LOCAL_RECIPIENT_README file.
#
# Beware: if the Postfix SMTP server runs chrooted, you probably have
# to access the passwd file via the proxymap service, in order to
# overcome chroot restrictions. The alternative, having a copy of
# the system passwd file in the chroot jail is just not practical.
#
# The right-hand side of the lookup tables is conveniently ignored.
# In the left-hand side, specify a bare username, an @domain.tld
# wild-card, or specify a user@domain.tld address.
#
#local_recipient_maps = unix:passwd.byname $alias_maps
#local_recipient_maps = proxy:unix:passwd.byname $alias_maps
#local_recipient_maps =

# The unknown_local_recipient_reject_code specifies the SMTP server
# response code when a recipient domain matches $mydestination or
# ${proxy,inet}_interfaces, while $local_recipient_maps is non-empty
# and the recipient address or address local-part is not found.
#
# The default setting is 550 (reject mail) but it is safer to start
# with 450 (try again later) until you are certain that your
# local_recipient_maps settings are OK.
#
unknown_local_recipient_reject_code = 550

# TRUST AND RELAY CONTROL

# The mynetworks parameter specifies the list of "trusted" SMTP
# clients that have more privileges than "strangers".
#
# In particular, "trusted" SMTP clients are allowed to relay mail
# through Postfix. See the smtpd_recipient_restrictions parameter
# in postconf(5).
#
# You can specify the list of "trusted" network addresses by hand
# or you can let Postfix do it for you (which is the default).
#
# By default (mynetworks_style = subnet), Postfix "trusts" SMTP
# clients in the same IP subnetworks as the local machine.
# On Linux, this does works correctly only with interfaces specified
# with the "ifconfig" command.
#
# Specify "mynetworks_style = class" when Postfix should "trust" SMTP
# clients in the same IP class A/B/C networks as the local machine.
# Don't do this with a dialup site - it would cause Postfix to "trust"
# your entire provider's network. Instead, specify an explicit
# mynetworks list by hand, as described below.
#
# Specify "mynetworks_style = host" when Postfix should "trust"
# only the local machine.
#
#mynetworks_style = class
#mynetworks_style = subnet
#mynetworks_style = host

# Alternatively, you can specify the mynetworks list by hand, in
# which case Postfix ignores the mynetworks_style setting.
#
# Specify an explicit list of network/netmask patterns, where the
# mask specifies the number of bits in the network part of a host
# address.
#
# You can also specify the absolute pathname of a pattern file instead
# of listing the patterns here. Specify type:table for table-based lookups
# (the value on the table right-hand side is not used).
#
#mynetworks = 168.100.189.0/28, 127.0.0.0/8
#mynetworks = $config_directory/mynetworks
#mynetworks = hash:/etc/postfix/network_table

# The relay_domains parameter restricts what destinations this system will
# relay mail to. See the smtpd_recipient_restrictions description in
# postconf(5) for detailed information.
#
# By default, Postfix relays mail
# - from "trusted" clients (IP address matches $mynetworks) to any destination,
# - from "untrusted" clients to destinations that match $relay_domains or
# subdomains thereof, except addresses with sender-specified routing.
# The default relay_domains value is $mydestination.
#
# In addition to the above, the Postfix SMTP server by default accepts mail
# that Postfix is final destination for:
# - destinations that match $inet_interfaces or $proxy_interfaces,
# - destinations that match $mydestination
# - destinations that match $virtual_alias_domains,
# - destinations that match $virtual_mailbox_domains.
# These destinations do not need to be listed in $relay_domains.
#
# Specify a list of hosts or domains, /file/name patterns or type:name
# lookup tables, separated by commas and/or whitespace. Continue
# long lines by starting the next line with whitespace. A file name
# is replaced by its contents; a type:name table is matched when a
# (parent) domain appears as lookup key.
#
# NOTE: Postfix will not automatically forward mail for domains that
# list this system as their primary or backup MX host. See the
# permit_mx_backup restriction description in postconf(5).
#
#relay_domains = $mydestination

# INTERNET OR INTRANET

# The relayhost parameter specifies the default host to send mail to
# when no entry is matched in the optional transport(5) table. When
# no relayhost is given, mail is routed directly to the destination.
#
# On an intranet, specify the organizational domain name. If your
# internal DNS uses no MX records, specify the name of the intranet
# gateway host instead.
#
# In the case of SMTP, specify a domain, host, host:port, [host]:port,
# [address] or [address]:port; the form [host] turns off MX lookups.
#
# If you're connected via UUCP, see also the default_transport parameter.
#
#relayhost = $mydomain
#relayhost = [gateway.my.domain]
#relayhost = [mailserver.isp.tld]
#relayhost = uucphost
#relayhost = [an.ip.add.ress]

# REJECTING UNKNOWN RELAY USERS
#
# The relay_recipient_maps parameter specifies optional lookup tables
# with all addresses in the domains that match $relay_domains.
#
# If this parameter is defined, then the SMTP server will reject
# mail for unknown relay users. This feature is off by default.
#
# The right-hand side of the lookup tables is conveniently ignored.
# In the left-hand side, specify an @domain.tld wild-card, or specify
# a user@domain.tld address.
#
#relay_recipient_maps = hash:/etc/postfix/relay_recipients

# INPUT RATE CONTROL
#
# The in_flow_delay configuration parameter implements mail input
# flow control. This feature is turned on by default, although it
# still needs further development (it's disabled on SCO UNIX due
# to an SCO bug).
#
# A Postfix process will pause for $in_flow_delay seconds before
# accepting a new message, when the message arrival rate exceeds the
# message delivery rate. With the default 100 SMTP server process
# limit, this limits the mail inflow to 100 messages a second more
# than the number of messages delivered per second.
#
# Specify 0 to disable the feature. Valid delays are 0..10.
#
#in_flow_delay = 1s

# ADDRESS REWRITING
#
# The ADDRESS_REWRITING_README document gives information about
# address masquerading or other forms of address rewriting including
# username->Firstname.Lastname mapping.

# ADDRESS REDIRECTION (VIRTUAL DOMAIN)
#
# The VIRTUAL_README document gives information about the many forms
# of domain hosting that Postfix supports.

# "USER HAS MOVED" BOUNCE MESSAGES
#
# See the discussion in the ADDRESS_REWRITING_README document.

# TRANSPORT MAP
#
# See the discussion in the ADDRESS_REWRITING_README document.

# ALIAS DATABASE
#
# The alias_maps parameter specifies the list of alias databases used
# by the local delivery agent. The default list is system dependent.
#
# On systems with NIS, the default is to search the local alias
# database, then the NIS alias database. See aliases(5) for syntax
# details.
#
# If you change the alias database, run "postalias /etc/aliases" (or
# wherever your system stores the mail alias file), or simply run
# "newaliases" to build the necessary DBM or DB file.
#
# It will take a minute or so before changes become visible. Use
# "postfix reload" to eliminate the delay.
#
#alias_maps = dbm:/etc/aliases
#alias_maps = hash:/etc/aliases
#alias_maps = hash:/etc/aliases, nis:mail.aliases
#alias_maps = netinfo:/aliases

# The alias_database parameter specifies the alias database(s) that
# are built with "newaliases" or "sendmail -bi". This is a separate
# configuration parameter, because alias_maps (see above) may specify
# tables that are not necessarily all under control by Postfix.
#
#alias_database = dbm:/etc/aliases
#alias_database = dbm:/etc/mail/aliases
#alias_database = hash:/etc/aliases
#alias_database = hash:/etc/aliases, hash:/opt/majordomo/aliases

# ADDRESS EXTENSIONS (e.g., user+foo)
#
# The recipient_delimiter parameter specifies the separator between
# user names and address extensions (user+foo). See canonical(5),
# local(, relocated(5) and virtual(5) for the effects this has on
# aliases, canonical, virtual, relocated and .forward file lookups.
# Basically, the software tries user+foo and .forward+foo before
# trying user and .forward.
#
#recipient_delimiter = +

# DELIVERY TO MAILBOX
#
# The home_mailbox parameter specifies the optional pathname of a
# mailbox file relative to a user's home directory. The default
# mailbox file is /var/spool/mail/user or /var/mail/user. Specify
# "Maildir/" for qmail-style delivery (the / is required).
#
#home_mailbox = Mailbox
#home_mailbox = Maildir/

# The mail_spool_directory parameter specifies the directory where
# UNIX-style mailboxes are kept. The default setting depends on the
# system type.
#
#mail_spool_directory = /var/mail
#mail_spool_directory = /var/spool/mail

# The mailbox_command parameter specifies the optional external
# command to use instead of mailbox delivery. The command is run as
# the recipient with proper HOME, SHELL and LOGNAME environment settings.
# Exception: delivery for root is done as $default_user.
#
# Other environment variables of interest: USER (recipient username),
# EXTENSION (address extension), DOMAIN (domain part of address),
# and LOCAL (the address localpart).
#
# Unlike other Postfix configuration parameters, the mailbox_command
# parameter is not subjected to $parameter substitutions. This is to
# make it easier to specify shell syntax (see example below).
#
# Avoid shell meta characters because they will force Postfix to run
# an expensive shell process. Procmail alone is expensive enough.
#
# IF YOU USE THIS TO DELIVER MAIL SYSTEM-WIDE, YOU MUST SET UP AN
# ALIAS THAT FORWARDS MAIL FOR ROOT TO A REAL USER.
#
#mailbox_command = /some/where/procmail
#mailbox_command = /some/where/procmail -a "$EXTENSION"

# The mailbox_transport specifies the optional transport in master.cf
# to use after processing aliases and .forward files. This parameter
# has precedence over the mailbox_command, fallback_transport and
# luser_relay parameters.
#
# Specify a string of the form transport:nexthop, where transport is
# the name of a mail delivery transport defined in master.cf. The
# :nexthop part is optional. For more details see the sample transport
# configuration file.
#
# NOTE: if you use this feature for accounts not in the UNIX password
# file, then you must update the "local_recipient_maps" setting in
# the main.cf file, otherwise the SMTP server will reject mail for
# non-UNIX accounts with "User unknown in local recipient table".
#
#mailbox_transport = lmtp:unix:/file/name
#mailbox_transport = cyrus

# The fallback_transport specifies the optional transport in master.cf
# to use for recipients that are not found in the UNIX passwd database.
# This parameter has precedence over the luser_relay parameter.
#
# Specify a string of the form transport:nexthop, where transport is
# the name of a mail delivery transport defined in master.cf. The
# :nexthop part is optional. For more details see the sample transport
# configuration file.
#
# NOTE: if you use this feature for accounts not in the UNIX password
# file, then you must update the "local_recipient_maps" setting in
# the main.cf file, otherwise the SMTP server will reject mail for
# non-UNIX accounts with "User unknown in local recipient table".
#
#fallback_transport = lmtp:unix:/file/name
#fallback_transport = cyrus
#fallback_transport =

# The luser_relay parameter specifies an optional destination address
# for unknown recipients. By default, mail for unknown@$mydestination,
# unknown@[$inet_interfaces] or unknown@[$proxy_interfaces] is returned
# as undeliverable.
#
# The following expansions are done on luser_relay: $user (recipient
# username), $shell (recipient shell), $home (recipient home directory),
# $recipient (full recipient address), $extension (recipient address
# extension), $domain (recipient domain), $local (entire recipient
# localpart), $recipient_delimiter. Specify ${name?value} or
# ${name:value} to expand value only when $name does (does not) exist.
#
# luser_relay works only for the default Postfix local delivery agent.
#
# NOTE: if you use this feature for accounts not in the UNIX password
# file, then you must specify "local_recipient_maps =" (i.e. empty) in
# the main.cf file, otherwise the SMTP server will reject mail for
# non-UNIX accounts with "User unknown in local recipient table".
#
#luser_relay = $user@other.host
#luser_relay = $local@other.host
#luser_relay = admin+$local

# JUNK MAIL CONTROLS
#
# The controls listed here are only a very small subset. The file
# SMTPD_ACCESS_README provides an overview.

# The header_checks parameter specifies an optional table with patterns
# that each logical message header is matched against, including
# headers that span multiple physical lines.
#
# By default, these patterns also apply to MIME headers and to the
# headers of attached messages. With older Postfix versions, MIME and
# attached message headers were treated as body text.
#
# For details, see "man header_checks".
#
#header_checks = regexp:/etc/postfix/header_checks

# FAST ETRN SERVICE
#
# Postfix maintains per-destination logfiles with information about
# deferred mail, so that mail can be flushed quickly with the SMTP
# "ETRN domain.tld" command, or by executing "sendmail -qRdomain.tld".
# See the ETRN_README document for a detailed description.
#
# The fast_flush_domains parameter controls what destinations are
# eligible for this service. By default, they are all domains that
# this server is willing to relay mail to.
#
#fast_flush_domains = $relay_domains

# SHOW SOFTWARE VERSION OR NOT
#
# The smtpd_banner parameter specifies the text that follows the 220
# code in the SMTP server's greeting banner. Some people like to see
# the mail version advertised. By default, Postfix shows no version.
#
# You MUST specify $myhostname at the start of the text. That is an
# RFC requirement. Postfix itself does not care.
#
#smtpd_banner = $myhostname ESMTP $mail_name
#smtpd_banner = $myhostname ESMTP $mail_name ($mail_version)

# PARALLEL DELIVERY TO THE SAME DESTINATION
#
# How many parallel deliveries to the same user or domain? With local
# delivery, it does not make sense to do massively parallel delivery
# to the same user, because mailbox updates must happen sequentially,
# and expensive pipelines in .forward files can cause disasters when
# too many are run at the same time. With SMTP deliveries, 10
# simultaneous connections to the same domain could be sufficient to
# raise eyebrows.
#
# Each message delivery transport has its XXX_destination_concurrency_limit
# parameter. The default is $default_destination_concurrency_limit for
# most delivery transports. For the local delivery agent the default is 2.

#local_destination_concurrency_limit = 2
#default_destination_concurrency_limit = 20

# DEBUGGING CONTROL
#
# The debug_peer_level parameter specifies the increment in verbose
# logging level when an SMTP client or server host name or address
# matches a pattern in the debug_peer_list parameter.
#
debug_peer_level = 2

# The debug_peer_list parameter specifies an optional list of domain
# or network patterns, /file/name patterns or type:name tables. When
# an SMTP client or server host name or address matches a pattern,
# increase the verbose logging level by the amount specified in the
# debug_peer_level parameter.
#
#debug_peer_list = 127.0.0.1
#debug_peer_list = some.domain

# The debugger_command specifies the external command that is executed
# when a Postfix daemon program is run with the -D option.
#
# Use "command .. & sleep 5" so that the debugger can attach before
# the process marches on. If you use an X-based debugger, be sure to
# set up your XAUTHORITY environment variable before starting Postfix.
#
debugger_command =
PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
ddd $daemon_directory/$process_name $process_id & sleep 5

# If you can't use X, use this to capture the call stack when a
# daemon crashes. The result is in a file in the configuration
# directory, and is named after the process name and the process ID.
#
# debugger_command =
# PATH=/bin:/usr/bin:/usr/local/bin; export PATH; (echo cont;
# echo where) | gdb $daemon_directory/$process_name $process_id 2>&1
# >$config_directory/$process_name.$process_id.log & sleep 5
#
# Another possibility is to run gdb under a detached screen session.
# To attach to the screen sesssion, su root and run "screen -r
# " where uniquely matches one of the detached
# sessions (from "screen -list".
#
# debugger_command =
# PATH=/bin:/usr/bin:/sbin:/usr/sbin; export PATH; screen
# -dmS $process_name gdb $daemon_directory/$process_name
# $process_id & sleep 1

# INSTALL-TIME CONFIGURATION INFORMATION
#
# The following parameters are used when installing a new Postfix version.
#
# sendmail_path: The full pathname of the Postfix sendmail command.
# This is the Sendmail-compatible mail posting interface.
#
sendmail_path = /usr/sbin/sendmail

# newaliases_path: The full pathname of the Postfix newaliases command.
# This is the Sendmail-compatible command to build alias databases.
#
newaliases_path = /usr/bin/newaliases

# mailq_path: The full pathname of the Postfix mailq command. This
# is the Sendmail-compatible mail queue listing command.
#
mailq_path = /usr/bin/mailq

# setgid_group: The group for mail submission and queue management
# commands. This must be a group name with a numerical group ID that
# is not shared with other accounts, not even with the Postfix account.
#
setgid_group = postdrop

# html_directory: The location of the Postfix HTML documentation.
#
html_directory = no

# manpage_directory: The location of the Postfix on-line manual pages.
#
manpage_directory = /usr/local/man

# sample_directory: The location of the Postfix sample configuration files.
# This parameter is obsolete as of Postfix 2.1.
#
sample_directory = /etc/postfix

# readme_directory: The location of the Postfix README files.
#
readme_directory = no
ichan   |114.56.185.xxx |2010-05-25 11:09:11
memang benar saya tidak mengerjakanx dalam satu waktu mas,,tetapi saya cicil,,,kl gitu cara hidupkan serverx gmn mas?,,.

oh ia ini file main.cf nya mas,,

alias_maps = mysql:/etc/postfix/mysql_virtual_alias_maps.cf
broken_sasl_auth_clients = yes
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
data_directory = /var/lib/postfix
debug_peer_level = 2
home_mailbox = Maildir/
html_directory = no
mail_owner = postfix
mailq_path = /usr/bin/mailq
manpage_directory = /usr/local/man
mydomain = latihanlinux.co.cc
myhostname = mail.latihanlinux.co.cc
myorigin = #myhostname
newaliases_path = /usr/bin/newaliases
queue_directory = /var/spool/postfix
readme_directory = no
sample_directory = /etc/postfix
sendmail_path = /usr/sbin/sendmail
setgid_group = postdrop
smtp_tls_note_starttls_offer = yes
smtp_use_tls = yes
smtpd_banner = #myhostname ESMTP "mail.latihanlinux.co.cc"
smtpd_recipient_restrictions = permit_mynetworks,permit_sasl_authenticated,reject_invalid_hostname, reject_non_fqdn_hostname, reject_unknown_sender_domain,reject_non_fqdn_sender, reject_non_fqdn_recipient, reject_unknown_recipient_domain, reject_unauth_pipelining,reject_unauth_destination,permit
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = #myhostname
smtpd_sasl_security_options = noanonymous
smtpd_tls_CAfile = /etc/postfix/ssl/cacert.pem
smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.crt
smtpd_tls_key_file = /etc/postfix/ssl/smtpd.key
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
smtpd_use_tls = yes
tls_random_source = dev:/dev/urandom
unknown_local_recipient_reject_code = 550
virtual_alias_maps = proxy:mysql:/etc/postfix/mysql_virtual_alias_maps.cf
virtual_gid_maps = static:500
virtual_mailbox_base = /var/vmail/
virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql_virtual_domains_maps.cf
virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql_virtual_mailbox_maps.cf
virtual_minimum_uid = 500
virtual_transport = virtual
virtual_uid_maps = static:500


# Global Postfix configuration file. This file lists only a subset
# of all parameters. For the syntax, and for a complete parameter
# list, see the postconf(5) manual page (command: "man 5 postconf".
#
# For common configuration examples, see BASIC_CONFIGURATION_README
# and STANDARD_CONFIGURATION_README. To find these documents, use
# the command "postconf html_directory readme_directory", or go to
# http://www.postfix.org/.
#
# For best results, change no more than 2-3 parameters at a time,
# and test if Postfix still works after every change.

# SOFT BOUNCE
#
# The soft_bounce parameter provides a limited safety net for
# testing. When soft_bounce is enabled, mail will remain queued that
# would otherwise bounce. This parameter disables locally-generated
# bounces, and prevents the SMTP server from rejecting mail permanently
# (by changing 5xx replies into 4xx replies). However, soft_bounce
# is no cure for address rewriting mistakes or mail routing mistakes.
#
#soft_bounce = no

# LOCAL PATHNAME INFORMATION
#
# The queue_directory specifies the location of the Postfix queue.
# This is also the root directory of Postfix daemons that run chrooted.
# See the files in examples/chroot-setup for setting up Postfix chroot
# environments on different UNIX systems.
#
queue_directory = /var/spool/postfix

# The command_directory parameter specifies the location of all
# postXXX commands.
#
command_directory = /usr/sbin

# The daemon_directory parameter specifies the location of all Postfix
# daemon programs (i.e. programs listed in the master.cf file). This
# directory must be owned by root.
#
daemon_directory = /usr/libexec/postfix

# The data_directory parameter specifies the location of Postfix-writable
# data files (caches, random numbers). This directory must be owned
# by the mail_owner account (see below).
#
data_directory = /var/lib/postfix

# QUEUE AND PROCESS OWNERSHIP
#
# The mail_owner parameter specifies the owner of the Postfix queue
# and of most Postfix daemon processes. Specify the name of a user
# account THAT DOES NOT SHARE ITS USER OR GROUP ID WITH OTHER ACCOUNTS
# AND THAT OWNS NO OTHER FILES OR PROCESSES ON THE SYSTEM. In
# particular, don't specify nobody or daemon. PLEASE USE A DEDICATED
# USER.
#
mail_owner = postfix

# The default_privs parameter specifies the default rights used by
# the local delivery agent for delivery to external file or command.
# These rights are used in the absence of a recipient user context.
# DO NOT SPECIFY A PRIVILEGED USER OR THE POSTFIX OWNER.
#
#default_privs = nobody

# INTERNET HOST AND DOMAIN NAMES
#
# The myhostname parameter specifies the internet hostname of this
# mail system. The default is to use the fully-qualified domain name
# from gethostname(). $myhostname is used as a default value for many
# other configuration parameters.
#
#myhostname = host.domain.tld
#myhostname = virtual.domain.tld

# The mydomain parameter specifies the local internet domain name.
# The default is to use $myhostname minus the first component.
# $mydomain is used as a default value for many other configuration
# parameters.
#
#mydomain = domain.tld

# SENDING MAIL
#
# The myorigin parameter specifies the domain that locally-posted
# mail appears to come from. The default is to append $myhostname,
# which is fine for small sites. If you run a domain with multiple
# machines, you should (1) change this to $mydomain and (2) set up
# a domain-wide alias database that aliases each user to
# user@that.users.mailhost.
#
# For the sake of consistency between sender and recipient addresses,
# myorigin also specifies the default domain name that is appended
# to recipient addresses that have no @domain part.
#
#myorigin = $myhostname
#myorigin = $mydomain

# RECEIVING MAIL

# The inet_interfaces parameter specifies the network interface
# addresses that this mail system receives mail on. By default,
# the software claims all active interfaces on the machine. The
# parameter also controls delivery of mail to user@[ip.address].
#
# See also the proxy_interfaces parameter, for network addresses that
# are forwarded to us via a proxy or network address translator.
#
# Note: you need to stop/start Postfix when this parameter changes.
#
#inet_interfaces = all
#inet_interfaces = $myhostname
#inet_interfaces = $myhostname, localhost

# The proxy_interfaces parameter specifies the network interface
# addresses that this mail system receives mail on by way of a
# proxy or network address translation unit. This setting extends
# the address list specified with the inet_interfaces parameter.
#
# You must specify your proxy/NAT addresses when your system is a
# backup MX host for other domains, otherwise mail delivery loops
# will happen when the primary MX host is down.
#
#proxy_interfaces =
#proxy_interfaces = 1.2.3.4

# The mydestination parameter specifies the list of domains that this
# machine considers itself the final destination for.
#
# These domains are routed to the delivery agent specified with the
# local_transport parameter setting. By default, that is the UNIX
# compatible delivery agent that lookups all recipients in /etc/passwd
# and /etc/aliases or their equivalent.
#
# The default is $myhostname + localhost.$mydomain. On a mail domain
# gateway, you should also include $mydomain.
#
# Do not specify the names of virtual domains - those domains are
# specified elsewhere (see VIRTUAL_README).
#
# Do not specify the names of domains that this machine is backup MX
# host for. Specify those names via the relay_domains settings for
# the SMTP server, or use permit_mx_backup if you are lazy (see
# STANDARD_CONFIGURATION_README).
#
# The local machine is always the final destination for mail addressed
# to user@[the.net.work.address] of an interface that the mail system
# receives mail on (see the inet_interfaces parameter).
#
# Specify a list of host or domain names, /file/name or type:table
# patterns, separated by commas and/or whitespace. A /file/name
# pattern is replaced by its contents; a type:table is matched when
# a name matches a lookup key (the right-hand side is ignored).
# Continue long lines by starting the next line with whitespace.
#
# See also below, section "REJECTING MAIL FOR UNKNOWN LOCAL USERS".
#
#mydestination = $myhostname, localhost.$mydomain, localhost
#mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
#mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain,
# mail.$mydomain, www.$mydomain, ftp.$mydomain

# REJECTING MAIL FOR UNKNOWN LOCAL USERS
#
# The local_recipient_maps parameter specifies optional lookup tables
# with all names or addresses of users that are local with respect
# to $mydestination, $inet_interfaces or $proxy_interfaces.
#
# If this parameter is defined, then the SMTP server will reject
# mail for unknown local users. This parameter is defined by default.
#
# To turn off local recipient checking in the SMTP server, specify
# local_recipient_maps = (i.e. empty).
#
# The default setting assumes that you use the default Postfix local
# delivery agent for local delivery. You need to update the
# local_recipient_maps setting if:
#
# - You define $mydestination domain recipients in files other than
# /etc/passwd, /etc/aliases, or the $virtual_alias_maps files.
# For example, you define $mydestination domain recipients in
# the $virtual_mailbox_maps files.
#
# - You redefine the local delivery agent in master.cf.
#
# - You redefine the "local_transport" setting in main.cf.
#
# - You use the "luser_relay", "mailbox_transport", or "fallback_transport"
# feature of the Postfix local delivery agent (see local().
#
# Details are described in the LOCAL_RECIPIENT_README file.
#
# Beware: if the Postfix SMTP server runs chrooted, you probably have
# to access the passwd file via the proxymap service, in order to
# overcome chroot restrictions. The alternative, having a copy of
# the system passwd file in the chroot jail is just not practical.
#
# The right-hand side of the lookup tables is conveniently ignored.
# In the left-hand side, specify a bare username, an @domain.tld
# wild-card, or specify a user@domain.tld address.
#
#local_recipient_maps = unix:passwd.byname $alias_maps
#local_recipient_maps = proxy:unix:passwd.byname $alias_maps
#local_recipient_maps =

# The unknown_local_recipient_reject_code specifies the SMTP server
# response code when a recipient domain matches $mydestination or
# ${proxy,inet}_interfaces, while $local_recipient_maps is non-empty
# and the recipient address or address local-part is not found.
#
# The default setting is 550 (reject mail) but it is safer to start
# with 450 (try again later) until you are certain that your
# local_recipient_maps settings are OK.
#
unknown_local_recipient_reject_code = 550

# TRUST AND RELAY CONTROL

# The mynetworks parameter specifies the list of "trusted" SMTP
# clients that have more privileges than "strangers".
#
# In particular, "trusted" SMTP clients are allowed to relay mail
# through Postfix. See the smtpd_recipient_restrictions parameter
# in postconf(5).
#
# You can specify the list of "trusted" network addresses by hand
# or you can let Postfix do it for you (which is the default).
#
# By default (mynetworks_style = subnet), Postfix "trusts" SMTP
# clients in the same IP subnetworks as the local machine.
# On Linux, this does works correctly only with interfaces specified
# with the "ifconfig" command.
#
# Specify "mynetworks_style = class" when Postfix should "trust" SMTP
# clients in the same IP class A/B/C networks as the local machine.
# Don't do this with a dialup site - it would cause Postfix to "trust"
# your entire provider's network. Instead, specify an explicit
# mynetworks list by hand, as described below.
#
# Specify "mynetworks_style = host" when Postfix should "trust"
# only the local machine.
#
#mynetworks_style = class
#mynetworks_style = subnet
#mynetworks_style = host

# Alternatively, you can specify the mynetworks list by hand, in
# which case Postfix ignores the mynetworks_style setting.
#
# Specify an explicit list of network/netmask patterns, where the
# mask specifies the number of bits in the network part of a host
# address.
#
# You can also specify the absolute pathname of a pattern file instead
# of listing the patterns here. Specify type:table for table-based lookups
# (the value on the table right-hand side is not used).
#
#mynetworks = 168.100.189.0/28, 127.0.0.0/8
#mynetworks = $config_directory/mynetworks
#mynetworks = hash:/etc/postfix/network_table

# The relay_domains parameter restricts what destinations this system will
# relay mail to. See the smtpd_recipient_restrictions description in
# postconf(5) for detailed information.
#
# By default, Postfix relays mail
# - from "trusted" clients (IP address matches $mynetworks) to any destination,
# - from "untrusted" clients to destinations that match $relay_domains or
# subdomains thereof, except addresses with sender-specified routing.
# The default relay_domains value is $mydestination.
#
# In addition to the above, the Postfix SMTP server by default accepts mail
# that Postfix is final destination for:
# - destinations that match $inet_interfaces or $proxy_interfaces,
# - destinations that match $mydestination
# - destinations that match $virtual_alias_domains,
# - destinations that match $virtual_mailbox_domains.
# These destinations do not need to be listed in $relay_domains.
#
# Specify a list of hosts or domains, /file/name patterns or type:name
# lookup tables, separated by commas and/or whitespace. Continue
# long lines by starting the next line with whitespace. A file name
# is replaced by its contents; a type:name table is matched when a
# (parent) domain appears as lookup key.
#
# NOTE: Postfix will not automatically forward mail for domains that
# list this system as their primary or backup MX host. See the
# permit_mx_backup restriction description in postconf(5).
#
#relay_domains = $mydestination

# INTERNET OR INTRANET

# The relayhost parameter specifies the default host to send mail to
# when no entry is matched in the optional transport(5) table. When
# no relayhost is given, mail is routed directly to the destination.
#
# On an intranet, specify the organizational domain name. If your
# internal DNS uses no MX records, specify the name of the intranet
# gateway host instead.
#
# In the case of SMTP, specify a domain, host, host:port, [host]:port,
# [address] or [address]:port; the form [host] turns off MX lookups.
#
# If you're connected via UUCP, see also the default_transport parameter.
#
#relayhost = $mydomain
#relayhost = [gateway.my.domain]
#relayhost = [mailserver.isp.tld]
#relayhost = uucphost
#relayhost = [an.ip.add.ress]

# REJECTING UNKNOWN RELAY USERS
#
# The relay_recipient_maps parameter specifies optional lookup tables
# with all addresses in the domains that match $relay_domains.
#
# If this parameter is defined, then the SMTP server will reject
# mail for unknown relay users. This feature is off by default.
#
# The right-hand side of the lookup tables is conveniently ignored.
# In the left-hand side, specify an @domain.tld wild-card, or specify
# a user@domain.tld address.
#
#relay_recipient_maps = hash:/etc/postfix/relay_recipients

# INPUT RATE CONTROL
#
# The in_flow_delay configuration parameter implements mail input
# flow control. This feature is turned on by default, although it
# still needs further development (it's disabled on SCO UNIX due
# to an SCO bug).
#
# A Postfix process will pause for $in_flow_delay seconds before
# accepting a new message, when the message arrival rate exceeds the
# message delivery rate. With the default 100 SMTP server process
# limit, this limits the mail inflow to 100 messages a second more
# than the number of messages delivered per second.
#
# Specify 0 to disable the feature. Valid delays are 0..10.
#
#in_flow_delay = 1s

# ADDRESS REWRITING
#
# The ADDRESS_REWRITING_README document gives information about
# address masquerading or other forms of address rewriting including
# username->Firstname.Lastname mapping.

# ADDRESS REDIRECTION (VIRTUAL DOMAIN)
#
# The VIRTUAL_README document gives information about the many forms
# of domain hosting that Postfix supports.

# "USER HAS MOVED" BOUNCE MESSAGES
#
# See the discussion in the ADDRESS_REWRITING_README document.

# TRANSPORT MAP
#
# See the discussion in the ADDRESS_REWRITING_README document.

# ALIAS DATABASE
#
# The alias_maps parameter specifies the list of alias databases used
# by the local delivery agent. The default list is system dependent.
#
# On systems with NIS, the default is to search the local alias
# database, then the NIS alias database. See aliases(5) for syntax
# details.
#
# If you change the alias database, run "postalias /etc/aliases" (or
# wherever your system stores the mail alias file), or simply run
# "newaliases" to build the necessary DBM or DB file.
#
# It will take a minute or so before changes become visible. Use
# "postfix reload" to eliminate the delay.
#
#alias_maps = dbm:/etc/aliases
#alias_maps = hash:/etc/aliases
#alias_maps = hash:/etc/aliases, nis:mail.aliases
#alias_maps = netinfo:/aliases

# The alias_database parameter specifies the alias database(s) that
# are built with "newaliases" or "sendmail -bi". This is a separate
# configuration parameter, because alias_maps (see above) may specify
# tables that are not necessarily all under control by Postfix.
#
#alias_database = dbm:/etc/aliases
#alias_database = dbm:/etc/mail/aliases
#alias_database = hash:/etc/aliases
#alias_database = hash:/etc/aliases, hash:/opt/majordomo/aliases

# ADDRESS EXTENSIONS (e.g., user+foo)
#
# The recipient_delimiter parameter specifies the separator between
# user names and address extensions (user+foo). See canonical(5),
# local(, relocated(5) and virtual(5) for the effects this has on
# aliases, canonical, virtual, relocated and .forward file lookups.
# Basically, the software tries user+foo and .forward+foo before
# trying user and .forward.
#
#recipient_delimiter = +

# DELIVERY TO MAILBOX
#
# The home_mailbox parameter specifies the optional pathname of a
# mailbox file relative to a user's home directory. The default
# mailbox file is /var/spool/mail/user or /var/mail/user. Specify
# "Maildir/" for qmail-style delivery (the / is required).
#
#home_mailbox = Mailbox
#home_mailbox = Maildir/

# The mail_spool_directory parameter specifies the directory where
# UNIX-style mailboxes are kept. The default setting depends on the
# system type.
#
#mail_spool_directory = /var/mail
#mail_spool_directory = /var/spool/mail

# The mailbox_command parameter specifies the optional external
# command to use instead of mailbox delivery. The command is run as
# the recipient with proper HOME, SHELL and LOGNAME environment settings.
# Exception: delivery for root is done as $default_user.
#
# Other environment variables of interest: USER (recipient username),
# EXTENSION (address extension), DOMAIN (domain part of address),
# and LOCAL (the address localpart).
#
# Unlike other Postfix configuration parameters, the mailbox_command
# parameter is not subjected to $parameter substitutions. This is to
# make it easier to specify shell syntax (see example below).
#
# Avoid shell meta characters because they will force Postfix to run
# an expensive shell process. Procmail alone is expensive enough.
#
# IF YOU USE THIS TO DELIVER MAIL SYSTEM-WIDE, YOU MUST SET UP AN
# ALIAS THAT FORWARDS MAIL FOR ROOT TO A REAL USER.
#
#mailbox_command = /some/where/procmail
#mailbox_command = /some/where/procmail -a "$EXTENSION"

# The mailbox_transport specifies the optional transport in master.cf
# to use after processing aliases and .forward files. This parameter
# has precedence over the mailbox_command, fallback_transport and
# luser_relay parameters.
#
# Specify a string of the form transport:nexthop, where transport is
# the name of a mail delivery transport defined in master.cf. The
# :nexthop part is optional. For more details see the sample transport
# configuration file.
#
# NOTE: if you use this feature for accounts not in the UNIX password
# file, then you must update the "local_recipient_maps" setting in
# the main.cf file, otherwise the SMTP server will reject mail for
# non-UNIX accounts with "User unknown in local recipient table".
#
#mailbox_transport = lmtp:unix:/file/name
#mailbox_transport = cyrus

# The fallback_transport specifies the optional transport in master.cf
# to use for recipients that are not found in the UNIX passwd database.
# This parameter has precedence over the luser_relay parameter.
#
# Specify a string of the form transport:nexthop, where transport is
# the name of a mail delivery transport defined in master.cf. The
# :nexthop part is optional. For more details see the sample transport
# configuration file.
#
# NOTE: if you use this feature for accounts not in the UNIX password
# file, then you must update the "local_recipient_maps" setting in
# the main.cf file, otherwise the SMTP server will reject mail for
# non-UNIX accounts with "User unknown in local recipient table".
#
#fallback_transport = lmtp:unix:/file/name
#fallback_transport = cyrus
#fallback_transport =

# The luser_relay parameter specifies an optional destination address
# for unknown recipients. By default, mail for unknown@$mydestination,
# unknown@[$inet_interfaces] or unknown@[$proxy_interfaces] is returned
# as undeliverable.
#
# The following expansions are done on luser_relay: $user (recipient
# username), $shell (recipient shell), $home (recipient home directory),
# $recipient (full recipient address), $extension (recipient address
# extension), $domain (recipient domain), $local (entire recipient
# localpart), $recipient_delimiter. Specify ${name?value} or
# ${name:value} to expand value only when $name does (does not) exist.
#
# luser_relay works only for the default Postfix local delivery agent.
#
# NOTE: if you use this feature for accounts not in the UNIX password
# file, then you must specify "local_recipient_maps =" (i.e. empty) in
# the main.cf file, otherwise the SMTP server will reject mail for
# non-UNIX accounts with "User unknown in local recipient table".
#
#luser_relay = $user@other.host
#luser_relay = $local@other.host
#luser_relay = admin+$local

# JUNK MAIL CONTROLS
#
# The controls listed here are only a very small subset. The file
# SMTPD_ACCESS_README provides an overview.

# The header_checks parameter specifies an optional table with patterns
# that each logical message header is matched against, including
# headers that span multiple physical lines.
#
# By default, these patterns also apply to MIME headers and to the
# headers of attached messages. With older Postfix versions, MIME and
# attached message headers were treated as body text.
#
# For details, see "man header_checks".
#
#header_checks = regexp:/etc/postfix/header_checks

# FAST ETRN SERVICE
#
# Postfix maintains per-destination logfiles with information about
# deferred mail, so that mail can be flushed quickly with the SMTP
# "ETRN domain.tld" command, or by executing "sendmail -qRdomain.tld".
# See the ETRN_README document for a detailed description.
#
# The fast_flush_domains parameter controls what destinations are
# eligible for this service. By default, they are all domains that
# this server is willing to relay mail to.
#
#fast_flush_domains = $relay_domains

# SHOW SOFTWARE VERSION OR NOT
#
# The smtpd_banner parameter specifies the text that follows the 220
# code in the SMTP server's greeting banner. Some people like to see
# the mail version advertised. By default, Postfix shows no version.
#
# You MUST specify $myhostname at the start of the text. That is an
# RFC requirement. Postfix itself does not care.
#
#smtpd_banner = $myhostname ESMTP $mail_name
#smtpd_banner = $myhostname ESMTP $mail_name ($mail_version)

# PARALLEL DELIVERY TO THE SAME DESTINATION
#
# How many parallel deliveries to the same user or domain? With local
# delivery, it does not make sense to do massively parallel delivery
# to the same user, because mailbox updates must happen sequentially,
# and expensive pipelines in .forward files can cause disasters when
# too many are run at the same time. With SMTP deliveries, 10
# simultaneous connections to the same domain could be sufficient to
# raise eyebrows.
#
# Each message delivery transport has its XXX_destination_concurrency_limit
# parameter. The default is $default_destination_concurrency_limit for
# most delivery transports. For the local delivery agent the default is 2.

#local_destination_concurrency_limit = 2
#default_destination_concurrency_limit = 20

# DEBUGGING CONTROL
#
# The debug_peer_level parameter specifies the increment in verbose
# logging level when an SMTP client or server host name or address
# matches a pattern in the debug_peer_list parameter.
#
debug_peer_level = 2

# The debug_peer_list parameter specifies an optional list of domain
# or network patterns, /file/name patterns or type:name tables. When
# an SMTP client or server host name or address matches a pattern,
# increase the verbose logging level by the amount specified in the
# debug_peer_level parameter.
#
#debug_peer_list = 127.0.0.1
#debug_peer_list = some.domain

# The debugger_command specifies the external command that is executed
# when a Postfix daemon program is run with the -D option.
#
# Use "command .. & sleep 5" so that the debugger can attach before
# the process marches on. If you use an X-based debugger, be sure to
# set up your XAUTHORITY environment variable before starting Postfix.
#
debugger_command =
PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
ddd $daemon_directory/$process_name $process_id & sleep 5

# If you can't use X, use this to capture the call stack when a
# daemon crashes. The result is in a file in the configuration
# directory, and is named after the process name and the process ID.
#
# debugger_command =
# PATH=/bin:/usr/bin:/usr/local/bin; export PATH; (echo cont;
# echo where) | gdb $daemon_directory/$process_name $process_id 2>&1
# >$config_directory/$process_name.$process_id.log & sleep 5
#
# Another possibility is to run gdb under a detached screen session.
# To attach to the screen sesssion, su root and run "screen -r
# " where uniquely matches one of the detached
# sessions (from "screen -list".
#
# debugger_command =
# PATH=/bin:/usr/bin:/sbin:/usr/sbin; export PATH; screen
# -dmS $process_name gdb $daemon_directory/$process_name
# $process_id & sleep 1

# INSTALL-TIME CONFIGURATION INFORMATION
#
# The following parameters are used when installing a new Postfix version.
#
# sendmail_path: The full pathname of the Postfix sendmail command.
# This is the Sendmail-compatible mail posting interface.
#
sendmail_path = /usr/sbin/sendmail

# newaliases_path: The full pathname of the Postfix newaliases command.
# This is the Sendmail-compatible command to build alias databases.
#
newaliases_path = /usr/bin/newaliases

# mailq_path: The full pathname of the Postfix mailq command. This
# is the Sendmail-compatible mail queue listing command.
#
mailq_path = /usr/bin/mailq

# setgid_group: The group for mail submission and queue management
# commands. This must be a group name with a numerical group ID that
# is not shared with other accounts, not even with the Postfix account.
#
setgid_group = postdrop

# html_directory: The location of the Postfix HTML documentation.
#
html_directory = no

# manpage_directory: The location of the Postfix on-line manual pages.
#
manpage_directory = /usr/local/man

# sample_directory: The location of the Postfix sample configuration files.
# This parameter is obsolete as of Postfix 2.1.
#
sample_directory = /etc/postfix

# readme_directory: The location of the Postfix README files.
#
readme_directory = no
ichan   |114.56.185.xxx |2010-05-25 11:11:18
memang benar saya tidak mengerjakanx dalam satu waktu mas,,tetapi saya cicil,,,kl gitu cara hidupkan serverx gmn mas?,,.

oh ia ini file main.cf nya mas,,

alias_maps = mysql:/etc/postfix/mysql_virtual_alias_maps.cf
broken_sasl_auth_clients = yes
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
data_directory = /var/lib/postfix
debug_peer_level = 2
home_mailbox = Maildir/
html_directory = no
mail_owner = postfix
mailq_path = /usr/bin/mailq
manpage_directory = /usr/local/man
mydomain = latihanlinux.co.cc
myhostname = mail.latihanlinux.co.cc
myorigin = #myhostname
newaliases_path = /usr/bin/newaliases
queue_directory = /var/spool/postfix
readme_directory = no
sample_directory = /etc/postfix
sendmail_path = /usr/sbin/sendmail
setgid_group = postdrop
smtp_tls_note_starttls_offer = yes
smtp_use_tls = yes
smtpd_banner = #myhostname ESMTP "mail.latihanlinux.co.cc"
smtpd_recipient_restrictions = permit_mynetworks,permit_sasl_authenticated,reject_invalid_hostname, reject_non_fqdn_hostname, reject_unknown_sender_domain,reject_non_fqdn_sender, reject_non_fqdn_recipient, reject_unknown_recipient_domain, reject_unauth_pipelining,reject_unauth_destination,permit
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = #myhostname
smtpd_sasl_security_options = noanonymous
smtpd_tls_CAfile = /etc/postfix/ssl/cacert.pem
smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.crt
smtpd_tls_key_file = /etc/postfix/ssl/smtpd.key
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
smtpd_use_tls = yes
tls_random_source = dev:/dev/urandom
unknown_local_recipient_reject_code = 550
virtual_alias_maps = proxy:mysql:/etc/postfix/mysql_virtual_alias_maps.cf
virtual_gid_maps = static:500
virtual_mailbox_base = /var/vmail/
virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql_virtual_domains_maps.cf
virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql_virtual_mailbox_maps.cf
virtual_minimum_uid = 500
virtual_transport = virtual
virtual_uid_maps = static:500


# Global Postfix configuration file. This file lists only a subset
# of all parameters. For the syntax, and for a complete parameter
# list, see the postconf(5) manual page (command: "man 5 postconf".
#
# For common configuration examples, see BASIC_CONFIGURATION_README
# and STANDARD_CONFIGURATION_README. To find these documents, use
# the command "postconf html_directory readme_directory", or go to
# http://www.postfix.org/.
#
# For best results, change no more than 2-3 parameters at a time,
# and test if Postfix still works after every change.

# SOFT BOUNCE
#
# The soft_bounce parameter provides a limited safety net for
# testing. When soft_bounce is enabled, mail will remain queued that
# would otherwise bounce. This parameter disables locally-generated
# bounces, and prevents the SMTP server from rejecting mail permanently
# (by changing 5xx replies into 4xx replies). However, soft_bounce
# is no cure for address rewriting mistakes or mail routing mistakes.
#
#soft_bounce = no

# LOCAL PATHNAME INFORMATION
#
# The queue_directory specifies the location of the Postfix queue.
# This is also the root directory of Postfix daemons that run chrooted.
# See the files in examples/chroot-setup for setting up Postfix chroot
# environments on different UNIX systems.
#
queue_directory = /var/spool/postfix

# The command_directory parameter specifies the location of all
# postXXX commands.
#
command_directory = /usr/sbin

# The daemon_directory parameter specifies the location of all Postfix
# daemon programs (i.e. programs listed in the master.cf file). This
# directory must be owned by root.
#
daemon_directory = /usr/libexec/postfix

# The data_directory parameter specifies the location of Postfix-writable
# data files (caches, random numbers). This directory must be owned
# by the mail_owner account (see below).
#
data_directory = /var/lib/postfix

# QUEUE AND PROCESS OWNERSHIP
#
# The mail_owner parameter specifies the owner of the Postfix queue
# and of most Postfix daemon processes. Specify the name of a user
# account THAT DOES NOT SHARE ITS USER OR GROUP ID WITH OTHER ACCOUNTS
# AND THAT OWNS NO OTHER FILES OR PROCESSES ON THE SYSTEM. In
# particular, don't specify nobody or daemon. PLEASE USE A DEDICATED
# USER.
#
mail_owner = postfix

# The default_privs parameter specifies the default rights used by
# the local delivery agent for delivery to external file or command.
# These rights are used in the absence of a recipient user context.
# DO NOT SPECIFY A PRIVILEGED USER OR THE POSTFIX OWNER.
#
#default_privs = nobody

# INTERNET HOST AND DOMAIN NAMES
#
# The myhostname parameter specifies the internet hostname of this
# mail system. The default is to use the fully-qualified domain name
# from gethostname(). $myhostname is used as a default value for many
# other configuration parameters.
#
#myhostname = host.domain.tld
#myhostname = virtual.domain.tld

# The mydomain parameter specifies the local internet domain name.
# The default is to use $myhostname minus the first component.
# $mydomain is used as a default value for many other configuration
# parameters.
#
#mydomain = domain.tld

# SENDING MAIL
#
# The myorigin parameter specifies the domain that locally-posted
# mail appears to come from. The default is to append $myhostname,
# which is fine for small sites. If you run a domain with multiple
# machines, you should (1) change this to $mydomain and (2) set up
# a domain-wide alias database that aliases each user to
# user@that.users.mailhost.
#
# For the sake of consistency between sender and recipient addresses,
# myorigin also specifies the default domain name that is appended
# to recipient addresses that have no @domain part.
#
#myorigin = $myhostname
#myorigin = $mydomain

# RECEIVING MAIL

# The inet_interfaces parameter specifies the network interface
# addresses that this mail system receives mail on. By default,
# the software claims all active interfaces on the machine. The
# parameter also controls delivery of mail to user@[ip.address].
#
# See also the proxy_interfaces parameter, for network addresses that
# are forwarded to us via a proxy or network address translator.
#
# Note: you need to stop/start Postfix when this parameter changes.
#
#inet_interfaces = all
#inet_interfaces = $myhostname
#inet_interfaces = $myhostname, localhost

# The proxy_interfaces parameter specifies the network interface
# addresses that this mail system receives mail on by way of a
# proxy or network address translation unit. This setting extends
# the address list specified with the inet_interfaces parameter.
#
# You must specify your proxy/NAT addresses when your system is a
# backup MX host for other domains, otherwise mail delivery loops
# will happen when the primary MX host is down.
#
#proxy_interfaces =
#proxy_interfaces = 1.2.3.4

# The mydestination parameter specifies the list of domains that this
# machine considers itself the final destination for.
#
# These domains are routed to the delivery agent specified with the
# local_transport parameter setting. By default, that is the UNIX
# compatible delivery agent that lookups all recipients in /etc/passwd
# and /etc/aliases or their equivalent.
#
# The default is $myhostname + localhost.$mydomain. On a mail domain
# gateway, you should also include $mydomain.
#
# Do not specify the names of virtual domains - those domains are
# specified elsewhere (see VIRTUAL_README).
#
# Do not specify the names of domains that this machine is backup MX
# host for. Specify those names via the relay_domains settings for
# the SMTP server, or use permit_mx_backup if you are lazy (see
# STANDARD_CONFIGURATION_README).
#
# The local machine is always the final destination for mail addressed
# to user@[the.net.work.address] of an interface that the mail system
# receives mail on (see the inet_interfaces parameter).
#
# Specify a list of host or domain names, /file/name or type:table
# patterns, separated by commas and/or whitespace. A /file/name
# pattern is replaced by its contents; a type:table is matched when
# a name matches a lookup key (the right-hand side is ignored).
# Continue long lines by starting the next line with whitespace.
#
# See also below, section "REJECTING MAIL FOR UNKNOWN LOCAL USERS".
#
#mydestination = $myhostname, localhost.$mydomain, localhost
#mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
#mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain,
# mail.$mydomain, www.$mydomain, ftp.$mydomain

# REJECTING MAIL FOR UNKNOWN LOCAL USERS
#
# The local_recipient_maps parameter specifies optional lookup tables
# with all names or addresses of users that are local with respect
# to $mydestination, $inet_interfaces or $proxy_interfaces.
#
# If this parameter is defined, then the SMTP server will reject
# mail for unknown local users. This parameter is defined by default.
#
# To turn off local recipient checking in the SMTP server, specify
# local_recipient_maps = (i.e. empty).
#
# The default setting assumes that you use the default Postfix local
# delivery agent for local delivery. You need to update the
# local_recipient_maps setting if:
#
# - You define $mydestination domain recipients in files other than
# /etc/passwd, /etc/aliases, or the $virtual_alias_maps files.
# For example, you define $mydestination domain recipients in
# the $virtual_mailbox_maps files.
#
# - You redefine the local delivery agent in master.cf.
#
# - You redefine the "local_transport" setting in main.cf.
#
# - You use the "luser_relay", "mailbox_transport", or "fallback_transport"
# feature of the Postfix local delivery agent (see local().
#
# Details are described in the LOCAL_RECIPIENT_README file.
#
# Beware: if the Postfix SMTP server runs chrooted, you probably have
# to access the passwd file via the proxymap service, in order to
# overcome chroot restrictions. The alternative, having a copy of
# the system passwd file in the chroot jail is just not practical.
#
# The right-hand side of the lookup tables is conveniently ignored.
# In the left-hand side, specify a bare username, an @domain.tld
# wild-card, or specify a user@domain.tld address.
#
#local_recipient_maps = unix:passwd.byname $alias_maps
#local_recipient_maps = proxy:unix:passwd.byname $alias_maps
#local_recipient_maps =

# The unknown_local_recipient_reject_code specifies the SMTP server
# response code when a recipient domain matches $mydestination or
# ${proxy,inet}_interfaces, while $local_recipient_maps is non-empty
# and the recipient address or address local-part is not found.
#
# The default setting is 550 (reject mail) but it is safer to start
# with 450 (try again later) until you are certain that your
# local_recipient_maps settings are OK.
#
unknown_local_recipient_reject_code = 550

# TRUST AND RELAY CONTROL

# The mynetworks parameter specifies the list of "trusted" SMTP
# clients that have more privileges than "strangers".
#
# In particular, "trusted" SMTP clients are allowed to relay mail
# through Postfix. See the smtpd_recipient_restrictions parameter
# in postconf(5).
#
# You can specify the list of "trusted" network addresses by hand
# or you can let Postfix do it for you (which is the default).
#
# By default (mynetworks_style = subnet), Postfix "trusts" SMTP
# clients in the same IP subnetworks as the local machine.
# On Linux, this does works correctly only with interfaces specified
# with the "ifconfig" command.
#
# Specify "mynetworks_style = class" when Postfix should "trust" SMTP
# clients in the same IP class A/B/C networks as the local machine.
# Don't do this with a dialup site - it would cause Postfix to "trust"
# your entire provider's network. Instead, specify an explicit
# mynetworks list by hand, as described below.
#
# Specify "mynetworks_style = host" when Postfix should "trust"
# only the local machine.
#
#mynetworks_style = class
#mynetworks_style = subnet
#mynetworks_style = host

# Alternatively, you can specify the mynetworks list by hand, in
# which case Postfix ignores the mynetworks_style setting.
#
# Specify an explicit list of network/netmask patterns, where the
# mask specifies the number of bits in the network part of a host
# address.
#
# You can also specify the absolute pathname of a pattern file instead
# of listing the patterns here. Specify type:table for table-based lookups
# (the value on the table right-hand side is not used).
#
#mynetworks = 168.100.189.0/28, 127.0.0.0/8
#mynetworks = $config_directory/mynetworks
#mynetworks = hash:/etc/postfix/network_table

# The relay_domains parameter restricts what destinations this system will
# relay mail to. See the smtpd_recipient_restrictions description in
# postconf(5) for detailed information.
#
# By default, Postfix relays mail
# - from "trusted" clients (IP address matches $mynetworks) to any destination,
# - from "untrusted" clients to destinations that match $relay_domains or
# subdomains thereof, except addresses with sender-specified routing.
# The default relay_domains value is $mydestination.
#
# In addition to the above, the Postfix SMTP server by default accepts mail
# that Postfix is final destination for:
# - destinations that match $inet_interfaces or $proxy_interfaces,
# - destinations that match $mydestination
# - destinations that match $virtual_alias_domains,
# - destinations that match $virtual_mailbox_domains.
# These destinations do not need to be listed in $relay_domains.
#
# Specify a list of hosts or domains, /file/name patterns or type:name
# lookup tables, separated by commas and/or whitespace. Continue
# long lines by starting the next line with whitespace. A file name
# is replaced by its contents; a type:name table is matched when a
# (parent) domain appears as lookup key.
#
# NOTE: Postfix will not automatically forward mail for domains that
# list this system as their primary or backup MX host. See the
# permit_mx_backup restriction description in postconf(5).
#
#relay_domains = $mydestination

# INTERNET OR INTRANET

# The relayhost parameter specifies the default host to send mail to
# when no entry is matched in the optional transport(5) table. When
# no relayhost is given, mail is routed directly to the destination.
#
# On an intranet, specify the organizational domain name. If your
# internal DNS uses no MX records, specify the name of the intranet
# gateway host instead.
#
# In the case of SMTP, specify a domain, host, host:port, [host]:port,
# [address] or [address]:port; the form [host] turns off MX lookups.
#
# If you're connected via UUCP, see also the default_transport parameter.
#
#relayhost = $mydomain
#relayhost = [gateway.my.domain]
#relayhost = [mailserver.isp.tld]
#relayhost = uucphost
#relayhost = [an.ip.add.ress]

# REJECTING UNKNOWN RELAY USERS
#
# The relay_recipient_maps parameter specifies optional lookup tables
# with all addresses in the domains that match $relay_domains.
#
# If this parameter is defined, then the SMTP server will reject
# mail for unknown relay users. This feature is off by default.
#
# The right-hand side of the lookup tables is conveniently ignored.
# In the left-hand side, specify an @domain.tld wild-card, or specify
# a user@domain.tld address.
#
#relay_recipient_maps = hash:/etc/postfix/relay_recipients

# INPUT RATE CONTROL
#
# The in_flow_delay configuration parameter implements mail input
# flow control. This feature is turned on by default, although it
# still needs further development (it's disabled on SCO UNIX due
# to an SCO bug).
#
# A Postfix process will pause for $in_flow_delay seconds before
# accepting a new message, when the message arrival rate exceeds the
# message delivery rate. With the default 100 SMTP server process
# limit, this limits the mail inflow to 100 messages a second more
# than the number of messages delivered per second.
#
# Specify 0 to disable the feature. Valid delays are 0..10.
#
#in_flow_delay = 1s

# ADDRESS REWRITING
#
# The ADDRESS_REWRITING_README document gives information about
# address masquerading or other forms of address rewriting including
# username->Firstname.Lastname mapping.

# ADDRESS REDIRECTION (VIRTUAL DOMAIN)
#
# The VIRTUAL_README document gives information about the many forms
# of domain hosting that Postfix supports.

# "USER HAS MOVED" BOUNCE MESSAGES
#
# See the discussion in the ADDRESS_REWRITING_README document.

# TRANSPORT MAP
#
# See the discussion in the ADDRESS_REWRITING_README document.

# ALIAS DATABASE
#
# The alias_maps parameter specifies the list of alias databases used
# by the local delivery agent. The default list is system dependent.
#
# On systems with NIS, the default is to search the local alias
# database, then the NIS alias database. See aliases(5) for syntax
# details.
#
# If you change the alias database, run "postalias /etc/aliases" (or
# wherever your system stores the mail alias file), or simply run
# "newaliases" to build the necessary DBM or DB file.
#
# It will take a minute or so before changes become visible. Use
# "postfix reload" to eliminate the delay.
#
#alias_maps = dbm:/etc/aliases
#alias_maps = hash:/etc/aliases
#alias_maps = hash:/etc/aliases, nis:mail.aliases
#alias_maps = netinfo:/aliases

# The alias_database parameter specifies the alias database(s) that
# are built with "newaliases" or "sendmail -bi". This is a separate
# configuration parameter, because alias_maps (see above) may specify
# tables that are not necessarily all under control by Postfix.
#
#alias_database = dbm:/etc/aliases
#alias_database = dbm:/etc/mail/aliases
#alias_database = hash:/etc/aliases
#alias_database = hash:/etc/aliases, hash:/opt/majordomo/aliases

# ADDRESS EXTENSIONS (e.g., user+foo)
#
# The recipient_delimiter parameter specifies the separator between
# user names and address extensions (user+foo). See canonical(5),
# local(, relocated(5) and virtual(5) for the effects this has on
# aliases, canonical, virtual, relocated and .forward file lookups.
# Basically, the software tries user+foo and .forward+foo before
# trying user and .forward.
#
#recipient_delimiter = +

# DELIVERY TO MAILBOX
#
# The home_mailbox parameter specifies the optional pathname of a
# mailbox file relative to a user's home directory. The default
# mailbox file is /var/spool/mail/user or /var/mail/user. Specify
# "Maildir/" for qmail-style delivery (the / is required).
#
#home_mailbox = Mailbox
#home_mailbox = Maildir/

# The mail_spool_directory parameter specifies the directory where
# UNIX-style mailboxes are kept. The default setting depends on the
# system type.
#
#mail_spool_directory = /var/mail
#mail_spool_directory = /var/spool/mail

# The mailbox_command parameter specifies the optional external
# command to use instead of mailbox delivery. The command is run as
# the recipient with proper HOME, SHELL and LOGNAME environment settings.
# Exception: delivery for root is done as $default_user.
#
# Other environment variables of interest: USER (recipient username),
# EXTENSION (address extension), DOMAIN (domain part of address),
# and LOCAL (the address localpart).
#
# Unlike other Postfix configuration parameters, the mailbox_command
# parameter is not subjected to $parameter substitutions. This is to
# make it easier to specify shell syntax (see example below).
#
# Avoid shell meta characters because they will force Postfix to run
# an expensive shell process. Procmail alone is expensive enough.
#
# IF YOU USE THIS TO DELIVER MAIL SYSTEM-WIDE, YOU MUST SET UP AN
# ALIAS THAT FORWARDS MAIL FOR ROOT TO A REAL USER.
#
#mailbox_command = /some/where/procmail
#mailbox_command = /some/where/procmail -a "$EXTENSION"

# The mailbox_transport specifies the optional transport in master.cf
# to use after processing aliases and .forward files. This parameter
# has precedence over the mailbox_command, fallback_transport and
# luser_relay parameters.
#
# Specify a string of the form transport:nexthop, where transport is
# the name of a mail delivery transport defined in master.cf. The
# :nexthop part is optional. For more details see the sample transport
# configuration file.
#
# NOTE: if you use this feature for accounts not in the UNIX password
# file, then you must update the "local_recipient_maps" setting in
# the main.cf file, otherwise the SMTP server will reject mail for
# non-UNIX accounts with "User unknown in local recipient table".
#
#mailbox_transport = lmtp:unix:/file/name
#mailbox_transport = cyrus

# The fallback_transport specifies the optional transport in master.cf
# to use for recipients that are not found in the UNIX passwd database.
# This parameter has precedence over the luser_relay parameter.
#
# Specify a string of the form transport:nexthop, where transport is
# the name of a mail delivery transport defined in master.cf. The
# :nexthop part is optional. For more details see the sample transport
# configuration file.
#
# NOTE: if you use this feature for accounts not in the UNIX password
# file, then you must update the "local_recipient_maps" setting in
# the main.cf file, otherwise the SMTP server will reject mail for
# non-UNIX accounts with "User unknown in local recipient table".
#
#fallback_transport = lmtp:unix:/file/name
#fallback_transport = cyrus
#fallback_transport =

# The luser_relay parameter specifies an optional destination address
# for unknown recipients. By default, mail for unknown@$mydestination,
# unknown@[$inet_interfaces] or unknown@[$proxy_interfaces] is returned
# as undeliverable.
#
# The following expansions are done on luser_relay: $user (recipient
# username), $shell (recipient shell), $home (recipient home directory),
# $recipient (full recipient address), $extension (recipient address
# extension), $domain (recipient domain), $local (entire recipient
# localpart), $recipient_delimiter. Specify ${name?value} or
# ${name:value} to expand value only when $name does (does not) exist.
#
# luser_relay works only for the default Postfix local delivery agent.
#
# NOTE: if you use this feature for accounts not in the UNIX password
# file, then you must specify "local_recipient_maps =" (i.e. empty) in
# the main.cf file, otherwise the SMTP server will reject mail for
# non-UNIX accounts with "User unknown in local recipient table".
#
#luser_relay = $user@other.host
#luser_relay = $local@other.host
#luser_relay = admin+$local

# JUNK MAIL CONTROLS
#
# The controls listed here are only a very small subset. The file
# SMTPD_ACCESS_README provides an overview.

# The header_checks parameter specifies an optional table with patterns
# that each logical message header is matched against, including
# headers that span multiple physical lines.
#
# By default, these patterns also apply to MIME headers and to the
# headers of attached messages. With older Postfix versions, MIME and
# attached message headers were treated as body text.
#
# For details, see "man header_checks".
#
#header_checks = regexp:/etc/postfix/header_checks

# FAST ETRN SERVICE
#
# Postfix maintains per-destination logfiles with information about
# deferred mail, so that mail can be flushed quickly with the SMTP
# "ETRN domain.tld" command, or by executing "sendmail -qRdomain.tld".
# See the ETRN_README document for a detailed description.
#
# The fast_flush_domains parameter controls what destinations are
# eligible for this service. By default, they are all domains that
# this server is willing to relay mail to.
#
#fast_flush_domains = $relay_domains

# SHOW SOFTWARE VERSION OR NOT
#
# The smtpd_banner parameter specifies the text that follows the 220
# code in the SMTP server's greeting banner. Some people like to see
# the mail version advertised. By default, Postfix shows no version.
#
# You MUST specify $myhostname at the start of the text. That is an
# RFC requirement. Postfix itself does not care.
#
#smtpd_banner = $myhostname ESMTP $mail_name
#smtpd_banner = $myhostname ESMTP $mail_name ($mail_version)

# PARALLEL DELIVERY TO THE SAME DESTINATION
#
# How many parallel deliveries to the same user or domain? With local
# delivery, it does not make sense to do massively parallel delivery
# to the same user, because mailbox updates must happen sequentially,
# and expensive pipelines in .forward files can cause disasters when
# too many are run at the same time. With SMTP deliveries, 10
# simultaneous connections to the same domain could be sufficient to
# raise eyebrows.
#
# Each message delivery transport has its XXX_destination_concurrency_limit
# parameter. The default is $default_destination_concurrency_limit for
# most delivery transports. For the local delivery agent the default is 2.

#local_destination_concurrency_limit = 2
#default_destination_concurrency_limit = 20

# DEBUGGING CONTROL
#
# The debug_peer_level parameter specifies the increment in verbose
# logging level when an SMTP client or server host name or address
# matches a pattern in the debug_peer_list parameter.
#
debug_peer_level = 2

# The debug_peer_list parameter specifies an optional list of domain
# or network patterns, /file/name patterns or type:name tables. When
# an SMTP client or server host name or address matches a pattern,
# increase the verbose logging level by the amount specified in the
# debug_peer_level parameter.
#
#debug_peer_list = 127.0.0.1
#debug_peer_list = some.domain

# The debugger_command specifies the external command that is executed
# when a Postfix daemon program is run with the -D option.
#
# Use "command .. & sleep 5" so that the debugger can attach before
# the process marches on. If you use an X-based debugger, be sure to
# set up your XAUTHORITY environment variable before starting Postfix.
#
debugger_command =
PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
ddd $daemon_directory/$process_name $process_id & sleep 5

# If you can't use X, use this to capture the call stack when a
# daemon crashes. The result is in a file in the configuration
# directory, and is named after the process name and the process ID.
#
# debugger_command =
# PATH=/bin:/usr/bin:/usr/local/bin; export PATH; (echo cont;
# echo where) | gdb $daemon_directory/$process_name $process_id 2>&1
# >$config_directory/$process_name.$process_id.log & sleep 5
#
# Another possibility is to run gdb under a detached screen session.
# To attach to the screen sesssion, su root and run "screen -r
# " where uniquely matches one of the detached
# sessions (from "screen -list".
#
# debugger_command =
# PATH=/bin:/usr/bin:/sbin:/usr/sbin; export PATH; screen
# -dmS $process_name gdb $daemon_directory/$process_name
# $process_id & sleep 1

# INSTALL-TIME CONFIGURATION INFORMATION
#
# The following parameters are used when installing a new Postfix version.
#
# sendmail_path: The full pathname of the Postfix sendmail command.
# This is the Sendmail-compatible mail posting interface.
#
sendmail_path = /usr/sbin/sendmail

# newaliases_path: The full pathname of the Postfix newaliases command.
# This is the Sendmail-compatible command to build alias databases.
#
newaliases_path = /usr/bin/newaliases

# mailq_path: The full pathname of the Postfix mailq command. This
# is the Sendmail-compatible mail queue listing command.
#
mailq_path = /usr/bin/mailq

# setgid_group: The group for mail submission and queue management
# commands. This must be a group name with a numerical group ID that
# is not shared with other accounts, not even with the Postfix account.
#
setgid_group = postdrop

# html_directory: The location of the Postfix HTML documentation.
#
html_directory = no

# manpage_directory: The location of the Postfix on-line manual pages.
#
manpage_directory = /usr/local/man

# sample_directory: The location of the Postfix sample configuration files.
# This parameter is obsolete as of Postfix 2.1.
#
sample_directory = /etc/postfix

# readme_directory: The location of the Postfix README files.
#
readme_directory = no
catatan   |SAdministrator |2010-05-26 08:47:41
Halo Mas Ichan,
Karena Mas Ichan mengerjakannya secara mencicil, jadi mungkin pas ichan mau mengerjakan kembali, mas Ichan lupa untuk menyalakan server postfixnya. Coba mas Ichan ketika pertama kali mengecek status posyfix dengan cara:

# postfix status

Jika dalam keadaan mati, nyalakan dengan cara:

# postfix start
ichan   |114.56.185.xxx |2010-05-25 11:13:19
jadi saya hanya mengkopi file konfigurasi main.cf yang ad di tutorial ini ke file main.cf yang asli di barisan paling atas mas,,,
catatan   |SAdministrator |2010-05-26 08:48:06
Oh begitu
ichan   |114.56.177.xxx |2010-05-25 19:11:12
duh mas saya minta maaf,,sudah mengirim file main.cf sampai 3x,,soalnya saya kira postingx tidak berjalan dengan baik sehingga saya mengulang sampai 3x,,
catatan   |SAdministrator |2010-05-26 08:48:26
Hahahahahahaha ...
Tidak apa-apa mas
ichan   |114.57.139.xxx |2010-05-30 19:44:42
mas,,masih g bisa,,,T_T,,.
Saya sudah mengerjakan dari awal tanpa waktu istirahat ato mematikan komputer,,service postfix,mysql,httpd dan instruksi di tutorial ini jg sdh saya ikuti,,tapi kq permasalahan tetap pd:

ERROR: Connection dropped by IMAP server.

Swaktu login webmail,,pusiinngg,,
catatan   |SAdministrator |2010-05-31 10:54:32
Halo mas Ichan,
Coba lihat log errornya seperti apa?
ichan   |114.57.154.xxx |2010-05-30 20:11:17
karena saya memulai tutorial ini saat kondisi linux benar" fresh atau baru di install ulang,,,mungkin kah ada hal" basic yang mungkin terlewatkan oleh saya mas?,,.
misalnya apakah perlu membuat DNS server dulu dulu,,mmm,,misalnya kalau dulu itu pake BIND gitu mas,,?,,.
catatan   |SAdministrator |2010-05-31 10:55:58
Halo mas Ichan,
Di dalam tutorial ini, kita tidak perlu membuat server DNS. Saya sudah mencoba beberapa kali pakai artikel ini dan tidak ada masalah tuh.
ichan   |114.56.40.xxx |2010-05-31 12:10:14
wah,,ternyata msalahnya ada di postfixnya mas.
setelah saya cek postfix status:
[root@mail ~]# postfix status
postfix/postfix-script: the Postfix mail system is not running

tetapi setelah posfix saya nyalakan kemudian saya cek statusnya lagi ternyata postfix tetap mati mas:
[root@mail ~]# postfix start
postfix/postfix-script: warning: /usr/lib/sendmail and /usr/sbin/sendmail differ
postfix/postfix-script: warning: Replace one by a symbolic link to the other
postfix/postfix-script: starting the Postfix mail system
[root@mail ~]# postfix status
postfix/postfix-script: the Postfix mail system is not running
catatan   |SAdministrator |2010-06-01 07:58:45
Halo mas Ichan,
Bisa lihat error lognya di /var/log/maillog?
felix   |118.97.34.xxx |2010-06-02 07:52:23
isi log saya /var/log/maillog :
Jun 2 08:48:32 mail imapd: chdir informasi@test.com/: No such file or directory
Jun 2 08:48:32 mail imapd: informasi@test.com: No such file or directory
kira2 gimana ya mass masalahnya..??
catatan   |SAdministrator |2010-06-02 09:15:38
Halo mas felix,
Itu karena direktori mail user tersebut tidak terbentuk secara otomatis ketika mas membuat user terbentuk. Coba mas tuliskan perintah:

# telnet localhost 25
# telnet localhost 143
# postfix status
felix   |118.97.34.xxx |2010-06-02 07:55:05
aku coba lihat isi direktori /var/vmail/
ternyata kosong mass..??
catatan   |SAdministrator |2010-06-02 09:16:50
Ya itu tadi, karena mail user tersebut tidak terbentuk secara otomatis sehingga tidak membentuk direktori di /var/vmail.
prima   |118.137.194.xxx |2010-06-29 17:34:39
massss thx berat buat tutornya tp kenapa punyaku masih eror yah..
berikut ini erornya
postsuper: fatal: scan_dir_push: open directory defer: Permission denied
postfix/postfix-script: fatal: Postfix integrity check failed!
catatan   |SAdministrator |2010-06-30 13:32:18
Halo mas prima,
Error tersebut terjadi ketika kapan?
prima   |118.137.194.xxx |2010-07-01 09:58:19
erornya ketika postfix start..
hiks
mas pernah cb pake dovecot untuk imapnya?
klo pernah share plis
hihihi
ada eror jg
catatan   |SAdministrator |2010-07-01 17:48:41
Halo Mas Prima,
Errornya seperti ini bukan:

# postfix start
postfix/postfix-script: warning: not owned by postfix: /var/spool/postfix/active
postfix/postfix-script: warning: not owned by postfix: /var/spool/postfix/bounce
postfix/postfix-script: warning: not owned by postfix: /var/spool/postfix/corrupt
postfix/postfix-script: warning: not owned by postfix: /var/spool/postfix/defer
postfix/postfix-script: warning: not owned by postfix: /var/spool/postfix/deferred
postfix/postfix-script: warning: not owned by postfix: /var/spool/postfix/flush
postfix/postfix-script: warning: not owned by postfix: /var/spool/postfix/hold
postfix/postfix-script: warning: not owned by postfix: /var/spool/postfix/incoming
postfix/postfix-script: warning: not owned by postfix: /var/spool/postfix/private
postfix/postfix-script: warning: not owned by postfix: /var/spool/postfix/public
postfix/postfix-script: warning: not owned by postfix: /var/spool/postfix/trace
postfix/postfix-script: warning: not owned by postfix: /var/spool/postfix/maildrop
postsuper: fatal: scan_dir_push: open directory defer: Permission denied
postfix/postfix-script: fatal: Postfix integrity check failed!

Kalau errornya seperti itu, bisa dilihat bahwa owner dari file-file tersebut tidak dimiliki oleh postfix. Coba ganti owner-nya.

Kemudian untuk Postfix menggunakan Dovecot, memang sudah saya rencanakan untuk membuat tutorialnya, namun belum sempat-sempat.

Semoga membantu
prima   |118.137.194.xxx |2010-07-02 09:34:38
bukan mas..
klo sekarang sih eror dovecotnya klo di start ok
tp ketika di stop failed dan klo di test telnet localhost 143
"telnet: connect to address 192.9.200.135: Connection refused"
"telnet: Unable to connect to remote host: Connection refused"
bahkan itu erornya terjadi ketika selesai saya rubah2 dovecot.conf..
klo ambil default jalan ketika di test telnet...
mohon bimbinganya
catatan   |SAdministrator |2010-07-02 09:49:57
Oh mas prima menggunakan dovecot ya?
Wah kalau itu saya tidak tahu tuh mas karena saya masih menggunakan Courier.

Maaf ya
prima   |118.137.194.xxx |2010-07-02 15:20:19
install dovecot dari awal lagiiiii
sambil mikirin settingnya
tp kayanya itu eror karena hostnya..
masalah di vhosts..
hihihi
gpp mas yu mari blajar dovecot bareng2

hihihi YMku : kokonx_xumi
biar bisa ngoprek bareng
hihihi
catatan   |SAdministrator |2010-07-08 13:50:16
Halo Mas Prima,
Saya sedang membuat tutorial instalasi postfix dengan dovecot di Centos 5. jadi tunggu saja ya.
fazri  - mohon bantuan   |111.221.42.xxx |2010-09-02 09:33:28
mas apakah saya boleh meminta YM nya ?

soalnya saya mau bertanya sesuatu .

terima kasih
catatan   |SAdministrator |2010-09-02 11:31:44
arieffirdaus@yahoo.com

itu YM saya.
tirta  - tolong mas   |110.138.33.xxx |2010-09-02 21:55:35
$ chkconfig --levels 235 courier-imap on

error reading information on service courier-imap: No such file or directory

mas tolong aku dong T_T udah aku install imap nya kok begini mas.. ??

tirtavium@gmail.com
catatan   |SAdministrator |2010-09-03 14:28:06
Sepertinya, courier-imap di sistem kamu belum terinstal dengan baik. Untuk lebih jelasnya coba lihat di log maillog.

Semoga Membantu
tirta   |125.161.128.xxx |2010-09-03 04:59:37
mas untuk login di webmail pake user yg mana y mas ?? coz aku masukin semua user balik ke menu awal semua mas ??

tq
catatan   |SAdministrator |2010-09-03 14:28:41
Pakai user yang sudah kamu buat di postfixadmin.

Semoga Membantu
tirta   |125.161.128.xxx |2010-09-03 19:09:15
terima kasih mas

tapi mas aku nanya sekalii lagi aja ..hhehe
pnya aku kok


saat membuka http:/ip/webmail terjadi seperti ini mas
========================================
Forbidden

You don't have permission to access /webmail on this server.
Apache/2.2.3 (CentOS) Server at 192.168.1.101 Port 80
========================================

seperti kata mas di atas di berikan permission dan owner, kalau boleh tau seperti apa ya mas ??
coz aku udah di chown,grp /webmail/data dari tetap saja ga bisa mas....

mohon pencerahannya mas ??
terima kasih banyak
catatan   |SAdministrator |2010-09-06 08:35:08
Boleh dilihat tidak konfigurasi owner di folder webmailnya seperti apa? Sepertinya file-file yang ada di folder webmail belum dirubah kepemilikannya deh.
tirta  - mohon maaf mas   |125.166.73.xxx |2010-09-23 17:03:45
Quote:
[root@mail ~]# ls -l /var/www/html/webmail/
total 136
drwxr-xr-x 5 root users 4096 May 22 2009 class
drwxrwxr-x 2 root users 4096 Sep 3 04:35 config
-rwxr-xr-x 1 root users 102 Aug 3 2005 configure
drwxr-xr-x 3 root users 4096 May 22 2009 contrib
drwxrwxrwx 2 root apache 4096 May 22 2009 data
drwxr-xr-x 3 root users 4096 May 22 2009 doc
drwxr-xr-x 4 root users 4096 May 22 2009 functions
drwxr-xr-x 3 root users 4096 May 22 2009 help
drwxr-xr-x 2 root users 4096 May 22 2009 images
drwxr-xr-x 3 root users 4096 May 22 2009 include
-rw-r--r-- 1 root users 676 Apr 16 2009 index.php
drwxr-xr-x 2 root users 4096 May 22 2009 locale
drwxr-xr-x 19 root users 4096 May 22 2009 plugins
drwxr-xr-x 2 root users 4096 May 22 2009 po
-rw-r--r-- 1 root users 56 Mar 27 2009 README
drwxrwxrwx 2 root users 4096 May 22 2009 src
drwxr-xr-x 3 root users 4096 May 22 2009 themes






ini mas file webmail saya T_T
terimakasih banyak mas, mas sudah banyak bantu T_T
catatan   |SAdministrator |2010-09-24 13:55:28
Halo tirta,
Coba kamu rubah kepemilikan file-file tersebut menjadi apache lalu restart websernya dan lihat di browsermu apa tampil atau tidak. Jika masih belum tampil, saya sarankan kamu hapus folder webmail kamu yang itu lalu kamu ekstrak kembali squirrelmailnya dan restart webservernya. Kalau pada saya, maka webmail akan langsung tampil setelah saya ekstrak squirrelmail tanpa saya harus konfigurasi lagi mengenai kepemilikan file. Ini file-file webmail milik saya:

drwxr-xr-x 17 root root 4096 Jul 22 15:57 .
drwxr-xr-x 4 root root 4096 Jul 22 15:34 ..
drwxr-xr-x 5 root root 4096 Mar 7 2010 class
drwxrwxr-x 2 root root 4096 Jul 22 15:41 config
-rwxr-xr-x 1 root root 102 Aug 3 2005 configure
drwxr-xr-x 3 root root 4096 Mar 7 2010 contrib
drwxrwxr-x 2 root root 4096 Mar 7 2010 data
drwxr-xr-x 3 root root 4096 Mar 7 2010 doc
drwxr-xr-x 4 root root 4096 Mar 7 2010 functions
drwxr-xr-x 3 root root 4096 Mar 7 2010 help
drwxr-xr-x 2 root root 4096 Mar 7 2010 images
drwxr-xr-x 3 root root 4096 Mar 7 2010 include
-rw-r--r-- 1 root root 671 Jan 25 2010 index.php
drwxr-xr-x 2 root root 4096 Mar 7 2010 locale
drwxr-xr-x 19 root root 4096 Mar 7 2010 plugins
drwxr-xr-x 2 root root 4096 Mar 7 2010 po
-rw-r--r-- 1 root root 56 Mar 27 2009 README
drwxr-xr-x 16 root root 4096 Mar 7 2010 squirrelmail-1.4.20
drwxr-xr-x 2 root root 4096 Mar 7 2010 src
drwxr-xr-x 3 root root 4096 Mar 7 2010 themes

Semoga Membantu
zain  - tanya setup ppoe di centos   |203.153.30.xxx |2010-12-27 14:26:10
saya mo tanya mas,

Saya punya modem internet jenis koneksi PPPoE, gimana cara setting PPPoE di CentoS. makasih seblumnya.
catatan   |SAdministrator |2010-12-29 23:23:44
Halo Zain,
Mungkin situs ini bisa membantu:

http://wahyupratama.blogspot.com/2008/06/setting-pppoe-di-centos-51-menggunakan.html
Teddy   |202.148.3.xxx |2011-03-24 16:53:10
Mas saya sudah sampai tahap "Kemudian tuliskan email admin dan password yang akan digunakan untuk mengakses postfixadmin" ada error Admin is not a valid email address! kenapa nya? thanks
catatan   |SAdministrator |2011-03-24 21:35:55
Halo Mas Teddy,
Pertanyaan ini sudah di jawab sebelumnya di sini.
Jika ada error seperti itu maka untuk mengatasinya, coba buka di file conf.inc.php lalu cari kata resolve_domain. Jika sudah ganti YES menjadi NO sehingga menjadi :

$CONF['emailcheck_resolve_domain']='NO';

Semoga Membantu
Teddy   |202.148.3.xxx |2011-03-26 11:36:25
saya sudah masuk ke postfix admin "ada error your email address or password are not correct" saat masukkan username adn password
catatan   |SAdministrator |2011-03-28 17:01:59
Halo Tedy,

Kalau dilihat dari errornya berarti email atau passwordnya tidak sesuai dengan yang di database.

Semoga membantu.
dave  - email server ga bisa kirim atau terima   |2.50.12.xxx |2011-04-02 21:54:55
Salan\m Agan-agan yang terhormat..
saya baru dlm komputer, saya mau bertanya bagaimana mengatasi email interen yang error yaitu email server yg di buat di window server 2003 ga bisa kirim atau terima, mohon pencerahan dari agan-agan, terima kasih
catatan   |SAdministrator |2011-04-02 23:42:40
salam juga gan,
Untuk email server yang diinstal di windows server 2003 yang gak bisa kirim atau terima, saya gak tahu karena tidak pernah instal mail server di windows server 2003.
sunu  - Mr   |110.138.29.xxx |2011-05-11 13:41:53
Salam kenal mas arief... saya sudah coba langkah2 seperti posting di atas...tetapi saya ada kendala untuk login di webmailny sebelumnya saya sudah buat user mailbox di postfix admin...pas mau login di webmailny muncul error sbt ERROR: Connection dropped by IMAP server.

saya liat pesan errorny di /var/log/maillog sbt

May 11 11:42:38 mail postfix/postfix-script[5761]: starting the Postfix mail system
May 11 11:42:38 mail postfix/master[5762]: daemon started -- version 2.6.5, configuration /etc/postfix
May 11 11:45:39 mail imapd: Connection, ip=[::ffff:127.0.0.1]
May 11 11:45:39 mail authdaemond: received auth request, service=imap, authtype=login
May 11 11:45:39 mail authdaemond: authmysql: trying this module
May 11 11:45:40 mail authdaemond: failed to connect to mysql server (server=mysql.example.com, userid=admin): Unknown MySQL server host 'mysql.example.com' (1)

mohon bantuanya thx.
catatan   |SAdministrator |2011-05-12 14:42:54
Halo mas sunu,
Salam Kenal juga.

Kalau dilihat dari errornya terlihat bahwa error tersebut diakibatkan karena tidak tersambung dengan mysql dimana MYSQL server host mysql.example.com tidak dikenali.

Semoga membantu
sunu   |110.138.29.xxx |2011-05-18 16:05:18
Alo mas Arif, saya sudah coba croscek lagi tapi tetap belum bisa masuk ke webmailnya dan muncul pesan ERROR: Connection dropped by IMAP server.

saya liat error /var/log/maillog sbt:
May 18 08:35:17 mail imapd: Connection, ip=[::ffff:127.0.0.1]
May 18 08:35:17 mail authdaemond: received auth request, service=imap, authtype=login
May 18 08:35:17 mail authdaemond: authmysql: trying this module
May 18 08:35:17 mail authdaemond: authmysql: mysql_select_db(mysql) error: Access denied for user 'postfix'@'localhost' to database 'mysql'
May 18 08:35:17 mail authdaemond: authmysql: TEMPFAIL - no more modules will be tried
May 18 08:35:17 mail imapd: LOGIN FAILED, user=retta@mail.emporiumpluit.com, ip=[::ffff:127.0.0.1]
May 18 08:35:17 mail imapd: authentication error: Input/output error

mohon bantuanya!
catatan   |SAdministrator |2011-05-19 01:04:21
Alo sunu,
Apakah IMAP-nya sudah dinyalakan?
Coba tes dengan mengetikkan:

# telnet localhost 143

seperti yang ada dalam artikel di atas.

Semoga membantu
sunu   |110.138.29.xxx |2011-05-19 13:24:23
mas arif, saya sudah coba telnet localhost 143 muncul error..

[root@mail data]# telnet localhost 143
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
* OK [CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE ACL ACL2=UNION STARTTLS] Courier-IMAP ready. Copyright 1998-2008 Double Precision, Inc. See COPYING for distribution information.
a login retta@mail.emporiumpluit.com emporium
* BYE Temporary problem, please try again later
Connection closed by foreign host.


kesalahannya dimana ya mohon bantuanya
catatan   |SAdministrator |2011-05-23 13:53:25
Alo sunu,
Ketika kamu tes IMAP dan terlihat error, apa error di log errornya?

Semoga Membantu
sunu   |117.102.82.xxx |2011-06-28 15:20:28
Alo Mas Arif,

Saya sudah coba configure ulang tetapi masih muncul error ERROR: Connection dropped by IMAP server pada saat login via webmail... bingung .mohon bantuannya mas arif


[root@mail log]# cat /var/log/maillog

Jun 28 03:10:50 mail postfix/postfix-script[5552]: starting the Postfix mail system
Jun 28 03:10:50 mail postfix/master[5553]: daemon started -- version 2.6.5, configuration /etc/postfix
Jun 28 03:112 mail imapd: Connection, ip=[::ffff:127.0.0.1]
Jun 28 03:112 mail authdaemond: received auth request, service=imap, authtype=login
Jun 28 03:112 mail authdaemond: authmysql: trying this module
Jun 28 03:112 mail authdaemond: SQL query: SELECT username, password, password, '500', '500', '/var/vmail/', maildir, "", name, "" FROM mailbox WHERE username = 'sunu@mail.emporiumpluit.com'
Jun 28 03:112 mail authdaemond: password matches successfully
Jun 28 03:112 mail authdaemond: authmysql: sysusername=, sysuserid=500, sysgroupid=500, homedir=/var/vmail/, address=sunu@mail.emporiumpluit.com, fullname=sunu hartanto, maildir=sunu@mail.emporiumpluit.com/, quota=, options=
Jun 28 03:112 mail authdaemond: Authenticated: sysusername=, sysuserid=500, sysgroupid=500, homedir=/var/vmail/, address=sunu@mail.emporiumpluit.com, fullname=sunu hartanto, maildir=sunu@mail.emporiumpluit.com/, quota=, options=
[root@mail log]#
catatan   |SAdministrator |2011-06-30 13:53:59
hmm ... aneh ya,
biasanya kalau errornya Connection dropped by IMAP server lognya tidak seperti itu. Kalau log seperti itu berarti tidak ada masalah.
sunu   |110.138.29.xxx |2011-07-01 13:59:46
mas arif, saya coba disabled kan SELINUX ny kemudian coba login lagi via webmail
muncul error.. saya cek di lognya
Jun 30 23:38:27 mail postfix/postfix-script[2940]: starting the Postfix mail system
Jun 30 23:38:28 mail postfix/master[2941]: daemon started -- version 2.6.5, configuration /etc/postfix
Jun 30 23:41:26 mail imapd: Connection, ip=[::ffff:127.0.0.1]
Jun 30 23:41:26 mail authdaemond: received auth request, service=imap, authtype=login
Jun 30 23:41:26 mail authdaemond: authmysql: trying this module
Jun 30 23:41:26 mail authdaemond: authmysqllib: connected. Versions: header 50077, client 50077, server 50077
Jun 30 23:41:26 mail authdaemond: SQL query: SELECT username, password, password, '500', '500', '/var/vmail/', maildir, "", name, "" FROM mailbox WHERE username = 'sunu@mail.emporiumpluit.com'
Jun 30 23:41:26 mail authdaemond: password matches successfully
Jun 30 23:41:26 mail authdaemond: authmysql: sysusername=, sysuserid=500, sysgroupid=500, homedir=/var/vmail/, address=sunu@mail.emporiumpluit.com, fullname=sunu hartanto, maildir=sunu@mail.emporiumpluit.com/, quota=, options=
Jun 30 23:41:26 mail authdaemond: Authenticated: sysusername=, sysuserid=500, sysgroupid=500, homedir=/var/vmail/, address=sunu@mail.emporiumpluit.com, fullname=sunu hartanto, maildir=sunu@mail.emporiumpluit.com/, quota=, options=
Jun 30 23:41:26 mail imapd: chdir sunu@mail.emporiumpluit.com/: No such file or directory
Jun 30 23:41:26 mail imapd: sunu@mail.emporiumpluit.com: No such file or directory
[root@mail /]#


kira2 salahnya dimana ya?
catatan   |SAdministrator |2011-07-05 10:45:41
Halo sunu,

Kalau dilihat dari errornya terlihat bahwa direktori mail user (dalam hal ini sunu@mail.emporiumpluit.com) tersebut tidak terbentuk secara otomatis. Hal ini karena IMAP mati atau tidak bisa diakses. Coba cek apakah menggunakan firewall atau tidak? Sebaiknya dimatikan saja terlebih dahulu firewallnya.

Semoga Membantu
hadi   |202.152.243.xxx |2011-07-09 02:54:43
salam gan.

mau tanya gan. ketika akan melakukan groupadd dan user kok aku gk berhasil yah??
# groupadd -g 500 postfix
groupadd: GID 500 is not unique
# groupadd -g 500 postdrop
groupadd: user postfix does not exist
catatan   |SAdministrator |2011-07-13 15:16:57
halo hadi,
Untuk yang error seperti ini:

groupadd: GID 500 is not unique

coba yang 500 diubah menjadi angka yang lain karena di sistem kamu angka 500 dianggap tidak unik.

Lalu untuk yang error:

groupadd: user postfix does not exist

itu karena user postfix tidak ada.

Semoga membantu
sunu   |117.102.82.xxx |2011-07-20 17:23:51
alo mas arif, allhamdullilah akhirnya bisa jalan juga squirreMailnya setelah di cek ulang main.cf nya..oh ya mas ari mau tanya, klo mau kirim email ke luar mis; yahoo ato gmail. konfigurasi ap lagi yang harus di lakukan? mohon bantuanya mas arif, thx
catatan   |SAdministrator |2011-07-22 16:43:22
Halo mas sunu,
Alhamdulillah akhirnya bisa juga.
Untuk bisa mengirim email ke luar, maka kita harus menggunakan IP Publik dan nama domain yang sudah ada di DNS publik. Mungkin untuk domain bisa didapat dengan menggunakan co.cc kemudian mengarahkan mail tersebut ke IP publik kita. Tinggal satu lagi yang belum yaitu IP publik yang belum ada.

Semoga membantu
Rian  - Error in install sasl   |202.152.224.xxx |2011-08-12 17:34:57
Dear mas arif,

mas bisa minta tolong ga?
kan saya uda follow step-step dari anda. Nah baru juga install pertama (cyrus sasl) uda muncul error :
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output... configure: error: C compiler cannot create executables
See `config.log' for more details.
make: *** No targets specified and no makefile found. Stop.
make: Nothing to be done for `INSTALL'.

Nah stelah saya lihat lognya, ternyata errornya disini :
configure:2214: gcc -I/usr/include/mysql -L/usr/lib/mysql -lmysqlclient -lz -lm conftest.c >&5
/usr/bin/ld: cannot find -lz
configure:2214: gcc -I/usr/include/mysql -L/usr/lib/mysql -lmysqlclient -lz -lm conftest.c >&5
/usr/bin/ld: cannot find -lmysqlclient
collect2: ld returned 1 exit status
catatan   |SAdministrator |2011-08-15 12:37:08
Halo Rian,
Sepertinya instal paket-paketnya gak semuanya tuh. coba pakai:

# yum install mysql* gcc*

Semoga membantu
Rian   |202.152.224.xxx |2011-08-12 17:35:39
Mohon bantuannya ya mas..

Terima kasih
catatan   |SAdministrator |2011-08-15 11:45:38
Sudah dijawab ya.
ekosafitri  - tidak ad file'y   |110.35.80.xxx |2011-12-13 13:19:40
ini sy pny masalah, setalah sy ikuti printah dibwh ini :

$ sudo mv courier-imap* $HOME/downloads

tidak ad file courier-imap, ttp saya pindahin dg mnggunakan user root. File courier ada ttp pas saya jalankan perintah ini :
$ rpmbuild -ta courier-imap*

ad error seprti ini :

make[2]: *** [check-am] Error 1
make[2]: Leaving directory `/home/courier/rpm/BUILD/courier-imap-4.5.1/imap'
make[1]: *** [check] Error 2
make[1]: Leaving directory `/home/courier/rpm/BUILD/courier-imap-4.5.1/imap'
make: *** [check-recursive] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.43546 (%build)

itu knp ya??

Mohon dibantu ya, trima kasih
catatan   |SAdministrator |2011-12-14 09:09:29
Halo Ekosafitri,
Anda menggunakan OS apa dan postfix versi berapa serta courier versi berapa?
Write comment
Name:
Email:
 
Website:
Title:
UBBCode:
[b] [i] [u] [url] [quote] [code] [img] 
 
 
:angry::0:confused::cheer:B):evil::silly::dry::lol::kiss::D:pinch:
:(:shock::X:side::):P:unsure::woohoo::huh::whistle:;):s
:!::?::idea::arrow:
 
Please input the anti-spam code that you can read in the image.

3.26 Copyright (C) 2008 Compojoom.com / Copyright (C) 2007 Alain Georgette / Copyright (C) 2006 Frantisek Hliva. All rights reserved."

Terakhir Diperbaharui ( Kamis, 27 Mei 2010 13:23 )  

Tanggal dan Jam


Ulti Clocks content

Browse this website in: