• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 2.0 Swift_TransportException:

ehd

Active member
#1
  • Swift_TransportException: Email to xxx failed: Unsupported sendmail command flags [/var/qmail/bin/qmail-inject]. Must be one of "-bs" or "-t" but can include additional flags.
  • src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/SendmailTransport.php:146


Any idea what that means?
 

Mike

XenForo developer
Staff member
#2
Can you confirm what you have for the sendmail_path value in PHP? You can confirm this via PHP info at admin.php?tools/phpinfo.
 

Mike

XenForo developer
Staff member
#7
Swift mailer expects a particular parameter that defines how mail is handed off to sendmail (or compatible wrapper).

The problem with Qmail is that while it works pretty similarly, it's not exactly compatible with the full command line API of sendmail (notably, flags like -t or -bs). You may be able to set PHP's sendmail_path to /var/qmail/bin/sendmail -t and have it function.