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
[-- Attachment #1 --] 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 >> the call to sendmail_cert_create() in rc.d/sendmail should also >> depend on some form of sendmail being enabled. The former action >> 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 =) >> 2) the role of rc.d/othermta is quite bizarre, especially now that it >> checks for a non-existing script (/etc/rc.sendmail). I wonder whether >> it should be retired, together with the rc.conf variable >> mta_start_script (which now is set to a non-existing script). It >> 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. =) >> >> 3) the comments on some of the sendmail_* variables in rc.conf >> mention a generic "MTA", but perhaps they should say "sendmail", as >> 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="" # Set this kbdcontrol mode for all virtual screens mta_start_script="/etc/rc.sendmail" # Script to start your chosen MTA, called by /etc/rc. # Settings for /etc/rc.d/sendmail: -sendmail_enable="NO" # Run the sendmail inbound daemon (YES/NO/NONE). +sendmail_enable="NO" # Start a inbound/outbound sendmail daemon (YES/NO/NONE). # If NONE, don't start any sendmail processes. sendmail_pidfile="/var/run/sendmail.pid" # sendmail pid file sendmail_procname="/usr/sbin/sendmail" # sendmail process name -sendmail_flags="-L sm-mta -bd -q30m" # Flags to sendmail (as a server) +sendmail_flags="-L sm-mta -bd -q30m" # Flags to sendmail (as inbound/outbound server) sendmail_cert_create="YES" # Create a server certificate if none (YES/NO) -#sendmail_cert_cn="CN" # CN of the generate certificate -sendmail_submit_enable="NO" # Start a localhost-only MTA for mail submission +#sendmail_cert_cn="CN" # CN of the generated certificate +sendmail_submit_enable="NO" # Start a localhost-only sendmail for mail submission sendmail_submit_flags="-L sm-mta -bd -q30m -ODaemonPortOptions=Addr=localhost" - # Flags for localhost-only MTA -sendmail_outbound_enable="NO" # Dequeue stuck mail (YES/NO). -sendmail_outbound_flags="-L sm-queue -q30m" # Flags to sendmail (outbound only) -sendmail_msp_queue_enable="NO" # Dequeue stuck clientmqueue mail (YES/NO). + # Flags for localhost-only sendmail +sendmail_outbound_enable="NO" # Start an outbound-only sendmail (YES/NO). +sendmail_outbound_flags="-L sm-queue -q30m" # Flags to outbund-only sendmail +sendmail_msp_queue_enable="NO" # Start a clientmqueue runner sendmail (YES/NO). sendmail_msp_queue_flags="-L sm-msp-queue -Ac -q30m" - # Flags for sendmail_msp_queue daemon. + # Flags for clientmqueue runner sendmail sendmail_rebuild_aliases="NO" # Run newaliases if necessary (YES/NO). Thanks, Matteo [-- Attachment #2 --] -----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-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20221110161130.jtfpebtjyak22rtd>
