#1  
Old 9th April 2007, 08:10
satimis satimis is offline
Senior Member
 
Join Date: Oct 2006
Posts: 533
Thanks: 4
Thanked 2 Times in 2 Posts
Default Postfix maldir

Hi folks,

CentOS 4.4 amd64

On;
Virtual Users With Postfix, PostfixAdmin, Courier, Mailscanner, ClamAV On CentOS - Page 5
http://www.howtoforge.com/virtual_us...amav_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
Reply With Quote
Sponsored Links
  #2  
Old 10th April 2007, 16:12
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,747 Times in 2,578 Posts
Default

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.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 11th April 2007, 17:03
satimis satimis is offline
Senior Member
 
Join Date: Oct 2006
Posts: 533
Thanks: 4
Thanked 2 Times in 2 Posts
Default

Quote:
Originally Posted by falko
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

Last edited by satimis; 11th April 2007 at 17:41.
Reply With Quote
  #4  
Old 12th April 2007, 15:09
satimis satimis is offline
Senior Member
 
Join Date: Oct 2006
Posts: 533
Thanks: 4
Thanked 2 Times in 2 Posts
 
Default 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
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
IMAP question - Moving servers and mail. Brenton Installation/Configuration 11 14th May 2010 15:38
Issues with Postfix using "Virtual Users And Domains With Postfix, Courier And MySQL" Kyse HOWTO-Related Questions 15 6th January 2007 16:35
Centos 4.4 32bit Hangs, High Server load 3cwired_com Server Operation 11 16th November 2006 16:47
Verify email setup meekish Installation/Configuration 28 27th October 2006 16:36
postfix starts and stops why lhatle Installation/Configuration 2 21st December 2005 16:20


All times are GMT +2. The time now is 23:23.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.