XF 2.1 Problems with emails after switching server

Finexes

Well-known member
Hello,

we recently switched from a Linux vServer to a Windows Rootserver. The migration went pretty smooth and everything is working properly, except one thing. We constantly receive the following error message:

Code:
Zend\Mail\Exception\InvalidArgumentException: Job XF:EmailUnsubscribe: The input is not a valid email address. Use the basic format local-part@hostname src\vendor\zendframework\zend-mail\src\Address.php:77

Stack trace

#0 src\vendor\zendframework\zend-mail\src\Address.php(53): Zend\Mail\Address->__construct('Postmaster', 'MailEnable Admi...', '')
#1 src\vendor\zendframework\zend-mail\src\Header\AbstractAddressList.php(86): Zend\Mail\Address::fromString('MailEnable Admi...', '')
#2 [internal function]: Zend\Mail\Header\AbstractAddressList::Zend\Mail\Header\{closure}('MailEnable Admi...')
#3 src\vendor\zendframework\zend-mail\src\Header\AbstractAddressList.php(65): array_map(Object(Closure), Array)
#4 src\vendor\zendframework\zend-mail\src\Headers.php(484): Zend\Mail\Header\AbstractAddressList::fromString('From: "MailEnab...')
#5 src\vendor\zendframework\zend-mail\src\Headers.php(231): Zend\Mail\Headers->loadHeader('From: "MailEnab...')
#6 src\vendor\zendframework\zend-mail\src\Headers.php(95): Zend\Mail\Headers->addHeaderLine('From: "MailEnab...')
#7 src\vendor\zendframework\zend-mime\src\Decode.php(149): Zend\Mail\Headers::fromString('Message-ID: <00...', '
')
#8 src\vendor\zendframework\zend-mail\src\Storage\Part.php(110): Zend\Mime\Decode::splitMessage('Message-ID: <00...', 'Message-ID: <00...', '')
#9 src\vendor\zendframework\zend-mail\src\Storage\Message.php(52): Zend\Mail\Storage\Part->__construct(Array)
#10 src\vendor\zendframework\zend-mail\src\Storage\Imap.php(126): Zend\Mail\Storage\Message->__construct(Array)
#11 src\XF\EmailUnsubscribe\Processor.php(38): Zend\Mail\Storage\Imap->getMessage(1)
#12 src\XF\Job\EmailUnsubscribe.php(27): XF\EmailUnsubscribe\Processor->processFromStorage(Object(Zend\Mail\Storage\Imap), G)
#13 src\XF\Job\Manager.php(253): XF\Job\EmailUnsubscribe->run(G)
#14 src\XF\Job\Manager.php(195): XF\Job\Manager->runJobInternal(Array, G)
#15 src\XF\Job\Manager.php(79): XF\Job\Manager->runJobEntry(Array, G)
#16 job.php(42): XF\Job\Manager->runQueue(false, 8)
#17 {main}

We are now using a new domain for our mailserver with a .media TLD, could this be the problem?

Thanks for your help! :)
 
EDIT:

Two more errors are displaying:

Code:
ErrorException: Email to *******@gmail.com failed: [E_WARNING] mkdir(): No such file or directory src\vendor\swiftmailer\swiftmailer\lib\classes\Swift\KeyCache\DiskKeyCache.php:273

Stack trace

#0 [internal function]: XF::handlePhpError(2, '[E_WARNING] mkd...', 'D:\\Inetpub\\vhos...', 273, Array)
#1 src\vendor\swiftmailer\swiftmailer\lib\classes\Swift\KeyCache\DiskKeyCache.php(273): mkdir('/tmp/bc340df501...')
#2 src\vendor\swiftmailer\swiftmailer\lib\classes\Swift\KeyCache\DiskKeyCache.php(86): Swift_KeyCache_DiskKeyCache->_prepareCache('bc340df5018a041...')
#3 src\vendor\swiftmailer\swiftmailer\lib\classes\Swift\KeyCache\SimpleKeyCacheInputStream.php(59): Swift_KeyCache_DiskKeyCache->setString('bc340df5018a041...', 'body', '
Bobo (https:/...', 2)
#4 src\vendor\swiftmailer\swiftmailer\lib\classes\Swift\ByteStream\AbstractFilterableInputStream.php(176): Swift_KeyCache_SimpleKeyCacheInputStream->write('
Bobo (https:/...')
#5 src\vendor\swiftmailer\swiftmailer\lib\classes\Swift\ByteStream\AbstractFilterableInputStream.php(92): Swift_ByteStream_AbstractFilterableInputStream->_doWrite('
Bobo (https:/...')
#6 src\vendor\swiftmailer\swiftmailer\lib\classes\Swift\Mime\SimpleMimeEntity.php(549): Swift_ByteStream_AbstractFilterableInputStream->write('Bobo (https://f...')
#7 src\vendor\swiftmailer\swiftmailer\lib\classes\Swift\Mime\SimpleMimeEntity.php(522): Swift_Mime_SimpleMimeEntity->_bodyToByteStream(Object(Swift_Transport_StreamBuffer))
#8 src\vendor\swiftmailer\swiftmailer\lib\classes\Swift\Mime\SimpleMimeEntity.php(562): Swift_Mime_SimpleMimeEntity->toByteStream(Object(Swift_Transport_StreamBuffer))
#9 src\vendor\swiftmailer\swiftmailer\lib\classes\Swift\Mime\SimpleMimeEntity.php(522): Swift_Mime_SimpleMimeEntity->_bodyToByteStream(Object(Swift_Transport_StreamBuffer))
#10 src\vendor\swiftmailer\swiftmailer\lib\classes\Swift\Mime\SimpleMessage.php(617): Swift_Mime_SimpleMimeEntity->toByteStream(Object(Swift_Transport_StreamBuffer))
#11 src\vendor\swiftmailer\swiftmailer\lib\classes\Swift\Message.php(170): Swift_Mime_SimpleMessage->toByteStream(Object(Swift_Transport_StreamBuffer))
#12 src\vendor\swiftmailer\swiftmailer\lib\classes\Swift\Transport\AbstractSmtpTransport.php(327): Swift_Message->toByteStream(Object(Swift_Transport_StreamBuffer))
#13 src\vendor\swiftmailer\swiftmailer\lib\classes\Swift\Transport\AbstractSmtpTransport.php(428): Swift_Transport_AbstractSmtpTransport->_streamMessage(Object(Swift_Message))
#14 src\vendor\swiftmailer\swiftmailer\lib\classes\Swift\Transport\AbstractSmtpTransport.php(444): Swift_Transport_AbstractSmtpTransport->_doMailTransaction(Object(Swift_Message), 'bounce@finexes....', Array, Array)
#15 src\vendor\swiftmailer\swiftmailer\lib\classes\Swift\Transport\AbstractSmtpTransport.php(176): Swift_Transport_AbstractSmtpTransport->_sendTo(Object(Swift_Message), 'bounce@finexes....', Array, Array)
#16 src\XF\Mail\Mailer.php(292): Swift_Transport_AbstractSmtpTransport->send(Object(Swift_Message), Array)
#17 src\XF\Mail\Queue.php(138): XF\Mail\Mailer->send(Object(Swift_Message), Object(Swift_SmtpTransport), Array)
#18 src\XF\Job\MailQueue.php(12): XF\Mail\Queue->run(G)
#19 src\XF\Job\Manager.php(253): XF\Job\MailQueue->run(G)
#20 src\XF\Job\Manager.php(195): XF\Job\Manager->runJobInternal(Array, G)
#21 src\XF\Job\Manager.php(79): XF\Job\Manager->runJobEntry(Array, G)
#22 job.php(42): XF\Job\Manager->runQueue(false, 8)
#23 {main}

Code:
Swift_TransportException: Email to ********@web.de failed: Connection to localhost:25 Timed Out src\vendor\swiftmailer\swiftmailer\lib\classes\Swift\Transport\AbstractSmtpTransport.php:404

Stack trace

#0 src\vendor\swiftmailer\swiftmailer\lib\classes\Swift\Transport\AbstractSmtpTransport.php(277): Swift_Transport_AbstractSmtpTransport->_getFullResponse(NULL)
#1 src\vendor\swiftmailer\swiftmailer\lib\classes\Swift\Transport\EsmtpTransport.php(270): Swift_Transport_AbstractSmtpTransport->executeCommand('MAIL FROM:<boun...', Array, Array)
#2 src\vendor\swiftmailer\swiftmailer\lib\classes\Swift\Transport\EsmtpTransport.php(346): Swift_Transport_EsmtpTransport->executeCommand('MAIL FROM:<boun...', Array)
#3 src\vendor\swiftmailer\swiftmailer\lib\classes\Swift\Transport\AbstractSmtpTransport.php(416): Swift_Transport_EsmtpTransport->_doMailFromCommand('bounce@finexes....')
#4 src\vendor\swiftmailer\swiftmailer\lib\classes\Swift\Transport\AbstractSmtpTransport.php(444): Swift_Transport_AbstractSmtpTransport->_doMailTransaction(Object(Swift_Message), 'bounce@finexes....', Array, Array)
#5 src\vendor\swiftmailer\swiftmailer\lib\classes\Swift\Transport\AbstractSmtpTransport.php(176): Swift_Transport_AbstractSmtpTransport->_sendTo(Object(Swift_Message), 'bounce@finexes....', Array, Array)
#6 src\XF\Mail\Mailer.php(292): Swift_Transport_AbstractSmtpTransport->send(Object(Swift_Message), Array)
#7 src\XF\Mail\Queue.php(138): XF\Mail\Mailer->send(Object(Swift_Message), Object(Swift_SmtpTransport), Array)
#8 src\XF\Job\MailQueue.php(12): XF\Mail\Queue->run(G)
#9 src\XF\Job\Manager.php(253): XF\Job\MailQueue->run(G)
#10 src\XF\Job\Manager.php(195): XF\Job\Manager->runJobInternal(Array, G)
#11 src\XF\Job\Manager.php(79): XF\Job\Manager->runJobEntry(Array, G)
#12 job.php(42): XF\Job\Manager->runQueue(false, 8)
#13 {main}
 
We could resolve the issue with Brogan's help, if anyone has the same problem, here's the solution:

We are using MailEnable as mailserver and it does not support plus-addressing by default. It has to be manually enabled: https://www.mailenable.com/kb/content/article.asp?ID=ME020564

However, the first error message I posted is triggered due to MailEnable's initial message that is sent to the inbox when creating the mailbox. We just had to empty our unsubscribe mailbox, but there's also the possibility to disable the initial message completely: http://www.mailenable.com/kb/content/article.asp?ID=ME020027
 
Back
Top Bottom