This line in sendmail.py:
from_addr = os.environ['USER'] + '@' + socket.getfqdn()
causes my mail-delivery to crash:
<---snip--->
Traceback (most recent call last):
File "/usr/sbin/sendmail", line 126, in ?
main(sys.argv)
File "/usr/sbin/sendmail", line 77, in main
from_addr = os.environ['USER'] + '@' + socket.getfqdn()
File "/usr/lib/python2.3/UserDict.py", line 19, in __getitem__
def __getitem__(self, key): return self.data[key]
KeyError: 'USER'
</---snip--->
I think it's an permission-thing, but didn't went any further.
I just changed it to
from_addr = "
postmaster@localhost"
(since the sender is pased by "-f") and now it works.