Public bug reported: When running /usr/sbin/greylistd-setup-exim4 add it produces this error: # /usr/sbin/greylistd-setup-exim4 add File "/usr/sbin/greylistd-setup-exim4", line 254 nmstring=options["netmask"] ^ 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/greylistd-setup-exim4 add Adding greylistd support to Exim 4 configuration files Traceback (most recent call last): File "/usr/sbin/greylistd-setup-exim4", line 423, in <module> ok = exim4_default_setup(description, function, options, doupdate) File "/usr/sbin/greylistd-setup-exim4", line 320, in exim4_default_setup ok = exim4_setup(filename, aclname, function, options, doupdate) File "/usr/sbin/greylistd-setup-exim4", line 287, in exim4_setup 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/greylistd-setup-exim4 add Adding greylistd support to Exim 4 configuration files /etc/exim4/exim4.conf.template : OK /etc/exim4/exim4.conf.template : OK ...conf.d/acl/30_exim4-config_check_rcpt: OK ...conf.d/acl/40_exim4-config_check_data: OK --- Thank you for effort in maintaining open source software. I hope this bug report has been helpful to you. ** Affects: greylistd (Ubuntu) Importance: Undecided Status: New ** Tags: exim4 greylistd -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1875451 Title: /usr/sbin/greylistd-setup-exim4 has two errors in Ubuntu 20.04 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/greylistd/+bug/1875451/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs