Compare commits
11 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| e66a56154d | |||
| 670e97cb79 | |||
| 6397b7027f | |||
| 94ce032559 | |||
| 91230381cb | |||
| 46ed3ddbcb | |||
| 6048fe6e8c | |||
| d225384829 | |||
| a84f6aa574 | |||
| 344e8f0a0a | |||
| 1fa4b72c84 |
@@ -1,8 +1,8 @@
|
|||||||
GNU GENERAL PUBLIC LICENSE
|
GNU GENERAL PUBLIC LICENSE
|
||||||
Version 2, June 1991
|
Version 2, June 1991
|
||||||
|
|
||||||
Copyright (C) 1989, 1991 Free Software Foundation, Inc.
|
Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
|
||||||
59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
Everyone is permitted to copy and distribute verbatim copies
|
Everyone is permitted to copy and distribute verbatim copies
|
||||||
of this license document, but changing it is not allowed.
|
of this license document, but changing it is not allowed.
|
||||||
|
|
||||||
@@ -15,7 +15,7 @@ software--to make sure the software is free for all its users. This
|
|||||||
General Public License applies to most of the Free Software
|
General Public License applies to most of the Free Software
|
||||||
Foundation's software and to any other program whose authors commit to
|
Foundation's software and to any other program whose authors commit to
|
||||||
using it. (Some other Free Software Foundation software is covered by
|
using it. (Some other Free Software Foundation software is covered by
|
||||||
the GNU Library General Public License instead.) You can apply it to
|
the GNU Lesser General Public License instead.) You can apply it to
|
||||||
your programs, too.
|
your programs, too.
|
||||||
|
|
||||||
When we speak of free software, we are referring to freedom, not
|
When we speak of free software, we are referring to freedom, not
|
||||||
@@ -55,7 +55,7 @@ patent must be licensed for everyone's free use or not licensed at all.
|
|||||||
|
|
||||||
The precise terms and conditions for copying, distribution and
|
The precise terms and conditions for copying, distribution and
|
||||||
modification follow.
|
modification follow.
|
||||||
|
|
||||||
GNU GENERAL PUBLIC LICENSE
|
GNU GENERAL PUBLIC LICENSE
|
||||||
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
||||||
|
|
||||||
@@ -110,7 +110,7 @@ above, provided that you also meet all of these conditions:
|
|||||||
License. (Exception: if the Program itself is interactive but
|
License. (Exception: if the Program itself is interactive but
|
||||||
does not normally print such an announcement, your work based on
|
does not normally print such an announcement, your work based on
|
||||||
the Program is not required to print an announcement.)
|
the Program is not required to print an announcement.)
|
||||||
|
|
||||||
These requirements apply to the modified work as a whole. If
|
These requirements apply to the modified work as a whole. If
|
||||||
identifiable sections of that work are not derived from the Program,
|
identifiable sections of that work are not derived from the Program,
|
||||||
and can be reasonably considered independent and separate works in
|
and can be reasonably considered independent and separate works in
|
||||||
@@ -168,7 +168,7 @@ access to copy from a designated place, then offering equivalent
|
|||||||
access to copy the source code from the same place counts as
|
access to copy the source code from the same place counts as
|
||||||
distribution of the source code, even though third parties are not
|
distribution of the source code, even though third parties are not
|
||||||
compelled to copy the source along with the object code.
|
compelled to copy the source along with the object code.
|
||||||
|
|
||||||
4. You may not copy, modify, sublicense, or distribute the Program
|
4. You may not copy, modify, sublicense, or distribute the Program
|
||||||
except as expressly provided under this License. Any attempt
|
except as expressly provided under this License. Any attempt
|
||||||
otherwise to copy, modify, sublicense or distribute the Program is
|
otherwise to copy, modify, sublicense or distribute the Program is
|
||||||
@@ -225,7 +225,7 @@ impose that choice.
|
|||||||
|
|
||||||
This section is intended to make thoroughly clear what is believed to
|
This section is intended to make thoroughly clear what is believed to
|
||||||
be a consequence of the rest of this License.
|
be a consequence of the rest of this License.
|
||||||
|
|
||||||
8. If the distribution and/or use of the Program is restricted in
|
8. If the distribution and/or use of the Program is restricted in
|
||||||
certain countries either by patents or by copyrighted interfaces, the
|
certain countries either by patents or by copyrighted interfaces, the
|
||||||
original copyright holder who places the Program under this License
|
original copyright holder who places the Program under this License
|
||||||
@@ -278,7 +278,7 @@ PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
|
|||||||
POSSIBILITY OF SUCH DAMAGES.
|
POSSIBILITY OF SUCH DAMAGES.
|
||||||
|
|
||||||
END OF TERMS AND CONDITIONS
|
END OF TERMS AND CONDITIONS
|
||||||
|
|
||||||
How to Apply These Terms to Your New Programs
|
How to Apply These Terms to Your New Programs
|
||||||
|
|
||||||
If you develop a new program, and you want it to be of the greatest
|
If you develop a new program, and you want it to be of the greatest
|
||||||
@@ -303,10 +303,9 @@ the "copyright" line and a pointer to where the full notice is found.
|
|||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
GNU General Public License for more details.
|
GNU General Public License for more details.
|
||||||
|
|
||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License along
|
||||||
along with this program; if not, write to the Free Software
|
with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
|
|
||||||
|
|
||||||
Also add information on how to contact you by electronic and paper mail.
|
Also add information on how to contact you by electronic and paper mail.
|
||||||
|
|
||||||
@@ -336,5 +335,5 @@ necessary. Here is a sample; alter the names:
|
|||||||
This General Public License does not permit incorporating your program into
|
This General Public License does not permit incorporating your program into
|
||||||
proprietary programs. If your program is a subroutine library, you may
|
proprietary programs. If your program is a subroutine library, you may
|
||||||
consider it more useful to permit linking proprietary applications with the
|
consider it more useful to permit linking proprietary applications with the
|
||||||
library. If this is what you want to do, use the GNU Library General
|
library. If this is what you want to do, use the GNU Lesser General
|
||||||
Public License instead of this License.
|
Public License instead of this License.
|
||||||
|
|||||||
@@ -7,6 +7,8 @@ real, usable Python extension.
|
|||||||
|
|
||||||
Other contributors (in random order):
|
Other contributors (in random order):
|
||||||
|
|
||||||
|
Dwayne Litzenberger, B.A.Sc.
|
||||||
|
for library_dirs patch to compile on Debian
|
||||||
Dave MacQuigg
|
Dave MacQuigg
|
||||||
for noticing that smfi_insheader wasn't supported, and creating
|
for noticing that smfi_insheader wasn't supported, and creating
|
||||||
a template to help first time pymilter users create their own milter.
|
a template to help first time pymilter users create their own milter.
|
||||||
|
|||||||
+14
-7
@@ -10,6 +10,9 @@
|
|||||||
# CBV results.
|
# CBV results.
|
||||||
#
|
#
|
||||||
# $Log$
|
# $Log$
|
||||||
|
# Revision 1.7 2007/01/25 22:47:26 customdesigned
|
||||||
|
# Persist blacklisting from delayed DSNs.
|
||||||
|
#
|
||||||
# Revision 1.6 2007/01/19 23:31:38 customdesigned
|
# Revision 1.6 2007/01/19 23:31:38 customdesigned
|
||||||
# Move parse_header to Milter.utils.
|
# Move parse_header to Milter.utils.
|
||||||
# Test case for delayed DSN parsing.
|
# Test case for delayed DSN parsing.
|
||||||
@@ -66,13 +69,17 @@ class AddrCache(object):
|
|||||||
for ln in fp:
|
for ln in fp:
|
||||||
try:
|
try:
|
||||||
rcpt,ts = ln.strip().split(None,1)
|
rcpt,ts = ln.strip().split(None,1)
|
||||||
l = time.strptime(ts,AddrCache.time_format)
|
try:
|
||||||
t = time.mktime(l)
|
l = time.strptime(ts,AddrCache.time_format)
|
||||||
if t < too_old:
|
t = time.mktime(l)
|
||||||
changed = True
|
if t < too_old:
|
||||||
continue
|
changed = True
|
||||||
cache[rcpt.lower()] = (t,None)
|
continue
|
||||||
except:
|
cache[rcpt.lower()] = (t,None)
|
||||||
|
except: # unparsable timestamp - likely garbage
|
||||||
|
changed = True
|
||||||
|
continue
|
||||||
|
except: # manual entry (no timestamp)
|
||||||
cache[ln.strip().lower()] = (now,None)
|
cache[ln.strip().lower()] = (now,None)
|
||||||
wfp.write(ln)
|
wfp.write(ln)
|
||||||
if changed:
|
if changed:
|
||||||
|
|||||||
@@ -0,0 +1,88 @@
|
|||||||
|
# provide a higher level interface to pydns
|
||||||
|
|
||||||
|
import DNS
|
||||||
|
from DNS import DNSError
|
||||||
|
|
||||||
|
MAX_CNAME = 10
|
||||||
|
|
||||||
|
def DNSLookup(name, qtype):
|
||||||
|
try:
|
||||||
|
req = DNS.DnsRequest(name, qtype=qtype)
|
||||||
|
resp = req.req()
|
||||||
|
#resp.show()
|
||||||
|
# key k: ('wayforward.net', 'A'), value v
|
||||||
|
# FIXME: pydns returns AAAA RR as 16 byte binary string, but
|
||||||
|
# A RR as dotted quad. For consistency, this driver should
|
||||||
|
# return both as binary string.
|
||||||
|
return [((a['name'], a['typename']), a['data']) for a in resp.answers]
|
||||||
|
except IOError, x:
|
||||||
|
raise DNSError, str(x)
|
||||||
|
|
||||||
|
class Session(object):
|
||||||
|
"""A Session object has a simple cache with no TTL that is valid
|
||||||
|
for a single "session", for example an SMTP conversation."""
|
||||||
|
def __init__(self):
|
||||||
|
self.cache = {}
|
||||||
|
|
||||||
|
# We have to be careful which additional DNS RRs we cache. For
|
||||||
|
# instance, PTR records are controlled by the connecting IP, and they
|
||||||
|
# could poison our local cache with bogus A and MX records.
|
||||||
|
|
||||||
|
SAFE2CACHE = {
|
||||||
|
('MX','A'): None,
|
||||||
|
('MX','MX'): None,
|
||||||
|
('CNAME','A'): None,
|
||||||
|
('CNAME','CNAME'): None,
|
||||||
|
('A','A'): None,
|
||||||
|
('AAAA','AAAA'): None,
|
||||||
|
('PTR','PTR'): None,
|
||||||
|
('TXT','TXT'): None,
|
||||||
|
('SPF','SPF'): None
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
def dns(self, name, qtype, cnames=None):
|
||||||
|
"""DNS query.
|
||||||
|
|
||||||
|
If the result is in cache, return that. Otherwise pull the
|
||||||
|
result from DNS, and cache ALL answers, so additional info
|
||||||
|
is available for further queries later.
|
||||||
|
|
||||||
|
CNAMEs are followed.
|
||||||
|
|
||||||
|
If there is no data, [] is returned.
|
||||||
|
|
||||||
|
pre: qtype in ['A', 'AAAA', 'MX', 'PTR', 'TXT', 'SPF']
|
||||||
|
post: isinstance(__return__, types.ListType)
|
||||||
|
"""
|
||||||
|
result = self.cache.get( (name, qtype) )
|
||||||
|
cname = None
|
||||||
|
|
||||||
|
if not result:
|
||||||
|
safe2cache = Session.SAFE2CACHE
|
||||||
|
for k, v in DNSLookup(name, qtype):
|
||||||
|
if k == (name, 'CNAME'):
|
||||||
|
cname = v
|
||||||
|
if (qtype,k[1]) in safe2cache:
|
||||||
|
self.cache.setdefault(k, []).append(v)
|
||||||
|
result = self.cache.get( (name, qtype), [])
|
||||||
|
if not result and cname:
|
||||||
|
if not cnames:
|
||||||
|
cnames = {}
|
||||||
|
elif len(cnames) >= MAX_CNAME:
|
||||||
|
#return result # if too many == NX_DOMAIN
|
||||||
|
raise DNSError('Length of CNAME chain exceeds %d' % MAX_CNAME)
|
||||||
|
cnames[name] = cname
|
||||||
|
if cname in cnames:
|
||||||
|
raise DNSError, 'CNAME loop'
|
||||||
|
result = self.dns(cname, qtype, cnames=cnames)
|
||||||
|
return result
|
||||||
|
|
||||||
|
DNS.DiscoverNameServers()
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
import sys
|
||||||
|
s = Session()
|
||||||
|
for n,t in zip(*[iter(sys.argv[1:])]*2):
|
||||||
|
print n,t
|
||||||
|
print s.dns(n,t)
|
||||||
+49
-24
@@ -5,6 +5,12 @@
|
|||||||
# Send DSNs, do call back verification,
|
# Send DSNs, do call back verification,
|
||||||
# and generate DSN messages from a template
|
# and generate DSN messages from a template
|
||||||
# $Log$
|
# $Log$
|
||||||
|
# Revision 1.15 2007/09/24 20:13:26 customdesigned
|
||||||
|
# Remove explicit spf dependency.
|
||||||
|
#
|
||||||
|
# Revision 1.14 2007/03/03 18:19:40 customdesigned
|
||||||
|
# Handle DNS error sending DSN.
|
||||||
|
#
|
||||||
# Revision 1.13 2007/01/04 18:01:11 customdesigned
|
# Revision 1.13 2007/01/04 18:01:11 customdesigned
|
||||||
# Do plain CBV when template missing.
|
# Do plain CBV when template missing.
|
||||||
#
|
#
|
||||||
@@ -19,22 +25,22 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
import smtplib
|
import smtplib
|
||||||
import spf
|
|
||||||
import socket
|
import socket
|
||||||
from email.Message import Message
|
from email.Message import Message
|
||||||
import Milter
|
import Milter
|
||||||
import time
|
import time
|
||||||
|
import dns
|
||||||
|
|
||||||
def send_dsn(mailfrom,receiver,msg=None,timeout=600):
|
def send_dsn(mailfrom,receiver,msg=None,timeout=600,session=None):
|
||||||
"""Send DSN. If msg is None, do callback verification.
|
"""Send DSN. If msg is None, do callback verification.
|
||||||
Mailfrom is original sender we are sending DSN or CBV to.
|
Mailfrom is original sender we are sending DSN or CBV to.
|
||||||
Receiver is the MTA sending the DSN.
|
Receiver is the MTA sending the DSN.
|
||||||
Return None for success or (code,msg) for failure."""
|
Return None for success or (code,msg) for failure."""
|
||||||
user,domain = mailfrom.split('@')
|
user,domain = mailfrom.split('@')
|
||||||
|
if not session: session = dns.Session()
|
||||||
try:
|
try:
|
||||||
q = spf.query(None,None,None)
|
mxlist = session.dns(domain,'MX')
|
||||||
mxlist = q.dns(domain,'MX')
|
except dns.DNSError:
|
||||||
except spf.TempError:
|
|
||||||
return (450,'DNS Timeout: %s MX'%domain) # temp error
|
return (450,'DNS Timeout: %s MX'%domain) # temp error
|
||||||
if not mxlist:
|
if not mxlist:
|
||||||
mxlist = (0,domain), # fallback to A record when no MX
|
mxlist = (0,domain), # fallback to A record when no MX
|
||||||
@@ -86,23 +92,41 @@ def send_dsn(mailfrom,receiver,msg=None,timeout=600):
|
|||||||
return (450,'No MX response within %f minutes'%(timeout/60.0))
|
return (450,'No MX response within %f minutes'%(timeout/60.0))
|
||||||
return (450,'No MX servers available') # temp error
|
return (450,'No MX servers available') # temp error
|
||||||
|
|
||||||
def create_msg(q,rcptlist,origmsg=None,template=None):
|
class Vars: pass
|
||||||
"Create a DSN message from a template. Template must be '\n' separated."
|
|
||||||
|
# NOTE: Caller can pass an object to create_msg that in a typical milter
|
||||||
|
# collects things like heloname or sender anyway.
|
||||||
|
def create_msg(v,rcptlist=None,origmsg=None,template=None):
|
||||||
|
"""Create a DSN message from a template. Template must be '\n' separated.
|
||||||
|
v - an object whose attributes are used for substitutions. Must
|
||||||
|
have sender and receiver attributes at a minimum.
|
||||||
|
rcptlist - used to set v.rcpt if given
|
||||||
|
origmsg - used to set v.subject and v.spf_result if given
|
||||||
|
template - a '\n' separated string with python '%(name)s' substitutions.
|
||||||
|
"""
|
||||||
if not template:
|
if not template:
|
||||||
return None
|
return None
|
||||||
heloname = q.h
|
if hasattr(v,'perm_error'):
|
||||||
sender = q.s
|
# likely to be an spf.query, try translating for backward compatibility
|
||||||
connectip = q.i
|
q = v
|
||||||
receiver = q.r
|
v = Vars()
|
||||||
sender_domain = q.o
|
try:
|
||||||
result = q.result
|
v.heloname = q.h
|
||||||
perm_error = q.perm_error
|
v.sender = q.s
|
||||||
rcpt = '\n\t'.join(rcptlist)
|
v.connectip = q.i
|
||||||
try: subject = origmsg['Subject']
|
v.receiver = q.r
|
||||||
except: subject = '(none)'
|
v.sender_domain = q.o
|
||||||
try:
|
v.result = q.result
|
||||||
spf_result = origmsg['Received-SPF']
|
v.perm_error = q.perm_error
|
||||||
except: spf_result = None
|
except: v = q
|
||||||
|
if rcptlist:
|
||||||
|
v.rcpt = '\n\t'.join(rcptlist)
|
||||||
|
if origmsg:
|
||||||
|
try: v.subject = origmsg['Subject']
|
||||||
|
except: v.subject = '(none)'
|
||||||
|
try:
|
||||||
|
v.spf_result = origmsg['Received-SPF']
|
||||||
|
except: v.spf_result = None
|
||||||
|
|
||||||
msg = Message()
|
msg = Message()
|
||||||
|
|
||||||
@@ -112,18 +136,19 @@ def create_msg(q,rcptlist,origmsg=None,template=None):
|
|||||||
hdrs,body = template.split('\n\n',1)
|
hdrs,body = template.split('\n\n',1)
|
||||||
for ln in hdrs.splitlines():
|
for ln in hdrs.splitlines():
|
||||||
name,val = ln.split(':',1)
|
name,val = ln.split(':',1)
|
||||||
msg.add_header(name,(val % locals()).strip())
|
msg.add_header(name,(val % v.__dict__).strip())
|
||||||
msg.set_payload(body % locals())
|
msg.set_payload(body % v.__dict__)
|
||||||
# add headers if missing from old template
|
# add headers if missing from old template
|
||||||
if 'to' not in msg:
|
if 'to' not in msg:
|
||||||
msg.add_header('To',sender)
|
msg.add_header('To',v.sender)
|
||||||
if 'from' not in msg:
|
if 'from' not in msg:
|
||||||
msg.add_header('From','postmaster@%s'%receiver)
|
msg.add_header('From','postmaster@%s'%v.receiver)
|
||||||
if 'auto-submitted' not in msg:
|
if 'auto-submitted' not in msg:
|
||||||
msg.add_header('Auto-Submitted','auto-generated')
|
msg.add_header('Auto-Submitted','auto-generated')
|
||||||
return msg
|
return msg
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
import spf
|
||||||
q = spf.query('192.168.9.50',
|
q = spf.query('192.168.9.50',
|
||||||
'SRS0=pmeHL=RH==stuart@example.com',
|
'SRS0=pmeHL=RH==stuart@example.com',
|
||||||
'red.example.com',receiver='mail.example.com')
|
'red.example.com',receiver='mail.example.com')
|
||||||
|
|||||||
@@ -1,4 +1,6 @@
|
|||||||
Don't match dynamic ptr in bestguess.
|
Convert DSN to REJECT unless sender gets SPF pass or best guess pass. Make
|
||||||
|
configurable by SPF result with NOTSPAM policy (reject or deliver without DSN).
|
||||||
|
Maybe policy should be NODSN - still verify sender with CBV.
|
||||||
|
|
||||||
When content filtering is not installed, reject BLACKLISTed MFROM
|
When content filtering is not installed, reject BLACKLISTed MFROM
|
||||||
immediately. There is no use waiting until EOM.
|
immediately. There is no use waiting until EOM.
|
||||||
@@ -224,3 +226,4 @@ data structure as autowhitelist.log.
|
|||||||
|
|
||||||
DONE Backup copies for outgoing/incoming mail.
|
DONE Backup copies for outgoing/incoming mail.
|
||||||
|
|
||||||
|
DONE Don't match dynamic ptr in bestguess.
|
||||||
|
|||||||
@@ -1,6 +1,12 @@
|
|||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
# A simple milter that has grown quite a bit.
|
# A simple milter that has grown quite a bit.
|
||||||
# $Log$
|
# $Log$
|
||||||
|
# Revision 1.112 2007/09/13 14:51:03 customdesigned
|
||||||
|
# Report domain on reputation reject.
|
||||||
|
#
|
||||||
|
# Revision 1.111 2007/07/25 17:14:59 customdesigned
|
||||||
|
# Move milter apps to /usr/lib/pymilter
|
||||||
|
#
|
||||||
# Revision 1.110 2007/07/02 03:06:10 customdesigned
|
# Revision 1.110 2007/07/02 03:06:10 customdesigned
|
||||||
# Ban ips on bad mailfrom offenses as well as bad rcpts.
|
# Ban ips on bad mailfrom offenses as well as bad rcpts.
|
||||||
#
|
#
|
||||||
@@ -277,6 +283,7 @@ milter_log = logging.getLogger('milter')
|
|||||||
def read_config(list):
|
def read_config(list):
|
||||||
cp = MilterConfigParser({
|
cp = MilterConfigParser({
|
||||||
'tempdir': "/var/log/milter/save",
|
'tempdir': "/var/log/milter/save",
|
||||||
|
'datadir': "/var/log/milter",
|
||||||
'socket': "/var/run/milter/pythonsock",
|
'socket': "/var/run/milter/pythonsock",
|
||||||
'timeout': '600',
|
'timeout': '600',
|
||||||
'scan_html': 'no',
|
'scan_html': 'no',
|
||||||
@@ -296,6 +303,7 @@ def read_config(list):
|
|||||||
})
|
})
|
||||||
cp.read(list)
|
cp.read(list)
|
||||||
if cp.has_option('milter','datadir'):
|
if cp.has_option('milter','datadir'):
|
||||||
|
print "chdir:",cp.get('milter','datadir')
|
||||||
os.chdir(cp.get('milter','datadir'))
|
os.chdir(cp.get('milter','datadir'))
|
||||||
|
|
||||||
# milter section
|
# milter section
|
||||||
@@ -534,11 +542,8 @@ class SPFPolicy(object):
|
|||||||
from Milter.cache import AddrCache
|
from Milter.cache import AddrCache
|
||||||
|
|
||||||
cbv_cache = AddrCache(renew=7)
|
cbv_cache = AddrCache(renew=7)
|
||||||
cbv_cache.load('send_dsn.log',age=30)
|
|
||||||
auto_whitelist = AddrCache(renew=30)
|
auto_whitelist = AddrCache(renew=30)
|
||||||
auto_whitelist.load('auto_whitelist.log',age=120)
|
|
||||||
blacklist = AddrCache(renew=30)
|
blacklist = AddrCache(renew=30)
|
||||||
blacklist.load('blacklist.log',age=60)
|
|
||||||
|
|
||||||
class bmsMilter(Milter.Milter):
|
class bmsMilter(Milter.Milter):
|
||||||
"""Milter to replace attachments poisonous to Windows with a WARNING message,
|
"""Milter to replace attachments poisonous to Windows with a WARNING message,
|
||||||
@@ -846,6 +851,7 @@ class bmsMilter(Milter.Milter):
|
|||||||
self.reputation = int(a[-2])
|
self.reputation = int(a[-2])
|
||||||
self.confidence = int(a[-1])
|
self.confidence = int(a[-1])
|
||||||
self.umis = umis
|
self.umis = umis
|
||||||
|
self.from_domain = domain
|
||||||
# We would like to reject on bad reputation here, but we
|
# We would like to reject on bad reputation here, but we
|
||||||
# need to give special consideration to postmaster. So
|
# need to give special consideration to postmaster. So
|
||||||
# we have to wait until envrcpt(). Perhaps an especially
|
# we have to wait until envrcpt(). Perhaps an especially
|
||||||
@@ -1096,9 +1102,10 @@ class bmsMilter(Milter.Milter):
|
|||||||
return Milter.REJECT
|
return Milter.REJECT
|
||||||
self.dspam = False
|
self.dspam = False
|
||||||
if userl != 'postmaster' and self.umis \
|
if userl != 'postmaster' and self.umis \
|
||||||
and self.reputation < -50 and self.confidence > 1:
|
and self.reputation < -50 and self.confidence > 3:
|
||||||
|
domain = self.from_domain
|
||||||
self.log('REJECT: REPUTATION, rcpt to',to,str)
|
self.log('REJECT: REPUTATION, rcpt to',to,str)
|
||||||
self.setreply('550','5.7.1','Your domain has been sending mostly spam')
|
self.setreply('550','5.7.1','%s has been sending mostly spam'%domain)
|
||||||
return Milter.REJECT
|
return Milter.REJECT
|
||||||
|
|
||||||
if domain in hide_path:
|
if domain in hide_path:
|
||||||
@@ -1824,6 +1831,10 @@ def main():
|
|||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
read_config(["/etc/mail/pymilter.cfg","milter.cfg"])
|
read_config(["/etc/mail/pymilter.cfg","milter.cfg"])
|
||||||
|
|
||||||
|
cbv_cache.load('send_dsn.log',age=30)
|
||||||
|
auto_whitelist.load('auto_whitelist.log',age=120)
|
||||||
|
blacklist.load('blacklist.log',age=60)
|
||||||
|
|
||||||
if dspam_dict:
|
if dspam_dict:
|
||||||
import dspam # low level spam check
|
import dspam # low level spam check
|
||||||
if dspam_userdir:
|
if dspam_userdir:
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ pidof() {
|
|||||||
# Source function library.
|
# Source function library.
|
||||||
. /etc/rc.d/init.d/functions
|
. /etc/rc.d/init.d/functions
|
||||||
|
|
||||||
[ -x /var/log/milter/start.sh ] || exit 0
|
[ -x /usr/lib/pymilter/start.sh ] || exit 0
|
||||||
|
|
||||||
RETVAL=0
|
RETVAL=0
|
||||||
prog="milter"
|
prog="milter"
|
||||||
@@ -36,7 +36,7 @@ start() {
|
|||||||
mkdir -p /var/run/milter
|
mkdir -p /var/run/milter
|
||||||
chown mail:mail /var/run/milter
|
chown mail:mail /var/run/milter
|
||||||
fi
|
fi
|
||||||
daemon --check milter --user mail /var/log/milter/start.sh milter bms
|
daemon --check milter --user mail /usr/lib/pymilter/start.sh milter bms
|
||||||
RETVAL=$?
|
RETVAL=$?
|
||||||
echo
|
echo
|
||||||
[ $RETVAL -eq 0 ] && touch /var/lock/subsys/milter
|
[ $RETVAL -eq 0 ] && touch /var/lock/subsys/milter
|
||||||
|
|||||||
+2
-2
@@ -23,7 +23,7 @@ pidof() {
|
|||||||
# Source function library.
|
# Source function library.
|
||||||
. /etc/rc.d/init.d/functions
|
. /etc/rc.d/init.d/functions
|
||||||
|
|
||||||
[ -x /var/log/milter/start.sh ] || exit 0
|
[ -x /usr/lib/pymilter/start.sh ] || exit 0
|
||||||
|
|
||||||
RETVAL=0
|
RETVAL=0
|
||||||
prog="milter"
|
prog="milter"
|
||||||
@@ -36,7 +36,7 @@ start() {
|
|||||||
mkdir -p /var/run/milter
|
mkdir -p /var/run/milter
|
||||||
chown mail:mail /var/run/milter
|
chown mail:mail /var/run/milter
|
||||||
fi
|
fi
|
||||||
daemon --check milter --user mail /var/log/milter/start.sh milter bms
|
daemon --check milter --user mail /usr/lib/pymilter/start.sh milter bms
|
||||||
RETVAL=$?
|
RETVAL=$?
|
||||||
echo
|
echo
|
||||||
[ $RETVAL -eq 0 ] && touch /var/lock/subsys/milter
|
[ $RETVAL -eq 0 ] && touch /var/lock/subsys/milter
|
||||||
|
|||||||
+16
-12
@@ -1,19 +1,20 @@
|
|||||||
/* Copyright (C) 2001 James Niemira (niemira@colltech.com, urmane@urmane.org)
|
/* Copyright (C) 2001 James Niemira (niemira@colltech.com, urmane@urmane.org)
|
||||||
* Portions Copyright (C) 2001,2002,2003,2004 Stuart Gathman (stuart@bmsi.com)
|
* Portions Copyright (C) 2001,2002,2003,2004,2005,2006,2007
|
||||||
|
* Stuart Gathman (stuart@bmsi.com)
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or
|
* This program is free software: you can redistribute it and/or modify it
|
||||||
* modify it under the terms of the GNU General Public License
|
* under the terms of the GNU General Public License as published by the
|
||||||
* as published by the Free Software Foundation; either version 2
|
* Free Software Foundation, either version 2 of the License, or (at your
|
||||||
* of the License, or (at your option) any later version.
|
* option) any later version.
|
||||||
*
|
*
|
||||||
* This program is distributed in the hope that it will be useful,
|
* This program is distributed in the hope that it will be useful, but
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
* GNU General Public License for more details.
|
* General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License along
|
||||||
* along with this program; if not, write to the Free Software
|
* with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
*
|
*
|
||||||
* milterContext object and thread interface contributed by
|
* milterContext object and thread interface contributed by
|
||||||
* Stuart D. Gathman <stuart@bmsi.com>
|
* Stuart D. Gathman <stuart@bmsi.com>
|
||||||
@@ -34,6 +35,9 @@ $ python setup.py help
|
|||||||
libraries=["milter","smutil","resolv"]
|
libraries=["milter","smutil","resolv"]
|
||||||
|
|
||||||
* $Log$
|
* $Log$
|
||||||
|
* Revision 1.10 2006/02/12 02:00:42 customdesigned
|
||||||
|
* Resolve FIXME for wrap_close.
|
||||||
|
*
|
||||||
* Revision 1.9 2005/12/23 21:46:36 customdesigned
|
* Revision 1.9 2005/12/23 21:46:36 customdesigned
|
||||||
* Compile on sendmail-8.12 (ifdef SMFIR_INSHEADER)
|
* Compile on sendmail-8.12 (ifdef SMFIR_INSHEADER)
|
||||||
*
|
*
|
||||||
|
|||||||
+78
-44
@@ -1,5 +1,4 @@
|
|||||||
%define name pymilter
|
%define version 0.8.9
|
||||||
%define version 0.8.8
|
|
||||||
%define release 1
|
%define release 1
|
||||||
# what version of RH are we building for?
|
# what version of RH are we building for?
|
||||||
%define redhat7 0
|
%define redhat7 0
|
||||||
@@ -18,8 +17,9 @@
|
|||||||
%define sysvinit milter.rc
|
%define sysvinit milter.rc
|
||||||
%endif
|
%endif
|
||||||
# RH9, other systems (single ps line per process)
|
# RH9, other systems (single ps line per process)
|
||||||
%ifos Linux
|
%ifos Linux # whether to use system default python?
|
||||||
%define python python
|
%define python python
|
||||||
|
#define python python2.4
|
||||||
%else
|
%else
|
||||||
%define python python
|
%define python python
|
||||||
%endif
|
%endif
|
||||||
@@ -29,11 +29,17 @@
|
|||||||
%define libdir /usr/lib/pymilter
|
%define libdir /usr/lib/pymilter
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
Summary: Python interface to sendmail milter API
|
# This spec file contains 2 noarch packages in addition to the pymilter
|
||||||
Name: %{name}
|
# module. To compile all three, use:
|
||||||
|
# rpmbuild -ba --target=i386,noarch pymilter.spec
|
||||||
|
|
||||||
|
%ifarch noarch
|
||||||
|
Name: milter
|
||||||
|
Group: Applications/System
|
||||||
|
Summary: BMS spam and reputation milter
|
||||||
Version: %{version}
|
Version: %{version}
|
||||||
Release: %{release}
|
Release: %{release}
|
||||||
Source: %{name}-%{version}.tar.gz
|
Source: pymilter-%{version}.tar.gz
|
||||||
#Patch: %{name}-%{version}.patch
|
#Patch: %{name}-%{version}.patch
|
||||||
License: GPL
|
License: GPL
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
@@ -42,22 +48,10 @@ Prefix: %{_prefix}
|
|||||||
Vendor: Stuart D. Gathman <stuart@bmsi.com>
|
Vendor: Stuart D. Gathman <stuart@bmsi.com>
|
||||||
Packager: Stuart D. Gathman <stuart@bmsi.com>
|
Packager: Stuart D. Gathman <stuart@bmsi.com>
|
||||||
Url: http://www.bmsi.com/python/milter.html
|
Url: http://www.bmsi.com/python/milter.html
|
||||||
Requires: %{python} >= 2.4, sendmail >= 8.13
|
Requires: %{python} >= 2.4, pyspf >= 2.0.4, pymilter
|
||||||
%ifos Linux
|
%ifos Linux
|
||||||
Requires: chkconfig
|
Requires: chkconfig
|
||||||
%endif
|
%endif
|
||||||
BuildRequires: %{python}-devel >= 2.4, sendmail-devel >= 8.13
|
|
||||||
|
|
||||||
%description
|
|
||||||
This is a python extension module to enable python scripts to
|
|
||||||
attach to sendmail's libmilter functionality. Additional python
|
|
||||||
modules provide for navigating and modifying MIME parts, sending
|
|
||||||
DSNs, and doing CBV.
|
|
||||||
|
|
||||||
%package -n milter
|
|
||||||
Group: Applications/System
|
|
||||||
Summary: BMS spam and reputation milter
|
|
||||||
Requires: pyspf >= 2.0.4
|
|
||||||
|
|
||||||
%description -n milter
|
%description -n milter
|
||||||
A complex but effective spam filtering, SPF checking, and reputation tracking
|
A complex but effective spam filtering, SPF checking, and reputation tracking
|
||||||
@@ -66,28 +60,19 @@ mail application. It uses pydspam if installed for bayesian filtering.
|
|||||||
%package spf
|
%package spf
|
||||||
Group: Applications/System
|
Group: Applications/System
|
||||||
Summary: BMS spam and reputation milter
|
Summary: BMS spam and reputation milter
|
||||||
Requires: pyspf >= 2.0.4
|
Requires: pyspf >= 2.0.4, pymilter
|
||||||
|
Obsoletes: pymilter-spf
|
||||||
|
|
||||||
%description spf
|
%description spf
|
||||||
A simple mail filter to add Received-SPF headers and reject forged mail.
|
A simple mail filter to add Received-SPF headers and reject forged mail.
|
||||||
Rejection policy is configured via sendmail access file.
|
Rejection policy is configured via sendmail access file.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup
|
%setup -n pymilter-%{version}
|
||||||
#patch -p0 -b .bms
|
#patch -p0 -b .bms
|
||||||
|
|
||||||
%build
|
|
||||||
%if %{redhat7}
|
|
||||||
LDFLAGS="-s"
|
|
||||||
%else # Redhat builds debug packages after 7.3
|
|
||||||
LDFLAGS="-g"
|
|
||||||
%endif
|
|
||||||
env CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="$LDFLAGS" %{python} setup.py build
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
%{python} setup.py install --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES
|
|
||||||
grep '.pyc$' INSTALLED_FILES | sed -e 's/c$/o/' >>INSTALLED_FILES
|
|
||||||
mkdir -p $RPM_BUILD_ROOT/var/log/milter
|
mkdir -p $RPM_BUILD_ROOT/var/log/milter
|
||||||
mkdir -p $RPM_BUILD_ROOT/etc/mail
|
mkdir -p $RPM_BUILD_ROOT/etc/mail
|
||||||
mkdir $RPM_BUILD_ROOT/var/log/milter/save
|
mkdir $RPM_BUILD_ROOT/var/log/milter/save
|
||||||
@@ -135,7 +120,7 @@ cd /var/log/milter
|
|||||||
#export PYTHONPATH=/usr/local/lib/python2.1/site-packages
|
#export PYTHONPATH=/usr/local/lib/python2.1/site-packages
|
||||||
exec /usr/local/bin/python bms.py >>milter.log 2>&1
|
exec /usr/local/bin/python bms.py >>milter.log 2>&1
|
||||||
EOF
|
EOF
|
||||||
%else
|
%else # not aix4.1
|
||||||
cp start.sh $RPM_BUILD_ROOT%{libdir}
|
cp start.sh $RPM_BUILD_ROOT%{libdir}
|
||||||
mkdir -p $RPM_BUILD_ROOT/etc/rc.d/init.d
|
mkdir -p $RPM_BUILD_ROOT/etc/rc.d/init.d
|
||||||
cp %{sysvinit} $RPM_BUILD_ROOT/etc/rc.d/init.d/milter
|
cp %{sysvinit} $RPM_BUILD_ROOT/etc/rc.d/init.d/milter
|
||||||
@@ -164,7 +149,7 @@ python="%{python}"
|
|||||||
w
|
w
|
||||||
q
|
q
|
||||||
EOF
|
EOF
|
||||||
%endif
|
%endif # aix4.1
|
||||||
chmod a+x $RPM_BUILD_ROOT%{libdir}/start.sh
|
chmod a+x $RPM_BUILD_ROOT%{libdir}/start.sh
|
||||||
|
|
||||||
mkdir -p $RPM_BUILD_ROOT/var/run/milter
|
mkdir -p $RPM_BUILD_ROOT/var/run/milter
|
||||||
@@ -179,7 +164,7 @@ mkssys -s milter -p %{libdir}/start.sh -u 25 -S -n 15 -f 9 -G mail || :
|
|||||||
if [ $1 = 0 ]; then
|
if [ $1 = 0 ]; then
|
||||||
rmssys -s milter || :
|
rmssys -s milter || :
|
||||||
fi
|
fi
|
||||||
%else
|
%else # not aix4.1
|
||||||
%post -n milter
|
%post -n milter
|
||||||
#echo "pythonsock has moved to /var/run/milter, update /etc/mail/sendmail.cf"
|
#echo "pythonsock has moved to /var/run/milter, update /etc/mail/sendmail.cf"
|
||||||
/sbin/chkconfig --add milter
|
/sbin/chkconfig --add milter
|
||||||
@@ -196,20 +181,14 @@ fi
|
|||||||
if [ $1 = 0 ]; then
|
if [ $1 = 0 ]; then
|
||||||
/sbin/chkconfig --del spfmilter
|
/sbin/chkconfig --del spfmilter
|
||||||
fi
|
fi
|
||||||
%endif
|
%endif # aix4.1
|
||||||
|
|
||||||
%clean
|
%files
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
|
|
||||||
%files -f INSTALLED_FILES
|
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%doc README HOWTO ChangeLog NEWS TODO CREDITS sample.py milter-template.py
|
|
||||||
%config %{libdir}/start.sh
|
%config %{libdir}/start.sh
|
||||||
|
|
||||||
%files -n milter
|
|
||||||
%defattr(-,root,root)
|
|
||||||
/etc/logrotate.d/milter
|
/etc/logrotate.d/milter
|
||||||
/etc/cron.daily/milter
|
/etc/cron.daily/milter
|
||||||
|
%{libdir}/bms.py?
|
||||||
%ifos aix4.1
|
%ifos aix4.1
|
||||||
%defattr(-,smmsp,mail)
|
%defattr(-,smmsp,mail)
|
||||||
%else
|
%else
|
||||||
@@ -219,7 +198,6 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%dir /var/log/milter
|
%dir /var/log/milter
|
||||||
%dir /var/log/milter/save
|
%dir /var/log/milter/save
|
||||||
%config %{libdir}/bms.py
|
%config %{libdir}/bms.py
|
||||||
%{libdir}/bms.py?
|
|
||||||
%config(noreplace) /var/log/milter/strike3.txt
|
%config(noreplace) /var/log/milter/strike3.txt
|
||||||
%config(noreplace) /var/log/milter/softfail.txt
|
%config(noreplace) /var/log/milter/softfail.txt
|
||||||
%config(noreplace) /var/log/milter/fail.txt
|
%config(noreplace) /var/log/milter/fail.txt
|
||||||
@@ -236,7 +214,63 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%config(noreplace) /etc/mail/spfmilter.cfg
|
%config(noreplace) /etc/mail/spfmilter.cfg
|
||||||
/etc/rc.d/init.d/spfmilter
|
/etc/rc.d/init.d/spfmilter
|
||||||
|
|
||||||
|
%else # not noarch
|
||||||
|
|
||||||
|
%define name pymilter
|
||||||
|
Summary: Python interface to sendmail milter API
|
||||||
|
Name: %{name}
|
||||||
|
Version: %{version}
|
||||||
|
Release: %{release}
|
||||||
|
Source: %{name}-%{version}.tar.gz
|
||||||
|
#Patch: %{name}-%{version}.patch
|
||||||
|
License: GPL
|
||||||
|
Group: Development/Libraries
|
||||||
|
BuildRoot: %{_tmppath}/%{name}-buildroot
|
||||||
|
Prefix: %{_prefix}
|
||||||
|
Vendor: Stuart D. Gathman <stuart@bmsi.com>
|
||||||
|
Packager: Stuart D. Gathman <stuart@bmsi.com>
|
||||||
|
Url: http://www.bmsi.com/python/milter.html
|
||||||
|
Requires: %{python} >= 2.4, sendmail >= 8.13
|
||||||
|
BuildRequires: %{python}-devel >= 2.4, sendmail-devel >= 8.13
|
||||||
|
|
||||||
|
%description
|
||||||
|
This is a python extension module to enable python scripts to
|
||||||
|
attach to sendmail's libmilter functionality. Additional python
|
||||||
|
modules provide for navigating and modifying MIME parts, sending
|
||||||
|
DSNs, and doing CBV.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup
|
||||||
|
#patch -p0 -b .bms
|
||||||
|
|
||||||
|
%build
|
||||||
|
%if %{redhat7}
|
||||||
|
LDFLAGS="-s"
|
||||||
|
%else # Redhat builds debug packages after 7.3
|
||||||
|
LDFLAGS="-g"
|
||||||
|
%endif
|
||||||
|
env CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="$LDFLAGS" %{python} setup.py build
|
||||||
|
|
||||||
|
%install
|
||||||
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
%{python} setup.py install --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES
|
||||||
|
%if !%{redhat7}
|
||||||
|
grep '.pyc$' INSTALLED_FILES | sed -e 's/c$/o/' >>INSTALLED_FILES
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%files -f INSTALLED_FILES
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%doc README HOWTO ChangeLog NEWS TODO CREDITS sample.py milter-template.py
|
||||||
|
|
||||||
|
%endif # noarch
|
||||||
|
|
||||||
|
%clean
|
||||||
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Sep 24 2007 Stuart Gathman <stuart@bmsi.com> 0.8.9-1
|
||||||
|
- Use %ifarch hack to build milter and milter-spf packages as noarch
|
||||||
|
- Remove spf dependency from dsn.py, add dns.py
|
||||||
* Fri Jan 05 2007 Stuart Gathman <stuart@bmsi.com> 0.8.8-1
|
* Fri Jan 05 2007 Stuart Gathman <stuart@bmsi.com> 0.8.8-1
|
||||||
- move AddrCache, parse_addr, iniplist to Milter package
|
- move AddrCache, parse_addr, iniplist to Milter package
|
||||||
- move parse_header to Milter.utils
|
- move parse_header to Milter.utils
|
||||||
@@ -6,6 +6,7 @@ from distutils.core import setup, Extension
|
|||||||
# on slackware and debian, leave it out entirely. It depends
|
# on slackware and debian, leave it out entirely. It depends
|
||||||
# on how libmilter was built by the sendmail package.
|
# on how libmilter was built by the sendmail package.
|
||||||
libs = ["milter", "smutil"]
|
libs = ["milter", "smutil"]
|
||||||
|
libdirs = ["/usr/lib/libmilter"] # needed for Debian
|
||||||
|
|
||||||
# patch distutils if it can't cope with the "classifiers" or
|
# patch distutils if it can't cope with the "classifiers" or
|
||||||
# "download_url" keywords
|
# "download_url" keywords
|
||||||
@@ -15,7 +16,7 @@ if sys.version < '2.2.3':
|
|||||||
DistributionMetadata.download_url = None
|
DistributionMetadata.download_url = None
|
||||||
|
|
||||||
# NOTE: importing Milter to obtain version fails when milter.so not built
|
# NOTE: importing Milter to obtain version fails when milter.so not built
|
||||||
setup(name = "pymilter", version = '0.8.8',
|
setup(name = "pymilter", version = '0.8.9',
|
||||||
description="Python interface to sendmail milter API",
|
description="Python interface to sendmail milter API",
|
||||||
long_description="""\
|
long_description="""\
|
||||||
This is a python extension module to enable python scripts to
|
This is a python extension module to enable python scripts to
|
||||||
@@ -33,6 +34,7 @@ sending DSNs or doing CBVs.
|
|||||||
packages = ['Milter'],
|
packages = ['Milter'],
|
||||||
ext_modules=[
|
ext_modules=[
|
||||||
Extension("milter", ["miltermodule.c"],
|
Extension("milter", ["miltermodule.c"],
|
||||||
|
library_dirs=libdirs,
|
||||||
libraries=libs,
|
libraries=libs,
|
||||||
# set MAX_ML_REPLY to 1 for sendmail < 8.13
|
# set MAX_ML_REPLY to 1 for sendmail < 8.13
|
||||||
define_macros = [ ('MAX_ML_REPLY',32) ]
|
define_macros = [ ('MAX_ML_REPLY',32) ]
|
||||||
|
|||||||
Reference in New Issue
Block a user