can receive and send mail using roundcube, but not using phpmailer

Started by izzatdz, July 27, 2018, 05:00:25 PM

Previous topic - Next topic

izzatdz

hi, i have problem with my mail, when using roundcube, i can sent and receive mail, but when using phpmailer, it not work.
anyone having the same issue here?

bullten

nano /usr/local/php/php.ini

Find

;sendmail_path =

Replace with

sendmail_path = "/usr/sbin/sendmail -t -i"

Save it and restart apache

service httpd restart

Check if its working now.


izzatdz

Quote from: bullten on July 27, 2018, 06:04:25 PM
nano /usr/local/php/php.ini

Find

;sendmail_path =

Replace with

sendmail_path = "/usr/sbin/sendmail -t -i"

Save it and restart apache

service httpd restart

Check if its working now.



still not working, hmmm


izzatdz

Quote from: bullten on July 27, 2018, 06:47:21 PM
what is output of

tail -f /var/log/maillog

here the output

Quote
Jul 28 02:18:31 vps postfix/smtpd[23303]: SSL_accept error from vps.site.com[127.0.0.1]: -1
Jul 28 02:18:31 vps postfix/smtpd[23303]: warning: TLS library problem: 23303:error:140760FC:SSL routines:SSL23_GET_CLIENT_HELLO:unknown protocol:s23_srvr.c:647:
Jul 28 02:18:31 vps postfix/smtpd[23303]: lost connection after CONNECT from vps.site.com[127.0.0.1]
Jul 28 02:18:31 vps postfix/smtpd[23303]: disconnect from vps.site.com[127.0.0.1]
Jul 28 02:18:31 vps postfix/smtpd[23303]: connect from vps.site.com[127.0.0.1]
Jul 28 02:18:31 vps postfix/smtpd[23303]: setting up TLS connection from vps.site.com[127.0.0.1]
Jul 28 02:18:49 vps postfix/anvil[23316]: statistics: max connection rate 1/60s for (smtp:145.249.104.245) at Jul 28 02:15:26
Jul 28 02:18:49 vps postfix/anvil[23316]: statistics: max connection count 1 for (smtp:145.249.104.245) at Jul 28 02:15:26
Jul 28 02:18:49 vps postfix/anvil[23316]: statistics: max cache size 1 at Jul 28 02:15:26

bullten


studio4host

you can try to rebuild your mail server from cwp.admin mailserver manager (postfix manager) this should give you a clean config then you can setup tail on the maillog file and try to send an email

before sending email run this from the console (not from webgui)
tail -f /var/log/maillog
VPS & Dedicated server provider with included FREE Managed support for CWP.
http://www.studio4host.com/

*** Don't allow that your server or website is down, choose hosting provider with included expert managed support for your CWP.