mirror of
https://git.freebsd.org/ports.git
synced 2025-05-25 15:36:35 -04:00
- portlint/portfmt/portclippy happy. - add missing TEST_DEPENDS. - up default listen_backlog to 200. PR: 281941 Submitted by: Andreas Jobs <andreas.jobs+freebsdbugs@ruhr-uni-bochum.de> ChangeLogs: https://metacpan.org/dist/Mail-Milter-Authentication/changes Approved by: hrs (mentor)
67 lines
3.3 KiB
Text
67 lines
3.3 KiB
Text
--- bin/authentication_milter.orig 2024-10-11 04:07:26 UTC
|
|
+++ bin/authentication_milter
|
|
@@ -15,7 +15,7 @@ use Mail::Milter::Authentication::Protocol::SMTP;
|
|
use Mail::Milter::Authentication::Protocol::SMTP;
|
|
|
|
# CONFIG
|
|
-my $pid_file = '/run/authentication_milter.pid';
|
|
+my $pid_file = '%%RUNDIR%%/authentication_milter.pid';
|
|
my $daemon = 0;
|
|
my $help = 0;
|
|
my $prefix;
|
|
@@ -195,11 +195,11 @@ version 3.20241011
|
|
=item --pidfile <file>
|
|
|
|
Write the process PID to the given file.
|
|
- defaults to /run/authentication_milter.pid
|
|
+ defaults to %%RUNDIR%%/authentication_milter.pid
|
|
|
|
=item --prefix <dir>
|
|
|
|
- Read configuration from dir rather than /etc/
|
|
+ Read configuration from dir rather than %%ETCDIR%%
|
|
|
|
=item -i|--ident <ident>
|
|
|
|
@@ -212,7 +212,7 @@ version 3.20241011
|
|
|
|
=head1 CONFIGURATION
|
|
|
|
- The milter reads configuration from /etc/authentication_milter.json
|
|
+ The milter reads configuration from %%ETCDIR%%/authentication_milter.json
|
|
|
|
The configuration file format is as follows...
|
|
|
|
@@ -266,10 +266,10 @@ version 3.20241011
|
|
"metric_tempfile" : "/tmpfs/authmilter_metrics", | Path to shared metrics data, defaults to <lib_path>/metrics
|
|
"metric_basic_http" : 1, | Disable extended http services such as config and grafana json pages
|
|
|
|
- "cache_dir" : "/var/cache/auth_milter", | Path to the shared cache directory
|
|
- "spool_dir" : "/var/spool/auth_milter", | Path to the shared spool directory
|
|
- "lib_dir" : "/var/lib/auth_milter", | Path to the shared lib directory
|
|
- "lock_file" : "/var/run/authmilter.lock", | Optionally specify the location of the Net::Server lock file
|
|
+ "cache_dir" : "%%CACHEDIR%%", | Path to the shared cache directory
|
|
+ "spool_dir" : "%%SPOOLDIR%%", | Path to the shared spool directory
|
|
+ "lib_dir" : "%%VARLIBDIR%%", | Path to the shared lib directory
|
|
+ "lock_file" : "%%RUNDIR%%/authmilter.lock", | Optionally specify the location of the Net::Server lock file
|
|
|
|
# metric_port and metric_host are deprecated.
|
|
# please use metric_connection instead
|
|
@@ -289,7 +289,7 @@ version 3.20241011
|
|
"sock_type" : "inet", | Socket type (inet or unix)
|
|
"sock_host" : "localhost", | Host to connect to (when inet)
|
|
"sock_port" : "2525", | Port to connect to (when inet)
|
|
- "sock_path" : "/var/run/smtp.sock", | Socket path to connect to (when unix)
|
|
+ "sock_path" : "%%RUNDIR%%/smtp.sock", | Socket path to connect to (when unix)
|
|
"timeout_in" : "10", | Timeout when waiting for inbound SMTP data
|
|
"timeout_out" : "10", | Timeout when waiting for outbound SMTP data
|
|
"pipeline_limit" : "50", | Limit the number of transactions accepted in an SMTP pipeline
|
|
@@ -315,7 +315,7 @@ version 3.20241011
|
|
"unix:/var/sock/a.sock" : {
|
|
"server_name" : "util.example.com",
|
|
"sock_type" : "unix",
|
|
- "sock_path" : "/var/run/smtp.sock",
|
|
+ "sock_path" : "%%RUNDIR%%/smtp.sock",
|
|
"timeout_in" : "10",
|
|
"timeout_out" : "10"
|
|
}
|