Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 Nov 2022 11:11:30 -0500
From:      Matteo Riondato <matteo@freebsd.org>
To:        Baptiste Daroussin <bapt@freebsd.org>
Cc:        src-committers@freebsd.org, dev-commits-src-all@freebsd.org, dev-commits-src-main@freebsd.org
Subject:   Re: git: 0b1adc42a15c - main - rc.sendmail: remove unused script
Message-ID:  <20221110161130.jtfpebtjyak22rtd@ubertino.local>
In-Reply-To: <20221110141850.pcbfdvzxeggn6zxm@aniel.nours.eu>
References:  <202211091557.2A9FvdQ4072042@gitrepo.freebsd.org> <20221109174947.ykci234inrgiz7wi@ubertino.local> <4C690EC7-3D87-416B-934F-452801EE0EC8@FreeBSD.org> <20221110140106.rwup6yssxwaikp4d@ubertino.local> <20221110141850.pcbfdvzxeggn6zxm@aniel.nours.eu>

next in thread | previous in thread | raw e-mail | index | archive | help

--4f77qe6hqevbbrb4
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On 2022-11-10 at 09:18 EST, Baptiste Daroussin <bapt@freebsd.org> wrote:
>On Thu, Nov 10, 2022 at 09:01:06AM -0500, Matteo Riondato wrote:
>>
>> A few rough corners I still see:
>>
>> 1) sendmail_cert_create should perhaps be set to NO in rc.conf, or=20
>> the call to sendmail_cert_create() in rc.d/sendmail should also=20
>> depend on some form of sendmail being enabled. The former action=20
>> seems easier.
>
>Don't know, this has always been like this for a while.

Yeah, I see pros and cons of changing it, so not touching it may be wise=20
=3D)

>> 2) the role of rc.d/othermta is quite bizarre, especially now that it=20
>> checks for a non-existing script (/etc/rc.sendmail). I wonder whether=20
>> it should be retired, together with the rc.conf variable=20
>> mta_start_script (which now is set to a non-existing script). It=20
>> feels like a relic from a long gone past.
>
>https://lists.freebsd.org/archives/freebsd-arch/2022-November/000264.html
>
>It is a relic from the past (unused for 20 years)

Glad we agree. I should probably start following arch@ again. =3D)

>>
>> 3) the comments on some of the sendmail_* variables in rc.conf=20
>> mention a generic "MTA", but perhaps they should say "sendmail", as=20
>> that's not the one-and-only MTA.

>I am open to proposals/patches

(Can't promise cut and paste will work correctly)

diff --git a/libexec/rc/rc.conf b/libexec/rc/rc.conf
index 50fed07df1..b5d908e38b 100644
--- a/libexec/rc/rc.conf
+++ b/libexec/rc/rc.conf
@@ -596,21 +596,21 @@ allscreens_kbdflags=3D""    # Set this kbdcontrol mod=
e for all virtual screens
  mta_start_script=3D"/etc/rc.sendmail"
                         # Script to start your chosen MTA, called by /etc/=
rc.
  # Settings for /etc/rc.d/sendmail:
-sendmail_enable=3D"NO"   # Run the sendmail inbound daemon (YES/NO/NONE).
+sendmail_enable=3D"NO"   # Start a inbound/outbound sendmail daemon (YES/N=
O/NONE).
                         # If NONE, don't start any sendmail processes.
  sendmail_pidfile=3D"/var/run/sendmail.pid"       # sendmail pid file
  sendmail_procname=3D"/usr/sbin/sendmail"         # sendmail process name
-sendmail_flags=3D"-L sm-mta -bd -q30m" # Flags to sendmail (as a server)
+sendmail_flags=3D"-L sm-mta -bd -q30m" # Flags to sendmail (as inbound/out=
bound server)
  sendmail_cert_create=3D"YES"     # Create a server certificate if none (Y=
ES/NO)
-#sendmail_cert_cn=3D"CN"         # CN of the generate certificate
-sendmail_submit_enable=3D"NO"    # Start a localhost-only MTA for mail sub=
mission
+#sendmail_cert_cn=3D"CN"         # CN of the generated certificate
+sendmail_submit_enable=3D"NO"    # Start a localhost-only sendmail for mai=
l submission
  sendmail_submit_flags=3D"-L sm-mta -bd -q30m -ODaemonPortOptions=3DAddr=
=3Dlocalhost"
-                               # Flags for localhost-only MTA
-sendmail_outbound_enable=3D"NO"  # Dequeue stuck mail (YES/NO).
-sendmail_outbound_flags=3D"-L sm-queue -q30m" # Flags to sendmail (outboun=
d only)
-sendmail_msp_queue_enable=3D"NO" # Dequeue stuck clientmqueue mail (YES/NO=
).
+                               # Flags for localhost-only sendmail
+sendmail_outbound_enable=3D"NO"  # Start an outbound-only sendmail (YES/NO=
).
+sendmail_outbound_flags=3D"-L sm-queue -q30m" # Flags to outbund-only send=
mail
+sendmail_msp_queue_enable=3D"NO" # Start a clientmqueue runner sendmail (Y=
ES/NO).
  sendmail_msp_queue_flags=3D"-L sm-msp-queue -Ac -q30m"
-                               # Flags for sendmail_msp_queue daemon.
+                               # Flags for clientmqueue runner sendmail
  sendmail_rebuild_aliases=3D"NO"  # Run newaliases if necessary (YES/NO).

Thanks,
Matteo

--4f77qe6hqevbbrb4
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQJHBAABCgAxFiEEa9uKZL0hP4E8Nl5vGwL9SVQlVQEFAmNtIrITGGhrcHM6Ly9w
Z3AubWl0LmVkdQAKCRAbAv1JVCVVAS1IEAC5n/3ZSVTiq67htKViVgkUEpxON+C1
lIMe3QgqAvu1uSCU2LhkXvdZqHgpgjEKTcNE4KE/vgsWwR7ILygmOVVhW1cT//Ft
LQLRY0uMvcBNVLgChxd+Qg8/gYD8VUfkLX/r2RS4KyMc5M/t50dlZab+QyfsE818
wphTsiObMCqWUJpcIgEDwmtDGdSeJHLZauzvjUBlSLJVDVBPIEV/Goxo034gpill
Kl9g2M8/B9QagvdAWVDXrN85eMRR6OPs/Iq+iLRn8CnePD2LbUF14gwvbv27ETx7
0CqLmQB7m1YoQSSkETWbb7l8FTJtn3gp6UWjW137qo67FVxbSPZBUf0wFusv1j1k
Mm9tw3LKsi/JrCLPzenaNI2JyZZchYFUdZlBGxgtOkMGIsZmyfwhSbw+z5/K34ma
2AC/DZf996aG3orch0If+d73nLlPczorsM1tSMZBqpKD6+yjRyqNMHddAfr7n3xn
TSAFm1RqsGEsN8Evafcua29CujDeZfCQUueh8PnTjfh6kOkKzaHm3Pkq7xA126fF
zooecj8WNdsNxkvk2oBO4hLunYybIgVb+bFES7XK+qzJplywVI/qL2+TriBeE+U0
CyybUh5uUPPRoVHZO4JV/GM621JwjONHhvd1woMXhaLl9/IQzCNgm3mTmvq1soMu
iTTJc1oBriHY/w==
=r6gs
-----END PGP SIGNATURE-----

--4f77qe6hqevbbrb4--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20221110161130.jtfpebtjyak22rtd>