1

Topic: How to install web.py on FreeBSD?

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.4.0
- Deployed with iRedMail Easy or the downloadable installer? installer
- Linux/BSD distribution name and version: FreeBSD 12.2
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MariaDB
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? No
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

Hourly cron emails:
Cron <root@plankton> /usr/local/bin/python3 /opt/iredapd/tools/spf_to_greylist_whitelists.py >/dev/null

Traceback (most recent call last):
  File "/opt/iredapd/tools/spf_to_greylist_whitelists.py", line 60, in <module>
    import web
ModuleNotFoundError: No module named 'web'

I had this with 1.3.9 and 1.4.0 where web.py is not installed. Besides the above spf_to_greylist_whitelists.py the error also occurs with /opt/iredapd/tools/cleanup_db.py and /usr/local/www/iredadmin/tools/delete_mailboxes.py.

How to install the missing module on FreeBSD?

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: How to install web.py on FreeBSD?

Install port “www/webpy”.
iRedMail has it installed by default:
https://github.com/iredmail/iRedMail/bl … d.sh#L1014

Was there something wrong during your iRedMail installation and not install this port?

3

Re: How to install web.py on FreeBSD?

I think I found the issue, when installing CertBot from ports:

  Installed packages to be REMOVED:
      py38-Babel: 2.9.0
            :
            :
      py38-webpy: 0.62

So for /usr/ports/www/webpy if I # make install clean

  Installing py38-setuptools-44.0.0...
  pkg-static: py38-setuptools-44.0.0 conflicts with py37-setuptools-44.0.0 (installs files into the same place).  Problematic file: /usr/local/bin/easy_install
  *** Error code 1

  Stop.
  make[1]: stopped in /usr/ports/devel/py-setuptools
  *** Error code 1

From the LetsEncrypt website, I installed the package: pkg install py37-certbot
I will do a fresh install and instead and install from ports instead:

  cd /usr/ports/security/py-certbot && make install clean

4

Re: How to install web.py on FreeBSD?

After fresh install of FreeBSD 12.2 and iRedMail, I installed the port py-certbot. No more pesky cron emails, iRedMailAdmin and SOGo are working normal!

Chalk it up to my inadequate FreeBSD skills. That's why years ago I abandoned my Postfix/SquirrelMail server and migrated to iRedMail. smile

5

Re: How to install web.py on FreeBSD?

GerryM wrote:

That's why years ago I abandoned my Postfix/SquirrelMail server and migrated to iRedMail.

I hope you enjoy your iRedMail journey. smile