Anyone interested in making iRedMail working on OpenBSD?

130 views
Skip to first unread message

Zhang Huangbin

unread,
Apr 25, 2012, 11:48:01 PM4/25/12
to mail...@googlegroups.com
Hi list,

Anyone interested in making iRedMail working on OpenBSD? http://www.iredmail.org/

It's a full-featured mail server solution, works on major Linux distributions and FreeBSD, it should be easy to make it work on OpenBSD.

Milo .

unread,
Apr 26, 2012, 12:24:57 AM4/26/12
to mailserv
I'm interested.
However, you can also send a request on the OpenBSD Mailing list @misc

Cheers,

--
Wesley

On 26 avr, 07:48, Zhang Huangbin <michaelbi...@gmail.com> wrote:
> Hi list,
>
> Anyone interested in making iRedMail working on OpenBSD?http://www.iredmail.org/

Zhang Huangbin

unread,
Apr 26, 2012, 12:52:24 AM4/26/12
to mail...@googlegroups.com


On Thursday, April 26, 2012 12:24:57 PM UTC+8, Milo . wrote:
I'm interested.
However, you can also send a request on the OpenBSD Mailing list @misc


Not that hurry, i need some volunteers to help test it after we make it work.

I want to achieve below goals in the first stage:

- Support LDAP backend first. Use ldapd(8) as LDAP server, stores virtual mail accounts in ldapd(8). Althougt iRedMail uses OpenLDAP as LDAP server by default, but its LDAP schema works with ldapd(8). MySQL and PostgreSQL backends will be available later.
- Use Postfix as MTA. Sorry, not smtpd(8) at this time.
- Use Dovecot-2 for POP3/IMAPS/Managesieve services.
- Amavisd-new + SpamAssassin + ClamAV for anti-spam and anti-virus.
- Use spamd(8) for grey/white/blacklisting. The concern is how we can manage it, because spamd(8) is accessible via command line only. iRedMail ships Policyd-1.82 or Policyd-2.0.x (code name cluebringer) for this, Policyd stores data in SQL server. Maybe someone can help create a port?
- Roundcube as webmail. Sorry, no SquirrelMail, Horde and other webmails.
- phpLDAPadmin.

Some questions/concerns:

- I need help to create proper PF rules for mail services and spamd(8).

Any suggestions/comments?

Milo .

unread,
Apr 26, 2012, 3:03:59 AM4/26/12
to mailserv
> - I need help to create proper PF rules for mail services and spamd(8).
>
> Any suggestions/comments?

I can help you on the PF part.
I sent you an email.

--
Wesley

Zhang Huangbin

unread,
Apr 26, 2012, 3:11:38 PM4/26/12
to mail...@googlegroups.com
Dear all,

Here's status report:

- All 3 backends are working: OpenLDAP, MySQL, PostgreSQL.
  To make things easy, i use OpenLDAP as LDAP server now, will consider
  switching to ldapd(8) later. Let me know your opinion.
- All major components are working: Built-in Apache (with SSL support),
  MySQL, Postfix, Dovecot, Amavisd-new, ClamAV, Roundcube webmail,
  phpLDAPadmin, phpMyAdmin, phpPgAdmin.
- iRedAdmin, the official web admin panel, is not working with the
  built-in Apache server.
- spamd(8) and pf are not enabled. Please help write PF rules and setup
  spamd(8) if you have some time.


How to install iRedMail on OpenBSD 5.1.

*) Install a basic OpenBSD 5.1 box.

- Choose all tarballs except game51.tgz during installation.
- Make sure you have a FQDN hostname after installation completed. Verify it with command 'hostname'.

I tested iRedMail with OpenBSD 5.1-snapshot, will switch to 5.1-release/-stable after 5.1 released.

*) Login to OpenBSD box, set a valid PKG_PATH in ~/.profile. For example:

export PKG_PATH='http://ftp.jaist.ac.jp/pub/OpenBSD/snapshots/packages/amd64/'

iRedMail will install all binary packages remotely with command 'pkg_add', so PKG_PATH is important.

*) Install required packages before installing iRedMail.

# . ~/.profile    # <- This steps is required, used to set PKG_PATH without re-login.
# pkg_add bash    # <- bash is required for iRedMail.

*) Checkout the latest iRedMail with Mercurial:

# pkg_add mercurial
# cd /root/
# hg clone https://bitbucket.org/zhb/iredmail

*) Execute iRedMail installer:

# cd /root/iredmail/
# bash iRedMail.sh

That's all.

Note:

- Please choose OpenLDAP backend. Other backends are not yet supported.
- iRedMail will install and configure all required packages for you.
- Some packages have different version number, for example, php-5.2.x,
  php-5.3.x, iRedMail installer will ask you to choose one interactively,
  please choose php-5.3.x. And for Postfix, please choose stable release, 2.9.x.
- Apache is running WITHOUT chrooted.
- iRedAdmin doesn't work with Apache, although it works fine in the console.
- MySQL and PostgreSQL backend will be available soon.

Zhang Huangbin

unread,
Apr 26, 2012, 3:16:16 PM4/26/12
to mail...@googlegroups.com


On Friday, April 27, 2012 3:11:38 AM UTC+8, Zhang Huangbin wrote:
*) Execute iRedMail installer:

# cd /root/iredmail/
# bash iRedMail.sh

That's all.

iRedMail will show you a basic dialog to prompt for some input. Reference:
http://iredmail.org/install_iredmail_on_rhel.html#screenshots_of_installation

Note:

- Please choose OpenLDAP backend. Other backends are not yet supported.

Sorry about the confusion. You can choose all available backend: OpenLDAP, MySQL, PostgreSQL.

Enjoy. :)

Zhang Huangbin

unread,
Apr 30, 2012, 11:21:16 AM4/30/12
to mail...@googlegroups.com
Dear all,

Update:

- PF is enabled by default, with a basic pf.conf.
- spamd(8) and spamd-setup(8) is enabled by default.
- iRedAdmin (web-based admin panel) is installed and configured by default, but not work with the built-in Apache. Still need some time to make iRedAdmin work in CGI mode. But it's working if you run it in command line directly:

# cd /var/www/iredadmin/
# python iredadmin.py
http://0.0.0.0:8080

it will listen on port 8080 by default, don't forget to open this port in PF.

All mail services except web admin panel are working as expected: OpenLDAP, MySQL, PostgreSQL, Postfix, Dovecot, Amavisd, ClamAV, SpamAssassin, Apache, Roundcube webmail, PF, spamd(8). Don't hesitate to give it a try.

Suggestions, ideas, bug report are always welcome. :)
Reply all
Reply to author
Forward
0 new messages