Postfix sendmail -bs shows no output - permissions?

Posted by Tatu Ulmanen on Server Fault See other posts from Server Fault or by Tatu Ulmanen
Published on 2012-12-06T09:51:27Z Indexed on 2012/12/06 11:08 UTC
Read the original article Hit count: 316

Filed under:
|
|

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.

© Server Fault or respective owner

Related posts about postfix

Related posts about permissions