Skip to content

Incompatibility with Google/Gmail SMTP - Attachment blocked #33

@NightMean

Description

@NightMean

Hi, I just setup Lazywarden (many thanks for the amazing tutorial on the website :) ) and I've setup the notification via Google Gmail SMTP settings. I have it functional with other services so there is no issue with that.
Lazywarden backup worked as expected however when it tried to notify me of the backup, I did not received any email as the attachment is apparently malicious.. sigh Google..

Is there any possibility to add an option to only use SMTP for notifications as e.g. Telegram/Discord/Ntfy? While other SMTP servers might work as expected, I'm only looking for an email notification as I have the backup on Google Drive.

My SMTP settings:

SMTP_SERVER=smtp.gmail.com
SMTP_PORT=587
SMTP_USERNAME=my.account@gmail.com
SMTP_PASSWORD=password123
EMAIL_RECIPIENT=my.other.account@gmail.com
SENDER_EMAIL=my.account@gmail.com

Error log:

2025-01-03 21:44:16,403 - ERROR - SMTP error: (552, b'5.7.0 This message was blocked because its content presents a potential\n5.7.0 security issue. To review our message content and attachment content\n5.7.0 guidelines, go to\n5.7.0  https://support.google.com/mail/?p=BlockedMessage a640c23a62f3a-aac0f06fb1bsm1926288866b.191 - gsmtp')

2025-01-03 21:44:16,404 - INFO - Email with attachment sent successfully

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions