6 messages in net.sourceforge.lists.courier-usersRe: [courier-users] seting up user ac...
FromSent OnAttachments
Anders WidmanOct 6, 2002 12:34 pm 
Anders WidmanOct 6, 2002 3:00 pm 
Zenon PanoussisOct 6, 2002 4:35 pm 
Anders WidmanOct 6, 2002 10:31 pm 
Zenon PanoussisOct 7, 2002 1:01 am 
Anders WidmanOct 7, 2002 5:23 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: [courier-users] seting up user accounts and virtual domains....Actions...
From:Anders Widman (ande@tnonline.net)
Date:Oct 7, 2002 5:23:43 am
List:net.sourceforge.lists.courier-users

Anders Widman wrote:

am stuck at creating user accounts and virtual domains. I have got the webadmin CFI working, and added the virtual domains to "Locally hosted domains".

Check whether these domains appear in /etc/courier/locals . If they do, you need system accounts for the users of those domains. Virtual domains whose users do not have system accounts should only appear in hosteddomains and esmtpacceptmailfor.

Courier installed per default in /usr/lib/courier for me.. and the ./etc/hosteddomains and ./etc/esmtpacceptmailfor folders contain one file each with only the hosted domains listed in it.

That doesn't answer the question whether your virtual domains are in /etc/courier/locals .

But what exactly should I do with the users? Should they have normal system (unix/linux) accounts or not? In both cases, how do I create a user for a specific domain?

I don't think you want system accounts. If you have that, then the user name will take precedence over the domain name and all mail to anders@dom1, anders@dom2, anders@dom3 will be delivered to the system user anders, no matter what you do. If you want the domains to be really virtual, get them out of locals, keep them in hosteddomains and esmtpacceptmailfor, run makehosteddomains, put them in aliases, run makealiases and make sure you have the proper .courier files in the proper places.

Alternatively you might opt for the userdb way of doing things; man userdb.

Yes, I followed the usedb hint and I think I got it to work. I can now login via pop3 and check mail. But now my problem is that I cannot send mail. I get "450 Service temporarily unavailable" when trying to send mail via SMTP service. Also the webmail CGI accepts the username and password for each virtual domain I configured a user, but then I get a "Internal server error" from Apache.

I started courier like this:

./sbin/courier start ./sbin/esmptd start ./sbin/pop3d start ./libexec/authlib/authdaemond start

This is the entire maillog after this:

Oct 7 14:20:15 www courierd: Loading STATIC transport module libraries. Oct 7 14:20:15 www courierd: Courier 0.39.3 Copyright 1999-2002 Double
Precision, Inc. Oct 7 14:20:15 www courierd: Installing [0/0] Oct 7 14:20:15 www courierd: Installing uucp Oct 7 14:20:15 www courierd: Installed: module.uucp - Courier 0.39.3 Copyright
1999-2002 Double Precision, Inc. Oct 7 14:20:15 www courierd: Installing local Oct 7 14:20:15 www courierd: Installed: module.local - Courier 0.39.3 Copyright
1999-2002 Double Precision, Inc. Oct 7 14:20:15 www courierd: Installing fax Oct 7 14:20:15 www courierd: Installed: module.fax - Courier 0.39.3 Copyright
1999-2002 Double Precision, Inc. Oct 7 14:20:15 www courierd: Installing esmtp Oct 7 14:20:15 www courierd: Installed: module.esmtp - Courier 0.39.3 Copyright
1999-2002 Double Precision, Inc. Oct 7 14:20:15 www courierd: Installing dsn Oct 7 14:20:15 www courierd: Installed: module.dsn - Courier 0.39.3 Copyright
1999-2002 Double Precision, Inc. Oct 7 14:20:15 www courierd: Initializing uucp Oct 7 14:20:15 www courierd: Initializing local Oct 7 14:20:15 www courierd: Initializing fax Oct 7 14:20:15 www courierd: Initializing esmtp Oct 7 14:20:15 www courierd: Initializing dsn Oct 7 14:20:15 www courierd: Started ./courieruucp, pid=10639, maxdels=4,
maxhost=4, maxrcpt=16 Oct 7 14:20:15 www courierd: Started ./courierlocal, pid=10640, maxdels=10,
maxhost=4, maxrcpt=1 Oct 7 14:20:15 www courierd: Started ./courierfax, pid=10641, maxdels=1,
maxhost=1, maxrcpt=1 Oct 7 14:20:15 www courierd: Started ./courieresmtp, pid=10642, maxdels=40,
maxhost=4, maxrcpt=100 Oct 7 14:20:15 www courierd: Started ./courierdsn, pid=10643, maxdels=4,
maxhost=1, maxrcpt=1 Oct 7 14:20:15 www courierd: queuelo=200, queuehi=400 Oct 7 14:20:15 www courierd: Purging /usr/lib/courier/var/msgq Oct 7 14:20:15 www courierd: Purging /usr/lib/courier/var/msgs Oct 7 14:20:15 www courierd: Waiting. shutdown time=Mon Oct 7 15:20:15 2002,
wakeup time=Mon Oct 7 15:20:15 2002, queuedelivering=0, inprogress=0

Now I tried to connect to read and send mail:

Oct 7 14:21:17 www pop3d: Connection, ip=[::ffff:192.168.0.98] Oct 7 14:21:21 www courieresmtpd: started,ip=[::ffff:192.168.0.98] Oct 7 14:21:21 www submit: authdaemon: s_connect() failed: Connection refused Oct 7 14:21:21 www courieresmtpd:
error,relay=::ffff:192.168.0.98,ident=Gatak,from=<ande@tnonline.net>,to=<ande@tnonline.net>:
450 Service temporarily unavailable. Oct 7 14:21:22 www pop3d: LOGIN FAILED, ip=[::ffff:192.168.0.98] Oct 7 14:22:06 www courieresmtpd: started,ip=[::ffff:192.168.0.98] Oct 7 14:22:06 www courieresmtpd:
error,relay=::ffff:192.168.0.98,ident=Gatak,from=<ande@tnonline.net>,to=<ande@tnonline.net>:
450 Service temporarily unavailable.

What is the problem?

Also, where does the "ident=Gatak" come from? Is the esmtp server trying to connect to the clients ident servers? (Not all has these running)

I had this very same problem less than a week ago. Check the list archive and you'll find the solution.

Lycka till.

=) Tack!

Z

- Anders