1

Topic: Installation failed on FREEBSD 10.2 (jail)

==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.3
- Linux/BSD distribution name and version: FreeBSD 10.2
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MariaDB
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? No
- Related log if you're reporting an issue:
====
Hi Zhang,

I'am waiting for finishing Installation (2 hours) and then this will happen:

********************************************************************
* Start iRedMail Configurations
********************************************************************
[ INFO ] Create self-signed SSL certification files (2048 bits).
[ INFO ] Generate a strong, unique Diffie Hellman Group with openssl, please wait.
[ INFO ] Create required system account: vmail, iredadmin, iredapd.
[ INFO ] Configure Nginx web server and uWSGI.
[ INFO ] Configure PHP.
[ INFO ] Configure MariaDB database server.
[ INFO ] Setup daily cron job to backup SQL databases with /var/vmail/backup/backup_mysql.sh
[ INFO ] Configure Postfix (Message Transfer Agent).
[ INFO ] Configure Dovecot (pop3/imap/managesieve server).
[ INFO ] Configure ClamAV (anti-virus toolkit).
[ INFO ] Configure Amavisd-new (interface between MTA and content checkers).
[ INFO ] Configure SpamAssassin (content-based spam filter).
[ INFO ] Configure iRedAPD (postfix policy daemon).
[ INFO ] Configure iRedAdmin (official web-based admin panel).
[ INFO ] Configure Roundcube webmail.
[ INFO ] Configure SOGo Groupware (Webmail, Calendar, Address Book, ActiveSync).
-i used with no filenames on the command line, reading from STDIN.

....and now ???

regards, pylox

----

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

2

Re: Installation failed on FREEBSD 10.2 (jail)

I found this bug tonight, still working on it.

But if you reboot server, all mail services should be fine. Please give it a try.

3

Re: Installation failed on FREEBSD 10.2 (jail)

Hi

ZhangHuangbin wrote:

I found this bug tonight, still working on it.

But if you reboot server, all mail services should be fine. Please give it a try.

Hi Zhang,

Is the issue fixed with the last commit?

Regards pylox

4

Re: Installation failed on FREEBSD 10.2 (jail)

Fixed: https://bitbucket.org/zhb/iredmail/comm … ns/sogo.sh
You can fix it and re-execute iRedMail installer to finish the installation.

And re-packed iRedMail-0.9.3 for download:
https://bitbucket.org/zhb/iredmail/downloads

5

Re: Installation failed on FREEBSD 10.2 (jail)

ZhangHuangbin wrote:

Fixed: https://bitbucket.org/zhb/iredmail/comm … ns/sogo.sh
You can fix it and re-execute iRedMail installer to finish the installation.

And re-packed iRedMail-0.9.3 for download:
https://bitbucket.org/zhb/iredmail/downloads

Hi Zang,

with the last commit the Installation was successful !  Many thanks.

Now i have a Problem with SoGo: Sending/receive emails with roundcube everything works fine. But when i try to send mail with Sogo-Frontend an SMTP-AUTH error will be happen.

In maillog i can see something similar to this:

Jun 24 11:57:13 mx1 postfix/smtpd[2667]: NOQUEUE: reject: RCPT from mail.mydomain.com[1.2.3.4]: 553 5.7.1 <sombody@my-domain.com>: Sender address rejected: not logged in; from=<sombody@my-domain.com> to=<receipent@receipentdomain.com> proto=ESMTP helo=<client_helo.com>

I assume SoGo(d) uses SMTP-Port 25 - could be that a Problem (w/postscreen) ?

Any help is appreciated
Regards pylox

6

Re: Installation failed on FREEBSD 10.2 (jail)

Sender address rejected: not logged in

This error means your client (SOGo, in this case) didn't perform smtp authentication.

Please show me output of command below:

# grep -i 'smtp' /etc/sogo/sogo.conf

7

Re: Installation failed on FREEBSD 10.2 (jail)

ZhangHuangbin wrote:

Sender address rejected: not logged in

This error means your client (SOGo, in this case) didn't perform smtp authentication.

Please show me output of command below:

# grep -i 'smtp' /etc/sogo/sogo.conf

Hi Zhang,

the output:
    // SMTP server
    SOGoSMTPServer = 10.0.0.2;
    SOGoMailingMechanism = smtp;
    //SOGoSMTPAuthenticationType = PLAIN;

10.0.0.2 is the ip address from my (FREEBSD-) iRedmail-Jail. After the standard iRedmail configuration nothing was changed in sogo.conf

regards pylox

8

Re: Installation failed on FREEBSD 10.2 (jail)

pylox wrote:

    //SOGoSMTPAuthenticationType = PLAIN;

Try to comment out this line, restart and try again.
Please check if there's any error in SOGo log file (/var/log/sogo/sogo.log).

9

Re: Installation failed on FREEBSD 10.2 (jail)

ZhangHuangbin wrote:
pylox wrote:

    //SOGoSMTPAuthenticationType = PLAIN;

Try to comment out this line, restart and try again.
Please check if there's any error in SOGo log file (/var/log/sogo/sogo.log).

Hi Zhang,

this is weird... I've changed the sogo-config - sending emails from sogo does not work. No errors in sogo.log.
But i can see this in maillog:

Dec 23 08:32:35 mail postfix/master[41927]: daemon started -- version 2.11.7, configuration /usr/local/etc/postfix
Dec 23 08:35:15 mail postfix/postscreen[8395]: CONNECT from [10.0.0.2]:56551 to [10.0.0.2]:25
Dec 23 08:35:21 mail postfix/postscreen[8395]: PASS OLD [10.0.0.2]:56551
Dec 23 08:35:21 mail postfix/smtpd[13445]: connect from my.domian.de[10.0.0.2]
Dec 23 08:35:21 mail postfix/smtpd[13445]: disconnect from my.domian.de[10.0.0.2]
Dec 23 08:36:49 mail postfix/postscreen[8395]: CONNECT from [10.0.0.2]:49260 to [10.0.0.2]:25
Dec 23 08:36:49 mail postfix/postscreen[8395]: PASS OLD [10.0.0.2]:49260
Dec 23 08:36:49 mail postfix/smtpd[13445]: connect from my.domian.de[10.0.0.2]
Dec 23 08:36:49 mail postfix/smtpd[13445]: disconnect from my.domian.de[10.0.0.2]
Dec 23 08:39:15 mail postfix/postscreen[29757]: CONNECT from [10.0.0.2]:43442 to [10.0.0.2]:25
Dec 23 08:39:15 mail postfix/postscreen[29757]: PASS OLD [10.0.0.2]:43442
Dec 23 08:39:15 mail postfix/smtpd[30469]: connect from my.domian.de[10.0.0.2]
Dec 23 08:39:16 mail postfix/smtpd[30469]: disconnect from my.domian.de[10.0.0.2]

no errors so far...
regards pylox

10

Re: Installation failed on FREEBSD 10.2 (jail)

Please specify port number in SMTP server address:

    SOGoSMTPServer = 10.0.0.2:587;

11

Re: Installation failed on FREEBSD 10.2 (jail)

ZhangHuangbin wrote:

Please specify port number in SMTP server address:

    SOGoSMTPServer = 10.0.0.2:587;

Hi Zhang,

smpt auth failure persists:
maillog:

Dec 23 09:15:07 mail postfix/master[59893]: daemon started -- version 2.11.7, configuration /usr/local/etc/postfix
Dec 23 09:15:46 mail postfix/submission/smtpd[1311]: connect from my.domain.de[10.0.0.2]
Dec 23 09:15:46 mail postfix/submission/smtpd[1311]: disconnect from my.domain.de[10.0.0.2]

sogo.log no errors

regards pylox

12

Re: Installation failed on FREEBSD 10.2 (jail)

It works fine on my testing machine with default iRedMail settings, so it makes me confused. I will try to reproduce this issue later.

13

Re: Installation failed on FREEBSD 10.2 (jail)

ZhangHuangbin wrote:

It works fine on my testing machine with default iRedMail settings, so it makes me confused. I will try to reproduce this issue later.

Hi Zhang,

Any news from this topic? I've tried some changes in sogo but nothing will work for me. Sogo Frontend tells me that originator will not accepted. Nothing else. Is there something wrong with smtp configuration in iRedmail?

Regards pylox

14

Re: Installation failed on FREEBSD 10.2 (jail)

No progress. It works fine on my NEW testing machine. No change required.
So i'm confused. sad