Jump to content


Send mail exception

Sendmail smtp swarm

  • Please log in to reply
3 replies to this topic

#1 Rabih

Rabih

    Member

  • Members
  • PipPip
  • 14 posts
  • LocationLebanon

Posted 16 October 2014 - 04:12 PM

Hi,

i just installed swarm's latest ova and am not getting any emails upon any action.

The error is the below, xxxx@murex.com should be receiving an email but it cannot send.

my smtp configuration was done in the config.php file, we usually only require the smtp name on our server to send mails.
telnet works from the console and sends mails using smpt 25

any ideas?

'mail' => array(
'transport' => array(
'name' => 'smtp.murex.com',
'port' => '25',
'connection_class'  => 'smtp'
),
),


2014-10-16T16:07:30+00:00 ERR (3): exception 'Zend\Mail\Exception\RuntimeException' with message 'Unable to send mail: Unknown error' in /opt/perforce/swarm/library/Zend/Mail/Transport/Sendmail.php:291
Stack trace:
#0 [internal function]: Zend\Mail\Transport\Sendmail->mailHandler('xxxx@murex.com...', '=?UTF-8?Q?[Swar...', 'This is a messa...', 'Date: Thu, 16 O...', ' -f notificatio...')
#1 /opt/perforce/swarm/library/Zend/Mail/Transport/Sendmail.php(139): call_user_func(Array, 'xxxx@murex.com...', '=?UTF-8?Q?[Swar...', 'This is a messa...', 'Date: Thu, 16 O...', ' -f notificatio...')
#2 /opt/perforce/swarm/module/Mail/Module.php(259): Zend\Mail\Transport\Sendmail->send(Object(Zend\Mail\Message))
#3 [internal function]: Mail\{closure}(Object(Zend\EventManager\Event))
#4 /opt/perforce/swarm/library/Zend/EventManager/EventManager.php(468): call_user_func(Object(Closure), Object(Zend\EventManager\Event))
#5 /opt/perforce/swarm/library/Zend/EventManager/EventManager.php(207): Zend\EventManager\EventManager->triggerListeners('task.review', Object(Zend\EventManager\Event), NULL)
#6 /opt/perforce/swarm/module/Queue/src/Queue/Controller/IndexController.php(172): Zend\EventManager\EventManager->trigger(Object(Zend\EventManager\Event))
#7 /opt/perforce/swarm/library/Zend/Mvc/Controller/AbstractActionController.php(83): Queue\Controller\IndexController->workerAction()
#8 [internal function]: Zend\Mvc\Controller\AbstractActionController->onDispatch(Object(Zend\Mvc\MvcEvent))
#9 /opt/perforce/swarm/library/Zend/EventManager/EventManager.php(468): call_user_func(Array, Object(Zend\Mvc\MvcEvent))
#10 /opt/perforce/swarm/library/Zend/EventManager/EventManager.php(207): Zend\EventManager\EventManager->triggerListeners('dispatch', Object(Zend\Mvc\MvcEvent), Object(Closure))
#11 /opt/perforce/swarm/library/Zend/Mvc/Controller/AbstractController.php(117): Zend\EventManager\EventManager->trigger('dispatch', Object(Zend\Mvc\MvcEvent), Object(Closure))
#12 /opt/perforce/swarm/library/Zend/Mvc/DispatchListener.php(114): Zend\Mvc\Controller\AbstractController->dispatch(Object(Zend\Http\PhpEnvironment\Request), Object(Zend\Http\PhpEnvironment\Response))
#13 [internal function]: Zend\Mvc\DispatchListener->onDispatch(Object(Zend\Mvc\MvcEvent))
#14 /opt/perforce/swarm/library/Zend/EventManager/EventManager.php(468): call_user_func(Array, Object(Zend\Mvc\MvcEvent))
#15 /opt/perforce/swarm/library/Zend/EventManager/EventManager.php(207): Zend\EventManager\EventManager->triggerListeners('dispatch', Object(Zend\Mvc\MvcEvent), Object(Closure))
#16 /opt/perforce/swarm/library/Zend/Mvc/Application.php(309): Zend\EventManager\EventManager->trigger('dispatch', Object(Zend\Mvc\MvcEvent), Object(Closure))
#17 /opt/perforce/swarm/public/index.php(57): Zend\Mvc\Application->run()
#18 {main}
~Rabih.

#2 P4dmountney

P4dmountney

    Advanced Member

  • Members
  • PipPipPip
  • 44 posts
  • LocationVictoria BC

Posted 16 October 2014 - 06:34 PM

We use the host param, instead of name, to detect that we need to switch to the smtp transport. The name param is actually used as the client name durring the stmp helo command when using an smtp transport. Ideally it is your swarm hostname, but your smtp server may not care what it is.

#3 Rabih

Rabih

    Member

  • Members
  • PipPip
  • 14 posts
  • LocationLebanon

Posted 17 October 2014 - 07:30 AM

Thanks.

Now i get:

2014-10-17T07:28:05+00:00 ERR (3): Worker 3 preflight failure. Requeuing task and aborting.
~Rabih.

#4 Rabih

Rabih

    Member

  • Members
  • PipPip
  • 14 posts
  • LocationLebanon

Posted 17 October 2014 - 08:40 AM

Hi,

It worked when i deleted the 'connection_class'  => 'smtp'
was enough  to put:

'mail' => array(
        'transport' => array(
                'name' => 'smtp.murex.com',
           'host' => 'smtp.murex.com',
                'port' => '25',
        ),
    ),


Thanks!
~Rabih.



Also tagged with one or more of these keywords: Sendmail, smtp, swarm

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users