Currently I'm trying to accomplish postfix+courier
virtual hostin with authuserdb.  I have tried the
authmysql route and I'm giving up on that for now.  

I still keep the information in mysql but I create
/etc/userdb with a perl script, run makeuserdb and
then authdaemon restart.  The virtual user/domain info
is also kept in mysql and written out to vmailbox and
hashed via perl script.   Anyhow, my problem ...

Incoming mail leaves this in my maillog.

Jan 25 05:26:34 freebeer postfix/virtual[40179]:
45D28137DB: to=<[EMAIL PROTECTED]>, relay=virtual,
delay=2836, status=deferred (maildir delivery failed:
create
///example.com/userfoo/tmp/1011954394.40179_0.freebeer.example.com:
Permission denied)

I don't know how to get rid of the 2 extra /'s  at the
front of the path. 

authtest -s authdaemon with a correct username and
password, fails with:
chdir: Permission denied

Anyone have any suggestions?

I'm really not sure what /etc/postfix/vmailbox should
look like
The user that generated the above erros has the full
path set like:

  [EMAIL PROTECTED] /home/mailboxes/example.net/foo1/

some of my config files (comments removed) are
included below...


Anyone have any ideas?



#file: /etc/postfix/main.cf
command_directory = /usr/sbin
daemon_directory = /usr/libexec/postfix
myorigin = $mydomain
mydestination = /etc/postfix/mydestinations       
transport_maps = hash:/etc/postfix/transport 
  
smtpd_banner = $myhostname ESMTP GoAway
debug_peer_level = 2
debugger_command =
         PATH=/usr/bin:/usr/X11R6/bin
         xxgdb $daemon_directory/$process_name
$process_id & sleep 5
alias_maps = /etc/postfix/aliases
alias_database =
hash:/usr/lib/courier/etc/aliases/database.db
sendmail_path = /usr/sbin/sendmail
manpage_path = /usr/local/man
setgid_group = postdrop
newaliases_path = /usr/bin/newaliases
mailq_path = /usr/bin/mailq
queue_directory = /var/spool/postfix
mail_owner = postfix
virtual_maps = hash:/etc/postfix/virtual
local_transport = virtual
virtual_mailbox_base = /
virtual_mailbox_maps = hash:/etc/postfix/vmailbox
virtual_uid_maps = static:888
virtual_gid_maps = static:888
#EOF

#file: /usr/lib/courier/etc/authdaemonrc
authmodulelist="authuserdb"
authmodulelistorig="authcustom authcram authuserdb
authmysql authpam"
daemons=5
version=""
authdaemonvar=/usr/lib/courier-imap/var/authdaemon
#EOF


#file: /usr/lib/courier/etc/imapd
ADDRESS=208.185.52.117
PORT=143
MAXDAEMONS=40
MAXPERIP=4
PIDFILE=/var/run/imapd.pid
TCPDOPTS="-nodnslookup -noidentlookup"
AUTHMODULES="authdaemon"
AUTHMODULES_ORIG="authdaemon"
IMAP_CAPABILITY="IMAP4rev1 CHILDREN NAMESPACE
THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT"
IMAP_CAPABILITY_ORIG="IMAP4rev1 CHILDREN NAMESPACE
THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT
AUTH=CRAM-MD5 AUTH=CRAM-SHA1 IDLE"
IMAP_IDLE_TIMEOUT=60
IMAP_CAPABILITY_TLS="$IMAP_CAPABILITY AUTH=PLAIN"
IMAP_CAPABILITY_TLS_ORIG="$IMAP_CAPABILITY_ORIG
AUTH=PLAIN"
IMAP_DISABLETHREADSORT=0
IMAP_CHECK_ALL_FOLDERS=0
IMAP_OBSOLETE_CLIENT=0
IMAP_ULIMITD=65536
IMAP_USELOCKS=0
IMAP_EMPTYTRASH=Trash:7
IMAP_MOVE_EXPUNGE_TO_TRASH=0
IMAPDSTART=NO
#EOF

#file: /usr/lib/courier/etc/imapd.cnf
RANDFILE = /usr/lib/courier-imap/share/imapd.rand
[ req ]
default_bits = 1024
encrypt_key = yes
distinguished_name = req_dn
x509_extensions = cert_type
prompt = no
[ req_dn ]
C=US
ST=NY
L=New York
O=Courier Mail Server
OU=Automatically-generated IMAP SSL key
CN=localhost
[EMAIL PROTECTED]
[ cert_type ]
nsCertType = server
#EOF

#file: /usr/lib/courier/etc/imapd-ssl
prefix=/usr/lib/courier-imap
exec_prefix=/usr/lib/courier-imap
SSLPORT=993
SSLADDRESS=0
SSLPIDFILE=/var/run/imapd-ssl.pid
IMAPDSSLSTART=NO
IMAPDSTARTTLS=YES
IMAP_TLS_REQUIRED=0
COURIERTLS=/usr/lib/courier-imap/bin/couriertls
TLS_PROTOCOL=SSL3
TLS_STARTTLS_PROTOCOL=TLS1
TLS_CERTFILE=/usr/lib/courier-imap/share/imapd.pem
TLS_VERIFYPEER=NONE
#EOF


suggestions?


Thanks


__________________________________________________
Do You Yahoo!?
Great stuff seeking new owners in Yahoo! Auctions! 
http://auctions.yahoo.com

_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to