Sending emails with Snipe-IT

What app is this about, and its version: 8.3.7~ynh1
What YunoHost version are you running: 13.0.3
What type of hardware are you using: VPS bought online

Describe your issue

Hello,
I have installed Snipe-it.
I am having trouble sending a test email (Administrator settings → General configuration → Email → Send a test message).
The following message appears in the web interface:
“Le courrier électronique n’a pas pu être envoyé.
Aucun message d’erreur supplémentaire disponible. Veuillez vérifier vos paramètres de messagerie et le journal d’erreur de l’application.”

And this message in the logs (/var/www/snipeit/storage/logs/laravel.log):

“2026-01-16 08:59:16] production.ERROR: Mail sent error using snipeit@sousdomaine.mondomaine.ext: Mailer [mail] is not defined.”

In the .env file I saw here: (snipeit_ynh/conf/snipeit.env at master · YunoHost-Apps/snipeit_ynh · GitHub)
It mentions MAIL_DRIVER on line 50.
It seems to me that, since Laravel 7, you have to use MAIL_MAILER ?

Then there is a small typo on line 56 of the same file: it says ‘Snip-IT’ instead of ‘Snipe-IT’.

Thanks

Share relevant logs or error messages

“2026-01-16 08:59:16] production.ERROR: Mail sent error using snipeit@sousdomaine.mondomaine.ext: Mailer [mail] is not defined.”

“Le courrier électronique n’a pas pu être envoyé.
Aucun message d’erreur supplémentaire disponible. Veuillez vérifier vos paramètres de messagerie et le journal d’erreur de l’application.”

Thanks for pointing out, I’ve applied the latest .env template from upstream, testing here: Update mail settings for Lavarel 7 by orhtej2 · Pull Request #127 · YunoHost-Apps/snipeit_ynh · GitHub :hourglass_done:

I’m releasing 8.3.7 that contains the mail fix, worked for me once ™ for local mail account, GMail swallowed the outbound mail but such is life :person_shrugging:

Thank you :slightly_smiling_face:

Can I have access to the “corrected” version?:innocent:

You can install by updating to testing branch or wait an hour or so for the catalog to rebuild (so that the upgrade will be advertised)

Okay, I’ll wait, and in the Application → Snipe-IT section of my Yunohost, will I see an update available?

I’m going to lunch, and I’ll check it when I get back :baguette_bread:

The update should already be available

Thank you.

I no longer get the error message when sending the test message.

However, I never receive the test email. I need to check whether the email account is working properly.

Um, my M365 server has blacklisted my VPS IP!

This is the email system of the host sdomaineyuno.ext.

I'm sorry to inform you that your message could not
be delivered to one or more recipients. It is attached below.
For assistance, please send an email to postmaster.
If you do so, please include this problem report. You can
delete your own text from the attached returned message.
The mail system

<login@domainM365.ext>: host
domainM365-ext01c.mail.protection.outlook.com[IP_M365] said: 550
5.7.606 Access denied, sending IP banned [IP_YUNOHSOT]. To request removal
from this list, please visit https://sender.office.com/ and follow the
instructions. For more information, please visit
http://go.microsoft.com/fwlink/?LinkID=526655 AS(1427)
[AM3PEPF0xxxxxx.eurprd04.prod.outlook.com 2026-01-16T13:10:14.388Z
08DE543CD41805DD] (in response to RCPT TO command)

We will add an exception…

I only tested with local e-mail account, as I said GMail swallowed the mail (or whatever happened) as my IP is of a shady past (IDK where the VPS provider got these from).

a shady past : we don’t want to know everything :rofl:

1 Like

Enable tls and use 587 as smtp port.

This is enabled by default in Snipe-IT.

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.