From nobody Mon Jul 31 08:45:08 2023 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4RDsJG3bryz4pwtc; Mon, 31 Jul 2023 08:45:15 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RDsJ95yWYz3hcT; Mon, 31 Jul 2023 08:45:13 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1690793114; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=6p57tn6kOY1FqV/SEL0HMVRSclzNuXsIoIQ9ZmRyMLU=; b=B51GVdFqMLfTu0Y9Uqjf/1Fwf5RIuELEcovFF0S1CZ0+8JBlitGIvUR41FujLjFgKUbu/e y7W+OC+O1wa25grO5VzO0bEEj63f8xEBNHs3g+gzCbsS4ixY6FFoBcHTvXKIoBQW94nfxS h0UGCRfapjjmvOzQaeScvFI1dsBcPnMy4XFnCoUk+pT4aLTvGdjrYb5eaJtjQOFp/8lRGV 1tMgaczfdRjB21dp2zwk/LgdUi1Kk+rc1LIEQhCmi6ZG3UYqydZBpeM/Pdmakisql582SD aO8XIcHzNKxudZz9sllq8wOJ18XHrJTk2qy16hjlF0eOH44D8c9XTziI8c7GuQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1690793114; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=6p57tn6kOY1FqV/SEL0HMVRSclzNuXsIoIQ9ZmRyMLU=; b=xCm1l7ERHk5bzeZycSgV1EjCfgyPg+uGqwQywoJPCIgOl5EOkwUPE+M9MU6crX2GqfjfTo e/pwBW4MidIQJhRtqSdjAv/c+bodGmgGtvsM4eGlC1fRlfM6/zyaf4+cuJAoKWq2UtfKLe jzvYwFgpqHLXWTbTkaZEiaqpFxI818Uda5Xy+Jc2FLd0oN1tBtdEx1O6ZxcOrw0PDB5qjB RFnJWqTUVjvBKbu39njgDlT4OCk2I1CQVc8BIQRSh+ueXdt2DflRuUYS4eUP7476FonY5u Jk2DZLyShPpOinOjZ6qTttstF1Cr79fLsRtorMjNoC64JISsFXUwlcgmLdhYmQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1690793114; a=rsa-sha256; cv=none; b=sxMjgHXciHHXp70+c1piiBi+TgnG0S/5BdlWtISfQ3o8F765kS8tIF8n7+tuKrbi/Ts0NS 5dQmcl18O7MzPOENhyARAYMXnO4+0GgkHmml943avbmrpCuaHZ2EHKegjGk82U/Nexd8lF nXQ1vLG2vVMhm3qpp+kkoZNTUOnl9JYLvr2GEYErM2FqUtY6wp6DeAZ0CzVC6UCSUOaksL oDF94xSd/fMzo1CBedOSXD+NuQu8koEM0PPXgZmBY+7ObvUW5MevsjjAmclJysxcgdez8F Cj4eRInUSD7kW1nQD/YII2DXfP6GnR+vR2tE/GCRHSg4HnIqBJ7OrOTC5QRipQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4RDsJ8548Hzplx; Mon, 31 Jul 2023 08:45:12 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 36V8j8vA079276; Mon, 31 Jul 2023 08:45:08 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 36V8j8WP079275; Mon, 31 Jul 2023 08:45:08 GMT (envelope-from git) Date: Mon, 31 Jul 2023 08:45:08 GMT Message-Id: <202307310845.36V8j8WP079275@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Nuno Teixeira Subject: git: 3f78f6fb2bbc - main - mail/mailhog: Add sysrc variable to set hostname parameter List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: eduardo X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 3f78f6fb2bbc195969745c4fccb2ca7d0a581e40 Auto-Submitted: auto-generated The branch main has been updated by eduardo: URL: https://cgit.FreeBSD.org/ports/commit/?id=3f78f6fb2bbc195969745c4fccb2ca7d0a581e40 commit 3f78f6fb2bbc195969745c4fccb2ca7d0a581e40 Author: Einar Bjarni Halldórsson AuthorDate: 2023-07-31 08:42:14 +0000 Commit: Nuno Teixeira CommitDate: 2023-07-31 08:42:14 +0000 mail/mailhog: Add sysrc variable to set hostname parameter This patch adds the sysrc variable "mailhog_hostname". By setting the variable, we can configure the hostname mailhog uses for EHLO/HELO and message IDs PR: 272130 --- mail/mailhog/Makefile | 2 +- mail/mailhog/files/mailhog.in | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/mail/mailhog/Makefile b/mail/mailhog/Makefile index fd91f010684a..3d7b477975e9 100644 --- a/mail/mailhog/Makefile +++ b/mail/mailhog/Makefile @@ -1,7 +1,7 @@ PORTNAME= mailhog DISTVERSIONPREFIX= v DISTVERSION= 1.0.1 -PORTREVISION= 11 +PORTREVISION= 12 CATEGORIES= mail devel MAINTAINER= mops@punkt.de diff --git a/mail/mailhog/files/mailhog.in b/mail/mailhog/files/mailhog.in index 1187e79eb67a..67e10b359d82 100644 --- a/mail/mailhog/files/mailhog.in +++ b/mail/mailhog/files/mailhog.in @@ -16,6 +16,8 @@ # mailhog_ui_port (int): Port to listen on for UI. 8025 (same as API) # by default. # mailhog_runtimeuser (string): User mailhog should run as. 'nobody' by default. +# mailhog_hostname (string): Hostname to use for EHLO/HELO and message IDs. +# mailhog.example.com by default. # # Please think twice before exposing this server to the Internet. This is an # insecure tool without any authentication specifically to aid development @@ -34,10 +36,11 @@ pidfile="/var/run/${name}.pid" : ${mailhog_api_port:="8025"} : ${mailhog_ui_port:="8025"} : ${mailhog_runtimeuser:="nobody"} +: ${mailhog_hostname:="mailhog.example"} load_rc_config "${name}" command="/usr/sbin/daemon" -command_args="-c -r -f -P ${pidfile} -u ${mailhog_runtimeuser} %%PREFIX%%/bin/${name} -api-bind-addr ${mailhog_bind_addr}:${mailhog_api_port} -ui-bind-addr ${mailhog_bind_addr}:${mailhog_ui_port} -smtp-bind-addr ${mailhog_bind_addr}:${mailhog_smtp_port}" +command_args="-c -r -f -P ${pidfile} -u ${mailhog_runtimeuser} %%PREFIX%%/bin/${name} -api-bind-addr ${mailhog_bind_addr}:${mailhog_api_port} -ui-bind-addr ${mailhog_bind_addr}:${mailhog_ui_port} -smtp-bind-addr ${mailhog_bind_addr}:${mailhog_smtp_port} -hostname ${mailhog_hostname}" run_rc_command "$1"