Ini berikut saya sertakan listing file yang berada di /var/qmail/control, dan
isinya
-*--------------
[irwanhadi@localhost control]$ ls -ls
total 8
1 -rw-r--r-- 1 root root 4 Dec 21 14:12 badmailfrom
1 -rw-r--r-- 1 root root 10 Jan 5 17:25 defaultdomain
1 -rw-r--r-- 1 root root 32 Jan 5 17:52 locals
1 -rw-r--r-- 1 root root 10 Jan 5 17:25 me
1 -rw-r--r-- 1 root root 10 Jan 5 17:25 plusdomain
1 -rw-r--r-- 1 root root 45 Jan 5 17:52 rcpthosts
1 -rw-r--r-- 1 root root 21 Jan 2 02:38 smtpgreeting
1 -rw-r--r-- 1 root root 24 Jan 5 17:52 virtualdomains
---------------------
Isinya
[irwanhadi@localhost control]$ cat defaultdomain
localhost
[irwanhadi@localhost control]$ cat locals
127.0.0.1
localhost
localhost
[irwanhadi@localhost control]$ cat me
localhost
[irwanhadi@localhost control]$ cat plusdomain
localhost
[irwanhadi@localhost control]$ cat rcpthosts
localhost
localhost
localhost
testing.com
[irwanhadi@localhost control]$ cat smtpgreeting
Welcome to localhost
[irwanhadi@localhost control]$ cat virtualdomains
testing.com:testing.com
[irwanhadi@localhost control]$
-----------------------------
Kalau dicoba mengirim surat ke domain di luar localhost selalu keluarnya
[irwanhadi@localhost control]$ telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 Welcome to localhost ESMTP
helo testing
250 Welcome to localhost
mail from: [EMAIL PROTECTED]
250 ok
rcpt to: [EMAIL PROTECTED]
553 sorry, that domain isn't in my list of allowed rcpthosts (#5.7.1)
data
503 RCPT first (#5.5.1)
quit
-------------
Nah yang jadi pertanyaan, bagaimana caranya bisa set itu qmail agar bisa
berfungsi sebagai MTA, dalam artian dia dipasang di localhost, terus dia harus
mau dong mendelivery ke tujuan sekalipun tujuan diluar localhost jika IP si
pengirim adalah localhost juga, dan mereject untuk mengirim surat kecuali
localhost jika IP si pengirim di luar localhost.
Tambahan, di etc/hosts.deny dan etc/hosts.allow
[irwanhadi@localhost /etc]$ cat hosts.allow
#
# hosts.allow This file describes the names of the hosts which are
# allowed to use the local INET services, as decided
# by the '/usr/sbin/tcpd' server.
#
ALL: LOCAL
[irwanhadi@localhost /etc]$ cat hosts.deny
#
# hosts.deny This file describes the names of the hosts which are
# *not* allowed to use the local INET services, as decided
# by the '/usr/sbin/tcpd' server.
#
# The portmap line is redundant, but it is left to remind you that
# the new secure portmap uses hosts.deny and hosts.allow. In particular
# you should know that NFS uses portmap!
ALL: ALL
[irwanhadi@localhost /etc]$
Add ons qmail yang terpasang a.l
serial mail, qmail analog, qmailadmin, vpopmail, rblsmtpd, ucspi, fastforward
--------------------------------------------------------------------------
Utk berhenti langganan, kirim email ke [EMAIL PROTECTED]
Informasi arsip di http://www.linux.or.id/milis.php3
Pengelola dapat dihubungi lewat [EMAIL PROTECTED]