Re: Masih postfix-clamav-amavis error

Asfihani <asfik-yNEVPA1OLJZWk0Htik3J/[email protected]>
Newsgroups gmane.mail.postfix.user.indonesian
Organization PT. Cakraperdana Proniagatama.
Message-ID <20040410102356.GE7289@nirwana>
On Sat, Apr 10, 2004 at 05:08:17PM +0700, Dwi Nugroho wrote:

> Saya sudah berhasil install postfix-clamav, dan sudah dapat berkirim-kiriman
> email tapi ketika saya tambahkan amavis, dan pada main.cf saya tambahkan
> baris : content_filter = smtp:localhost:10024, mulailah masalah timbul......
> saya jadi tidak dapat mengirim email karena status nya Deffered ( bukan
> sent ). Kalau dilihat di log nya maka terlihat seperti ini :
> 
> Apr 10 17:02:32 postfix postfix/cleanup[3686]: 07FB2143A3:
> message-id=<[email protected]>
> Apr 10 17:02:32 postfix postfix/qmgr[3682]: 07FB2143A3:
> from=<sinatrio.bimo-//Bz/[email protected]>, size=1139, nrcpt=1 (queue active)
> Apr 10 17:02:32 postfix postfix/smtpd[3684]: disconnect from
> unknown[192.168.1.6]
> Apr 10 17:02:32 postfix postfix/smtp[3688]: connect to localhost[127.0.0.1]:
> Connection refused (port 10024)
> Apr 10 17:02:32 postfix postfix/smtp[3688]: 07FB2143A3:
> to=<cabe.merah-//Bz/[email protected]>, relay=none, delay=0, status=deferred (connect
> to localhost[127.0.0.1]: Connection refused)
> 
> Kira-kira apa yang salah dari konfigurasi saya ? Kalau saya lihat, di
> /etc/services saya tidak mendapatkan port 10024. Begitu juga kalau saya
> netstat, maka saya juga tidak mendapatkan port 10024 tersebut.

Pastikan daemon amavisd(-new) anda sudah berjalan, untuk mengetestnya
bisa menggunakan perintah berikut :

% telnet localhost 10024
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 [127.0.0.1] ESMTP amavisd-new service ready
quit
221 2.0.0 [127.0.0.1] (amavisd) closing transmission channel
Connection closed by foreign host.

Atau dengan perintah lsof:

% lsof -i TCP:10024
COMMAND   PID   USER   FD   TYPE DEVICE SIZE NODE NAME
amavisd   618 amavis    6u  IPv4   1131       TCP localhost:10024 (LISTEN)
amavisd 22801 amavis    6u  IPv4   1131       TCP localhost:10024 (LISTEN)
amavisd 24266 amavis    6u  IPv4   1131       TCP localhost:10024 (LISTEN)

> [[email protected] root]# netstat -a|more
> Active Internet connections (servers and established)
> Proto Recv-Q Send-Q Local Address           Foreign Address         State
> tcp        0      0 *:1024                  *:*                     LISTEN

Hmm, menarik. Daemon apa ya yang listen di port 1024 ini?
Jangan-jangan anda mengubah $inet_socket_port di amavisd.conf sehingga
listen di port 1024 instead of 10024 :-)

Salam,

 Asfihani
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.