Phillip Hutchings [EMAIL PROTECTED] wrote: > On 12/03/2004, at 6:22 AM, KÃczÃn PÃter wrote: > > I've asked this question before, and got the answer that I shall use > > mailfilter for it, but afterwards I couldn't manage to get it work. > > > > So my problem was that I use courier, and people who have account to > > the server can send mail after authentication, which is not a > > problem. The problem is that they - after auth - can send mail from > > any address, even if it is not hosted on my server. So I need to > > specify email address(es) for each email account on the server. > > You are using SMTP. It's a problem with the protocol, not the server. > It would be possible to check using a courierfilter that the From: > header was from your server, if the top Received: header has the AUTH > keyword.
Generally enforcing the "From:" header to be within a hosted domain doesn't make much sense. The "From:" header only contains the sender's address if there's no "Sender:" header. Generally, checking the *envelope sender* (from the message control file) is a better idea. ------------------------------------------------------- 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_id70&alloc_id638&op=click _______________________________________________ courier-users mailing list [EMAIL PROTECTED] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
