When I run the
sendmail -bs command as root, I get the expected output:
$ sudo sendmail -bs 220 mydomain.com ESMTP Postfix ehlo localhost 250-mydomain.com 250-PIPELINING 250-SIZE 15728640 250-ETRN 250-ENHANCEDSTATUSCODES 250-8BITMIME 250 DSN
But when I run the same command without sudo, I get no output at all and sendmail doesn't respond to any commands:
$ sendmail -bs ehlo localhost quit wtf ^C $
How can I configure Postfix so that sendmail works for every user (or at least for some specific users)? I need this because SwiftMailer for PHP uses
sendmail -bs for sending mails and fails when it can't find any output.