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

SSL error or anything else

$
0
0

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

Hi, I try to upgrade 0.8.x to last release. I update the last oldstable debian (8) to last stable 9.2

I wanted erase all iredmail instalation , but I didn´t . Is a remote host , I don't have physical access.

I tried to access and in the webpage, showed this error:

| | Author: Aleksander Machniak | +-------------------------------------------------------------------------+ */ // include environment require_once 'program/include/iniset.php'; // init application, start session, init output class, etc. $RCMAIL = rcmail::get_instance(0, $GLOBALS['env']); // Make the whole PHP output non-cacheable (#1487797) $RCMAIL->output->nocacheing_headers(); $RCMAIL->output->common_headers(); // turn on output buffering ob_start(); // check if config files had errors if ($err_str = $RCMAIL->config->get_error()) { rcmail::raise_error(array( 'code' => 601, 'type' => 'php', 'message' => $err_str), false, true); } // check DB connections and exit on failure if ($err_str = $RCMAIL->db->is_error()) { rcmail::raise_error(array( 'code' => 603, 'type' => 'db', 'message' => $err_str), false, true); } // error steps if ($RCMAIL->action == 'error' && !empty($_GET['_code'])) { rcmail::raise_error(array('code' => hexdec($_GET['_code'])), false, true); } // check if https is required (for login) and redirect if necessary if (empty($_SESSION['user_id']) && ($force_https = $RCMAIL->config->get('force_https', false))) { // force_https can be true, , :, if (!is_bool($force_https)) { list($host, $port) = explode(':', $force_https); if (is_numeric($host) && empty($port)) { $port = $host; $host = ''; } } if (!rcube_utils::https_check($port ?: 443)) { if (empty($host)) { $host = preg_replace('/:[0-9]+$/', '', $_SERVER['HTTP_HOST']); } if ($port && $port != 443) { $host .= ':' . $port; } header('Location: https://' . $host . $_SERVER['REQUEST_URI']); exit; } } // trigger startup plugin hook $startup = $RCMAIL->plugins->exec_hook('startup', array('task' => $RCMAIL->task, 'action' => $RCMAIL->action)); $RCMAIL->set_task($startup['task']); $RCMAIL->action = $startup['action']; // try to log in if ($RCMAIL->task == 'login' && $RCMAIL->action == 'login') { $request_valid = $_SESSION['temp'] && $RCMAIL->check_request(); $pass_charset = $RCMAIL->config->get('password_charset', 'ISO-8859-1'); // purge the session in case of new login when a session already exists $RCMAIL->kill_session(); $auth = $RCMAIL->plugins->exec_hook('authenticate', array( 'host' => $RCMAIL->autoselect_host(), 'user' => trim(rcube_utils::get_input_value('_user', rcube_utils::INPUT_POST)), 'pass' => rcube_utils::get_input_value('_pass', rcube_utils::INPUT_POST, true, $pass_charset), 'valid' => $request_valid, 'cookiecheck' => true, )); // Login if ($auth['valid'] && !$auth['abort'] && $RCMAIL->login($auth['user'], $auth['pass'], $auth['host'], $auth['cookiecheck']) ) { // create new session ID, don't destroy the current session // it was destroyed already by $RCMAIL->kill_session() above $RCMAIL->session->remove('temp'); $RCMAIL->session->regenerate_id(false); // send auth cookie if necessary $RCMAIL->session->set_auth_cookie(); // log successful login $RCMAIL->log_login(); // restore original request parameters $query = array(); if ($url = rcube_utils::get_input_value('_url', rcube_utils::INPUT_POST)) { parse_str($url, $query); // prevent endless looping on login page if ($query['_task'] == 'login') { unset($query['_task']); } // prevent redirect to compose with specified ID

Help me please. Thanks


AD 2016 intergration

$
0
0

==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.97
- Linux/BSD distribution name and version: centos7
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): AD 2016
- 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 Everyone,

I have installed Iredmail .97 with with windows 2016 ad intergration. I have users in specific OUs and that works fine. The only issue is if a user is moved from its OU to a different one, it takes time for iredmail to recognise it well more postfix and dovecot. Is there a way to get those changes read isnteantly please?

Rajbps

URL forwarding

$
0
0

==== Required information ====
- iRedMail version (check /etc/iredmail-release): latest
- Linux/BSD distribution name and version: Debian 8
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySql
- Web server (Apache or Nginx): Apache
====
Hey!
I just want to ask if it is possible to change example.com/mail to mail.example.com. It is is, how? Also I want to change example.com/iredadmin to mail.example.com/admin.

I hope someone can help me.

Thanks! smile

NextCloud Error 404 - /index.php/apps/files/

$
0
0

================ Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.7 MARIADB edition
- Linux/BSD distribution name and version: CentOS Linux release 7.4.1708 (Core)
- 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 to all,

first of all thanks for your work for iRedMail and for your support.
I'm quite new with Nginx but as that default version for next upgrade i choose to use it on my personal server.
After configure mail to 'webmail.magri.email', i've try to install nextcloud on the same server.
To solve the problem with the php version, I did an upgrade following the steps below :

yum install http://rpms.remirepo.net/enterprise/remi-release-7.rpm
yum-config-manager --enable remi-php56
yum update

After that i've just download nextcloud in the directory '/var/www/nextcloud/', change the owner to nginx, group nginx, files permission to 0755 and try to install with the following configuration as vhost :

server {
        listen 80;
        listen [::]:80;
        server_name nextcloud.magri.email;
        return 301 https://$server_name$request_uri;
}
server {
        listen 443;
        listen [::]:443;
        include /etc/nginx/templates/hsts.tmpl;
        root /var/www/nextcloud;
        index index.php index.html;
        server_name nextcloud.magri.email;
        ssl on;
        ssl_dhparam /etc/nginx/ssl/dhparam.pem;
        ssl_certificate /etc/letsencrypt/live/nextcloud.magri.email/fullchain.pem;
        ssl_certificate_key /etc/letsencrypt/live/nextcloud.magri.email/privkey.pem;
        ssl_protocols TLSv1.2;
        ssl_ciphers "DHE-RSA-AES256-SHA:ECDHE-RSA-AES256-SHA:DHE-RSA-AES256-SHA256:DHE-RSA-AES256-SHA384:DHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES256-GCM-SHA384 !RC4 !aNULL !eNULL !LOW !3DES !MD5 !EXP !PSK !SRP !DSS";
        ssl_prefer_server_ciphers on;
        ssl_session_cache shared:SSL:10m;

        location ~ \.php$ {
                        include /etc/nginx/templates/fastcgi_php.tmpl;
                        fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
                        }

        location ~ ^/(bin|SQL|README|INSTALL|LICENSE|CHANGELOG|UPGRADING)$ { deny all; }
        }

It appear fine, but after installation a page with error 404 was report back to me and the adress change to 'https://nextcloud.magri.email/index.php/apps/files/'.

I've try to manage how to solve it without solve the issue.
Can someone tell me where i wrong ?

Thanks again.

How do I change the web port that iredmail runs on

$
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.
====

how would I change the port that iRedMail is displayed to, I have another server that is already hosting a web server that I want people to see, instead of seeing the iRedMail page

count users

$
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): 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.
====
Hi all,
I have execute this script to find top ip address for user connexion: here is the result:
./find_sasl_login_ip.sh /var/log/mail.log user1

      1 client=f497.i.mail.ru[217.69.138.164],
      1 client=f498.i.mail.ru[217.69.138.165],
      1 client=f506.i.mail.ru[217.69.138.173],
      1 client=f508.i.mail.ru[217.69.138.175],
      1 client=f511.i.mail.ru[217.69.138.178],
      1 client=f512.i.mail.ru[217.69.138.179],
      1 client=f67.i.mail.ru[94.100.185.144],
      2 client=f431.i.mail.ru[185.5.136.102],
      2 client=localhost[127.0.0.1],

Is this  count user hacked??
Thank's for help

internal server error iredadmin

$
0
0

======== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.7
- Linux/BSD distribution name and version: Ubuntu 16.04.3 LTS (GNU/Linux 4.10.0-28-generic x86_64)
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): mysql
- Web server (Apache or Nginx): apache
- Manage mail accounts with iRedAdmin-Pro? yes
====
/var/log/apache2/error.log
...
[Thu Oct 26 16:43:44.356300 2017] [wsgi:error] [pid 58700] [client 10.201.13.249:62162] Timeout when reading response headers from daemon process 'iredadmin': /opt/www/iredadmin/iredadmin.py, referer: https://XXX.YYY.ZZZ/iredadmin/activitie … ined/virus
[Thu Oct 26 16:43:49.579446 2017] [wsgi:error] [pid 42016] [client 10.201.13.249:62838] Truncated or oversized response headers received from daemon process 'iredadmin': /opt/www/iredadmin/iredadmin.py, referer: https://XXX.YYY.ZZZ/iredadmin/activitie … ined/virus
[Thu Oct 26 16:43:49.579501 2017] [wsgi:error] [pid 65986] [client 10.201.13.249:62834] Truncated or oversized response headers received from daemon process 'iredadmin': /opt/www/iredadmin/iredadmin.py, referer: https://XXX.YYY.ZZZ/iredadmin/activitie … ined/virus
[Thu Oct 26 16:43:49.579675 2017] [wsgi:error] [pid 67154] [client 10.201.13.249:62823] Truncated or oversized response headers received from daemon process 'iredadmin': /opt/www/iredadmin/iredadmin.py, referer: https://XXX.YYY.ZZZ/iredadmin/activitie … ined/virus
[Thu Oct 26 16:43:49.579444 2017] [wsgi:error] [pid 45398] [client 10.201.13.249:62837] Truncated or oversized response headers received from daemon process 'iredadmin': /opt/www/iredadmin/iredadmin.py, referer: https://XXX.YYY.ZZZ/iredadmin/activitie … ined/virus
...

After checking the contents of an email in quarantaine, the web-ui hangs with an Internal Server Error
when one wants to start a second action.

One can check the content of quarantained mail, but afterwards the web-ui hangs.
One can release or delete emails from quarantaine, provided we did not first check the content of a message.

"Internal Server Error


The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator at postmaster@YYY.ZZZ to inform them of the time this error occurred, and the actions you performed just before this error.

More information about this error may be available in the server error log.

Apache/2.4.18 (Ubuntu) Server at XXX.YYY.ZZZ  Port 443"

Untrusted TLS connection established

$
0
0

==== Required information ====
- iRedMail version (check /etc/iredmail-release): 097
- Linux/BSD distribution name and version:
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): ldap
- Web server (Apache or Nginx):apache
- Manage mail accounts with iRedAdmin-Pro?n
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
in mailog;
Oct 25 12:23:30 mail postfix/smtp[10727]: Untrusted TLS connection established to mail6.lh.pl[185.135.90.18]:25: TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)

what does it mean? Can it couse that some my mails are considered as spam? does it mean that I certificat issue?


Whats apps is best use in android Sogo Calendar

$
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.
====

Hi Zhang,
  Want to know if i could not find android apps that could best work with sogo calendar. which Apps could be better to used Sogo Calendar. t is just could not display the whole calendar event when the event is much bigger, some event of that day could not display.

Thanks
Napoleon

how to send quarantine notification to a group of user

$
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.
====
Iredadmin-Pro 3.0
Iredmain  0.9.7
centos 7

Hi Zhang,
If we want to send the notification instead of the receiver could we?
as below, we set and not success
However, admin is not receiving email about the quarantine even thou setting should be ok:

/etc/amavisd/amavisd.conf:

$virus_admin = "group_it@ourdomain.com";
$spam_admin = undef;
$banned_admin = "group_it@ourdoamin.com";
$bad_header_admin = undef;

Please advise
Napoleon.

certificate issue

$
0
0

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

When I try to test my ssl certificat from outside "ssl internet Tools" it shows that this certificat has no root cert. It is problem for me. Gmail, type app - android clients say that my cerificat is "wrong".

when
openssl s_client -showcerts -connect mail.goldwell.pl:993
it shows 3 ---begin/end sections,  on the bottom is written:
Start Time: 1509098608
    Timeout   : 300 (sec)
    Verify return code: 0 (ok)
---
* OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE AUTH=PLAIN AUTH=LOGIN] Dovecot ready.



when
openssl s_client -showcerts -connect mail.goldwell.pl:443
it shows only one ---begin/end section  and on the bottom"

Start Time: 1509098951
    Timeout   : 300 (sec)
    Verify return code: 21 (unable to verify the first certificate)

it shows only one ---begin/end section


what is wrong?

I made one *crt file in this way:
cat my_cer.cer chain.cer  >  iRedMail.crt


When I try to test my ssl certificat from outside "ssl internet Tools" it shows that this certificat has no root cert. It is problem for me. Gmail, type app - android clients say that my cerificat is "wrong".

Does iRedMail have a memory leak?

$
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): Apache
- Manage mail accounts with iRedAdmin-Pro?
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

When I freshly boot my VPS - which runs iRedMail and nothing else - I see from the admin page about 1.4 GB of memory used (of my 2 GB plus swapfile).

As time goes on, this number continues to creep up and the VSwap gets used as well.

Is there a reason why memory use goes up (and never down until a reboot)?


Andrew

send email from management card ibm rsa

$
0
0

==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.6
- Linux/BSD distribution name and version: centos7
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): ad win2012R2
- 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 Team,

I have 2 install of iredmail one is 0.9.7 and this one 0.9.6. Both are setup virtually and the hypervisor is proxmox. The actual hardware is an ibm server with an RSA2 card on. on the install of the 0.9.7, i have name the card as rsa and created that rsa account in active directory. Now It can email out to a support domain and teh email address going out is rsa@mailerver.domain.com.

But in this setup of 0.9.6, i tried to replicate the same setup but I keep getting the following:

Oct 28 01:23:23 mailer postfix/postscreen[4142]: CONNECT from [192.168.30.10]:48659 to [192.168.30.22]:25
Oct 28 01:23:23 mailer postfix/postscreen[4142]: WHITELISTED [192.168.30.10]:48659
Oct 28 01:23:23 mailer postfix/smtpd[4143]: connect from unknown[192.168.30.10]
Oct 28 01:23:24 mailer postfix/smtpd[4143]: NOQUEUE: reject: RCPT from unknown[192.168.30.10]: 550 5.1.0 <rsa@mailer.domain.com>: Sender address rejected: User unknown in local recipient table; from=<rsa@mailer.domain.com> to=<support@mydomain.com> proto=SMTP helo=<mailer.domain.com>
Oct 28 01:23:24 mailer postfix/smtpd[4143]: warning: non-SMTP command from unknown[192.168.30.10]: Date: Sun, 28 Oct 2017 01:23:22 +0100
Oct 28 01:23:24 mailer postfix/smtpd[4143]: disconnect from unknown[192.168.30.10]

Due to the fact that this install is active directory win2012R2 how can I create a local user please?

Rajbps

Restarting dovecot get error 89

$
0
0

==== Required information ====
- iRedMail version (check /etc/iredmail-release): .0.9.7
- Linux/BSD distribution name and version: ubuntu
- 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.

● dovecot.service - Dovecot IMAP/POP3 email server
   Loaded: loaded (/lib/systemd/system/dovecot.service; enabled; vendor preset:
   Active: failed (Result: exit-code) since Sat 2017-10-28 18:15:12 UTC; 32s ago
     Docs: man:dovecot(1)
           http://wiki2.dovecot.org/
  Process: 2864 ExecStart=/usr/sbin/dovecot (code=exited, status=89)

Oct 28 18:15:12 mail.dempseycentral.com dovecot[2864]: doveconf: Warning: Obsole
Oct 28 18:15:12 mail.dempseycentral.com dovecot[2864]: doveconf: Warning: Obsole
Oct 28 18:15:12 mail.dempseycentral.com dovecot[2864]: doveconf: Warning: NOTE:
Oct 28 18:15:12 mail.dempseycentral.com dovecot[2864]: doveconf: Warning: Obsole
Oct 28 18:15:12 mail.dempseycentral.com dovecot[2864]: doveconf: Warning: Obsole
Oct 28 18:15:12 mail.dempseycentral.com dovecot[2864]: doveconf: Fatal: Error in
Oct 28 18:15:12 mail.dempseycentral.com systemd[1]: dovecot.service: Control pro
Oct 28 18:15:12 mail.dempseycentral.com systemd[1]: Failed to start Dovecot IMAP
Oct 28 18:15:12 mail.dempseycentral.com systemd[1]: dovecot.service: Unit entere
Oct 28 18:15:12 mail.dempseycentral.com systemd[1]: dovecot.service: Failed with

====

Okay i am getting this error could use some suggestions as to how to get the server up and running.  Thanks

Proposal for a Exchange like Shared Mailbox aka login as

$
0
0

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

Hi there,

since i wanted to have a mechanism that's more or less the same like or at least very similar to an exchange shared mailbox (at least the way it's most often used imho => you define a mailbox and allow certain users to fully use that as if it would be their own) i did the following:


=========================================================================================
/etc/dovecot/dovecot.conf:

...
auth_master_user_separator = *
passdb {
    driver = passwd-file
    args = /etc/dovecot/dovecot-master-users
    master = yes
}
# HERE THE NEW PART FOR LOGINAS - START
passdb {
    driver = sql
    args = /etc/dovecot/dovecot-loginas.conf
    master = yes
    pass = yes
}
# HERE THE NEW PART FOR LOGINAS - END
...

=========================================================================================
/etc/dovecot/dovecot-loginas.conf:

driver = pgsql
default_pass_scheme = CRYPT
connect = host=127.0.0.1 dbname=vmail user=vmail password=***ENTER_YOUR_OWN***
password_query = SELECT password, allow_nets \
    FROM mailbox,loginas \
    WHERE mailbox.username='%u' \
    AND mailbox.enable%Ls%Lc=1 \
    AND mailbox.active=1 \
    AND mailbox.username=loginas.master_user \
    AND loginas.login_as_user='%{login_user}'

=========================================================================================
/etc/dovecot/dovecot-pgsql.conf: (the new part ist the '%u' as master_user thingie)

...
driver = pgsql
default_pass_scheme = CRYPT
connect = host=127.0.0.1 dbname=vmail user=vmail password=***ENTER_YOUR_OWN***
password_query = SELECT password, allow_nets FROM mailbox WHERE username='%u' AND enable%Ls%Lc=1 AND active=1
user_query = SELECT \
    mailbox.storagebasedirectory || '/' || mailbox.storagenode || '/' || mailbox.maildir AS home, \
    '*:bytes=' || mailbox.quota*1048576 AS quota_rule, \
    '%u' as master_user \
FROM mailbox,domain \
WHERE mailbox.username='%u' \
    AND mailbox.domain='%d' \
    AND mailbox."enable%Ls%Lc"=1 \
    AND mailbox.domain=domain.domain \
    AND domain.backupmx=0 \
    AND domain.active=1 \
    AND mailbox.active=1
...

=========================================================================================
create_loginas_table.sql:

-- Table: loginas

-- DROP TABLE loginas;

CREATE TABLE loginas
(
  master_user character varying(255) NOT NULL,
  login_as_user character varying(255) NOT NULL,
  CONSTRAINT masteruser_to_loginuser PRIMARY KEY (master_user, login_as_user)
)
WITH (
  OIDS=FALSE
);
ALTER TABLE loginas
  OWNER TO vmailadmin;
GRANT ALL ON TABLE loginas TO vmailadmin;
GRANT SELECT ON TABLE loginas TO vmail;
GRANT SELECT, UPDATE ON TABLE loginas TO roundcube;

=========================================================================================


With that in place and the table loginas filled with the right values you can now allow certain existing users to login as another user and work like you would be that user - including sending mail as this user

Just wanted to share this. Perhaps you could extend the docs http://www.iredmail.org/docs/public.folder.html &| https://docs.iredmail.org/mailbox.sharing.html

Imho this way is way easier to use and has less implications (acl, mail send as, etc.) then the sharing variant.

It would also be cool to see this as an option in iRedAdmin (pro)

mfG,
Martin


接收send.vip.com邮件异常

$
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):
- Linux/BSD distribution name and version: debian8
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): mysql
- Web server (Apache or Nginx):apache
- Manage mail accounts with iRedAdmin-Pro? iredmail 0.9.7 without Pro
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
接收@send.vip.com的邮件异常,在greylisting 关闭情况下,postfix 的debug日志如下 ,当出现日志的情况下,无法收到@send.vip.com邮件,或延迟很久(30分钟左右)才可以收到
Oct 30 10:46:37 mail postfix/postscreen[19263]: PASS OLD [61.160.43.31]:22671
Oct 30 10:46:37 mail postfix/smtpd[27939]: connect from mta31.send.vip.com[61.160.43.31]
Oct 30 10:46:37 mail postfix/smtpd[27939]: smtp_stream_setup: maxtime=300 enable_deadline=0
Oct 30 10:46:37 mail postfix/smtpd[27939]: match_hostname: mta31.send.vip.com ~? 127.0.0.1
Oct 30 10:46:37 mail postfix/smtpd[27939]: match_hostaddr: 61.160.43.31 ~? 127.0.0.1
Oct 30 10:46:37 mail postfix/smtpd[27939]: match_list_match: mta31.send.vip.com: no match
Oct 30 10:46:37 mail postfix/smtpd[27939]: match_list_match: 61.160.43.31: no match
Oct 30 10:46:37 mail postfix/smtpd[27939]: send attr request = connect
Oct 30 10:46:37 mail postfix/smtpd[27939]: send attr ident = smtpd:61.160.43.31
Oct 30 10:46:37 mail postfix/smtpd[27939]: private/anvil: wanted attribute: status
Oct 30 10:46:37 mail postfix/smtpd[27939]: input attribute name: status
Oct 30 10:46:37 mail postfix/smtpd[27939]: input attribute value: 0
Oct 30 10:46:37 mail postfix/smtpd[27939]: private/anvil: wanted attribute: count
Oct 30 10:46:37 mail postfix/smtpd[27939]: input attribute name: count
Oct 30 10:46:37 mail postfix/smtpd[27939]: input attribute value: 1
Oct 30 10:46:37 mail postfix/smtpd[27939]: private/anvil: wanted attribute: rate
Oct 30 10:46:37 mail postfix/smtpd[27939]: input attribute name: rate
Oct 30 10:46:37 mail postfix/smtpd[27939]: input attribute value: 1
Oct 30 10:46:37 mail postfix/smtpd[27939]: private/anvil: wanted attribute: (list terminator)
Oct 30 10:46:37 mail postfix/smtpd[27939]: input attribute name: (end)
Oct 30 10:46:37 mail postfix/smtpd[27939]: > mta31.send.vip.com[61.160.43.31]: 220 mail.mailmehow.com
Oct 30 10:46:37 mail postfix/smtpd[27939]: xsasl_dovecot_server_create: SASL service=smtp, realm=(null)
Oct 30 10:46:37 mail postfix/smtpd[27939]: name_mask: noanonymous
Oct 30 10:46:37 mail postfix/smtpd[27939]: xsasl_dovecot_server_mech_filter: keep mechanism: PLAIN
Oct 30 10:46:37 mail postfix/smtpd[27939]: xsasl_dovecot_server_mech_filter: keep mechanism: LOGIN
Oct 30 10:46:37 mail postfix/smtpd[27939]: watchdog_pat: 0x55f6ee07a630
Oct 30 10:46:37 mail postfix/smtpd[27939]: smtp_get: EOF
Oct 30 10:46:37 mail postfix/smtpd[27939]: match_hostname: mta31.send.vip.com ~? 127.0.0.1
Oct 30 10:46:37 mail postfix/smtpd[27939]: match_hostaddr: 61.160.43.31 ~? 127.0.0.1
Oct 30 10:46:37 mail postfix/smtpd[27939]: match_list_match: mta31.send.vip.com: no match
Oct 30 10:46:37 mail postfix/smtpd[27939]: match_list_match: 61.160.43.31: no match
Oct 30 10:46:37 mail postfix/smtpd[27939]: send attr request = disconnect
Oct 30 10:46:37 mail postfix/smtpd[27939]: send attr ident = smtpd:61.160.43.31
Oct 30 10:46:37 mail postfix/smtpd[27939]: private/anvil: wanted attribute: status
Oct 30 10:46:37 mail postfix/smtpd[27939]: input attribute name: status
Oct 30 10:46:37 mail postfix/smtpd[27939]: input attribute value: 0
Oct 30 10:46:37 mail postfix/smtpd[27939]: private/anvil: wanted attribute: (list terminator)
Oct 30 10:46:37 mail postfix/smtpd[27939]: input attribute name: (end)
Oct 30 10:46:37 mail postfix/smtpd[27939]: lost connection after CONNECT from mta31.send.vip.com[61.160.43.31]
Oct 30 10:46:37 mail postfix/smtpd[27939]: disconnect from mta31.send.vip.com[61.160.43.31]

[Guide] External MySQL server using IPv6

$
0
0

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

I only tested the following guide on Debian 9.2 (Stretch), but I referred to the files for other Distro's and/or BSD aswell.
Testers for other distro's are appreciated.

These issues can and (should be resolved) in my opinion as moving to IPv6 is essential in the coming years and not having to deal with these issues is important for newer iRedmail users.

If you're trying to setup a mailserver using iRedmail using the following guide in order to use a remote mysql database be aware that iRedmail does not natively support this.
Guide: https://docs.iredmail.org/install.iredm … erver.html

I've posted a topic earlier this week regarding SOGo not fully working, this wasn't only related to SOGo but everything else aswel. The SOGo issue has been resolved as a bugfix and should work for everybody else now accordingly to ZhangHuangbin.

For demonstration purposes only let's say we used this command to install iRedmail:

USE_EXISTING_MYSQL='YES' \
    MYSQL_SERVER_ADDRESS='fd01:2345:6789:1::1' \                 # Your external MySQL server's IP
    MYSQL_SERVER_PORT='3306' \
    MYSQL_ROOT_USER='admin_iredmail' \
    MYSQL_ROOT_PASSWD='admin_password' \
    MYSQL_GRANT_HOST='fd01:2345:6789:1::99' \                       # Your iRedmail server's IP
    bash iRedMail.sh

Keep in mind the remote MySQL server should allow the user 'admin_iredmail' (in this case) all privileges as written in the guide and has been allowed by the grant host ip.
The Grant Host should also be statically assigned so it'll never change.

After you've installed iRedmail nothing will work as nothing supports IPv6 addresses using mysql, and encoding it as IPv6 (Adding brackets around them eg. [fd01:2345:6789:1::1]) does not work for everything (Works for SOGo) meaning you'll need to create a local host entry for the ipv6 mysql address in your /etc/hosts file.
Here's how it would look in this example:

# Default entries
127.0.1.1       server.domain.tld server localhost
::1             server.domain.tld server localhost ip6-localhost ip6-loopback

ff02::1 ip6-allnodes
ff02::2 ip6-allrouters

# Add this entry
fd01:2345:6789:1::1 mysql

You can change 'mysql' to whatever you like, but this name will be used everywhere to refer to the ipv6 address.

Confige Postfix to work:

# Running the following line of code will replace the first line of every file in the /etc/postfix/mysql folder.
# It will replace it to "hosts       = mysql"
# Relace 'mysql' to the name in your /etc/hosts file.

# For all Linux distro's and OpenBSD:
sed -i "1s/.*/hosts       = mysql" /etc/postfix/mysql/*

# For FreeBSD:
sed -i "1s/.*/hosts       = mysql" /usr/local/etc/postfix/mysql/*

# Save the file and restart postfix
systemctl restart postfix

Dovecot should work out of the box using ipv6 addresses so no problems here, if you do struggle try the following:
Confige dovecot to work:

# Edit the following file using your favorite editor (Nano in my case)

# For all Linux distro's and OpenBSD:
nano /etc/dovecot/dovecot-mysql.conf

# For FreeBSD
nano /usr/local/etc/dovecot/dovecot-mysql.conf

# Find the line starting with CONNECT
# Change 'host=fd01:2345:6789:1::1' (this example) to your hostname (Specified in /etc/hosts).
# In thise case it would be:
'host=mysql'

# Save the file and restart dovecot
systemctl restart dovecot

Configure iRedAPD to work:

# Edit the following file using your favorite editor (Nano in my case)
nano /opt/iredapd/settings.py

# Find the following lines starting with:
#     vmail_db_server =
#     amavisd_db_server =
#     iredapd_db_server =
# Update all 3 entries to your mysql hostname configured in /etc/hosts
# This example:
vmail_db_sever = "mysql"
amavisd_db_server = "mysql"
iredapd_db_server = "mysql"

# Save the file and restart iredapd
systemctl restart iredapd

Configure Amavisd/Amavis-new to work:

# Edit the following file using your favorite editor (Nano in my case)

# For RHEL/CentOS:
nano /etc/amavisd/amavisd.conf

# For Debian/Ubuntu:
nano /etc/amavis/conf.d/50-user

# For FreeBSD:
nano /usr/local/etc/amavisd.conf

# For OpenBSD:
nano /etc/amavisd.conf


# Change the 'host=fd01:2345:6789:1::1' (this case) to 'host=mysql' where mysql is the hostname you entered in /etc/hosts
#  for the line starting with @storage_sql_dsn so it looks like:
@storage_sql_dsn = (['DBI:mysql:database=amavisd;host=mysql;port=3306', 'LEAVE THIS', 'LEAVE THIS!']);

# Keep in mind not to change the original value to 'LEAVE THIS' like the example as these are the
#  predefined database credentials for amavisd.

# Save the configuration and restart amavisd/amavis-new
systemctl amavisd restart


I do not use iRedadmin (Standard or pro) or Roundcube (Only SOGo and command line administering using custom tools) so I did not require a fix for those.


Post future problems down in this post and I'll be sure to help you out.

Kind Regards.
Wraptor

Question !!!

$
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.
====

I installed in Digital Ocean droplet  , iredmail  run very good:
My question is
If i generate  snapshot and mount in another droplet  the same VPS  but diferent IP.
This Work  well? or i need to change something in my conf?
Thx Alot
Jon

A few questions

$
0
0

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

Hi :-)

1. Fail2ban
Why fail2ban rules (most of them) are in /etc/fail2ban/jail.conf and not /etc/fail2ban/jail.local? jail.conf may be overwritten during app updating.

2. Backup
Is there any mechanism to remove old backups from /var/vmail/backup or do I have to do it on my own? There's no point in storing those backups until the disk run out of free space.

3. OS
Which system would be safer and more efficient for iRedMail: Debian 9 or Ubuntu 16.04 LTS?

email forwarding using roundcube/multiple domains

$
0
0

======== Required information ====
- iRedMail version: 0.9.6
- Linux/BSD distribution name and version: Ubuntu 16.04.2 LTS
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MYSQL
- 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.
====

Hello everyone.

I've encountered a strange behavior. I have 3 email domains (not aliaces) in iredmail. If I set forwarding via roundcube (1.3.1) for the primary domain everything works fine. But if do the same for the domain I added after installation there is nothing happens. Checked syslog, no luck, everything related to that adress is fine, tryed debug for roundcube, no luck either. I didnt try SQL forwarding yet because this isn't an acceptable option due to amount of users using fw from time to time.

Will be grateful for any help!

Viewing all 12098 articles
Browse latest View live


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