#12: implement Antispam & Antivirus scanning pipeline (Rspamd & ClamAV)
This commit is contained in:
1 parent
4c2e0b9563
commit
54d1ea5810
15 files changed
+825
-5
No files matched your search
@@ -0,0 +1,19 @@
|
||||
package port
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"lambdamail/protocols/internal/domain/valueobject"
|
||||
)
|
||||
|
||||
type ScanInput struct {
|
||||
ClientIP string
|
||||
HeloDomain string
|
||||
Sender string
|
||||
Recipient string
|
||||
Payload []byte
|
||||
}
|
||||
|
||||
type ContentScanner interface {
|
||||
Scan(ctx context.Context, input ScanInput) (*valueobject.ScanResult, error)
|
||||
}
|
||||
@@ -13,6 +13,7 @@ type PersistInboundMessageInput struct {
|
||||
Blob BlobRef
|
||||
SenderAddress string
|
||||
RecipientAddress string
|
||||
TargetFolderName string // "INBOX", "Junk", etc. (defaults to "INBOX" if empty)
|
||||
SPFResult string
|
||||
DKIMResult string
|
||||
DMARCResult string
|
||||
|
||||
Reference in new issue
Block a user