Hi,
NOTE: I was never had Courier on my system.
I have a problem with making Courier sever to work.
I have done the folowing:
- create system account "courier" (UID:7001) and group courier (GID:7001).
su - normaluseraccount
curl
http://telia.dl.sourceforge.net/sourceforge/courier/courier-0.38.1.tar.gz -o
courier-0.38.1.tar.gz
tar -xzf courier-0.38.1.tar.gz
cd courier-0.38.1/
umask 022
./configure --prefix=/usr/local/courier --sysconfdir=/etc/courier --localsta
tedir=/var/courier --without-ipv6 --with-db=gdbm --with-mailuser=courier --w
ith-mailgroup=courier --with-mailuid=7001 --with-mailgui=7001 --with-shellpa
th="/bin:/usr/bin:/usr/local/bin:/usr/local/courier/bin" --without-authldap
--without-authpwd --without-authmysql --without-authpgsql --without-authshad
ow --without-authdaemon --without-webmail
make
make check
exit
#now I am the root
make install-strip
make install-configure
I have added the following domains to (/etc/courier/hosteddomains):
domainx.com
mail.domainx.com
domainy.com
mail.domainy.com
also the same to /etc/courier/esmtpacceptmailfor
The /etc/courier/userdb have:
[EMAIL PROTECTED]
home=/var/courier/virtual/domainx.com/admin|mail=/var/courier/virtual/domain
x.com/|systempw=xxx|gid=7001|uid=1001
[EMAIL PROTECTED]
home=/var/courier/virtual/domainy.com/admin|mail=/var/courier/virtual/domain
y.com/|systempw=xxx|gid=7001|uid=1002
uid:1001 and 1002 do not exist on my system.
I create the mail dirs with the following commands:
/usr/local/courier/bin/maildirmake /var/courier/virtual/domainx.com/admin
/usr/local/courier/bin/maildirmake /var/courier/virtual/domainy.com/admin
I run all the /usr/local/courier/sbin/make* files.
I edit the config files to start the servers.
/etc/courier/authmodulelist only have: authuserdb
After that I have the attched script to run Courier.
After I run it I have the following Courier processes.
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
courier 611 0.0 0.0 1296 424 ? S 08:57 0:00
/usr/local/courier/sbin/courierfilter start
courier 613 0.0 0.0 1284 336 ? S 08:57 0:00 logger
courierfilter
root 618 0.0 0.1 2140 652 ? S 08:57 0:00
/usr/local/courier/libexec/courier/courierd
courier 619 0.0 0.3 3100 1864 ? S 08:57 0:00
/usr/local/courier/libexec/courier/courierd
uucp 621 0.0 0.0 1352 448 ? S 08:57 0:00 ./courieruucp
root 623 0.0 0.0 1320 400 ? S 08:57 0:00
./courierlocal
root 626 0.0 0.0 1332 388 ? S 08:57 0:00 ./courierfax
courier 629 0.0 0.1 1552 664 ? S 08:57 0:00
/usr/local/courier/sbin/couriertcpd -stderrlogger=/usr/local/courier/sbin/lo
gger
courier 630 0.0 0.0 1456 472 ? S 08:57 0:00
./courieresmtp
courier 631 0.0 0.0 1328 476 ? S 08:57 0:00 ./courierdsn
courier 633 0.0 0.0 1284 336 ? S 08:57 0:00
/usr/local/courier/sbin/logger courieresmtpd
root 644 0.0 0.1 1404 552 ? S 08:57 0:00
/usr/local/courier/sbin/couriertcpd -address=0 -stderrlogger=/usr/local/cour
ier
root 646 0.0 0.0 1284 336 ? S 08:57 0:00
/usr/local/courier/sbin/logger pop3d
root 656 0.0 0.1 1404 552 ? S 08:57 0:00
/usr/local/courier/sbin/couriertcpd -address=0 -stderrlogger=/usr/local/cour
ier
root 658 0.0 0.0 1284 336 ? S 08:57 0:00
/usr/local/courier/sbin/logger pop3d-ssl
I run the following command:
echo "To: [EMAIL PROTECTED]" | sendmail [EMAIL PROTECTED]
sendmail system point to /usr/local/courier/bin/sendmail
I get the following in my /var/log/mail:
May 23 09:21:32 rs0122 courieresmtpd: started,ip=[xxx.xxx.xxx.xxx]
May 23 09:21:32 rs0122 courierd: newmsg,id=0000A68C.3CEC987C.00000347
May 23 09:21:32 rs0122 courierd:
started,id=0000A68C.3CEC987C.00000347,from=<[EMAIL PROTECTED]>,module=l
ocal,[EMAIL PROTECTED]!!1002!7001!/var/courier/virtual/domainy.com/admi
n!/var/courier/virtual/domainy.com/!,addr=<[EMAIL PROTECTED]>
May 23 09:21:32 rs0122 courierd: Waiting. shutdown time=none, wakeup
time=Thu May 23 09:38:43 2002, queuedelivering=13, inprogress=1
May 23 09:21:32 rs0122 courierlocal:
id=0000A68C.3CEC987C.00000347,from=<[EMAIL PROTECTED]>,addr=<admin@doma
iny.com>: maildir.open: No such file or directory
May 23 09:21:32 rs0122 courierlocal:
id=0000A68C.3CEC987C.00000347,from=<[EMAIL PROTECTED]>,addr=<admin@doma
iny.com>,status: deferred
May 23 09:21:32 rs0122 courierd: completed,id=0000A68C.3CEC987C.00000347
May 23 09:21:32 rs0122 courierd: Waiting. shutdown time=Thu May 23 10:19:08
2002, wakeup time=Thu May 23 09:26:32 2002, queuedelivering=13, inprogress=0
De /var/courier/virtual have the following structure:
drwxr-xr-x 3 courier courier 56 May 22 13:25 domainx.com
drwx------ 5 courier courier 92 May 22 13:25 admin
drwx------ 2 courier courier 35 May 22 13:25 cur
drwx------ 2 courier courier 35 May 22 13:25 new
drwx------ 2 courier courier 35 May 22 13:25 tmp
drwx------ 5 courier courier 92 May 22 13:25 .
drwxr-xr-x 3 courier courier 56 May 22 13:25 ..
drwxr-xr-x 3 courier courier 56 May 22 13:25 .
drwxr-xr-x 4 courier courier 94 May 22 13:24 ..
drwxr-xr-x 3 courier courier 56 May 22 13:25 domainy.com
drwx------ 5 courier courier 92 May 23 07:55 admin
drwx------ 2 courier courier 35 May 22 13:25 cur
drwx------ 2 courier courier 35 May 22 13:25 new
drwx------ 2 courier courier 35 May 22 13:25 tmp
drwx------ 5 courier courier 92 May 23 07:55 .
drwxr-xr-x 3 courier courier 56 May 22 13:25 ..
drwxr-xr-x 3 courier courier 56 May 22 13:25 .
drwxr-xr-x 4 courier courier 94 May 22 13:24 ..
drwxr-xr-x 4 courier courier 94 May 22 13:24 .
drwxr-xr-x 11 bin bin 246 May 22 13:21 ..
Please help me. Aso you can see from the /var/log/mail he ca not open a
directory but do not say what directory.
What I want is a server that can handle virtual users on multiple domains.
Best regards,
Emanuel Dejanu
_______________________________________________________________
Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm
_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users