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 "Norman Maurer (JIRA)" <se...@james.apache.org> on 2007/01/12 13:53:27 UTC
[jira] Updated: (JAMES-663) sendmail.py crashes on line "from_addr
= os.environ['USER'] + '@' + socket.getfqdn()"
[ https://issues.apache.org/jira/browse/JAMES-663?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Norman Maurer updated JAMES-663:
--------------------------------
Fix Version/s: (was: Next Major)
2.3.1-dev
Fixed in trunk. Should be backported to 2.3.1
> sendmail.py crashes on line "from_addr = os.environ['USER'] + '@' + socket.getfqdn()"
> -------------------------------------------------------------------------------------
>
> Key: JAMES-663
> URL: https://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
> Assigned To: Noel J. Bergman
> Priority: Critical
> Fix For: 2.3.1-dev
>
>
> 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: https://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