SOLVED Using gmail account and Sendmail to send voice message mail

alevene

Member
Joined
Sep 8, 2008
Messages
116
Reaction score
0
Our system was running happily sending out phone messages using a gmail account... and then it stopped. The error message is essentially - incorrect password.

I tried using this original script without success - http://pbxinaflash.com/community/in...ll-gmail-as-smtp-relay-host-for-sendmail.974/

The exact message is
----- Transcript of session follows -----
... while talking to smtp.gmail.com:
>>> AUTH dialogue
<<< 535-5.7.8 Username and Password not accepted. Learn more at
<<< 535 5.7.8 http://support.google.com/mail/bin/answer.py?answer=14257 t66sm4966177yhc.45
- gsmtp
>>> MAIL From:<[email protected]> SIZE=558
<<< 530-5.5.1 Authentication Required. Learn more at
<<< 530 5.5.1 http://support.google.com/mail/bin/answer.py?answer=14257 t66sm4966177yhc.45
- gsmtp
554 5.0.0 Service unavailable

I tried the user name with and without @gmail.com. The password is correct.

Any ideas?
 
alevene

Since it's not quite clear in your post, I'll ask the obvious: Have you tried logging into the account via Google's web interface to see if it works that way?
 
Yes, the gmail works fine using the same name and password. I did more research today and found that the SMTP system stopped forwarding email on April 10th. The OpenSSL "fix" to Heartbleed was released a few days earlier so I suspect that the PIAF was updated at this time. That may not be the reason, but the dates are close. I tried changing the gmail password to 8 alphanumeric characters in case it PIAF didn't like a longer, more complex password without effect.

Ideas?
 
FYI, I used this script -
cd /etc/mail
hostname -f > genericsdomain
touch genericstable
makemap -r hash genericstable.db < genericstable
mv sendmail.mc sendmail.mc.original
wget http://pbxinaflash.net/source/sendmail/sendmail.mc.gmail
cp sendmail.mc.gmail sendmail.mc
mkdir -p auth
chmod 700 auth
cd auth
echo AuthInfo:smtp.gmail.com \"U:smmsp\" \"I:[email protected]\" \"P:workinggooglepassword\" \"M:PLAIN\" > client-info
echo AuthInfo:smtp.gmail.com:587 \"U:smmsp\" \"I:[email protected]\" \"workinggooglepassword\" \"M:PLAIN\" >> client-info
echo AuthInfo:smtp.gmail.com:465 \"U:smmsp\" \"I:[email protected]\" \"P:workinggooglepassword\" \"M:PLAIN\" >> client-info
chmod 600 client-info
makemap -r hash client-info.db < client-info
cd ..
make
service sendmail restart
 
If I remember correctly there was a small issue with how it echo'd info into the /etc/mail/auth/client-info file something with the quotes was hosed up.

It needs to look like this.
Code:
AuthInfo:smtp.gmail.com "U:smmsp" "I:username" "P:password" "M:PLAIN"
AuthInfo:smtp.gmail.com:587 "U:smmsp" "I:username" "P:password" "M:PLAIN"
 
I was very careful with the client-info file. It is correct. I downgraded the OpenSSL to the prior version without any good outcome so I upgraded it back to current version. Here are the OpenSSL versions -

openssl 1.0.1e-16.el6_5.7 - the updated file

m2crypto 0.20.2-9.el6
openssl-devel 1.0.1e-16.el6_5.7
openssl-perl 1.0.1e-16.el6_5.7
openssl-static 1.0.1e-16.el6_5.7
openssl098e 0.9.8e-17.el6.centos.2
perl-Crypt-SSLeay 0.57-16.el6

I checked the password change logs and found that everything stopped working, the same day I changed the gmail password on Google! So there may be a bug in the system. How do I manually remove the entire subsystem so that I can rebuild the linkage from PIAF SMTPing the gmail account?
 
It works again!

As I noticed that when I moved to a very long password, the system broke so I jsut tried a 7 digit alpha-numeric change at google and the system started to work again. Yes, 7 characters is not that many but it works. I'm quitting while ahead.

Thanks for your idea prompts.
 
alevene

I had read your replies, this morning. But, work got in the way... ;) Glad you were able to get it working!
 
Just to be clear for others who have this problem. It appears that PIAF can only deal with Google passwords up to eight characters. I haven't tested all of the maximum eight character passwords combinations (alpha, numeric, symbols, etc) as I don't have time but if you want to experiment, please post to this thread.
 
I have just looked at my configuration and I have a 15 alpha-numeric (no special characters) set on my GV account that I use with PIAF.
 

Members online

Forum statistics

Threads
26,687
Messages
174,410
Members
20,257
Latest member
Dempan
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