Jeff Jansen wrote:

On Saturday 11 October 2003 19:06, Mark Mays wrote:


I am not using a locals file at all. All mail users are virtual, through
userdb.



If you don't have a locals file then courier uses the contents of the "me" file (in the etc directory) as the local domain. If you don't have a me file then it will use the fully qualified hostname of that machine.


What is in your me file (or what is your hostname)? How are users stored? Is the account name in the userdb file "user" or "[EMAIL PROTECTED]"? If the account name is "user" then that's how you log in with mozilla. If the account name is "[EMAIL PROTECTED]" then that's how you log in. In that case you need "domain.com" in the hosteddomains file.


I don't have a "me" file or a locals file. The hostname resolves to "mail.domain.com."


All mail users are in userdb and userdb.dat using uid, gid, mail, home, and systempw. Owner of all files is courier.

format is: [EMAIL PROTECTED] uid=500|systempw=...|home=...|mail=...|gid=...

Do you have IMAP or POP3 working? The smtp authentication login would be exactly that same as that. If that's not working either then you probably have a bigger problem.



IMAP is working fine for receiving mail. I have not tested POP.


I set up an IMAP account in Mozilla Mail with userid [EMAIL PROTECTED], and the password, and it works fine. There are a number of users on this system now, and all have logged in and used the mail for inbound without problems.

Since IMAP is working, authentication must be available, at least to courier-imap, using authuserdb.

smtpaccess.dat allows local machines (192.168...) to send mail without authentication. This file is owned by courier. External IP addresses are denied in smtpaccess. My understanding is that this forces authentication for external IP's. In fact, it is requesting authentication for IP's outside the 192.168 network., it just is not accepting the userid and password.

As a test, I went into smtpaccess and turned off relay for the local network. It immediately challenged me for a userid and password, which I was not able to get to work. It responds with a 535 authentication rejection in the log, with no configuration exceptions reported, such as module not found, etc..

I use mozilla and it does smtp authentication fine. Are you sure you've got mozilla set up properly? You enable smtpauth in the settings for the SMTP server.


I've tried it on several machines with several combinations of userid and password. I've reset the password to ensure that it is good, and reestablished a new imap client to ensure that I got the address correctly.

The only IMAP client I have access to is Mozilla Mail.

With the inbound servername set to mail.domain.com, and the userid set to [EMAIL PROTECTED], IMAP logs in and works fine. I assumed that you would set up the smtp server as mail.domain.com, and the userid as [EMAIL PROTECTED] Apparently, Mozilla attempts to login to the smtpserver using "[EMAIL PROTECTED]@mail.domain.com", which seems obtuse, but I've worked with ISP's where this was how it was done. I haven't found any courier info specifically on this subject.



I installed from the tar file, but wondered if smtp-auth is a separate
patch, or if I missed something in the configuration of the install. Is
there a way to tell if the smtp-auth module is missing, either in the
binaries or in an install log?



Look for


/usr/lib/courier/libexec/courier/modules/esmtp/authend
/usr/lib/courier/libexec/courier/modules/esmtp/authstart

They're the files installed by the smtpauth rpm. I would assume that a build from source would install them unless you intentionally messed with the makefile.



# ls /usr/lib/courier/libexec/courier/modules/esmtp/ -lh total 1.5M -r-xr-x--- 1 courier courier 25K Jul 31 02:23 addcr -r-xr-xr-x 1 courier courier 49K Jul 31 02:23 authend -r-sr-x--- 1 courier courier 185K Jul 31 02:23 authstart -r-xr-x--- 1 courier courier 906K Jul 31 02:23 courieresmtp -r-xr-x--- 1 courier courier 328K Jul 31 02:23 courieresmtpd

They are there. Could the permissions be wrong? I have not changed them from the original install, to my knowledge.

Can courieresmtp be set to give up more information with a debug option, the way courier-IMAP produces detailed logging??

Jeff Jansen




Thanks for your help so far. I appreciate it.



Mark M.






-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to