1

Topic: Getting errors on new installation

==== Required information ====
- latest
- FreeBSD 10.2
- MySQL
- Apache
- Manage mail accounts with iRedAdmin-Pro?
- Related log if you're reporting an issue:
====

Hello Guys,

i installed a fresh iRedMail on my FreeBSD 10.2 and i getting tons of this errors:

Traceback (most recent call last):
  File "/opt/iredapd/tools/cleanup_db.py", line 9, in <module>
    import web
ImportError: No module named web

and

perl not found

i had over hundred emails with errors like this in my mailbox today.
How can i fix it?

----

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

2

Re: Getting errors on new installation

Both perl and python module "web" (its full name is web.py) are required by iRedMail, seems your iRedMail installation was not success.

You can try to fix it with commands below:

cd /usr/ports/lang/perl5.20
make install clean

cd /usr/ports/www/webpy
make install clean

3

Re: Getting errors on new installation

Thanks for your replay.
It fixed the error.
But now i get the following mails.

* Query SQL server to get mail domain names.
* Parsing domains, 36 in total.
    + [amazon.com]
    + [aol.com]
    + [constantcontact.com]
    + [craigslist.org]
    + [cust-spf.exacttarget.com]
    + [ebay.com]
    + [exacttarget.com]
    + [facebook.com]
    + [fbmta.com]
    + [fishbowl.com]
    + [github.com]
    + [gmx.com]
    + [google.com]
    + [hotmail.com]
    + [icloud.com]
    + [icontact.com]
    + [inbox.com]
    + [instagram.com]
    + [linkedin.com]
    + [mail.com]
    + [mailchimp.com]
    + [mailgun.com]
    + [mailjet.com]
    + [microsoft.com]
    + [outlook.com]
    + [paypal.com]
    + [pinterest.com]
    + [reddit.com]
    + [sendgrid.com]
    + [tumblr.com]
    + [twitter.com]
    + [yahoo.com]
    + [yandex.ru]
    + [zendesk.com]
    + [zoho.com]

is that normal?


And is it possible to create a admin that can only administrate the own domain?
I mean for each domain one admin?
Is this possible`?

4

Re: Getting errors on new installation

And i get another error.
I could not login to MySQL with root user.

I get the following:

/usr/local/bin/mysql Permission denied

Did you know how can i fix it?

5

Re: Getting errors on new installation

Spayda wrote:

It fixed the error.
But now i get the following mails.
* Query SQL server to get mail domain names.
* Parsing domains, 36 in total.
    + [amazon.com]

This is normal, but you can update the cron job, redirect the output to /dev/null, like below:

*/10   *   *   *   *   python /opt/iredapd/tools/spf_to_greylist_whitelists.py >/dev/null

Spayda wrote:

And is it possible to create a admin that can only administrate the own domain?
I mean for each domain one admin?
Is this possible`?

This feature is available in iRedAdmin-Pro. Reference:
http://www.iredmail.org/admin_panel.html

Spayda wrote:

/usr/local/bin/mysql Permission denied

Weird. What's the file permission? show us output of command below:

ls -l /usr/local/bin/mysql

6 (edited by Spayda 2016-03-25 19:49:34)

Re: Getting errors on new installation

Thanks for your help.
I reinstalled the system and now everything works fine except two mails that i get in my postermaster account.

postdrop: warning: unable to look up public/pickup: No such file or directory

and

newsyslog: pid file doesn't exist: /var/run/dovecot/master.pid

how can i fix it?

7

Re: Getting errors on new installation

*) Is Dovecot service running?
*) Is Postfix service running?
*) Do you get similar/same emails after rebooting server again?

8 (edited by Spayda 2016-03-25 22:32:39)

Re: Getting errors on new installation

Both services are running. I rebooted the server and now i get the mail "perl not found" sad
<root@etismail> /usr/local/bin/perl /usr/local/www/awstats/cgi-bin/awstats.pl -config=smtp -update >
perl not found

and i changed the cronjob to this : */10   *   *   *   *   python /opt/iredapd/tools/spf_to_greylist_whitelists.py >/dev/null but still get every 10 minutes the mail. Is it necessary that it happens every 10 minutes? or can i change it to every 24 hours?

and much thanks for your help

9

Re: Getting errors on new installation

And i checked /usr/local/bin/perl it exist.

10

Re: Getting errors on new installation

And i have another question. Is Fail2Ban also working on the webinterface? I mean roundcube? When i type in 3 times the wrong password and then i type the right password i can login. There comes no ban or ban time or something.
Did i have something to configuerate to get i working?

11

Re: Getting errors on new installation

Fail2ban is not configured on FreeBSD.

12

Re: Getting errors on new installation

Thanks for your answer.
Did you have maybe a solution for the "perl not found" problem?
I checked if under the location /usr/local/bin/perl really exist.
And it exist.

Should i reinstall perl?

13

Re: Getting errors on new installation

Spayda wrote:

Did you have maybe a solution for the "perl not found" problem?
I checked if under the location /usr/local/bin/perl really exist.

What's the file permission? is it executable? Show us output of command:

ls -l /usr/local/bin/perl*

14

Re: Getting errors on new installation

ZhangHuangbin wrote:
Spayda wrote:

Did you have maybe a solution for the "perl not found" problem?
I checked if under the location /usr/local/bin/perl really exist.

What's the file permission? is it executable? Show us output of command:

ls -l /usr/local/bin/perl*

Hi, just did a fresh install of the latest iRedmail+iRedAdmin-Pro and get the perl not found error from cron executed awstats.pl (running the same command from the CLI works fine).

{code}
root@jacques:~ # ls -l /usr/local/bin/perl*
-rwxr-xr-x  3 root  wheel   7536 Sep 30 09:41 /usr/local/bin/perl
-rwxr-xr-x  3 root  wheel   7536 Sep 30 09:41 /usr/local/bin/perl5
-rwxr-xr-x  3 root  wheel   7536 Sep 30 09:41 /usr/local/bin/perl5.20.3
-rwxr-xr-x  2 root  wheel  45405 Sep 30 09:40 /usr/local/bin/perlbug
-rwxr-xr-x  1 root  wheel    274 Sep 30 09:40 /usr/local/bin/perldoc
-rwxr-xr-x  1 root  wheel  10829 Sep 30 09:40 /usr/local/bin/perlivp
-rwxr-xr-x  2 root  wheel  45405 Sep 30 09:40 /usr/local/bin/perlthanks
root@jacques:~ #
{/code}

Any hints to solve this?

Thx

/florus

15

Re: Getting errors on new installation

No idea. sad

16

Re: Getting errors on new installation

ZhangHuangbin wrote:

No idea. sad

okay, I found a quick hack:

ln -s /usr/local/bin/perl /usr/bin

as per error when removing >/dev/null from the crontab entry:

Create/Update database for config "/usr/local/www/awstats/cgi-bin/awstats.smtp.conf" by AWStats version 7.5 (build 20160301)
From data in log file "perl /usr/local/www/awstats/tools/maillogconvert.pl standard < /var/log/maillog |"...
perl: not found

Perl here is used without the full path and I guess that on FreeBSD the /usr/local/bin is not standard set in the PATH variable.

/florus

17

Re: Getting errors on new installation

Does the cron job use 'perl' or '/usr/local/bin/perl'?

18

Re: Getting errors on new installation

ZhangHuangbin wrote:

Does the cron job use 'perl' or '/usr/local/bin/perl'?

It uses the full path name

1   */1   *   *   *   /usr/local/bin/perl /usr/local/www/awstats/cgi-bin/awstats.pl -config=smtp -update >/dev/null

but I tried removing it alltogether

1   */1   *   *   *   /usr/local/www/awstats/cgi-bin/awstats.pl -config=smtp -update >/dev/null

and that still works fine.

Also the entry to generate the web stats works fine too

it is the call "perl /usr/local/www/awstats/tools/maillogconvert.pl standard < /var/log/maillog" that breaks on FreeBSD.

/florus