Skip to content

Remove check $loginAs vs $user#285

Open
analogic wants to merge 1 commit into
smtpd:masterfrom
analogic:patch-4
Open

Remove check $loginAs vs $user#285
analogic wants to merge 1 commit into
smtpd:masterfrom
analogic:patch-4

Conversation

@analogic
Copy link
Copy Markdown
Contributor

Is there any reasoning about this code? I have hit that when trying to setup qpsmtpd as smarthost and smtp client honestly set loginAs email address from "Mail From" header which obviously is not same as $user.

I am bit strugling with this, imho Qpsmtpd core should not decide if client is authorized if loginAs != user. Also this check can't be switched off nor customized via plugin.

Is there any reasoning about this code? I have hit that when trying to setup qpsmtpd as smarthost and smtp client honestly set loginAs email address from "Mail From" header which obviously is not same as $user.

I am bit strugling with this, imho Qpsmtpd core should not decide if client is authorized if loginAs != user. Also this check can't be switched off nor customized via plugin.
@abh
Copy link
Copy Markdown
Member

abh commented Apr 16, 2018

I vaguely recall that the RFC specifies some relationship between the mail from address and the AUTH address (loginas in the code). Implementing that correctly might take some care (or at least careful reading of the RFC). :-/

It's possible that the system needs to carry around "mail from" and "authenticated user" and use them differently and separately in places where we just use "mail from" now.

@smtpd smtpd deleted a comment from coveralls Jun 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants