RSS Feed

symfony swift mailer localhost [127.0.0.1] did not issue MAIL/EXPN/VRFY/ETRN during connection to MTA-v4

A weird problem was put in front of me today. Every symfony site using swift mailer, bar one, on the same server were sending email correctly. Tailing the mail logs the following error was returned:

Server xm-mta[19908]: oAJA1IcU019908: localhost [127.0.0.1] did not issue MAIL/EXPN/VRFY/ETRN during connection to MTA-v4

Being that all other sites using swift mailer were sending fine the obvious reasoning behind this problem was configuration. Low and behold, the factories.yml configuration for the swift mailer delivery strategy was set as none.

dev:
  mailer:
    param:
      delivery_strategy: none

Swift mailer will not actually send out the email if the delivery strategy is set to ‘none’. To resolve this issue simply change ‘none’ to ‘realtime’.

dev:
  mailer:
    param:
      delivery_strategy: realtime

Don’t forget to ./symfony cc if you’re working in production.

Posted in PHP on the 19th November 2010

SPEAK YOUR MIND...

Your email address will not be published. Required fields are marked *

*