5 messages in net.sourceforge.lists.courier-usersRe: [courier-users] cant send mail - ...
FromSent OnAttachments
miri...@wanadoo.esSep 28, 2005 9:43 am 
Gordon MessmerSep 28, 2005 3:24 pm 
Sam VarshavchikSep 28, 2005 3:31 pm 
miri...@wanadoo.esSep 29, 2005 2:59 am 
miri...@wanadoo.esSep 29, 2005 11:41 pm 
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] cant send mail - domain errorActions...
From:Gordon Messmer (yiny@eburg.com)
Date:Sep 28, 2005 3:24:16 pm
List:net.sourceforge.lists.courier-users

miri@wanadoo.es wrote:

First, I'm newby with Courier server and also I don't have a strong knowledge of Linux in general, so apologize if my questions are a little bit trivial.

I'll give you some pointers with that in mind.

-First, how should I create the user accounts? I mean what I've done so far is create a new user/group through System Settings/Users and Groups. This user/group is tester.

That's fine. To start out, it's probably simplest to use system users (as you've done) and get acquainted with the normal Unix user management tools.

With this I have the folder in $HOME/tester

Pointer: $HOME is a variable set when you log in, which points at your home directory. "$HOME" is not the same thing as /home (that is, it usually has a value other than "/home").

If you log in as "tester" and 'echo $HOME', it should print "/home/tester"

-Second, I log on as tester (su tester) and I used maildirmake $HOME/maildir to create the maildir test in $HOME/tester.

Unix systems are case sensitive, so you'll probably want to log in as tester and 'mv maildir Maildir' to rename the maildir.

After I use follow these steps:

mkdir /usr/local/etc/authlib/userdb

...

Since you're using system users, you don't need the userdb. Remove that to avoid confusion.

Third, I create /usr/lib/courier/etc/locals file and I add the following: mydomain.es localhost prueba

Courier won't accept mail for domains that don't resolve in DNS, so "localhost" and "prueba" aren't going to be valid. Regardless of whether or not they're in the "locals" file, Courier won't accept mail for them.

and then, I run makealiases. I also add mydomain.es to my dns file

What do you mean by your "dns file"? /etc/hosts is not sufficient, if that's what you're referring to. The domain you're using needs to be set up *properly* in DNS.

If you need to, for testing purposes, install named on the virtual host and configure the domain there. Then add 127.0.0.1 to /etc/resolv.conf (or use the network config tool to add it).

Sep 28 05:56:02 prueba courieresmtpd: error, relay=::ffff:x.y.z.w,from=<tes@mydomain.es>: 517 Domain does not exixts: mydomain.es

Set up the domain in DNS.