Quantcast
Channel: iRedMail — iRedMail Support
Viewing all 43318 articles
Browse latest View live

Re: iredapd doesn't start at boot

$
0
0

Hi,

File/link already exists:

root@----:~# ls -lah /etc/systemd/system/multi-user.target.wants/
[...]
lrwxrwxrwx 1 root root   39 févr. 26 20:37 iredapd.service -> /opt/iredapd/rc_scripts/iredapd.service
[...]

root@----:~# cat /etc/systemd/system/multi-user.target.wants/iredapd.service
[Unit]
Description=iRedAPD (A simple posfix policy server)
After=network.target

[Service]
Type=forking
PIDFile=/run/iredapd.pid
ExecStart=/usr/bin/python /opt/iredapd/iredapd.py
KillMode=control-group
KillSignal=SIGQUIT
TimeoutStopSec=5
PrivateTmp=true

[Install]
WantedBy=multi-user.target


Re: iredapd doesn't start at boot

$
0
0

Try this:

- Remove file /etc/systemd/system/multi-user.target.wants/iredapd.service
- Link file /opt/iredapd/rc_scripts/iredapd.service to /lib/systemd/system/iredapd.service
- Enable iredapd service and try to start it with systemctl command.

iredadmin Error: {'desc': "Can't contact LDAP server"}

$
0
0

==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.7
- Linux/BSD distribution name and version: Debian Stretch
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): LDAP
- 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.
====


Good morning,

I have set up a new server and had it working to a point. I can no longer access the iredadmin page, when I try to log in I get:

Error: {'desc': "Can't contact LDAP server"}

I'm not sure where I've gone wrong on this, the only thing I can think of is that I set up letsencrypt and used the suggestion in the nginx conf:


# To use your own ssl cert (e.g. LetsEncrypt), please create symbol link to
# ssl cert/key used below, so that we can manage this config file with Ansible.
#
# For example:
#
# rm -f /etc/ssl/private/iRedMail.key
# rm -f /etc/ssl/certs/iRedMail.crt
# ln -s /etc/letsencrypt/live/<domain>/privkey.pem /etc/ssl/private/iRedMail.key
# ln -s /etc/letsencrypt/live/<domain>/fullchain.pem /etc/ssl/certs/iRedMail.crt
#


Is it possible this is the issue or should I look elsewhere?




Ah I also cannot log in to the webmail or add an existing account on devices, all with their various default cannot login, check your password messages. I've rebooted the server twice to ensure all services are restarted.

cron job python delete_mailboxes.py fails each hour

$
0
0

==== Required information ====
- iRedMail version (check /etc/iredmail-release):  * 0.9.7 Mariadb
- Linux/BSD distribution name and version: * Debian 8
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):  * MariaDB SQL
- Web server (Apache or Nginx): * Apache
- Manage mail accounts with iRedAdmin-Pro? * no
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
My email admin gets cron error messages each hour about the same failed job - delete_mailboxes.py
I am also unable to delete some old user mailboxes in the web gui and I believe they are related.

I am currently running 0.9.7, but the database is a migration from an earlier release (0.8 I believe), so there may be a few lingering field names hanging around in the database or the files that work on them like delete_mailboxes.py.

I had the older system running fine for around 2yrs before purchasing new hardware and creating a fresh new install of debian and installing the latest available version of iredmail. I then followed the guide to migrate the mailboxes accross and all seemed to go fine. All mail actions seem to be working correctly, but this error has now appeared. Admittedly I have not needed to remove any old mailboxes until now.

Is there anything I can check to see where the fault is?

Here is the contents of the mail:
Traceback (most recent call last):
  File "/opt/www/iredadmin/tools/delete_mailboxes.py", line 158, in <module>
    qr = conn.select('deleted_mailboxes', where=sql_where)
  File "/usr/lib/python2.7/dist-packages/web/db.py", line 682, in select
    return self.query(qout, processed=True)
  File "/usr/lib/python2.7/dist-packages/web/db.py", line 644, in query
    self._db_execute(db_cursor, sql_query)
  File "/usr/lib/python2.7/dist-packages/web/db.py", line 587, in _db_execute
    out = cur.execute(query, params)
  File "/usr/lib/python2.7/dist-packages/MySQLdb/cursors.py", line 174, in execute
    self.errorhandler(self, exc, value)
  File "/usr/lib/python2.7/dist-packages/MySQLdb/connections.py", line 36, in defaulterrorhandler
    raise errorclass, errorvalue
_mysql_exceptions.OperationalError: (1054, "Unknown column 'delete_date' in 'where clause'")

iRedApd Help!!!

$
0
0

==== Required information ====
- iRedMail version (check /etc/iredmail-release):  0.9.7
- Linux/BSD distribution name and version: Ubuntu 16.04
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- 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.
====

Hi there,

Im having an issue with iRedApd which I cannot solve sad

Yesterday I added a new domain and some accounts to my mail server and one of my accounts was complaining about the rejection policy. I decided to copy the default_settings.py file to the /opt/ireadapd/settings.py and all i changed was the greylisting setting to True for training, and restarted iredapd. I never knew anything was wrong until an hour ago when people started complaining that no mail was sending and receiving.

I immediately removed the new settings file and restarted iredapd, but now the problem is persisting.. I have subsequently disabled iredapd in my postfix config for now so that mail can work, but would appreciate some help getting the problem solved..

Heres the error i was receiving in my mail logs:

Mar  6 11:46:16 mail postfix/smtpd[4241]: warning: connect to 127.0.0.1:7777: Connection refused
Mar  6 11:46:16 mail postfix/smtpd[4241]: warning: problem talking to server 127.0.0.1:7777: Connection refused
Mar  6 11:46:17 mail postfix/smtpd[4241]: warning: connect to 127.0.0.1:7777: Connection refused
Mar  6 11:46:17 mail postfix/smtpd[4241]: warning: problem talking to server 127.0.0.1:7777: Connection refused
Mar  6 11:46:17 mail postfix/smtpd[4241]: NOQUEUE: reject: RCPT from mail-sn1nam02lp0017.outbound.protection.outlook.com[216.32.180.17]: 451 4.3.5 <email@domain>: Recipient address rejected: Server configuration problem; from=<user@opm50.hbs.edu> to=<email@domain> proto=ESMTP helo=<NAM02-SN1-obe.outbound.protection.outlook.com>
Mar  6 11:46:17 mail postfix/smtpd[4241]: disconnect from mail-sn1nam02lp0017.outbound.protection.outlook.com[216.32.180.17] ehlo=2 starttls=1 mail=1 rcpt=0/1 quit=1 commands=5/6
Mar  6 11:46:43 mail postfix/smtpd[4206]: timeout after RSET from unknown[196.211.110.250]
Mar  6 11:46:45 mail postfix/master[4058]: terminating on signal 15

nmap localhost shows no port 7777, i assume this could be part of the issue, but nothing was ever changed to remove this:
Starting Nmap 7.01 ( https://nmap.org ) at 2018-03-06 11:59 SAST
Nmap scan report for localhost (127.0.0.1)
Host is up (0.000010s latency).
Other addresses for localhost (not scanned): ::1
rDNS record for 127.0.0.1: mail.domain.com
Not shown: 985 closed ports
PORT      STATE SERVICE
24/tcp    open  priv-mail
25/tcp    open  smtp
80/tcp    open  http
110/tcp   open  pop3
143/tcp   open  imap
443/tcp   open  https
587/tcp   open  submission
783/tcp   open  spamassassin
993/tcp   open  imaps
995/tcp   open  pop3s
3306/tcp  open  mysql
9998/tcp  open  distinct32
10024/tcp open  unknown
10025/tcp open  unknown
20000/tcp open  dnp

service iredapd restart works fine, but in the status the below shows:
root@mail:~# service iredapd status
● iredapd.service - LSB: Control iredapd daemon.
   Loaded: loaded (/etc/init.d/iredapd; bad; vendor preset: enabled)
   Active: active (exited) since Tue 2018-03-06 11:37:19 SAST; 23min ago
     Docs: man:systemd-sysv-generator(8)
  Process: 3440 ExecStart=/etc/init.d/iredapd start (code=exited, status=0/SUCCESS)

Mar 06 11:37:19 mail systemd[1]: Starting LSB: Control iredapd daemon....
Mar 06 11:37:19 mail iredapd[3440]: Starting iredapd ...
Mar 06 11:37:19 mail iredapd[3440]: Traceback (most recent call last):
Mar 06 11:37:19 mail iredapd[3440]:   File "/opt/iredapd/iredapd.py", line 22, in <module>
Mar 06 11:37:19 mail iredapd[3440]:     import settings
Mar 06 11:37:19 mail iredapd[3440]: ImportError: No module named settings
Mar 06 11:37:19 mail systemd[1]: Started LSB: Control iredapd daemon..

Re: Unable to connect Via either Thunderbird or Outlook ; Roundcube fine

$
0
0
ZhangHuangbin wrote:
sollips wrote:

my server is mail.domain1.net

My configuration is :
imap.domain1.net
smtp.domain1.net

You should use 'mail.domain1.net' as server address.

Hello and thanks for your reply. Problem persists though, and still no entries in log.

Force user to change password

$
0
0

==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.7
- Linux/BSD distribution name and version: Debian 8
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): Openldap
- Web server (Apache or Nginx):Apache
- Manage mail accounts with iRedAdmin-Pro?
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

Hin Zhang, hi all

I followed this tutorial to force users to change their password after a certain amount of time: https://docs.iredmail.org/force.user.to … sword.html

I installed the roundcube plugins : https://bitbucket.org/wainlake/force_password_change
and i follow the steps.
But this plugins don't work for me and I  have a php warning on mail.log :
roundcube: PHP Warning:  ldap_search(): Search: No such object in /opt/www/roundcubemail-1.3.0/plugins/force_password_change/drivers/ldap_simple.php on line 45
Mar  6 05:38:38 mail1 roundcube: PHP Warning:  ldap_get_entries() expects parameter 2 to be resource, boolean given in /opt/www/roundcubemail-1.3.0/plugins/force_password_change/drivers/ldap_simple.php on line 46

Please help .
Thank's forn all

Re: iRedApd Help!!!

$
0
0

I am also receiving this feedback to my postmaster account, if this provides any more detail:

Cron <root@mail> python /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 72, in <module>
from tools import logger, get_db_conn
File "/opt/iredapd/tools/../tools/__init__.py", line 21, in <module>
backend = settings.backend

Cron <root@mail> python /opt/iredapd/tools/cleanup_db.py >/dev/null
Traceback (most recent call last):
File "/opt/iredapd/tools/cleanup_db.py", line 16, in <module>
import settings
ImportError: No module named settings
AttributeError: 'module' object has no attribute 'backend'


Webmail Extremely Slow

$
0
0

==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.7
- Linux/BSD distribution name and version: Ubuntu 16.04LTS
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): LDAP
- Web server (Apache or Nginx):Apache
- Manage mail accounts with iRedAdmin-Pro? NO
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.- 503 Service Unavailable

The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.
====

My SOGO webmail was working OK till a few days ago. Now it takes forever to load and often gives me the "503 service unavailable" error message.

iRedAdmin Panel works just fine though. What could be the problem?

iRedmail integration with ather hosting panels

$
0
0

Is it possible to use iredmail as mail server along with other hosting panels like CPanel, Kloxo, Ajenti, ... ?

emClient triggers f2b-dovecot

$
0
0

==== Required information ====
- iRedMail version (check /etc/iredmail-release):
- Linux/BSD distribution name and version:
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):
- Web server (Apache or Nginx):
- Manage mail accounts with iRedAdmin-Pro?
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
======== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.7-Pro
- Linux/BSD distribution name and version: Ubuntu 16.04.4 LTS
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? Yes
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
Below is a sanatized snippet of the dovecot.log:

Mar 05 09:32:10 imap-login: Info: Login: user=<problemuser@hisdomain.org>, method=PLAIN, rip=xx.xx.xx.99, lip=yy.yy.yy.25, mpid=82779, TLS, session=<iRsY3qxmVOwyURFj>
Mar 05 09:34:41 imap-login: Info: Disconnected (auth failed, 1 attempts in 2 secs): user=<problemuser@hisdomain.org>, method=PLAIN, rip=xx.xx.xx.99, lip=yy.yy.yy.25, TLS: Disconnected, session=<yloH56xmNP4yURFj>
Mar 05 09:34:49 imap-login: Info: Disconnected (auth failed, 1 attempts in 6 secs): user=<problemuser@hisdomain.org>, method=PLAIN, rip=xx.xx.xx.99, lip=yy.yy.yy.25, TLS: Disconnected, session=<2LlA56xmUv4yURFj>
Mar 05 09:37:00 imap-login: Info: Disconnected (auth failed, 1 attempts in 2 secs): user=<problemuser@hisdomain.org>, method=PLAIN, rip=xx.xx.xx.99, lip=yy.yy.yy.25, TLS: Disconnected, session=<qL5M76xmFv8yURFj>
Mar 05 09:37:06 imap-login: Info: Disconnected (auth failed, 1 attempts in 6 secs): user=<problemuser@hisdomain.org>, method=PLAIN, rip=xx.xx.xx.99, lip=yy.yy.yy.25, TLS: Disconnected, session=<7bpt76xmGf8yURFj>
Mar 05 09:38:33 imap-login: Info: Disconnected (auth failed, 1 attempts in 2 secs): user=<problemuser@hisdomain.org>, method=PLAIN, rip=xx.xx.xx.99, lip=yy.yy.yy.25, TLS: Disconnected, session=<upLN9KxmmP8yURFj>
Mar 05 09:41:33 imap-login: Info: Disconnected: Inactivity (auth failed, 1 attempts in 180 secs): user=<problemuser@hisdomain.org>, method=PLAIN, rip=xx.xx.xx.99, lip=yy.yy.yy.25, TLS, session=<1PX29KxmnP8yURFj>
Mar 06 07:18:46 imap-login: Info: Login: user=<problemuser@hisdomain.org>, method=PLAIN, rip=xx.xx.xx.99, lip=yy.yy.yy.25, mpid=21460, TLS, session=<IqHhHr9mZtAyURFj>

I am not sure where else to look.

Any ideas?

-Ron

Problem with imap outlook

$
0
0

==== Required information ====
- iRedMail version (check /etc/iredmail-release):
- Linux/BSD distribution name and version:
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):
- Web server (Apache or Nginx):
- Manage mail accounts with iRedAdmin-Pro?
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====The installed version is iRedMail-0.9.5.1, Centos 7, MariaDB, Apache.

When I create an imap account in outlook 2013 - 2016, the folders are created in English (draft, sent, trash, junk). How can I create them in Spanish?
In thunderbird shows in Spanish.
Thanks,

Re: Webmail Extremely Slow

$
0
0

Try the easy items first. Restart Nginx and restart the server. Suspect that an auto-updated package caused the issue. Ubuntu uses the Debain testing branch and sometimes package updates have to be manually tweaked to get iRedMail back up and running. Main offenders have been php updates so would start by checking if had any php packages auto-update (if of course the service or server restart does not resolve). If not php check for other packages that recently upgraded. Also check log Nginx logs files as the 503 errors should show up and give more direction.

Re: Webmail Extremely Slow

$
0
0
schnappi wrote:

Try the easy items first. Restart Nginx and restart the server. Suspect that an auto-updated package caused the issue. Ubuntu uses the Debain testing branch and sometimes package updates have to be manually tweaked to get iRedMail back up and running. Main offenders have been php updates so would start by checking if had any php packages auto-update (if of course the service or server restart does not resolve). If not php check for other packages that recently upgraded. Also check log Nginx logs files as the 503 errors should show up and give more direction.

Thanks for this but I am using Apache. I did try restarting the server. Works OK for a few minutes then back to this annoying slow routine. Thoughts on that?

Re: Webmail Extremely Slow

$
0
0

There's a lot of this on the log:

[Tue Mar 06 09:57:31.139200 2018] [proxy:error] [pid 4062] AH00940: HTTP: disabled connection for (127.0.0.1)


Re: Webmail Extremely Slow

$
0
0

Maybe your issue is due to the connection being throttling above the server. However if this were the case the logs on the server wouldn't show anything to reflect the throttle so this is probably not the issue.

Have you edited Apache config files in any way?

Also check package install logs here: /var/log/apt to see if anything has been installed or updated since the issue started occurring.

Re: Webmail Extremely Slow

$
0
0

Nope have not edited Apache config files at all and no installs/updates on logs.

Re: Webmail Extremely Slow

$
0
0

Has this issue always been occurring or did it start recently? Maybe the server is actually overloaded. Run "uptime" immediately after getting the error and see what the server resources look like.

Also try to connect on another connection (for example a cellular connection) and see if the 503 error occurs on multiple connections at the same time or just from one connection in particular.

Re: Webmail Extremely Slow

$
0
0

Server isn't overloaded and yes this is recent. iredadmin works perfectly well even immediately I get the 503 error when trying to get to webmail.

Re: Webmail Extremely Slow

$
0
0

Assuming you are using Roundcube one could try upgrading Roundcube to the newest version.

You could additionally create a temporary test Apache virtual host pointing to the Roundcube location to see if can replicate on a new fresh virtual host on a temporary unique port. If cannot replicate the issue obviously lies in the Apache config files somewhere.

Viewing all 43318 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>