Skip to content

[BUG] Submitting/Receiving a mail on port 25 generates warning when SPOOF_PROTECTION=1 is set #3117

@casperklein

Description

@casperklein

Miscellaneous first checks

  • I checked that all ports are open and not blocked by my ISP / hosting provider.
  • I know that SSL errors are likely the result of a wrong setup on the user side and not caused by DMS itself. I'm confident my setup is correct.

Affected Component(s)

postfix

What happened and when does this occur?

With SPOOF_PROTECTION=1, the following warning appears in mail.log when an email is send:
The following warning is shown, when submitting or receiving an email on port 25 and SPOOF_PROTECTION=1 is set.

Feb 25 22:47:39 mail postfix/smtpd[4800]: warning: restriction `reject_authenticated_sender_login_mismatch' ignored: no SASL support


reject_authenticated_sender_login_mismatch is added here:

function _setup_spoof_protection
{
_log 'trace' 'Configuring spoof protection'
sed -i \
's|smtpd_sender_restrictions =|smtpd_sender_restrictions = reject_authenticated_sender_login_mismatch,|' \
/etc/postfix/main.cf

What did you expect to happen?

No warning.

How do we replicate the issue?

  1. Send or receive an unauthenticated email

...

DMS version

edge

What operating system is DMS running on?

Linux

Which operating system version?

Debian 11

What instruction set architecture is DMS running on?

AMD64 / x86_64

What container orchestration tool are you using?

Docker

docker-compose.yml

No response

Relevant log output

No response

Other relevant information

I think this is a regression introduced with #3006

What level of experience do you have with Docker and mail servers?

  • I am inexperienced with docker
  • I am rather experienced with docker
  • I am inexperienced with mail servers
  • I am rather experienced with mail servers
  • I am uncomfortable with the CLI
  • I am rather comfortable with the CLI

Code of conduct

Improvements to this form?

No response

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions