Jump to content

Add prefix to subject of all notification emails?


Recommended Posts

I'm learning Vodia with a test system on 68.0.26. This morning my all-purpose alert email address received an email with the subject "Address has been blacklisted". The From address only showed the final sender--a Gmail address. I finally figured out that it was from the Vodia PBX by analyzing the email headers and finding the Vodia system IP address as the original sender.

I thought that adding a name to From address at System > Settings > Messaging > Email Setup would at least give me a From name, but either that is not passed along by Vodia, or it is stripped out by Google by the time it gets forwarded to me. Here are the obfuscated headers of the first hop, from the Vodia system to Gmail:

Received: from mydomain.com  ([])
        by smtp.gmail.com with ESMTPSA id f6-20020a170902ab8600b0019a7d58e595sm43422plr.143.2023.
        for <my.alerts@gmail.com>
        (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
        Thu, 02 Mar 2023 10:58:16 -0800 (PST)
Message-ID: <6400f1c8.170a0220.53125.0269@mx.google.com>
From: my.alerts@gmail.com

Is there a way to get Vodia to pass along the From name? And/or to add a prefix to the subject of all notifications so I know where the email comes from?



Link to comment
Share on other sites

If you use Google (Gmail) as an SMTP relay, AFAIK it will rewrite the 'FROM' to the account that's relaying. Is your final account also a Gmail account? Could you create another gmail account just for your Vodia relay? Otherwise, maybe use a different SMTP relay or self-host a hMailServer?

Link to comment
Share on other sites

@claritytech, thanks for your reply. Yes, that's the problem, by the time it is forwarded, the From name is stripped and just has the account that's forwarding. I set up one SMTP account per customer and use it for UPS alerts, RMM alerts, NAS alerts, PBX alerts, etc. Maybe I could work around it by creating a custom email just for Vodia, but I'd rather by able to customize Vodia by specifying a prefix. 

Attaching a screenshot of how Synology does it in their NAS.

Email prefix.png

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...