/usr/sbin/greylistd-setup-exim4 has two errors in Ubuntu 20.04
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
greylistd (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
When running /usr/sbin/
# /usr/sbin/
File "/usr/sbin/
nmstring=
TabError: inconsistent use of tabs and spaces in indentation
---
Upon replacing the tab with spaces in line 254 and running the script again it produces this error:
# /usr/sbin/
Adding greylistd support to Exim 4 configuration files
Traceback (most recent call last):
File "/usr/sbin/
ok = exim4_default_
File "/usr/sbin/
ok = exim4_setup(
File "/usr/sbin/
fp = file(filename, "w")
NameError: name 'file' is not defined
---
This is likely caused by file() being deprecated and not available in python3 which is what is shipped with Ubuntu 20.04.
Replacing this file() command with open() appears to resolve the issue, because now running the command it yelds:
# /usr/sbin/
Adding greylistd support to Exim 4 configuration files
/etc/exim4/
/etc/exim4/
...conf.
...conf.
---
Thank you for effort in maintaining open source software. I hope this bug report has been helpful to you.