Dear Developers,
I'm new to courier. I installed the newest version from source and managed
to start its esmtpd: it runs and communicates with authdaemon. I configured
authlib as well by using the userdb authentication method. However, I'm not
really sure if my userdb file is correct. I found some information in the
internet about creating a proper userdb file, but for some reason the
incoming emails are not delivered.
Here is the log:
Sep 28 13:54:19 server courieresmtpd: started,ip=[::ffff:209.85.216.172]
Sep 28 13:54:19 server courieresmtpd: EHLO mail-qy0-f172.google.com
Sep 28 13:54:19 server courieresmtpd: MAIL FROM:<kov...@gmail.com>
Sep 28 13:54:19 server courieresmtpd: RCPT TO:<
in...@server2.webfield-design.hu>
Sep 28 13:54:19 server authdaemond: received userid lookup request: info2
Sep 28 13:54:19 server authdaemond: authuserdb: trying this module
Sep 28 13:54:19 server authdaemond: userdb: opened
/usr/local/etc/authlib/userdb.dat
Sep 28 13:54:19 server authdaemond: userdb: looking up 'info2'
Sep 28 13:54:19 server authdaemond: userdb: home=/tmp/info2, uid=1, gid=1,
shell=<unset>, mail=in...@server2.webfield-design.hu, quota=<unset>,
gecos=<unset>, options=<unset>
Sep 28 13:54:19 server authdaemond: found systempw in userdbshadow
Sep 28 13:54:19 server authdaemond: authuserdb: sysusername=<null>,
sysuserid=1, sysgroupid=1, homedir=/tmp/info2, address=info2,
fullname=<null>, maildir=in...@server2.webfield-design.hu, quota=<null>,
options=<null>
Sep 28 13:54:19 server authdaemond: authuserdb: clearpasswd=<null>,
passwd=J8rkM5hKUZsq.
Sep 28 13:54:19 server authdaemond: Authenticated: sysusername=<null>,
sysuserid=1, sysgroupid=1, homedir=/tmp/info2, address=info2,
fullname=<null>, maildir=in...@server2.webfield-design.hu, quota=<null>,
options=<null>
Sep 28 13:54:19 server authdaemond: Authenticated: clearpasswd=<null>,
passwd=J8rkM5hKUZsq.
Sep 28 13:54:19 server courieresmtpd: DATA
The /tmp/info2 directory exists with the following layout:
server:~# find /tmp/info2 | xargs ls -l
/tmp/info2:
total 4
drwxrwxrwx 5 daemon daemon 4096 Sep 28 12:12 Maildir
/tmp/info2/Maildir:
total 12
drwxrwxrwx 2 daemon daemon 4096 Sep 28 12:12 cur
drwxrwxrwx 2 daemon daemon 4096 Sep 28 12:12 new
drwxrwxrwx 2 daemon daemon 4096 Sep 28 12:12 tmp
/tmp/info2/Maildir/cur:
total 0
/tmp/info2/Maildir/new:
total 0
/tmp/info2/Maildir/tmp:
total 0
Here is my userdb file:
server:/usr/local/etc/authlib# cat userdb
info2 systempw=J8rkM5hKUZsq.|mail=in...@server2.webfield-design.hu
|uid=1|gid=1|home=/tmp/info2
in...@server2.webfield-design.hu
systempw=J8rkM5hKUZsq.|mail=/tmp/info2|uid=1|gid=1|home=/tmp/info2
As you can see, 2 different rows are defined for the info2 user. For me it
seems that only the first one is used ("info2", not "in...@server2..."). I
put the second row for in...@server... as well into this file because many
examples used such kind of syntax. However, I'm not sure how the system
finds out that what domain is for the info2 user. At last, the mail is still
not delivered to the info2 user.
If I remove the info2 entry (but in...@server2... is still there) I got a
550 User <info2> unknown error:
Sep 28 13:49:41 server authdaemond: received userid lookup request: info2
Sep 28 13:49:41 server authdaemond: authuserdb: trying this module
Sep 28 13:49:41 server authdaemond: userdb: looking up 'info2'
Sep 28 13:49:41 server authdaemond: userdb: entry not found
Sep 28 13:49:41 server authdaemond: authuserdb: REJECT - try next module
Sep 28 13:49:41 server authdaemond: FAIL, all modules rejected
Sep 28 13:49:49 server courieresmtpd:
error,relay=::ffff:209.85.216.51,from=<kov...@gmail.com>,to=<
in...@server2.webfield-design.hu>: 550 User <info2> unknown
My biggest problem is that I cannot force the esmtpd process to give more
verbose logging. So I am unable figure out what happens here.
I thought there may be some privilege problems in moving the emails into the
Maildir directory, but I think it is not a problem because I added as much
permissions as possible. Courier's /var/tmp/* directories are full of C* and
D* files which are to be delivered, but they are not moving to anywhere.
Any help is greatly appreciated!
Thank you in advance,
Zoltan
------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
courier-users mailing list
courier-users@lists.sourceforge.net
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users