On Thu, 19 Aug 2004 [EMAIL PROTECTED] wrote:

> Hello A.,
> Thursday, August 19, 2004, 1:18:26 PM, you wrote:
>
> AK> postfixnya di chroot jail ??
>
> Maksud di jail apa ya ? bisa kasih step by step cara jailkan postfix
> pak ?
> pernah baca di sini examples/chroot-setup tapi masih nggak ngerti
> Setelah saya ubah chroot y menjadi n untuk rewrite
> rewrite unix    -       -       n       -       -       trivial-rewrite
>
> klu setting saya di master.cf
>
> # ==========================================================================
> # service type  private unpriv  chroot  wakeup  maxproc command + args
> #               (yes)   (yes)   (yes)   (never) (50)
> # ==========================================================================
> smtp    inet    n       -       n       -       -       smtpd
> #smtps    inet  n       -       n       -       -       smtpd
> #  -o smtpd_tls_wrappermode=yes -o smtpd_sasl_auth_enable=yes
> #submission     inet    n       -       n       -       -       smtpd
> #  -o smtpd_enforce_tls=yes -o smtpd_sasl_auth_enable=yes
> #628      inet  n       -       n       -       -       qmqpd
> pickup  fifo    n       -       y       60      1       pickup
> cleanup unix    n       -       y       -       0       cleanup
> qmgr     fifo  n       -       n       300     1       qmgr
> #qmgr   fifo    n       -       y       300     1       nqmgr
> #tlsmgr   fifo  -       -       n       300     1       tlsmgr
> rewrite unix    -       -       n       -       -       trivial-rewrite
> bounce  unix    -       -       y       -       0       bounce
> defer   unix    -       -       y       -       0       bounce
> flush   unix    n       -       y       1000?   0       flush
> smtp    unix    -       -       y       -       -       smtp
> showq   unix    n       -       y       -       -       showq
> error   unix    -       -       y       -       -       error
> local     unix  -       n       n       -       -       local
> virtual unix    -       n       n       -       -       virtual
> lmtp    unix    -       -       y       -       -       lmtp
> #
> # Interfaces to non-Postfix software. Be sure to examine the manual
> # pages of the non-Postfix software to find out what options it wants.
> # The Cyrus deliver program has changed incompatibly.
> #
> cyrus     unix  -       n       n       -       -       pipe
>   flags=R user=cyrus argv=/cyrus/bin/deliver -e -m ${extension} ${user}
> uucp      unix  -       n       n       -       -       pipe
>   flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail.postfix 
> ($recipient)
> ifmail    unix  -       n       n       -       -       pipe
>   flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
> bsmtp     unix  -       n       n       -       -       pipe
>   flags=Fq. user=foo argv=/usr/local/sbin/bsmtp -f $sender $nexthop $recipient
> relay     unix  -       -       n       -       -       smtp
> trace     unix  -       -       n       -       0       bounce
> verify    unix  -       -       n       -       1       verify
> proxymap  unix  -       -       n       -       -       proxymap
> anvil     unix  -       -       n       -       1       anvil
> scache    unix  -       -       n       -       1       scache

kayaknya postfix anda memang di chroot :-)
mungkin step stepnya seperti ini
http://www.geocities.com/scottlhenderson/spamfilter.html ( search CHROOT
for Postfix )

Note: *kalo memang ada tidak menghendaki chroot, chroot ->  y di master.cf
semua di ubah jadi "n" saja*
mudah2an anda mengerti maksud saya ehehehe ( maaf jika deskripsinya kurang
pas) :D

>
> Kemudian saya coba telnet lagi, hasilnya lebih mengembirakan
> walau masih error
> [EMAIL PROTECTED] root]# telnet localhost 25
> Trying 127.0.0.1...
> Connected to localhost.
> Escape character is '^]'.
> 220 mail.hendratna.net ESMTP Postfix (2.2-20040801)

>
> Hasil errornya
>
> Aug 19 13:39:37 jbn postfix/postfix-script: stopping the Postfix mail system
> Aug 19 13:39:37 jbn postfix/master[3883]: terminating on signal 15
> Aug 19 13:39:43 jbn postfix/postfix-script: starting the Postfix mail system
> Aug 19 13:39:43 jbn postfix/master[4045]: daemon started -- version 2.2-20040801
> Aug 19 13:39:55 jbn postfix/smtpd[4051]: connect from jbn.hendratna.net[127.0.0.1]
> Aug 19 13:40:11 jbn postfix/trivial-rewrite[4053]: warning: do not list domain 
> hendratna.net in BOTH mydestination and virtual_mailbox_domains
> Aug 19 13:40:24 jbn postfix/trivial-rewrite[4053]: warning: do not list domain 
> hendratna.net in BOTH mydestination and virtual_mailbox_domains

arsip berikut mungkin bisa jadi solusi untuk error diatas
http://www.mail-archive.com/[EMAIL PROTECTED]/msg01106.html


> Kemudian saya coba Add mailbox baru lewat postfixadmin
> hasil error
> create /var/www/Maildir/tmp/1092894194.P4071.jbn.hendratna.net
> Saya bingung kenapa kok larinya ke /var/www/Maildir sich
> sedangkan setting apache saya untuk virtual host (dir rootnya) ada di
> /opt/httpd/htdocs/postfixadmin
> sedangkan untuk folder virtual mailbox saya settingkan ke
> /opt/postfix/hendratna.net dengan user postfix.postfix
>
> error lengkapnya
> Aug 19 13:43:14 jbn postfix/local[4071]: 69BA7900A1: to=<[EMAIL PROTECTED]>, 
> relay=local, delay=0, status=bounced (maildir delivery failed: create 
> /var/www/Maildir/tmp/1092894194.P4071.jbn.hendratna.net: Permission denied)
> Aug 19 13:43:14 jbn postfix/local[4071]: warning: maildir access problem for 
> UID/GID=48/48: create /var/www/Maildir/tmp/1092894194.P4071.jbn.hendratna.net: 
> Permission denied
> Aug 19 13:43:14 jbn postfix/local[4071]: warning: perhaps you need to create the 
> maildirs in advance
> Aug 19 13:43:14 jbn postfix/qmgr[4049]: 69BA7900A1: removed

coba cek owner dr /opt/postfix
$ ls -al /opt/postfix

apakah uid/gid yg ada pada main.cf sama dengan owner /opt/postfix tersebut
??

Salam,

Duken

Reply via email to