
15th December 2012, 14:39
|
|
Junior Member
|
|
Join Date: Dec 2012
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Virtual Hosting With vsftpd And MySQL On Ubuntu 12.04
I have configure Virtual Hosting With vsftpd And MySQL On Ubuntu 12.04 and everything is working. Follow all the steps. But when i connect FTP and enter the credentials then i show all the directory of different user. I want that only authoriszed user directory should show. I am not able to connect with FTP if i makr chroot_local_user=NO in /etc/vsftpd.conf other wise i show the error
Response: 220 (vsFTPd 2.3.5)
Command: USER testuser
Response: 331 Please specify the password.
Command: PASS ******
Response: 500 OOPS: vsftpd: refusing to run with writable root inside chroot()
Error: Critical error
Error: Could not connect to server
|

15th December 2012, 15:00
|
|
Junior Member
|
|
Join Date: Dec 2011
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
its saying that user dont exist in chroot file
see if add that user to chroot file
|

15th December 2012, 15:07
|
|
Junior Member
|
|
Join Date: Dec 2012
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
reply
where do i need to create that file. Please explain
|

15th December 2012, 15:59
|
|
Junior Member
|
|
Join Date: Dec 2011
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
yes
in /etc/vsftpd.chroot_list
|

15th December 2012, 17:44
|
|
Junior Member
|
|
Join Date: Dec 2012
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Virtual Users And Domains With Postfix, Courier, MySQL And SquirrelMail (Ubuntu 12.10
I have follow all the step given under this Virtual Users And Domains With Postfix, Courier, MySQL And SquirrelMail (Ubuntu 12.10) and was sucessfully done all step but i am getting this error while restarting postfix
/usr/sbin/postconf: warning: /etc/postfix/main.cf: unused parameter: virtual_maildir_limit_message="The user you are trying to reach is over quota."
/usr/sbin/postconf: warning: /etc/postfix/main.cf: unused parameter: virtual_maildir_extended=yes
/usr/sbin/postconf: warning: /etc/postfix/main.cf: unused parameter: virtual_mailbox_limit_override=yes
/usr/sbin/postconf: warning: /etc/postfix/main.cf: unused parameter: virtual_overquota_bounce=yes
/usr/sbin/postconf: warning: /etc/postfix/main.cf: unused parameter: virtual_maildir_limit_message="The user you are trying to reach is over quota."
/usr/sbin/postconf: warning: /etc/postfix/main.cf: unused parameter: virtual_maildir_extended=yes
and also not able to login into webmail getting ERROR:
ERROR: Connection dropped by IMAP server.
. I have checked that all service are running fine but there is no maildir under /home/vmail/
Kindly help me in this
|

16th December 2012, 00:00
|
|
Junior Member
|
|
Join Date: Dec 2011
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
the other problem with ftp is solve your not
|

16th December 2012, 15:07
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,595 Times in 2,446 Posts
|
|
Quote:
Originally Posted by gauravrishi
I have follow all the step given under this Virtual Users And Domains With Postfix, Courier, MySQL And SquirrelMail (Ubuntu 12.10) and was sucessfully done all step but i am getting this error while restarting postfix
/usr/sbin/postconf: warning: /etc/postfix/main.cf: unused parameter: virtual_maildir_limit_message="The user you are trying to reach is over quota."
/usr/sbin/postconf: warning: /etc/postfix/main.cf: unused parameter: virtual_maildir_extended=yes
/usr/sbin/postconf: warning: /etc/postfix/main.cf: unused parameter: virtual_mailbox_limit_override=yes
/usr/sbin/postconf: warning: /etc/postfix/main.cf: unused parameter: virtual_overquota_bounce=yes
/usr/sbin/postconf: warning: /etc/postfix/main.cf: unused parameter: virtual_maildir_limit_message="The user you are trying to reach is over quota."
/usr/sbin/postconf: warning: /etc/postfix/main.cf: unused parameter: virtual_maildir_extended=yes
and also not able to login into webmail getting ERROR:
ERROR: Connection dropped by IMAP server.
. I have checked that all service are running fine but there is no maildir under /home/vmail/
Kindly help me in this
|
Looks like you didn't compile Postfix with the quota patch.
|

16th December 2012, 15:48
|
|
Junior Member
|
|
Join Date: Dec 2012
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
reply
Hi, problem of ftp not resolved. I have created file and the user testuser and getting the same problem. However for postfix i have already updated the postfix patches. When i was shoting this command dpkg -i postfix_2.9.3-2ubuntu2_amd64.deb postfix-mysql_2.9.3-2ubuntu2_amd64.deb its was giving error..
root@mail:/home/gaurav# cat /etc/issue.net
Ubuntu 12.04.1 LTS
root@mail:/home/gaurav# dpkg -i postfix_2.9.3-2ubuntu2_amd64.deb postfix-mysql_2.9.3-2ubuntu2_amd64.deb
dpkg: error processing postfix_2.9.3-2ubuntu2_amd64.deb (--install):
cannot access archive: No such file or directory
dpkg: error processing postfix-mysql_2.9.3-2ubuntu2_amd64.deb (--install):
cannot access archive: No such file or directory
Errors were encountered while processing:
postfix_2.9.3-2ubuntu2_amd64.deb
postfix-mysql_2.9.3-2ubuntu2_amd64.deb
|

17th December 2012, 14:05
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,595 Times in 2,446 Posts
|
|
Please check with that you use the correct filenames. Filenames might be different, or you might be in the wrong directory.
|

17th December 2012, 17:47
|
|
Junior Member
|
|
Join Date: Dec 2012
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
reply
I have crosschecked all the code and everything. i am following same step as given by your site. Please check the error which i was getting
root@mail:/usr/src/postfix-2.9.3# patch -p1 < ../postfix-vda-v11-2.9.1.patch
patching file README_FILES/VDA_README
patching file src/global/mail_params.h
patching file src/util/file_limit.c
patching file src/virtual/mailbox.c
patching file src/virtual/maildir.c
patching file src/virtual/virtual.c
patching file src/virtual/virtual.h
root@mail:/usr/src/postfix-2.9.3#
root@mail:/usr/src/postfix-2.9.3# dpkg-buildpackage
dpkg-genchanges >../postfix_2.9.3-2~12.04.4_i386.changes
dpkg-genchanges: not including original source code in upload
dpkg-source --after-build postfix-2.9.3
dpkg-buildpackage: binary and diff upload (original source NOT included)
root@mail:/usr/src# ls -l
total 6876
drwxr-xr-x 18 root root 4096 Dec 15 09:58 postfix-2.9.3
-rw-r--r-- 1 root root 234767 Dec 15 09:54 postfix_2.9.3-2~12.04.4.diff.gz
-rw-r--r-- 1 root root 1524 Dec 15 09:54 postfix_2.9.3-2~12.04.4.dsc
-rw-r--r-- 1 root root 3806 Dec 15 09:59 postfix_2.9.3-2~12.04.4_i386.changes
-rw-r--r-- 1 root root 1471888 Dec 15 09:59 postfix_2.9.3-2~12.04.4_i386.deb
-rw-r--r-- 1 root root 3760555 May 30 2012 postfix_2.9.3.orig.tar.gz
-rw-r--r-- 1 root root 46232 Dec 15 09:59 postfix-cdb_2.9.3-2~12.04.4_i386.deb
-rw-r--r-- 1 root root 159072 Dec 15 09:59 postfix-dev_2.9.3-2~12.04.4_all.deb
-rw-r--r-- 1 root root 1080564 Dec 15 09:59 postfix-doc_2.9.3-2~12.04.4_all.deb
-rw-r--r-- 1 root root 54400 Dec 15 09:59 postfix-ldap_2.9.3-2~12.04.4_i386.deb
-rw-r--r-- 1 root root 48032 Dec 15 09:59 postfix-mysql_2.9.3-2~12.04.4_i386.deb
-rw-r--r-- 1 root root 48222 Dec 15 09:59 postfix-pcre_2.9.3-2~12.04.4_i386.deb
-rw-r--r-- 1 root root 48256 Dec 15 09:59 postfix-pgsql_2.9.3-2~12.04.4_i386.deb
-rw-r--r-- 1 root root 55009 Apr 11 2012 postfix-vda-v11-2.9.1.patch
root@mail:/usr/src# dpkg -i postfix_2.9.3-2ubuntu2_amd64.deb postfix-mysql_2.9.3-2ubuntu2_amd64.deb
dpkg: error processing postfix_2.9.3-2ubuntu2_amd64.deb (--install):
cannot access archive: No such file or directory
dpkg: error processing postfix-mysql_2.9.3-2ubuntu2_amd64.deb (--install):
cannot access archive: No such file or directory
Errors were encountered while processing:
postfix_2.9.3-2ubuntu2_amd64.deb
postfix-mysql_2.9.3-2ubuntu2_amd64.deb
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT +2. The time now is 00:48.
|
|
Recent comments
23 hours 27 min ago
1 day 4 hours ago
1 day 8 hours ago
1 day 10 hours ago
2 days 55 min ago
2 days 1 hour ago
2 days 5 hours ago
2 days 12 hours ago
2 days 13 hours ago
2 days 14 hours ago