Scan files attached to the emails

Started by colora, February 24, 2021, 02:48:23 PM

Previous topic - Next topic
February 24, 2021, 02:48:23 PM Last Edit: February 24, 2021, 03:05:00 PM by colora
Hello!

I want to scan files attached to the emails such as .pdf, .exe.
The only solution I've found is clamAV + postfix + rspamd (using OPNsense as mail server)
But I already have mail server in my network. So is there any possibility to do SMTP flow-based file scanning?

Thank you!

Yes
look at the docs "Mail Gateway" this will solve it
(Unoffial Community) OPNsense Telegram Group: https://t.me/joinchat/0o9JuLUXRFpiNmJk

PM for paid support

February 24, 2021, 06:59:58 PM #2 Last Edit: February 24, 2021, 08:03:02 PM by colora
Thank you!

But as I understand, if OPNsense is configured as mail gateway, all clients will have to use it as mail server.
Please, tell me if I'm wrong

I just want OPNsense to scan attachments in SMTP packets without being mail server (see diagram)

Quote from: colora on February 24, 2021, 06:59:58 PM
Thank you!

But as I understand, if OPNsense is configured as mail gateway, all clients will have to use it as mail server.
Please, tell me if I'm wrong

I just want OPNsense to scan attachments in SMTP packets without being mail server (see diagram)
Not for incoming mails

I think your mails are getting delivered to you via smtp

The OPNsense will get these mails and will forward them to the  configured domains to your mail server

Idk for outgoing mails, never used it
(Unoffial Community) OPNsense Telegram Group: https://t.me/joinchat/0o9JuLUXRFpiNmJk

PM for paid support

One option is using an email security service that offers attachment scanning as part of its features.

QuoteI just want OPNsense to scan attachments in SMTP packets without being mail server (see diagram)
yes. it will work this way with  'clamAV + postfix + rspamd'

Depents on email, if its 587 SSL this won't do anything. For IMAP or Pop yeah, but its 2023 who uses IMAP or pop these days.
My Youtube Networing & Lab Videos :
----------------------------------------
https://www.youtube.com/jasonslabvideos

March 13, 2023, 11:10:16 AM #7 Last Edit: March 16, 2023, 10:28:21 AM by KellyMaleaht
I see that you're looking for a way to scan email attachments for potential viruses or malware. One solution you mentioned is clamAV, postfix, and spamd, but you're wondering if there's a way to do SMTP flow-based file scanning instead.
And while you're at it, use a document verification service like idanalyzer.com to ensure the authenticity and validity of your scanned documents. It's always important to take extra precautions to protect sensitive information.