Z-Push not sending email form iPhone
-
Hi umardraz,
did you specify sendmail_path in the php.ini of apache? In the php.ini you could also configure additional logging for mail() calls.
Manfred
-
@manfred said in Z-Push not sending email form iPhone:
Manfred
HI Manfred,
We can not use direct smtp instead of sendmail?
Regards
-
Hi umardraz,
you can use direct smpt if you set IMAP_SMTP_METHOD in the config.php of the imap backend to ‘smtp’. Or is it set to ‘smtp’ and causing this error?
Manfred
-
HI
Thanks for your help, now I will prefer smtp method.
Here is my imap backend’s smtp setting
$imap_smtp_params = array(‘host’ => ‘ssl://172.17.0.1’, ‘port’ => 465, ‘auth’ => true, ‘username’ => ‘imap_username’, ‘password’ => ‘imap_password’, ‘allow_self_signed’ => T
rue);But I am getting error while sending emails
Sep 14 19:22:36 mail postfix/smtps/smtpd[388]: warning: TLS library problem: 388:error:14094418:SSL routines:SSL3_READ_BYTES:tlsv1 alert unknown ca:s3_pkt.c:1275:SSL alert number 48:
-
Hi umardraz,
you could try setting verify_peer and verify_peer_name of $imap_smtp_params to false.
Manfred
-
Thanks :)
-
Thanks for your help regarding that. Now the smtp start working. Now whenever I try to send email I got these error in z-push
15/09/2017 01:36:18 [ 68] [ERROR] [umar@netpc.me] trace: 1:/usr/share/z-push/backend/imap/imap.php:2495 - Mail_smtp->send()
15/09/2017 01:36:18 [ 68] [ERROR] [umar@netpc.me] trace: 2:/usr/share/z-push/backend/imap/imap.php:318 - BackendIMAP->sendMessage()
15/09/2017 01:36:18 [ 68] [ERROR] [umar@netpc.me] trace: 3:/usr/share/z-push/backend/combined/combined.php:268 - BackendIMAP->SendMail()
15/09/2017 01:36:18 [ 68] [ERROR] [umar@netpc.me] trace: 4:/usr/share/z-push/lib/request/sendmail.php:127 - BackendCombined->SendMail()
15/09/2017 01:36:18 [ 68] [ERROR] [umar@netpc.me] trace: 5:/usr/share/z-push/lib/request/requestprocessor.php:112 - SendMail->Handle()
15/09/2017 01:36:18 [ 68] [ERROR] [umar@netpc.me] trace: 6:/usr/share/z-push/index.php:107 - RequestProcessor::HandleRequest()
15/09/2017 01:36:18 [ 68] [ERROR] [umar@netpc.me] BackendIMAP->saveSentMessage(): The email could not be saved to Sent Items folder. Check your configuration.Here is my imap-conf.php
<?php define('IMAP_SERVER', '172.17.0.1'); define('IMAP_PORT', 993); define('IMAP_OPTIONS', '/notls/norsh/ssl/novalidate-cert'); define('IMAP_AUTOSEEN_ON_DELETE', false); define('IMAP_FOLDER_CONFIGURED', true); define('IMAP_FOLDER_PREFIX', ''); define('IMAP_FOLDER_PREFIX_IN_INBOX', false); define('IMAP_FOLDER_INBOX', 'INBOX'); define('IMAP_FOLDER_SENT', 'SENT'); define('IMAP_FOLDER_DRAFT', 'DRAFTS'); define('IMAP_FOLDER_TRASH', 'TRASH'); define('IMAP_FOLDER_SPAM', 'SPAM'); define('IMAP_FOLDER_ARCHIVE', 'ARCHIVE'); define('IMAP_INLINE_FORWARD', true); define('IMAP_EXCLUDED_FOLDERS', ''); define('IMAP_DEFAULTFROM', ''); define('IMAP_SMTP_METHOD', 'smtp'); global $imap_smtp_params; $imap_smtp_params = array('host' => 'ssl://172.17.0.1', 'port' => 465, 'auth' => true, 'username' => 'imap_username', 'password' => 'imap_password', 'verify_peer ' => false, 'verify_peer_name' => false, 'allow_self_signed' => true); define('MAIL_MIMEPART_CRLF', "\r\n"); define('SYSTEM_MIME_TYPES_MAPPING', '/etc/mime.types'); define('IMAP_MEETING_USE_CALDAV', true); ?>
-
Hi umardraz,
you have to check if the imap folder names match the ones in the config. Maybe it’s not “SENT”, but “common.sent” or something like that.
Manfred
-
HI
this is the folder list
rwx------ 5 vmail vmail 4096 Sep 11 04:22 .Archive
drwx------ 5 vmail vmail 4096 Sep 11 04:24 .Deleted Items
drwx------ 5 vmail vmail 4096 Sep 12 14:38 .Drafts
drwx------ 5 vmail vmail 4096 Sep 10 07:04 .Junk E-mail
drwx------ 2 vmail vmail 4096 Sep 15 10:26 new
drwx------ 5 vmail vmail 4096 Sep 15 05:36 .Sent Items
drwx------ 5 vmail vmail 4096 Sep 15 10:27 .Sent Messages
drwx------ 5 vmail vmail 4096 Sep 11 04:15 .Spam
drwx------ 5 vmail vmail 4096 Sep 11 15:17 .Spambox
drwx------ 5 vmail vmail 4096 Sep 15 10:27 .TrashRegards
-
Hi umardraz,
so I’d say it’s either " .Sent Items" or “.Sent Messages” whatever your imap server configuration is.
Manfred
-
Yes I had update the imap-conf.php and change SENT with Sent Messages
Thanks