Hi, I'm still figthing with passwd-file, virtual users and permissions.
I have created the directory /var/spool/virtual/test and inside I've done a
"maildirmake Maildir".
I have a couple of questions :
I use the same passwd-file for auth_userdb and as auth_passdb.
1) What program can I use to create the userdb file ?
What I do now is to use the htpasswd program and then I complete by hand the
rest of the fields (uid:group:GECOS:home:shell)
htpasswd userdb test
password: xxx
again: xxx
And then vi userdb
test at test.com:ssasZXc00P1H6:502:102::/var/spool/virtual/test/:/bin/false
<--by hand.
I think that if I want to offer virtual mail with imap is very tedious to
complete user by user.
(If this second question does not fall in this list, then don't answer it)
2) I know that postfix delivers in Maildir format, and when the user is a
virtual user, I do the next
Modify the virtual file ---> test at test.com test.test.com
Modify the aliases file--> test.test.com: /var/spool/virtual/test/Maildir
postmap hash:virtual
postaliases hash:aliases
postfix reload
but when I do a "echo testing | sendmail test at test.com " I receive
an error
Aug 18 15:32:44 slk90 postfix/pickup[12208]: 95C3717D5C: uid=0 from=<root>
Aug 18 15:32:44 slk90 postfix/cleanup[12252]: 95C3717D5C:
message-id=<20030818183244.95C3717D5C at slk90.equital.lx>
Aug 18 15:32:44 slk90 postfix/qmgr[12209]: 95C3717D5C: from=<root at
slk90.equital.lx>, size=291, nrcpt=1 (queue active)
Aug 18 15:32:44 slk90 postfix/local[12254]: 95C3717D5C: to=<test.prueba.com
at slk90.equital.lx>, orig_to=<test at prueba.com>, relay=local,
delay=0, status=bounced (cannot append message to destination file
/var/spool/virtual/test/Maildir: cannot open file: Permission denied)
I'm confused about permissions. I set the /var/spool/virtual to
dovecot.postfix and the permissions are drwxrwx---
Thanks a lot.
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.509 / Virus Database: 306 - Release Date: 12/08/2003