[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#991781: RFR: fail2ban can't send e-mail using mail from bsd-mailx



Hi,

Thanks for the reviews.

On 05-08-2021 06:37, Justin B Rye wrote:
> Has bullseye added extra providers for mailx?

I don't know. I'm not aware of it.

> On buster there's
> only bsd-mailx and mailutils.  Mind you, fail2ban only Suggests
> mailx, so maybe it's assuming some more complicated alternative.

Indeed, the third binary I can find [1] that adds an alternative to mail is
https://sources.debian.org/src/nmh/1.7.1-7/debian/nmh.postinst/?hl=17#L17

>> +      use <command>mail</command> from <systemitem
>> +      role="package">mailutils</systemitem>) just before the release
>> +      of bullseye broke this functionality for systems that have
>> +      <command>mail</command> provided by <systemitem
>> +      role="package">bsd-mailx</systemitem>. Users of
>> +      <systemitem>fail2ban</systemitem> in combination with
> 
> Don't these need to be <systemitem role="package">? I'm not sure what
> <systemitem> on its own does.

I *think* the "role" is only needed to get the right link in the index.
However, as the same packages are already mentioned in the same
paragraph, I *think* it's redundant to add it again.

>> +      either switch to a different provide for <command>mail</command>
> 
> English fix: typo                     provider
> 
> (but if there's no other provider, we might as well say "switch
> to mailutils")

I think there's at least three.

> A suggestion for a slightly more detailed version:
> 
>          or manually unapply <ulink
>          url="https://github.com/fail2ban/fail2ban/commit/410a6ce5c80dd981c22752da034f2529b5eee844";>the
>          upstream commit</ulink> (which inserted the string
> 	 "<literal>-E 'set escape'</literal>" in multiple places under
>          <filename>/etc/fail2ban/action.d/</filename>).

Thanks.

Paul

[1] https://codesearch.debian.net/search?q=--slave.%2Bmail&literal=0&page=3

Attachment: OpenPGP_signature
Description: OpenPGP digital signature


Reply to: