diff options
author | gabor <gabor@FreeBSD.org> | 2008-09-22 17:30:48 +0800 |
---|---|---|
committer | gabor <gabor@FreeBSD.org> | 2008-09-22 17:30:48 +0800 |
commit | 1135d854317e6a04e00ad82a4eadee6d86820e19 (patch) | |
tree | 375aca4532813f49cf3aa526b547e78ffc9d5af6 /security/amavisd-new | |
parent | cbc1b7bf216fc07378d4d38a7006eda76de05e4e (diff) | |
download | freebsd-ports-gnome-1135d854317e6a04e00ad82a4eadee6d86820e19.tar.gz freebsd-ports-gnome-1135d854317e6a04e00ad82a4eadee6d86820e19.tar.zst freebsd-ports-gnome-1135d854317e6a04e00ad82a4eadee6d86820e19.zip |
- Fix modes of the temp directory [1]
- Fix a bug in SMTP handling [2]
- Bump PORTREVISION
PR: ports/127216 [1]
Submitted by: Juan J Lopez <jlopez@evsis.com.ar> [1],
Matt Emmerton <matt@gsicomp.on.ca> [2] (via private mail)
Approved by: portmgr (erwin)
Diffstat (limited to 'security/amavisd-new')
-rw-r--r-- | security/amavisd-new/Makefile | 1 | ||||
-rw-r--r-- | security/amavisd-new/files/amavisd.sh.in | 2 | ||||
-rw-r--r-- | security/amavisd-new/files/patch-amavisd | 22 |
3 files changed, 24 insertions, 1 deletions
diff --git a/security/amavisd-new/Makefile b/security/amavisd-new/Makefile index 1f52ae72f160..06fdd3739f19 100644 --- a/security/amavisd-new/Makefile +++ b/security/amavisd-new/Makefile @@ -8,6 +8,7 @@ PORTNAME= amavisd-new PORTVERSION= 2.6.1 +PORTREVISION= 1 PORTEPOCH= 1 CATEGORIES= security MASTER_SITES= http://www.ijs.si/software/amavisd/ \ diff --git a/security/amavisd-new/files/amavisd.sh.in b/security/amavisd-new/files/amavisd.sh.in index 3b920269966b..3a34ef3d40f6 100644 --- a/security/amavisd-new/files/amavisd.sh.in +++ b/security/amavisd-new/files/amavisd.sh.in @@ -33,7 +33,7 @@ rm -rf %%AMAVISDIR%%/tmp/* %%AMAVISDIR%%/tmp/.* 2>/dev/null || true if [ ${amavisd_ram} ];then df %%AMAVISDIR%%/tmp | grep '^/dev/md' > /dev/null if [ $? -eq 1 ];then - mdmfs -M -s ${amavisd_ram} -w %%AMAVISUSER%%:%%AMAVISGROUP%% md %%AMAVISDIR%%/tmp || true + mdmfs -M -s ${amavisd_ram} -p 750 -w %%AMAVISUSER%%:%%AMAVISGROUP%% md %%AMAVISDIR%%/tmp || true fi fi } diff --git a/security/amavisd-new/files/patch-amavisd b/security/amavisd-new/files/patch-amavisd new file mode 100644 index 000000000000..ebfb0f575764 --- /dev/null +++ b/security/amavisd-new/files/patch-amavisd @@ -0,0 +1,22 @@ +--- amavisd.orig 2008-09-22 11:21:15.000000000 +0200 ++++ amavisd 2008-09-22 11:23:53.000000000 +0200 +@@ -16878,13 +16878,18 @@ + $data_command_accepted = $smtp_resp=~/^3/ ? 1 : 0; + if (!$data_command_accepted) { + do_log(0,"Negative SMTP resp. to DATA: %s", $smtp_resp); ++ $in_datasend_mode = 0; ++ $smtp_session->timeout($smtp_rset_timeout); ++ $what_cmd = 'RSET'; $smtp_handle->rset; # send a RSET + } elsif (!$any_valid_recips) { # pipelining + do_log(2,"Too late, DATA accepted but no valid recips, send dummy"); + $which_section = 'fwd-data-contents'; + $smtp_session->timeout( +- max(60,min($smtp_data_xfer_timeout,$deadline-time))); ++ max(60,min($smtp_data_done_timeout,$deadline-time))); ++ $what_cmd = 'data-dot'; + $smtp_handle->dataend; # as required by rfc2920: if the DATA command + # was accepted the SMTP client should send a single dot ++ $in_datasend_mode = 0; + } elsif ($any_tempfail_recips && !$dsn_per_recip_capable) { # pipelining + # we must not proceed if mail did not came in as LMTP, + # or we would generate mail duplicates on each delivery attempt |