You need a slightly different approach.

SMTP to port 25 is 'meant' for all deliveries to your local addresses
(domains hosted with you).
>From any machine on the internet acting as an smtp-client to your server.
all this to your local addresses doesn't need auth - because there are so
many thousands of machines out there and you want all of them to email
you...

even if it happens to come _from_ one of your addresses...
... no auth. because _all_ can send email to your addresses (I'm trying
currently ;-)

best solution is for your users to send the outgoing mail to
esmtp-msa (port 587)   or
esmtp-ssl (port 465)  - by default at least

there you require auth:
AUTH_REQUIRED=1

hope it helps...

Frank

PS: yesterday i struggled with a fairly fresh install to get a virtual
domain in $(sysconf)/aliases/* work...
it took too long to get the idea to create a .courier-default in the
recipient's home....
It's kind-of implied, but an additional sentence under Virtual domains would
help saying something like
you have to accept all these emails with a .courier-default file or
individual others... ?

Finally: Lots of thanks to Sam for courier!!!


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Lorenzo
Perone
Sent: Thursday, March 11, 2004 4:12 AM
To: [EMAIL PROTECTED]
Subject: [courier-users] How to force SMTP AUTH only for MAIL FROM
addresses of hosted domains?


Hello to the list,

I'm sorry if I'm popping in like that, but I've really read almost
anything I could find, yes, also the INSTALL file and the whole
website...
but I just don't understand what I am doing wrong.

Short scenario description:

Running Courier 0.44.0 on FreeBSD 4.8
using MySQL auth, multiple domains, Imap, Webmail, Quota, Calendar,
Maildir, maildropfilters.

(almost) everything works :).


Short Situation description:

When I telnet to the server, port 25, the following happens.

HELO something
MAIL FROM: <[EMAIL PROTECTED]>
250 OK.
RCPT TO: ....

-- or --

EHLO something
250-(mailserver name) Ok.
250-AUTH LOGIN CRAM-MD5
250-AUTH=LOGIN CRAM-MD5 X-NETSCAPE-HAS-BUGS
250-XVERP=Courier
250-XEXDATA
250-XSECURITY=NONE,STARTTLS
250-PIPELINING
250-8BITMIME
250-SIZE
250 DSN
MAIL FROM: <[EMAIL PROTECTED]>
250 Ok.

This means: it works - but it _shouldn't!_

Instead, I would prefer and I wished that if a <MAIL FROM> is within the
hosted domains, the server said
535 Authentication required.

Note: Relaying-protection works: if the user is not authenticated, and
tries to send a mail outside of the domains hosted, it gets a Relaying
Denied. Also, clients which use the EHLO command can authenticate
without
problems (but still, they are not forced to do this).

I tried different things to achieve it (without success)..:
- updating/checking hosteddomains and acceptmailfor files
- compiling a "locals" file, and activating AUTH_REQUIRED="1" in esmtpd
   (doesnt work: everybody, also external addresses mailing to hosted
   addresses, are required to authenticate - cant do that).
- praying
- reading a lot of docs
- swearing a bit
- crying

Summary: i want smtp authentication to be forced when the client
claims a <MAIL FROM> address that is hosted by the system.

I'm _not_ speaking about the "From: " header in the mail, which
is another issue, for which I have written a maildrop-xfilter.
I'm meaning the actual, claimed return path which gets posted
during the initial SMTP transaction (not in DATA)...

Is there anyone that can help me, who got it working...?

Thanx a lot for Attention
Regards to the Developers.

Lorenzo



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.614 / Virus Database: 393 - Release Date: 3/5/2004

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.614 / Virus Database: 393 - Release Date: 3/5/2004




-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to