Hi folks, CentOS 4.4 amd64 On; Virtual Users With Postfix, PostfixAdmin, Courier, Mailscanner, ClamAV On CentOS - Page 5 http://www.howtoforge.com/virtual_users_postfix_courier_mailscanner_clamav_centos_p5 I was stuck on; [root@host satimis]# maildirmake /opt/mail/testdomain.com/user1 Code: maildirmake: No such file or directory Whether I need to replace it with; [root@host satimis]# mkdir -p /opt/mail/testdomain.com/user1/public_html followed by; [root@host satimis]# maildirmake /opt/mail/testdomain.com/user1/Maildir [root@host satimis]# maildirmake -q 20971520S /opt/mail/testdomain.com/user1/Maildir then [root@host satimis]# chmod g-r,o-r /opt/mail/testdomain.com/user1/Maildir/maildirsize [root@host satimis]# chown -R mail.mail /opt/mail/testdomain.com/user1 using /mail OR /vmail on the directory path and "vmail.vmail" ??? Pls advise. TIA satimis
I suggest you try this: Code: mkdir -p /opt/mail/testdomain.com/user1 maildirmake /opt/mail/testdomain.com/user1 You also might have to adjust the ownership of the directory.
[root@host satimis]# mkdir -p /opt/mail/testdomain.com/user1 [root@host satimis]# maildirmake /opt/mail/testdomain.com/user1 Code: maildirmake: File exists [root@host satimis]# maildirmake -q 20971520S /opt/mail/testdomain.com/user1 (just hanging here for prolonged time) I have to press [Ctrl]+c to exit it. # ls -l /opt/mail/testdomain.com | grep user1 Code: drwxr-xr-x 2 root root 4096 Apr 11 21:54 user1 Edit: Further down to "Vacation Install" [root@host ~]# cat /etc/passwd | grep vacation Code: vacation:x:1002:1002::/var/spool/vacation:/sbin/nologin Do I need to manually change it as: Code: vacation:*:65501:65501::0:0:Virtual Vacation:/nonexistent:/sbin/nologin ??? Tks satimis
cause of problem discovered Hi folks, I left out "vi /usr/lib/courier-imap/etc/imapd" on P-4 Re-did it. Then as root re-ran; Code: /etc/init.d/mysql.server start /etc/init.d/saslauthd start /etc/init.d/courier-authlib start /etc/init.d/courier-imap start /etc/init.d/postfix start All went through w/o problem. Continued on P-5 # rmdir /opt/mail/testdomain.com/user1 # maildirmake /opt/mail/testdomain.com/user1 # maildirmake -q 20971520S /opt/mail/testdomain.com/user1 # chmod g-r,o-r /opt/mail/testdomain.com/user1 # chown -R vmail.vmail /opt/mail/testdomain.com/user1 All went through w/o complaint. # ls -l /opt/mail/testdomain.com/ Code: total 4 drwx------ 5 vmail vmail 4096 Apr 12 18:44 user1 # ls -l /opt/mail/testdomain.com/user1/ Code: total 16 drwx------ 2 vmail vmail 4096 Apr 12 18:44 cur -rw-r--r-- 1 vmail vmail 36 Apr 12 18:44 maildirsize drwx------ 2 vmail vmail 4096 Apr 12 18:44 new drwx------ 2 vmail vmail 4096 Apr 12 18:44 tmp Continued perl, perl-DBI and perl-DBD-MySQL already installed. # yum search perl | grep 'perl.x86_64' Code: ... perl.x86_64 3:5.8.5-36.RHEL4 base perl.x86_64 3:5.8.5-36.RHEL4 installed # yum search perl | grep 'perl-DBI.x86_64' Code: perl-DBI.x86_64 1.40-8 base perl-DBI.x86_64 1.40-8 installed # yum search perl | grep 'perl-DBD-MySQL.x86_64' Code: perl-DBD-MySQL.x86_64 2.9004-3.1 base perl-DBD-MySQL.x86_64 2.9004-3.1 installed Coming to; Code: useradd –d /var/spool/vacation -s /sbin/nologin vacation Re-do it [root@host satimis]# useradd –d /var/spool/vacation -s /sbin/nologin vacation Code: bash: useradd: command not found [root@host satimis]# which useradd Code: /usr/bin/which: no useradd in (/usr/kerberos/sbin:/usr/kerberos/bin:/usr/lib/courier-imap/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/home/satimis/bin) [root@host satimis]# su - [root@host ~]# which useradd Code: /usr/sbin/useradd Must be super root to run this command??? [root@host ~]# useradd –d /var/spool/vacation -s /sbin/nologin vacation Code: usage: useradd [-u uid [-o]] [-g group] [-G group,...] [-d home] [-s shell] [-c comment] [-m [-k template]] [-f inactive] [-e expire ] [-p passwd] [-M] [-n] [-r] [-l] name useradd -D [-g group] [-b base] [-s shell] [-f inactive] [-e expire ] # cat /etc/passwd | grep vacation Code: vacation:x:1002:1002::/var/spool/vacation:/sbin/nologin Stuck here. Any suggestion??? TIA B.R. satimis