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

cant connect to my smtp server

Questions regarding the Mail Server
Dovecot, Exim, RoundCube
Locked
  • Print view
Advanced search
10 posts • Page 1 of 1
yarick7
Posts: 13
Joined: Mon May 02, 2016 9:51 pm

cant connect to my smtp server

Post by yarick7 » Mon May 02, 2016 9:59 pm

Hallo guys im new on vesta and centos. Allready tryed all possible things to solve my issue and its my last hope here now.
I have installed vesta on centos. I created account for sending emails and can send and recieve emails via roundcube but via my php script im not able to do it.

Image

when i click test smtp settings i recieve following error:
Image

i already googled but not found something that could help me.

=(
Top

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

Re: cant connect to my smtp server

Post by skurudo » Mon May 02, 2016 10:09 pm

I think, it's not mail problem, more like php script problem.
Script cannot resolve hostname or something like this.
Try to correct you /etc/resolv.conf, add nameservers yandex or google public dns.
Top

yarick7
Posts: 13
Joined: Mon May 02, 2016 9:51 pm

Re: cant connect to my smtp server

Post by yarick7 » Mon May 02, 2016 10:41 pm

skurudo wrote:I think, it's not mail problem, more like php script problem.
Script cannot resolve hostname or something like this.
Try to correct you /etc/resolv.conf, add nameservers yandex or google public dns.
thanks,
in this file were by default dns settings for google
i changed it to mine nameserver but doesnt help

Image

still same error. i dont think that yandex nameserver would help
Top

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

Re: cant connect to my smtp server

Post by skurudo » Mon May 02, 2016 10:43 pm

You tried something like this?

#cat /etc/resolv.conf

Code: Select all

nameserver 77.88.8.8
nameserver 8.8.8.8
nameserver 77.88.8.1
nameserver 8.8.4.4
Top

yarick7
Posts: 13
Joined: Mon May 02, 2016 9:51 pm

Re: cant connect to my smtp server

Post by yarick7 » Mon May 02, 2016 10:55 pm

thanks. i tried, added them all but not helps. same error.
weird think is when i change smtp hostname settings from mail.bigfathype.today to bigfathype.today in script then it takes long time but sends my email. The problem is that it sends email not from [email protected] but from my email that i used for hosting and domain register -.-
Top

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

Re: cant connect to my smtp server

Post by skurudo » Mon May 02, 2016 11:24 pm

yarick7 wrote:thanks. i tried, added them all but not helps. same error.
weird think is when i change smtp hostname settings from mail.bigfathype.today to bigfathype.today in script then it takes long time but sends my email.
Some error logs may be?
Where your mail accounts really are?

It's a little strange:

Code: Select all

$ host bigfathype.today
Host bigfathype.today not found: 3(NXDOMAIN)
yarick7 wrote:The problem is that it sends email not from [email protected] but from my email that i used for hosting and domain register -.-
This can be overriden by changes in webserver configs:

Code: Select all

php_admin_value sendmail_path "/usr/sbin/sendmail -t -i -f [email protected]"
Top

yarick7
Posts: 13
Joined: Mon May 02, 2016 9:51 pm

Re: cant connect to my smtp server

Post by yarick7 » Mon May 02, 2016 11:36 pm

my emails are on my server
yeah idk why but its just crashed. trying to restart
what logs do you want?
Top

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

Re: cant connect to my smtp server

Post by skurudo » Mon May 02, 2016 11:39 pm

yarick7 wrote: Some error logs may be?
https://vestacp.com/docs/#config-log-lo ... ian-ubuntu
https://vestacp.com/docs/#config-log-lo ... hel-centos

apache error log
Top

ShaunWHD
Posts: 18
Joined: Tue May 03, 2016 5:30 pm

Re: cant connect to my smtp server

Post by ShaunWHD » Tue May 03, 2016 5:58 pm

Try replacing port 25 with 587
Top

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

Re: cant connect to my smtp server

Post by skurudo » Wed May 04, 2016 11:34 am

ShaunWHD wrote:Try replacing port 25 with 587
It's helped and this is solution.
Top


Locked
  • Print view

10 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