DH

Saya install Postfix dengan Squirrelmail di Gentoo.  Postfixnya sudah
berjalan, bisa kirim dan terima email.  Sudah dicoba kirim dan terima
dari google dan yahoo.

Saya coba install plugin autorespond untuk vacation (auto forward
dan/ato autoreply), yang menggunakan ftp (saya install proftpd), namun
masih bermasalah.

Ketika saya coba atifkan autorespond, muncul error :

--
Warning: ftp_fput() [function.ftp-fput]: .forward: Permission denied
in /var/www/localhost/htdocs/mail/plugins/autorespond/lib.php on line
272
There was a problem uploading your forward file:  "error changing
//.forward".  Please contact your support department.
--

Baris-baris di sekitar 272  di lib.php dari plugins autorespond :

--
271        $file = basename($path);
272        $stat = ftp_fput($ftp, $file, $temp, FTP_ASCII);
273        if (!$stat) {
274            @ftp_close($ftp);
275            return array(FALSE, ar_gettext("error changing"). " $cwd/$file".
276                                ($php_errormsg ? ": $php_errormsg" : ''));
--


Konfigurasi proftpd :
--
ServerName                      "ProFTPD Default Installation"
ServerType                      standalone
DefaultServer           on
RequireValidShell       off
AuthPAM                         off
AuthPAMConfig           ftp
# Port 21 is the standard FTP port.
Port                            21

# Umask 022 is a good standard umask to prevent new dirs and files
# from being group and world writable.
Umask                           022

MaxInstances            30

User                            vmail
Group                           vmail

# Normally, we want files to be overwriteable.
<Directory />
        AllowOverwrite          on
</Directory>
DefaultRoot /webmail

SQLAuthTypes            Plaintext Crypt
SQLAuthenticate         users*

SQLConnectInfo  [EMAIL PROTECTED] mailsql

SQLUserInfo     mailbox username  password NULL NULL maildir NULL

RootLogin off

## end proftpd.conf

User vmail di system :

vmail:x:1003:1003::/bin/null:/bin/false

## /etc/shells : valid login shells :

...
/bin/false
....


error di /var/log/message waktu saya coba aktifkan autorespond
(autoforward atau autoreply) :

Mar 13 21:22:57 mail proftpd[17757]: webmail.my.domain
(webmail.my.domain[::ffff:127.0.0.1]) - FTP session opened.
Mar 13 21:22:57 mail proftpd[17757]: webmail.my.domain
(webmail.my.domain[::ffff:127.0.0.1]) - USER [EMAIL PROTECTED]: Login
successful.
Mar 13 12:22:57 mail proftpd[17757]: webmail.my.domain
(webmail.my.domain[::ffff:127.0.0.1]) - Preparing to chroot to
directory '/webmail'
Mar 13 12:22:57 mail proftpd[17757]: webmail.my.domain
(webmail.my.domain[::ffff:127.0.0.1]) - FTP session closed.
Mar 13 21:22:57 mail proftpd[17759]: webmail.my.domain
(webmail.my.domain[::ffff:127.0.0.1]) - FTP session opened.
Mar 13 21:22:57 mail proftpd[17759]: webmail.my.domain
(webmail.my.domain[::ffff:127.0.0.1]) - USER [EMAIL PROTECTED]: Login
successful.
Mar 13 12:22:57 mail proftpd[17759]: webmail.my.domain
(webmail.my.domain[::ffff:127.0.0.1]) - Preparing to chroot to
directory '/webmail'
Mar 13 12:22:57 mail proftpd[17759]: webmail.my.domain
(webmail.my.domain[::ffff:127.0.0.1]) - FTP session closed.
Mar 13 21:22:57 mail proftpd[17761]: webmail.my.domain
(webmail.my.domain[::ffff:127.0.0.1]) - FTP session opened.
Mar 13 21:22:57 mail proftpd[17761]: webmail.my.domain
(webmail.my.domain[::ffff:127.0.0.1]) - USER [EMAIL PROTECTED]: Login
successful.
Mar 13 12:22:57 mail proftpd[17761]: webmail.my.domain
(webmail.my.domain[::ffff:127.0.0.1]) - Preparing to chroot to
directory '/webmail'
Mar 13 12:22:57 mail proftpd[17761]: webmail.my.domain
(webmail.my.domain[::ffff:127.0.0.1]) - FTP session closed.


Kalau dilihat dari pesan error waktu mengaktifkan autoforward,
sepertinya masalahnya di directory/file permission

Direktori untuk user email :

/webmail/my.domain/noc

Hak akses untuk user system vmail dan group vmail di direktori email :

mail ~ # ls -al / | grep webmail
drwxrwxr-x  8 vmail  vmail            320 Mar 11 06:28 webmail
mail ~ #

mail ~ # ls -al /webmail
drwxrwxr-x  8 vmail vmail       320 Mar 11 06:28 .
drwxr-xr-x 24 root  root        800 Mar 10 01:06 ..
drwxrwx---  5 vmail vmail       144 Mar 11 14:39 my.domain
mail ~ #

mail ~ # ls -al /webmail/my.domain/
drwxrwx---  5 vmail vmail 144 Mar 11 14:39 .
drwxrwxr-x  8 vmail vmail 320 Mar 11 06:28 ..
drwxrwx--- 11 vmail vmail 400 Mar 14 00:56 noc
mail ~ #

Mohon bantuannya menyelesaikan masalah saya.

TIA

tm

-- 
FAQ milis di http://wiki.linux.or.id/FAQ_milis_tanya-jawab
Unsubscribe: kirim email ke [EMAIL PROTECTED]
Arsip dan info milis selengkapnya di http://linux.or.id/milis

Kirim email ke