Control Web Panel

WebPanel => E-Mail => Topic started by: izzatdz on July 27, 2018, 05:00:25 PM

Title: can receive and send mail using roundcube, but not using phpmailer
Post by: izzatdz on July 27, 2018, 05:00:25 PM
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?
Title: Re: can receive and send mail using roundcube, but not using phpmailer
Post by: bullten on July 27, 2018, 06:04:25 PM
Code: [Select]
nano /usr/local/php/php.ini
Find

Code: [Select]
;sendmail_path =
Replace with

Code: [Select]
sendmail_path = "/usr/sbin/sendmail -t -i"
Save it and restart apache

Code: [Select]
service httpd restart
Check if its working now.

Title: Re: can receive and send mail using roundcube, but not using phpmailer
Post by: izzatdz on July 27, 2018, 06:44:24 PM
Code: [Select]
nano /usr/local/php/php.ini
Find

Code: [Select]
;sendmail_path =
Replace with

Code: [Select]
sendmail_path = "/usr/sbin/sendmail -t -i"
Save it and restart apache

Code: [Select]
service httpd restart
Check if its working now.



still not working, hmmm
Title: Re: can receive and send mail using roundcube, but not using phpmailer
Post by: bullten on July 27, 2018, 06:47:21 PM
what is output of

Code: [Select]
tail -f /var/log/maillog
Title: Re: can receive and send mail using roundcube, but not using phpmailer
Post by: izzatdz on July 28, 2018, 03:06:53 AM
what is output of

Code: [Select]
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
Title: Re: can receive and send mail using roundcube, but not using phpmailer
Post by: bullten on July 29, 2018, 11:40:34 PM
More logs are needed . While sending email capture logs.
Title: Re: can receive and send mail using roundcube, but not using phpmailer
Post by: studio4host on July 30, 2018, 01:23:35 PM
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)
Code: [Select]
tail -f /var/log/maillog