Coder Social home page Coder Social logo

[SMTP] Wrong user lookup about magma HOT 4 CLOSED

lavabit avatar lavabit commented on August 18, 2024
[SMTP] Wrong user lookup

from magma.

Comments (4)

ba0f3 avatar ba0f3 commented on August 18, 2024

hmm, it looks like magma pass all outgoing emails to smtp relay, and relay will send them back if they are internal mailboxes

magma --> relay --> external
    ^            |
    |____________|

if #61 get merged, magma will denied them w/ error 530 AUTHENTICATION REQUIRED

The question is why don't process them internally? and why magma let anyone (including relay) sends incoming as its users w/o authentication

sorry, but my English very bad

from magma.

ladar avatar ladar commented on August 18, 2024

Any message that arrives on an authenticated SMTP connection gets relayed after passing the business rule checks. Including sending quotas, virus check, signs it using dkim, etc. If that user sent a message to a hosted domain it gets routed back on an unauthenticated connection and delivered. Trying to split that up, handoff some, but not others would be tricky.

As for accepting messages for hosted domains, on unauthenticated connections, they will get rejected if they fail the SPF check, which operates on the MAIL FROM. The SPF record should only allow messages from the relay servers to use hosted domains in the MAIL FROM.

What's trickier is validating the From: field inside the message body. That can be easily spoofed, and often is.

from magma.

ladar avatar ladar commented on August 18, 2024

Oh! As for outbound messages, magma does check that the From: field inside the message body matches the user authentication credentials. Or at least it used to, so you can't spoof another user on the same server.

from magma.

ba0f3 avatar ba0f3 commented on August 18, 2024

I think there is smth wrong w/ my user account, Dispatch data was not initialize yet.

from magma.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.