Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Mail Server
  • Search

Use gmail as smtp

Questions regarding the Mail Server
Dovecot, Exim, RoundCube
Post Reply
  • Print view
Advanced search
4 posts • Page 1 of 1
toketog
Posts: 1
Joined: Sat Apr 23, 2016 3:28 pm

Use gmail as smtp
  • Quote

Post by toketog » Sat Apr 23, 2016 3:33 pm

Hello, it's been a lot of days since i was trying to use gmail as smtp server. I've tried a lot of settings without success. So, i'm asking for your help. Do you know what i need to modify in order to make this work? The only settings that i made was on exim configuration file
Top

Falzo
Posts: 60
Joined: Mon Mar 28, 2016 8:49 am

Re: Use gmail as smtp
  • Quote

Post by Falzo » Sun Apr 24, 2016 7:24 am

depending on what you're using as distro whis might be a good read: https://wiki.debian.org/GmailAndExim4 (esp. starting with dpkg-reconfigure exim4-config ;-))
Top

mehargags
Support team
Posts: 1096
Joined: Sat Sep 06, 2014 9:58 pm
Contact:
Contact mehargags
Website Skype

Os: Debian 8x
Web: apache + nginx
Re: Use gmail as smtp
  • Quote

Post by mehargags » Sun Apr 24, 2016 12:18 pm

ref : http://www.pontikis.net/blog/gmail-smar ... im4-debian


nano /etc/exim4/exim4.conf.template
smtp.gmail.com::587:

/etc/exim4/passwd.client
smtp.gmail.com:[email protected]:gmail_password

or you can use wizard:

Code: Select all

dpkg-reconfigure exim4-config
|-	2nd option Mail Sent by Smarthost: recieved via smtp...
|- 	provide FQDN
|-	127.0.0.0
|- 	enter
|- 	enter
|-	smtp.gmail.com::587
|-	No
|-	No
|-	whatever
|-	Split files -- YES

Code: Select all

nano /etc/exim4/passwd.client
|-	*.google.com:[email protected]:gmail_password

Code: Select all

update-exim4.conf
service exim4 restart
# if it spits error, you've done something wrong, else all good so try sending a mail from the command line

Code: Select all

echo "VestaCP-Test Mail sent $(date +"%T")" | mail -s Testing <youremailid>
if you receive the mail from the ID you used in /etc/exim4/passwd.client you are good to go.
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: Use gmail as smtp
  • Quote

Post by skurudo » Mon Apr 25, 2016 10:00 am

Or from here:
viewtopic.php?t=7422
Top


Post Reply
  • Print view

4 posts • Page 1 of 1

Return to “Mail Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password