TUTORIAL Install gMail as SMTP SmartHost for SendMail

wardmundy

Nerd Uno
Joined
Oct 12, 2007
Messages
19,168
Reaction score
5,199
You need to start a new thread in the Help section. This has nothing to do with the topic.
 

voipRookie

Member
Joined
Oct 17, 2010
Messages
91
Reaction score
9
Thanks Ward works like a champ.

However, the echo commands in post #1 are using the wrong character to pass the double quote characters to the output file. Should be using the back slash character ('\') instead of the forward slash character ('/').
 

MACscr

Member
Joined
Mar 12, 2008
Messages
50
Reaction score
1
When i run the 'make' command, i get back:

Code:
WARNING: 'sendmail.mc' is modified. Please install package sendmail-cf to update your configuration.
WARNING: 'submit.mc' is modified. Please install package sendmail-cf to update your configuration.

I also see no indication of sendmail even trying to use the gmail account that i setup. Recommendations?
 

oneadvent

New Member
Joined
Nov 10, 2009
Messages
162
Reaction score
0
Code:
makemap -r hash client-info.db < client-info

I think its that line that uses the sendmail-cf package.

Have you tried installing it like the output asks of you?

Oh and +1 on the wrong way to escape the "s, I had to go back and edit that manually. (Not hard, but not plugin play, and I know Nerd Uno likes plug it in and it works.)
Thanks for the script. Other than that typo worked great!
 

tenriquez

Member
Joined
Jun 6, 2009
Messages
31
Reaction score
4
I'm trying to use gmail as a sendmail relay. Regarding the various pages in this thread, where would one start?
 

tycho

Guru (not...)
Joined
Aug 9, 2011
Messages
652
Reaction score
272
I've been using the gmail relay described in the link in Ward's post #86, above, for almost 2 years now on every PIAF I install, and it works like a charm.
 

Albert S

Member
Joined
Jul 21, 2013
Messages
122
Reaction score
7
I've followed the instructions of mysolutions.it

I get; I changed 587 to 465 as well after failure

The original message was received at Fri, 23 Aug 2013 07:46:40 -0400
from pbx.local [127.0.0.1]

----- The following addresses had permanent fatal errors -----
<[email protected]>
(reason: 530-5.5.1 Authentication Required. Learn more at)

----- Transcript of session follows -----
... while talking to smtp.gmail.com:
>>> MAIL From:<[email protected]> SIZE=663
<<< 530-5.5.1 Authentication Required. Learn more at
<<< 530 5.5.1 http://support.google.com/mail/bin/answer.py?answer=14257 r8sm22805075qez.1
- gsmtp
554 5.0.0 Service unavailable
 

pbxiaf1616

Member
Joined
Oct 5, 2010
Messages
31
Reaction score
2
I've followed the instructions of mysolutions.it

I get; I changed 587 to 465 as well after failure

The original message was received at Fri, 23 Aug 2013 07:46:40 -0400
from pbx.local [127.0.0.1]

----- The following addresses had permanent fatal errors -----
<[email protected]>
(reason: 530-5.5.1 Authentication Required. Learn more at)

----- Transcript of session follows -----
... while talking to smtp.gmail.com:
>>> MAIL From:<[email protected]> SIZE=663
<<< 530-5.5.1 Authentication Required. Learn more at
<<< 530 5.5.1 http://support.google.com/mail/bin/answer.py?answer=14257 r8sm22805075qez.1
- gsmtp
554 5.0.0 Service unavailable

still works, after i edited my dns and put open dns, i edited client-info like this, I input username and password in this 3 lines.

AuthInfo:smtp.gmail.com "U:smmsp" "I:username" "P:password" "M:pLAIN" > client-info
AuthInfo:smtp.gmail.com:587 "U:smmsp" "I:username" "P:password" "M:pLAIN"
AuthInfo:smtp.gmail.com:465 "U:smmsp" "I:username" "P:password" "M:pLAIN"

it works right away after so many hours of trial and errors.

now i need to modify the body of the email sent by asterisk, how can i do this??

thank you Wardmundy.
 

ZeekWorld

New Member
Joined
Jul 26, 2013
Messages
12
Reaction score
2
Hi all
I have installed PAIF Green and is up and running. I am one of those Comcast users needing to configure Gmail as SMTP to be able to get email notifications from the PBX in a Flash system.
I am a little weak on the command line but can definitely follow instructions.
I've been reading lots of posts regarding the PIAF Gmail SMTP configuration and want to make sure the instructions on POST 1 from wardmundy, Mar 16, 2008 are still valid.
I would appreciate anyone let me know so I can start with the configuration.
Also was wondering if there is an easier way via GUI to configure the Gmail SMTP.

My current system in case it matters,
PIAF 2.0.6.4 under VMWARE (GREEN)
Free BBX 2.11.0.11
Asterixs Version 11.5.1
Incredible Version 11.1

Thanks a lot,
Zeek
 

pbxiaf1616

Member
Joined
Oct 5, 2010
Messages
31
Reaction score
2
Hi all
I have installed PAIF Green and is up and running. I am one of those Comcast users needing to configure Gmail as SMTP to be able to get email notifications from the PBX in a Flash system.
I am a little weak on the command line but can definitely follow instructions.
I've been reading lots of posts regarding the PIAF Gmail SMTP configuration and want to make sure the instructions on POST 1 from wardmundy, Mar 16, 2008 are still valid.
I would appreciate anyone let me know so I can start with the configuration.
Also was wondering if there is an easier way via GUI to configure the Gmail SMTP.

My current system in case it matters,
PIAF 2.0.6.4 under VMWARE (GREEN)
Free BBX 2.11.0.11
Asterixs Version 11.5.1
Incredible Version 11.1

Thanks a lot,
Zeek



Yes it is working, just follow the instruction in the first page of this thread.
 

craesz

New Member
Joined
Oct 21, 2011
Messages
8
Reaction score
0
I had this working. Followed the instructions exactly. It was working perfectly (sending voicemails through gmail and as mp3). Had to reinstall and now, after following the directions exactly, it is not working. Other than this issue, my PBX is working perfectly. How do I troubleshoot this??
 

jeff.h

Guru
Joined
Dec 1, 2010
Messages
502
Reaction score
71
SendMail appears to be really hosed. You can download the original Orgasmatron config of sendmail but it doesn't have all the pieces of the sendmail executables, etc. Issue these commands after making a backup of your existing stuff. No guarantees!!

HTML:
service sendmail stop
cd /
wget http://nerdvittles.dreamhosters.com/pbxinaflash/source/sendmail/sendmail.zip
unzip sendmail.zip
mv /etc/mail /etc/mail-hosed
tar zxvf sendmail.tgz
service sendmail restart

Then you can try making your changes again. Or, better yet, follow the VPN in a Flash tutorial. Good luck!

Sorry to dig up an old thread, but I have switched ISPs and I can send directly without needing to use gmail anymore. Will I reset Sendmail back to how it was right after the initial PIAF install if I follow these instructions?
 

Members online

No members online now.

Forum statistics

Threads
25,781
Messages
167,507
Members
19,200
Latest member
mricot
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.
Top