On Tuesday 20 April 2004 08:59, M.I. Jongepier wrote:
I want that from address 145.x.x.10 courier esmtp accepts all mail without
authentication
AND that courier esmtp also accept mail from "the world" (any ip) with
authentication.
How do I do that?
By default courier allows relaying if a client authenticates. If you have
built rpms then you'll need to install the courier-smtpauth rpm.
Courier will relay for ip address (and ranges) found in
the /etc/courier/smtpaccess files. But I don't think you can do what you are
proposing. You can have 145.x.x.x but you can't have 145.x.x.10. You'll
either have to open up the whole range or go through and put in exactly which
machines you want to get on without authenticating - 145.12.12.10,
145.123.22.10, etc.
I changed in /etc/courier/esmtpd AUTH_REQYUIRED to '1' but now courier wants
also my 145.x.x.10 adress authenticated
Don't set that. It does just what it says. It REQUIRES authentication for
ALL mail that courier receives regardless of destination. In that case
people sending mail to your users would also have to authenticate.