John
John, thank you for your information....
John Peacock wrote:
Hans Sandsdalen wrote:
When I use aut_flat_file I am able to send mail if I don't supply a username(?) If I do, I have to give a password as well.
That is by design. If you are sending from an IP address which is in relayclients, you don't /need/ to authenticate at all, but if you send a username, you will also have to send a password (because auth_flat_file returns DENY if the username exists and the password is wrong).
I want: - all USERS to authenticate
All users outside of your relayclients IP space will need to authenticate before they can relay. HINT, if you want _all_ users, to authenticate, even internal, simply remove the internal addresses from relayclients.
- to receive mail from external mailservers.
That's a completely different issue. The use of authentication is only to get around relaying to external domains; you should always be able to receive messages to any domain you are authoritative for (e.g. rcpthosts in qmail-speak).
[later]
What about allowing authenticated clients to relay, in addtion to those already in relayclients?
That's already part of the scheme; if any auth plugin returns OK, then relay_client is set in the core and that session can relay.
HTH
John
-- /--------------------------------- / Hans Sandsdalen - System Manager / http://www.spacetec.no / http://www.sandsdalen.net /---------------------------------
