You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by "Noel J. Bergman (JIRA)" <se...@james.apache.org> on 2006/10/16 22:15:38 UTC
[jira] Commented: (JAMES-663) sendmail.py crashes on line
"from_addr = os.environ['USER'] + '@' + socket.getfqdn()"
[ http://issues.apache.org/jira/browse/JAMES-663?page=comments#action_12442686 ]
Noel J. Bergman commented on JAMES-663:
---------------------------------------
Run
$ export
and see if you have USER defined in your environment. Alternatively, you can use LOGNAME instead.
debian linux is insufficiently descriptive, lacking a version number. I've tested on RH8, RHEL4, Ubuntu 5.10 and Ubuntu 6.06.
> sendmail.py crashes on line "from_addr = os.environ['USER'] + '@' + socket.getfqdn()"
> -------------------------------------------------------------------------------------
>
> Key: JAMES-663
> URL: http://issues.apache.org/jira/browse/JAMES-663
> Project: James
> Issue Type: Bug
> Affects Versions: 2.3.0rc5
> Environment: Debian Linux, Python 2.3.5, "Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-b64)"
> Reporter: Stephan Sann
> Priority: Critical
>
> 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.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org