Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
pymilter
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
misc
pymilter
Commits
021ea967
Commit
021ea967
authored
17 years ago
by
Stuart Gathman
Browse files
Options
Downloads
Patches
Plain Diff
Fixes from test on EL5.
parent
a490e795
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
milter.spec
+8
-0
8 additions, 0 deletions
milter.spec
spfmilter.cfg
+3
-3
3 additions, 3 deletions
spfmilter.cfg
start.sh
+3
-2
3 additions, 2 deletions
start.sh
with
14 additions
and
5 deletions
milter.spec
+
8
−
0
View file @
021ea967
...
@@ -156,6 +156,14 @@ python="%{python}"
...
@@ -156,6 +156,14 @@ python="%{python}"
w
w
q
q
EOF
EOF
ed $RPM_BUILD_ROOT%{libdir}/start.sh <<'EOF'
/^python=/
c
python="%{python}"
.
w
q
EOF
%endif
%endif
chmod a+x $RPM_BUILD_ROOT%{libdir}/start.sh
chmod a+x $RPM_BUILD_ROOT%{libdir}/start.sh
...
...
This diff is collapsed.
Click to expand it.
spfmilter.cfg
+
3
−
3
View file @
021ea967
[milter]
[milter]
# The socket used to communicate with sendmail
# The socket used to communicate with sendmail
socketname
=
/
tmp
/spfmiltersock
socketname
=
/
var/run/milter
/spfmiltersock
# Name of the milter given to sendmail
# Name of the milter given to sendmail
name
=
pyspffilter
name
=
pyspffilter
# Trusted relays such as secondary MXes that should not have SPF checked.
# Trusted relays such as secondary MXes that should not have SPF checked.
;trusted_relay =
;trusted_relay =
# Internal networks that should not have SPF checked.
# Internal networks that should not have SPF checked.
internal_connect
=
127.0.0.1,192.168.0.0/16
internal_connect
=
127.0.0.1,192.168.0.0/16
,10.0.0.0/8
# See http://www.openspf.com for more info on SPF.
# See http://www.openspf.com for more info on SPF.
[spf]
[spf]
# Use sendmail access map or similar format for detailed spf policy.
# Use sendmail access map or similar format for detailed spf policy.
# SPF entries in the access map will override defaults.
# SPF entries in the access map will override defaults.
;
access_file = /etc/mail/access.db
access_file
=
/etc/mail/access.db
# Connections that get an SPF pass for a pretend MAIL FROM of
# Connections that get an SPF pass for a pretend MAIL FROM of
# postmaster@sometrustedforwarder.com skip SPF checks for the real MAIL FROM.
# postmaster@sometrustedforwarder.com skip SPF checks for the real MAIL FROM.
# This is for non-SRS forwarders. It is a simple implementation that
# This is for non-SRS forwarders. It is a simple implementation that
...
...
This diff is collapsed.
Click to expand it.
start.sh
+
3
−
2
View file @
021ea967
...
@@ -2,14 +2,15 @@
...
@@ -2,14 +2,15 @@
appname
=
"
$1
"
appname
=
"
$1
"
script
=
"
${
2
:-${
appname
}}
"
script
=
"
${
2
:-${
appname
}}
"
datadir
=
/var/log/milter
datadir
=
/var/log/milter
python
=
"python2.4"
exec
>>
${
datadir
}
/
${
appname
}
.log 2>&1
exec
>>
${
datadir
}
/
${
appname
}
.log 2>&1
if
test
-s
${
datadir
}
/
${
script
}
.py
;
then
if
test
-s
${
datadir
}
/
${
script
}
.py
;
then
cd
%
{
datadir
}
# use version in log dir if it exists for debugging
cd
$
{
datadir
}
# use version in log dir if it exists for debugging
else
else
cd
/usr/lib/pymilter
cd
/usr/lib/pymilter
fi
fi
cd
/var/log/milter
cd
/var/log/milter
exec
>>
${
appname
}
.log 2>&1
exec
>>
${
appname
}
.log 2>&1
python
2.4
${
appname
}
.py &
${
python
}
${
appname
}
.py &
echo
$!
>
/var/run/milter/
${
appname
}
.pid
echo
$!
>
/var/run/milter/
${
appname
}
.pid
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment