Issue
M7SJO reports "Email is working well although it is still sending two emails to my Outlook inbox every time!"
Cause
It turns out he is using an email address as the name - and it happens to be the same email address!
So I didn't look up the RFC / protocol, to check what is allowed. But apparently in Gmail at least, the name cannot be an email address. The Gmail client actually flags this as an error!
Suggested fix
So, you should run input sanity checks. If the addressee or name is disallowed, then reject or return the message. Ideally, you should catch this even earlier - in the composition stage, and not allow them to enter or to send to an illegal name/addressee.
Error Message in Gmail

Log file - Example 1
22/07/2025 20:47:59 - (CN:1) Incoming message.
22/07/2025 20:48:02 - Email sent to M7SJO@OUTLOOK.COM through Email gateway successfully.
22/07/2025 20:48:03 - (CN:1) Email sent to M7SJO@OUTLOOK.COM through Email gateway successfully.
22/07/2025 20:49:36 - (CN:20) KISS BEACON received from PD0WAG
22/07/2025 20:49:36 - (CN:20) PSKReporter: Logged successfully (PD0WAG)
22/07/2025 20:49:36 - (CN:20) PSKReporter: Sending accumulated records
22/07/2025 20:49:36 - (CN:20) Logging Contact to DB: PD0WAG
22/07/2025 20:51:23 - (CN:20) KISS BEACON received from PD2GCM
22/07/2025 20:51:23 - (CN:20) PSKReporter: Logged successfully (PD2GCM)
22/07/2025 20:51:23 - (CN:20) PSKReporter: Sending accumulated records
22/07/2025 20:51:23 - (CN:20) Logging Contact to DB: PD2GCM
22/07/2025 20:52:25 - (CN:20) PSKReporter: Logged successfully (EA5URB)
22/07/2025 20:52:25 - (CN:20) PSKReporter: Sending accumulated records
22/07/2025 20:52:51 - (CN:1) Email gateway: incoming email through IMAP server detected: Destination callsign: M7SJO. Pulling to the VMailbox.
22/07/2025 20:53:51 - (CN:1) Email sent to M7SJO@outlook.com through Email gateway successfully.
It turns out to be a bug in VarAC, not just a lack of validation.
Please see https://www.varac-hamradio.com/forum/bug-reports/duplicated-emails
However, I suggest VarAC employ sanity checks any way, to catch these types of issues at whatever stages it can!