Hi.
We have decided that only local users should be
allowed to send e-mails to local mailing lists, i.e.,
non-local users must not send e-mails to mailing
lists. In simpler words: users that are not allowed to
relay must not be allowed to send e-mails to local
mailing lists.
As all mailing lists must be open (ClosedML=0), we
have implemented a filter to block (based on the
source IP) those kind of e-mails.

In order to improve the process, we are now testing a
very simple patch to SMTPSrv.cpp (v 1.21) which denies
access to mailing lists during the SMTP session. I
would appreciate very much any considerations you may
have about this idea and the patch, which follows this
message. 

Thanks in advance.
Regards.

--- SMTPSvr.cpp 2005-12-14 10:05:07.718125752 -0200
+++ SMTPSvr.new.cpp     2005-12-14 10:04:48.557038680
-0200
@@ -1638,10 +1638,11 @@

///////////////////////////////////////////////////////////////////////////////
 //  Check if client can post to this mailing list

///////////////////////////////////////////////////////////////////////////////
-                                       if (UsrMLCheckUserPost(pUI, 
SMTPS.pszFrom,
+                                       if ((SMTPCheckRelayCapability(SMTPS,
szDestDomain) < 0)
+                                       || (UsrMLCheckUserPost(pUI, 
SMTPS.pszFrom,
                                                               
IsEmptyString(SMTPS.
                                                                             
szLogonUser) ? NULL :
-                                                              
SMTPS.szLogonUser) < 0) {
+                                                              
SMTPS.szLogonUser) < 0)) {
                                                ErrorPush();
                                                UsrFreeUserInfo(pUI);







        



        
                
_______________________________________________________ 
Yahoo! doce lar. Faça do Yahoo! sua homepage. 
http://br.yahoo.com/homepageset.html 

-
To unsubscribe from this list: send the line "unsubscribe xmail" in
the body of a message to [EMAIL PROTECTED]
For general help: send the line "help" in the body of a message to
[EMAIL PROTECTED]

Reply via email to