Skip to content


Postfix Sebagai Pengganti Sendmail

[root@server ~]# cd /usr/ports/mail/postfix
[root@server ~]# make config

postfix-01

Tidak ada konfigurasi yang perlu diubah, jalankan :

[root@server ~]# make
[root@server ~]# make install
[root@server ~]# make clean

Jawab dengan menekan tombol “Y” saat ditanya :

Would you like me to add it [y]? y

Sekali lagi saat ditanya :

Would you like to activate Postfix in /etc/mail/mailer.conf [n]? y

Edit file /etc/rc.conf dan tambahkan baris berikut :

postfix_enable="YES"
sendmail_enable="NO"
sendmail_submit_enable="NO"
sendmail_outbound_enable="NO"
sendmail_msp_queue_enable="NO"

Buat file /etc/periodic.conf dan tambahkan baris berikut :

daily_clean_hoststat_enable="NO"
daily_status_mail_rejects_enable="NO"
daily_status_include_submit_mailq="NO"
daily_submit_queuerun="NO"

Matikan Sendmail dan jalankan layanan Postfix :

[root@server ~]# killall sendmail
[root@server ~]# /usr/local/etc/rc.d/postfix start


Test Postfix dengan melakukan pengiriman email ke alamat tertentu :

[root@server ~]# mail me@devilian.com
Subject: Test Dari Server
Ini hanya test pengiriman email menggunakan Postfix dari Server.
Empat kali Empat sama dengan Enam Belas.
Sempat gak Sempat harus di Balas : )
.
EOT

Jangan lupa menggunakan tanda “.” (titik) untuk berhenti mengetikkan isi email.

Periksa pada mailbox apakah email tersebut sudah diterima, terkadang email terkirim masuk pada Spam/Bulk folder.

Cek message header email yang diterima :

Delivered-To: me@devilian.com
Received: by 10.231.15.203 with SMTP id l11cs138394iba;
Sat, 12 Sep 2009 08:37:48 -0700 (PDT)
Received: by 10.114.9.20 with SMTP id 20mr7730505wai.195.1252769867196;
Sat, 12 Sep 2009 08:37:47 -0700 (PDT)
Return-Path:
Received: from server.devilian.com ([192.168.0.100])
by mx.google.com with ESMTP id 19si4955395pxi.68.2009.09.12.08.37.46;
Sat, 12 Sep 2009 08:37:46 -0700 (PDT)
Received-SPF: neutral (google.com: 192.168.0.100 is neither permitted nor denied by best guess record for domain of root@server.devilian.com) client-ip=192.168.0.100;
Authentication-Results: mx.google.com; spf=neutral (google.com: 192.168.0.100 is neither permitted nor denied by best guess record for domain of root@server.devilian.com) smtp.mail=root@server.devilian.com
Received: by server.devilian.com (Postfix, from userid 0)
id A0781B835; Sat, 12 Sep 2009 22:37:41 +0700 (WIT)
To: me@devilian.com
Subject: Test Dari Server
Message-Id: <20090912153741.A0781B835@server.devilian.com>
Date: Sat, 12 Sep 2009 22:37:41 +0700 (WIT)
From: root@server.devilian.com (Root Devilian)

Ini hanya test pengiriman email menggunakan Postfix dari Server.
Empat kali Empat sama dengan Enam Belas.
Sempat gak Sempat harus di Balas :)

Install Postfix sebagai pengganti Sendmail telah selesai.

Share

Posted in FreeBSD.

Tagged with , , .

The On Demand Global Workforce - oDesk


0 Responses

Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.



Some HTML is OK

or, reply to this post via trackback.