• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Question Unable to send emails via phpmailler (codeigniter) smtp to hotmail.

Grepher76

New Pleskian
Hello,

I can not send emails via codeigniter (phpmailler mode smtp) to hotmail, on the other hand I can send emails to hotmail via roundcube.

PHP:
<?php defined('BASEPATH') OR exit('No direct script access allowed.');

$config['useragent']        = 'PHPMailer';              // Mail engine switcher: 'CodeIgniter' or 'PHPMailer'
$config['protocol']         = 'smtp';                   // 'mail', 'sendmail', or 'smtp'
$config['mailpath']         = '/usr/sbin/sendmail';
$config['smtp_host']        = 'ns1.maltospeak.com';
$config['smtp_auth']        = TRUE;                     // Whether to use SMTP authentication, boolean TRUE/FALSE. If this option is omited or if it is NULL, then SMTP authentication is used when both $config['smtp_user'] and $config['smtp_pass'] are non-empty strings.
$config['smtp_user']        = '[email protected]';
$config['smtp_pass']        = '********';
$config['smtp_port']        = 587;
$config['smtp_timeout']     = 30;                       // (in seconds)
$config['smtp_crypto'] = 'tls';                      // '' or 'tls' or 'ssl'
$config['smtp_debug']       = 3;                        // PHPMailer's SMTP debug info level: 0 = off, 1 = commands, 2 = commands and data, 3 = as 2 plus connection status, 4 = low level data output.
$config['debug_output']     = '';                       // PHPMailer's SMTP debug output: 'html', 'echo', 'error_log' or user defined function with parameter $str and $level. NULL or '' means 'echo' on CLI, 'html' otherwise.
$config['smtp_auto_tls']    = true;                     // Whether to enable TLS encryption automatically if a server supports it, even if `smtp_crypto` is not set to 'tls'.
$config['smtp_conn_options'] = array();                 // SMTP connection options, an array passed to the function stream_context_create() when connecting via SMTP.
$config['wordwrap']         = true;
$config['wrapchars']        = 76;
$config['mailtype']         = 'html';                   // 'text' or 'html'
$config['charset']          = 'UTF-8';                     // 'UTF-8', 'ISO-8859-15', ...; NULL (preferable) means config_item('charset'), i.e. the character set of the site.
$config['validate']         = true;
$config['priority']         = 3;                        // 1, 2, 3, 4, 5; on PHPMailer useragent NULL is a possible option, it means that X-priority header is not set at all, see https://github.com/PHPMailer/PHPMailer/issues/449
$config['newline'] = "\r\n";
$config['crlf'] = "\r\n";                   // "\r\n" or "\n" or "\r"
$config['bcc_batch_mode']   = false;
$config['bcc_batch_size']   = 200;
$config['encoding']         = '8bit';                   // The body encoding. For CodeIgniter: '8bit' or '7bit'. For PHPMailer: '8bit', '7bit', 'binary', 'base64', or 'quoted-printable'.

// DKIM Signing
// See https://yomotherboard.com/how-to-setup-email-server-dkim-keys/
// See http://stackoverflow.com/questions/24463425/send-mail-in-phpmailer-using-dkim-keys
// See https://github.com/PHPMailer/PHPMailer/blob/v5.2.14/test/phpmailerTest.php#L1708
$config['dkim_domain']      = 'maltospeak.com';                       // DKIM signing domain name, for exmple 'example.com'.
$config['dkim_private']     = '';                       // DKIM private key, set as a file path.
$config['dkim_private_string'] = '******';                    // DKIM private key, set directly from a string.
$config['dkim_selector']    = '*****';                       // DKIM selector.
$config['dkim_passphrase']  = '';                       // DKIM passphrase, used if your key is encrypted.
$config['dkim_identity']    = '[email protected]';                  // DKIM Identity, usually the email address used as the source of the email.

PhpMailer fail:

Code:
Sep 17 14:13:32 ns1 postfix/smtpd[5199]: warning: dict_nis_init: NIS domain name not set - NIS lookups disabled
Sep 17 14:13:32 ns1 postfix/smtpd[5199]: connect from ns1.maltospeak.com[193.70.81.2]
Sep 17 14:13:32 ns1 postfix/smtpd[5199]: TLS SNI ns1.maltospeak.com from ns1.maltospeak.com[193.70.81.2] not matched, using default chain
Sep 17 14:13:32 ns1 postfix/smtpd[5199]: DD032580F42: client=ns1.maltospeak.com[193.70.81.2], sasl_method=LOGIN, [email protected]
Sep 17 14:13:32 ns1 psa-pc-remote[24854]: DD032580F42: from=<[email protected]> to=<[email protected]>
Sep 17 14:13:32 ns1 postfix/cleanup[5203]: DD032580F42: message-id=<[email protected]>
Sep 17 14:13:33 ns1 psa-pc-remote[24854]: DD032580F42: py-limit-out: stderr: INFO:__main__:Setting 'X-PPP-Vhost' header to 'maltospeak.com'
Sep 17 14:13:33 ns1 psa-pc-remote[24854]: DD032580F42: py-limit-out: stderr: PASS
Sep 17 14:13:33 ns1 psa-pc-remote[24854]: DD032580F42: check-quota: stderr: SKIP
Sep 17 14:13:33 ns1 psa-pc-remote[24854]: DD032580F42: spf: stderr: PASS
Sep 17 14:13:33 ns1 psa-pc-remote[24854]: DD032580F42: dk_sign: stderr: PASS
Sep 17 14:13:33 ns1 postfix/qmgr[30216]: DD032580F42: from=<[email protected]>, size=13440, nrcpt=1 (queue active)
Sep 17 14:13:33 ns1 postfix/smtpd[5199]: disconnect from ns1.maltospeak.com[193.70.81.2] ehlo=2 starttls=1 auth=1 mail=1 rcpt=1 data=1 quit=1 commands=8
Sep 17 14:13:34 ns1 postfix/smtp[5212]: DD032580F42: to=<[email protected]>, relay=eur.olc.protection.outlook.com[104.47.9.33]:25, delay=1.4, delays=0.28/0.01/0.48/0.61, dsn=2.6.0, status=sent (250 2.6.0 <[email protected]> [InternalId=39427799779952, Hostname=HE1PR0202MB2699.eurprd02.prod.outlook.com] 22606 bytes in 0.152, 144.539 KB/sec Queued mail for delivery -> 250 2.1.5)
Sep 17 14:13:34 ns1 postfix/qmgr[30216]: DD032580F42: removed

Roundcube ok :

Code:
Sep 17 14:15:40 ns1 dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=5320, TLS, session=<d+DskDHMnJ9/AAAB>
Sep 17 14:15:40 ns1 dovecot: service=imap, [email protected], ip=[127.0.0.1]. Disconnected: Logged out rcvd=425, sent=4043
Sep 17 14:15:41 ns1 dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=5322, TLS, session=<Jjn6kDHMop9/AAAB>
Sep 17 14:15:41 ns1 dovecot: service=imap, [email protected], ip=[127.0.0.1]. Disconnected: Logged out rcvd=38, sent=572
Sep 17 14:15:41 ns1 dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=5324, TLS, session=<wvr6kDHMpp9/AAAB>
Sep 17 14:15:41 ns1 dovecot: service=imap, [email protected], ip=[127.0.0.1]. Disconnected: Logged out rcvd=425, sent=4051
Sep 17 14:15:42 ns1 postfix/smtpd[5326]: warning: dict_nis_init: NIS domain name not set - NIS lookups disabled
Sep 17 14:15:42 ns1 postfix/smtpd[5326]: connect from localhost[127.0.0.1]
Sep 17 14:15:42 ns1 postfix/smtpd[5326]: TLS SNI localhost from localhost[127.0.0.1] not matched, using default chain
Sep 17 14:15:42 ns1 postfix/smtpd[5326]: D854C580F42: client=localhost[127.0.0.1], sasl_method=PLAIN, [email protected]
Sep 17 14:15:42 ns1 psa-pc-remote[24854]: D854C580F42: from=<[email protected]> to=<[email protected]>
Sep 17 14:15:42 ns1 postfix/cleanup[5330]: D854C580F42: message-id=<[email protected]>
Sep 17 14:15:43 ns1 psa-pc-remote[24854]: D854C580F42: py-limit-out: stderr: INFO:__main__:Setting 'X-PPP-Vhost' header to 'maltospeak.com'
Sep 17 14:15:43 ns1 psa-pc-remote[24854]: D854C580F42: py-limit-out: stderr: PASS
Sep 17 14:15:43 ns1 psa-pc-remote[24854]: D854C580F42: check-quota: stderr: SKIP
Sep 17 14:15:43 ns1 psa-pc-remote[24854]: D854C580F42: spf: stderr: PASS
Sep 17 14:15:43 ns1 psa-pc-remote[24854]: D854C580F42: dk_sign: stderr: PASS
Sep 17 14:15:43 ns1 postfix/qmgr[30216]: D854C580F42: from=<[email protected]>, size=1770, nrcpt=1 (queue active)
Sep 17 14:15:43 ns1 postfix/smtpd[5326]: disconnect from localhost[127.0.0.1] ehlo=1 auth=1 mail=1 rcpt=1 data=1 quit=1 commands=6
Sep 17 14:15:43 ns1 dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=5340, TLS, session=<BcIVkTHMsp9/AAAB>
Sep 17 14:15:43 ns1 dovecot: service=imap, [email protected], ip=[127.0.0.1]. Disconnected: Logged out rcvd=1728, sent=1134
Sep 17 14:15:43 ns1 postfix/smtp[5338]: D854C580F42: to=<[email protected]>, relay=eur.olc.protection.outlook.com[104.47.18.161]:25, delay=0.6, delays=0.26/0.01/0.1/0.23, dsn=2.6.0, status=sent (250 2.6.0 <[email protected]> [InternalId=52995601471057, Hostname=AM7PR02MB6452.eurprd02.prod.outlook.com] 10719 bytes in 0.099, 105.618 KB/sec Queued mail for delivery -> 250 2.1.5)
Sep 17 14:15:43 ns1 postfix/qmgr[30216]: D854C580F42: removed
Sep 17 14:15:43 ns1 dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=5342, TLS, session=<LaIfkTHMtp9/AAAB>
Sep 17 14:15:43 ns1 dovecot: service=imap, [email protected], ip=[127.0.0.1]. Disconnected: Logged out rcvd=74, sent=733
Sep 17 14:15:44 ns1 dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=5344, TLS, session=<UpEjkTHMvJ9/AAAB>
Sep 17 14:15:44 ns1 dovecot: service=imap, [email protected], ip=[127.0.0.1]. Disconnected: Logged out rcvd=320, sent=11448
Sep 17 14:15:45 ns1 dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=5346, TLS, session=<RQQzkTHMvp9/AAAB>
Sep 17 14:15:45 ns1 dovecot: service=imap, [email protected], ip=[127.0.0.1]. Disconnected: Logged out rcvd=130, sent=873


Do you have a solution ?
 
Back
Top