SOLVED Non-Gmail SMTP for iPBX 2021

This thread seems to have a lot of misunderstanding about OP's intent. No one was asking anyone else to do work for them, set up a mail server for them, etc. Just asking questions. I'm not going to speak on behalf of the owner(s) of this forum but I think it's perfectly reasonable to ask about alternatives without having a bunch of people say "there's only one way to do it!" I've set up a few PBXes and my partners in these projects have used gmail, sendgrid, some registrar's email service, and a local Exchange server as some that come to mind. So we have to do something different each time. If your only answer is "just use gmail" then maybe this thread was not one to reply to.
 
This thread seems to have a lot of misunderstanding about OP's intent. No one was asking anyone else to do work for them, set up a mail server for them, etc. Just asking questions. I'm not going to speak on behalf of the owner(s) of this forum but I think it's perfectly reasonable to ask about alternatives without having a bunch of people say "there's only one way to do it!" I've set up a few PBXes and my partners in these projects have used gmail, sendgrid, some registrar's email service, and a local Exchange server as some that come to mind. So we have to do something different each time. If your only answer is "just use gmail" then maybe this thread was not one to reply to.
Thank you for speaking on behalf of reason @billsimon.

I probably would not have been quite as eloquent and I'm sure I would not have been anywhere near as polite about it.
 
We run our own email server.

Looked through my notes and this
is what we used.

PBX running on Debian

Only need to set up a "Send only Mail Server"

apt-get install exim4-daemon-light mailutils

dpkg-reconfigure exim4-config - opens a shell with a few questions about set up.

echo "This is a test." | mail -s Testing root@localhost

Done,

Just in case someone is interested.
 
We run our own email server.

Looked through my notes and this
is what we used.

PBX running on Debian

Only need to set up a "Send only Mail Server"

apt-get install exim4-daemon-light mailutils

dpkg-reconfigure exim4-config - opens a shell with a few questions about set up.

echo "This is a test." | mail -s Testing root@localhost

Done,

Just in case someone is interested.
Works great unless your ISP is blocking downstream email servers, e.g. Comcast.
 
We run our email server on a AWS/EC2 instance.

Just need to fill out a request with AWS to remove any email limitations.

Usually if you have a "business" ISP account there's not a issue with
port being blocked. At least it's not for us. But I guess that
depends on the ISP you're using.
 
Last edited:
Nice article for those that don't run or know how to set up a mail server.
 
Works like champ on Oracle and Azure free VM's. Have not yet tried on production 2021 systems but see no reason it would not work. At least we are prepared if Google shuts down less secure apps login.
 
We recently setup our own Mailserver that can be used across all of our PBX's using iRedMail ... pretty nice piece of software and is working great so far. Going to use it to phase out Gmail.
 
I use mailjet and have no issues.
It was a tossup between SendGrid and Mailjet going in. But, our signup verification email from Mailjet got dumped into the SPAM folder by Gmail. So... that kinda made the decision easy. Didn't want to have to wrestle with that, and it appears Gmail classified it as SPAM despite SPF, DKIM, and DMARC validators all showing PASS. Who knows??
 
It was a tossup between SendGrid and Mailjet going in. But, our signup verification email from Mailjet got dumped into the SPAM folder by Gmail. So... that kinda made the decision easy. Didn't want to have to wrestle with that, and it appears Gmail classified it as SPAM despite SPF, DKIM, and DMARC validators all showing PASS. Who knows??
Or let's push competition to Spam - LOL
I've not had an issue with them.
 
For one of my clients, a couple of months ago I successfully used the "enable-gmail-smarthost-for-sendmail" script on their IncrediblePBX2021 (Debian) PBX. All is working now as expected. However, I have lost my notes on the GMail account that was used. Where in the operational system are the account name (and password?) stored (filename) that were used to enable this function for them?

All accounts are currently set to not delete the voicemail messages when they're sent as an email attachment. Though the employees "enjoy" getting their messages in email, they generally seem to be reluctant to access/listen/delete the messages from their phones - leaving an ever-growing collection of old messages. Some employees are better than others, though, and auto-delete is likely to be enabled for those who want that.

Given that Google intends to discontinue "Less Secure Apps" in the near future, I'll plan to move them to one of the services that @wardmundy has outlined above.

Thanks for insight as to the stored location of GMail UserID (and password) on the working iPBX.

/Pete./
 
@geopeterwc The username/password for the Gmail account are stored in plain text in /etc/mail/auth/client-info
@kenn10 as usual is on the money, - just for completeness - the exception is with Incredible-PBX-2020-for-Raspberry-Pi or a Debian server where exim4 is the mta - those credentials are in /etc/exim4/passwd.client
As @ext-104 Exim4 Post here
Code:
## edit the line # smtp.gmail.com:[email protected]:APP_KEY
##OR
##use the exim4 configuration wizard
dpkg-reconfigure exim4-config # - opens a shell with a few questions about set up.
 
Last edited:
For one of my clients, a couple of months ago I successfully used the "enable-gmail-smarthost-for-sendmail" script on their IncrediblePBX2021 (Debian) PBX. All is working now as expected. However, I have lost my notes on the GMail account that was used. Where in the operational system are the account name (and password?) stored (filename) that were used to enable this function for them?

All accounts are currently set to not delete the voicemail messages when they're sent as an email attachment. Though the employees "enjoy" getting their messages in email, they generally seem to be reluctant to access/listen/delete the messages from their phones - leaving an ever-growing collection of old messages. Some employees are better than others, though, and auto-delete is likely to be enabled for those who want that.

Given that Google intends to discontinue "Less Secure Apps" in the near future, I'll plan to move them to one of the services that @wardmundy has outlined above.

Thanks for insight as to the stored location of GMail UserID (and password) on the working iPBX.

/Pete./
Others answered your core question but I'll add there's a thread around here I recently posted to about auto deleting vm's but leaving x number of days (last 7, last 30, smth like that) and you might find that useful.

Edit -
It's in this thread: https://www.voip-info.org/forum/threads/voicemail-box-only-keeps-one-message.26257/#post-163458
 
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.
Back
Top