SOLVED Use my own mailserver

AndyInNYC

Active Member
Joined
May 23, 2013
Messages
828
Reaction score
133
I set up my PBX forever ago. gmail no longer sends my voicemails (yes, I know why), so it's time to fix the problem (past time to fix the problem).

My PBX is using sendmail and was configured from the 'use gmail as a smarthost thread' long ago.

I'm not sure what files to change and how.

my /etc/mail/sendmail.mc

my mail server (for discussion), is AndyInNYCMail.com
I have an account [email protected] with password "Cow".
My server uses ssl, password authentication and port 587

Help for the stupid?

Andrew
 
if you "still" want to stay with gmail, you need to setup app password. Once app password is setup...
update /etc/mail/auth/client-info with new app password Gmail app key

then run the following:
Code:
chmod 600 client-info
makemap -r hash client-info.db < client-info
cd ..
make
systemctl restart sendmail

then immediately run
Code:
echo "test" | mail -s testmessage youremailaddress
to make sure it works...
 
Once app password is setup...
update /etc/mail/auth/client-info with new app password Gmail app key
Once you have your APPpassword from google -
The APPpassword simply replaces your regular password in /etc/mail/auth/client-info
And then run @Brianmac 's code above.

Well that should be quicker than troubling to set up a Non Google mail relayhost as above link.
 
I'm really not a farmer, so I can't really judge - but your joke really was the cream of the crop, ostridge.
Actually, I haven't decided on your joke - I'm half and half ...

Ok, jokes aside. getting an app password fixed the issue.

Thank you for looking out for your mentally deficient cohort.
 

Members online

Forum statistics

Threads
26,689
Messages
174,413
Members
20,259
Latest member
Fadeek86
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