cant connect to my smtp server
cant connect to my smtp server
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.

when i click test smtp settings i recieve following error:

i already googled but not found something that could help me.
=(
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.

when i click test smtp settings i recieve following error:

i already googled but not found something that could help me.
=(
Re: cant connect to my smtp server
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.
Script cannot resolve hostname or something like this.
Try to correct you /etc/resolv.conf, add nameservers yandex or google public dns.
Re: cant connect to my smtp server
thanks,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.
in this file were by default dns settings for google
i changed it to mine nameserver but doesnt help

still same error. i dont think that yandex nameserver would help
Re: cant connect to my smtp server
You tried something like this?
#cat /etc/resolv.conf
#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
Re: cant connect to my smtp server
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 -.-
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 -.-
Re: cant connect to my smtp server
Some error logs may be?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.
Where your mail accounts really are?
It's a little strange:
Code: Select all
$ host bigfathype.today
Host bigfathype.today not found: 3(NXDOMAIN)
This can be overriden by changes in webserver configs: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 -.-
Code: Select all
php_admin_value sendmail_path "/usr/sbin/sendmail -t -i -f [email protected]"
Re: cant connect to my smtp server
my emails are on my server
yeah idk why but its just crashed. trying to restart
what logs do you want?
yeah idk why but its just crashed. trying to restart
what logs do you want?
Re: cant connect to my smtp server
https://vestacp.com/docs/#config-log-lo ... ian-ubuntuyarick7 wrote: Some error logs may be?
https://vestacp.com/docs/#config-log-lo ... hel-centos
apache error log
Re: cant connect to my smtp server
Try replacing port 25 with 587
Re: cant connect to my smtp server
It's helped and this is solution.ShaunWHD wrote:Try replacing port 25 with 587