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

Re: Unable to send as alias

$
0
0

I think I've used some incorrect terminology here, to clarify - i'm attempting to change the sending and reply-to addresses in roundcube to 'send as' my main account with a delimited extension. so for example :

alec.iredmail@domain.com in place of simply alec@domain.com

The only way I've reliably able to do this is by adding ALLOWED_LOGIN_MISMATCH_SENDERS = ['alec@domain.com'] to /opt/iredapd/settings.py

unfortunately this has the side effect of allowing me to send as postmaster@domain.com , for example. I do not want users to be able to send-as other users, only themselves with a delimited extension.


Re: Unable to send emails from google using SMTP

$
0
0

Hello,

Finally I've found the problem thanks to another problem we have. Thundebird configuration was fine but because it has more patience waiting for SMTP connection than Google, so it keeps waiting until connection is done. Google don't wait too much so it just give a "cannot connect" message.
After researching why the smtp connection can be slow I've found another post in this forum talking about the DNS resolution in server (resolv.conf). I've checked that file and susprise!!, the file is wrong and points first to localhost (too bad for the cloud provider), so the dns resolution is slow and make the SMTP connection slow too.

I never would have thought that the problem was just DNS resolv, because I've done a lot of things in that server like update and download packages and I've not noticed slow resolutions until I've checked it manually with dig.

Finally I've fixed two problems in one.

Thanks for all your help!.

too many connections on a single imap accound

$
0
0

Hello,
i own a mail server that is working great. fast and reliable.
i have an imap account that is registered on different thunderbird clients(maybe 5 or 6) and i have to add 50 connection limit in dovecot to work with this account in reliable way.
is this a normal bahaviour ?
where i can begin for debug ?
when i investigate i don't find anythigs.

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 0.9.2
- Deployed with iRedMail Easy or the downloadable installer? downloadable installer
- Linux/BSD distribution name and version: centos 7.6.1810
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):  mysql
- Web server (Apache or Nginx): apache
- Manage mail accounts with iRedAdmin-Pro? yes, with some issues
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

Re: DKIM key

$
0
0

You just enter it "as is". Depending on where/how  you host Your DNS, it might differ in how it looks. I'm using Gandi.net, and I just copied it all into the DKIM field.
If I look in "text mode", i.r. like how you would edit a DNS domain file in your Bind server, it's all on one line, keeping the quotation marks and space between each section.
like this example:

dkim._domainkey 3600 IN TXT "v=DKIM1; p="MIGfMA0Gxxxxxx" "dfkvdfkvdvf2" "dfbkmvdklfmvlkdmfb" "SDFSFSDFoijo"

When done, check your DNS setting by running an on-line tool like  https://mxtoolbox.com/SuperTool.aspx?action=dkim
or by using

dig dkim._domainkey.YourDomain.TLD TXT

Re: Unable to send emails from google using SMTP

$
0
0

I'm glad you fixed it. This was a very interesting problem and solutions. Will keep it in mind (and I checked my resolve.conf as well, just to be sure...)

mail does not arrive

$
0
0

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 0.9.9
- Deployed with iRedMail Easy or the downloadable installer? download
- Linux/BSD distribution name and version: OpenBSD
- 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.
====



Good morning. Some colleagues, since I installed iredmail, complain that some emails do not arrive. I completely disabled clamav, amavisd and spamassassin but still no improvement.
Some idea? Thank you

Re: Using TLS for LDAP on port 389

$
0
0

The question is a bit old, but if you havnt figured it out yet, here are some hints.

1) you could perhaps force your postgres server to use LDAPS (port 636), and then just open port 636 in the firewall?
2) or, you have to configure everything in the iRedMail server to use LDAPS (636) or StartTLS over 389.
There are a number of places to conifgure.... (I've done it myself, so i know that it works)

a)in /etc/postfix/ldap  : I added start_tls = yes in all of the "cf" file.  Remember to rebuild all the hash files using postmap <filename>
b) in /etc/dovecot/dovecot-ldap.conf , set "tls = yes "
c) in the <roundcubeDir> config/config.inc.php, add 'use_tls' => true, under the "//Global LDAP addressbook." section
d) in /etc/sogo/sogo.conf,  under the section "// Authentication using LDAP" the "hostname" statement should be changed from hostname = "ldap://127.0.0.1:389";  to ldap://127.0.0.1/????!StartTLS";
e) The same file, under the // Used for global address book section
f) in /opt/iredapd/settings.py.  I have configured ldap_uri = "ldap://127.0.0.1:636" (don't know if it is posible to use startTLS on 389 though)
g) /opt/www/iredadmin/settings.py (or /var/www/iredadmin/settings.py) set   ldap_uri = ldaps://127.0.0.1  accoring to the help text it means StartTLS on 389

Maybe I missed som config file, but try it out....:-)

Php file not found

$
0
0

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release):      v0.9.9
- Deployed with iRedMail Easy or the downloadable installer? Downloadable Installer
- Linux/BSD distribution name and version: Centos 7
- 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.
====

Hi and thanks for the help in advance.

I'm currently using SendBlaster as MDA. Today trying to setup the "TrackReports" (Analytics of this software) and i was need to upload TRACKREPORTS.php file to /Root directory.

When i try the URL it shows, File not found. Thank you very much Zhang Huang.

If maybe it can help this is the nginx.config

        #location ~ \.php$ {
        #    root           html;
        #    fastcgi_pass   123.0.0.1:9000;
        #    fastcgi_index  index.php;
        #    fastcgi_param  SCRIPT_FILENAME  /scripts$fastcgi_script_name;
    #    include        fastcgi_params;       
    #}


mail for customlogostuff.com loops back to myself

$
0
0

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release):      v0.9.9
- Deployed with iRedMail Easy or the downloadable installer? Not sure
- Linux/BSD distribution name and version: Centos 7
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MariaDB
- Web server (Apache or Nginx): NGINX
- Manage mail accounts with iRedAdmin-Pro? No
====

When i sent a mail to jon@customlogostuff.com, it get bounced with message

mail for customlogostuff.com loops back to myself

here is full log from server

-----------
Mar 13 12:47:07 webmail amavis[19117]: (19117-06) Passed CLEAN {RelayedOpenRelay}, [209.85.210.50]:44119 [209.85.210.50] <admin@serverok.in> -> <jon@customlogostuff.com>, Queue-ID: 44KHn66v06z6sVf, Message-ID: <CAPm_THXX0b9Ggx1PZN0GkfnL1G1Ji-UQFGOjmdjU_iaZq6C5yg@mail.gmail.com>, mail_id: XiF1RF6JGkyE, Hits: 1.176, size: 2619, queued_as: 44KHn76NQNz6sVl, dkim_sd=google:hostonnet.com, 854 ms, Tests: [DKIM_SIGNED=0.1,DKIM_VALID=-0.1,DKIM_VALID_AU=-0.1,HTML_MESSAGE=0.001,RCVD_IN_DNSWL_NONE=-0.0001,RCVD_IN_MSPIKE_H3=0.001,RCVD_IN_MSPIKE_WL=0.001,RDNS_NONE=1.274,SPF_PASS=-0.001]
Mar 13 12:47:07 webmail amavis[19117]: (19117-06) Passed CLEAN, <admin@serverok.in> -> <jon@customlogostuff.com>, Hits: 1.176, tag=2, tag2=6.2, kill=6.9, queued_as: 44KHn76NQNz6sVl, 0/0/0/0
Mar 13 12:47:07 webmail postfix/amavis/smtp[1544]: 44KHn66v06z6sVf: to=<jon@customlogostuff.com>, relay=127.0.0.1[127.0.0.1]:10024, delay=1, delays=0.14/0.01/0.02/0.86, dsn=2.0.0, status=sent (250 2.0.0 from MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued as 44KHn76NQNz6sVl)
Mar 13 12:47:07 webmail postfix/qmgr[29799]: 44KHn66v06z6sVf: removed
Mar 13 12:47:08 webmail postfix-smtp1/smtp[1551]: 44KHn76NQNz6sVl: to=<jon@customlogostuff.com>, relay=none, delay=0.12, delays=0.01/0.03/0.08/0, dsn=5.4.6, status=bounced (mail for customlogostuff.com loops back to myself)
Mar 13 12:47:08 webmail postfix/cleanup[1540]: 44KHn80Hktz6sVm: message-id=<44KHn80Hktz6sVm@webmail.customlogostuff.com>
Mar 13 12:47:08 webmail postfix/qmgr[29799]: 44KHn80Hktz6sVm: from=<>, size=5179, nrcpt=1 (queue active)
Mar 13 12:47:08 webmail postfix/randomizer[1485]: Using: smtp2: Transport Service
Mar 13 12:47:08 webmail postfix/bounce[1552]: 44KHn76NQNz6sVl: sender non-delivery notification: 44KHn80Hktz6sVm
Mar 13 12:47:08 webmail postfix/qmgr[29799]: 44KHn76NQNz6sVl: removed
Mar 13 12:47:08 webmail postfix-smtp2/smtp[1553]: Untrusted TLS connection established to aspmx.l.google.com[173.194.204.26]:25: TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)
Mar 13 12:47:09 webmail postfix-smtp2/smtp[1553]: 44KHn80Hktz6sVm: to=<admin@serverok.in>, relay=aspmx.l.google.com[173.194.204.26]:25, delay=1.7, delays=0.01/0.02/0.51/1.2, dsn=2.0.0, status=sent (250 2.0.0 OK  1552495629 k22si420712qtm.302 - gsmtp)
Mar 13 12:47:09 webmail postfix/qmgr[29799]: 44KHn80Hktz6sVm: removed
-----------

Here is the postfix main.cf file

https://gist.github.com/serverok/dc7ae0 … 5e785e/raw

Outgoing emails works fine. Any idea why incoming emails fail ?

Re: How to remove SOGo from URL

$
0
0
ZhangHuangbin wrote:

I suggest asking in SOGo mailing list, maybe other people has a solution for you:
https://sogo.nu/support.html


SOGo support only business customers.
As of open source solution they don't support or advice.

Re: some email does not arrive

$
0
0

In the /var/log/maillog i have this report

Mar 13 16:16:45 mail postfix/smtpd[94750]: NOQUEUE: reject: RCPT from mx.outsender.com[xx.xx.xx]: 450 4.7.1 <post.out.com>: Helo command rejected: Host not found; from=<name@domain.com> to=<dest@otherdomain.com> proto=ESMTP helo=<post.out.com>

I therefore think that the problem is smtp helo command reject.
In the postfix/main.cf i have:

# HELO restriction - edita qua no<->yes
smtpd_helo_required = no
smtpd_helo_restrictions =
    permit_mynetworks
    permit_sasl_authenticated
    check_helo_access pcre:/etc/postfix/helo_access.pcre
    reject_non_fqdn_helo_hostname
    reject_unknown_helo_hostname


how i disable this?????

Re: Migrating to new server

$
0
0

Hi Zhang,

I saw this and I want to do the same thing - to copy all emails from old server to new server.

1. Can you please confirm that the below rsync command should be run on new iRedmial server?
2. Also does this rsync preserve the timestamp?

ZhangHuangbin wrote:

Sync mailbox with rsync + ssh like below:

rsync -avz \
    --exclude "dovecot.index*" \
    -e "ssh -p 22" \
    root@192.168.0.19:/var/vmail/vmail1/ /var/vmail/vmail1/

Mathew

MySQL SSL with letsencrypt certificates

$
0
0

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 0.9.8 MYSQL edition
- Deployed with iRedMail Easy or the downloadable installer? yes
- Linux/BSD distribution name and version: Ubuntu 18.04.1
- 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.
====

We wan't use the existing MySQL DB (vmail/mailbox/username) to verify e-mail addresses with an external web-application. The data transfer will be only encrypted. I have enabled SSL in the MySQL configuration.

- cert files in /etc/letsencrypt/live/<domain>/*.pem (other locations eg. /etc/mysql/ same problem)
- ssl config in /etc/mysql/mysql.conf.d/mysqld.cnf enabled with

ssl=1
ssl-key=/etc/letsencrypt/live/<domain>/privkey.pem
ssl-cert=/etc/letsencrypt/live/<domain>/cert.pem
ssl-ca=/etc/letsencrypt/live/<domain>/fullchain.pem

-  "sudo -u mysql cat /etc/letsencrypt/live/<domain>/fullchain.pem" can access the file

I get this error in the mysql error log:

[Warning] Failed to set up SSL because of the following SSL library error: SSL_CTX_set_default_verify_paths failed

and

mysql> SHOW GLOBAL VARIABLES LIKE '%ssl%';
...
| have_openssl  | DISABLED |
| have_ssl      | DISABLED |
...

Installation failed with error

$
0
0

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (0.9.9):
- Deployed with iRedMail downloadable installer
- Linux/BSD distribution name and version:  Ubuntu 16.04.1 LTS
- Store mail accounts in which backend (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.
====

Hello,

First, I apologize for my not so good English.

Now to my problem, I tried to install iRedMail on my freshly installed server and followed the instructions "https://docs.iredmail.org/install.iredm … buntu.html". After a short time, however, I get the following error message:

E: Unable to locate package sogo-activesync
E: Unable to locate package sope4.9-gdl1-mysql
E: Could not find any package by glob 'sope4.9-gdl1-mysql'
E: Could not find any package by regex 'sope4.9-gdl1-mysql'
<< ERROR >> Installation failed, please check the terminal output.
<< ERROR >> If you're not sure what the problem is, try to get help in iRedMail
<< ERROR >> forum: https://forum.iredmail.org/

I hope someone can help me here.

Thank you in advance, your Sorgonas


OK,

I have tried again, and have previously run the apt-get update && apt-get upgrade.

After that, unfortunately, I still have errors, but these are the others:

Errors were encountered while processing:
  fail2ban
  nginx-full
E: Sub-process / usr / bin / dpkg returned to error code (1)
<< ERROR >> Installation failed, please check the terminal output.
<< ERROR >> If you're not sure what the problem is, try to get help in iRedMail
<< ERROR >> forum: https://forum.iredmail.org/

do I have to install fail2ban and nginx before?

Can't get to roundcube login after installing letsencrypt

$
0
0

I installed  0.9.9 on centos7, with nginix, mysql  no problems and then ran the letsencypt with iredmail procedure and I got the certificate error to go away and now I can't get to roundcube since it is pointing to the wrong place now.  What should the root be set to?

root         /opt/www/roundcubemail/index.php;

I get this error message

2019/03/14 23:10:26 [error] 1929#0: *30 "/opt/www/roundcubemail/index.php/index.html" is not found (20: Not a directory), client: 96.86.87.206, server: mail.livesentinel.io, request: "GET / HTTP/1.1", host: "mail.livesentinel.io"
2019/03/14 23:10:26 [error] 1929#0: *30 open() "/opt/www/roundcubemail/index.php/404.html" failed (20: Not a directory), client: 96.86.87.206, server: mail.livesentinel.io, request: "GET / HTTP/1.1", host: "mail.livesentinel.io"

nginx.conf follows

# For more information on configuration, see:
#   * Official English Documentation: http://nginx.org/en/docs/
#   * Official Russian Documentation: http://nginx.org/ru/docs/

user nginx;
worker_processes auto;
error_log /var/log/nginx/error.log;
pid /run/nginx.pid;

# Load dynamic modules. See /usr/share/nginx/README.dynamic.
include /usr/share/nginx/modules/*.conf;

events {
    worker_connections 1024;
}

http {
    log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
                      '$status $body_bytes_sent "$http_referer" '
                      '"$http_user_agent" "$http_x_forwarded_for"';

    access_log  /var/log/nginx/access.log  main;

    sendfile            on;
    tcp_nopush          on;
    tcp_nodelay         on;
    keepalive_timeout   65;
    types_hash_max_size 2048;

    include             /etc/nginx/mime.types;
    default_type        application/octet-stream;
# Load modular configuration files from the /etc/nginx/conf.d directory.
    # See http://nginx.org/en/docs/ngx_core_module.html#include
    # for more information.
    include /etc/nginx/conf.d/*.conf;

    server {
        server_name  mail.livesentinel.io;
        root         /opt/www/roundcubemail/index.php;

        # Load configuration files for the default server block.
        include /etc/nginx/default.d/*.conf;

        location / {
        }

        error_page 404 /404.html;
            location = /40x.html {
        }

        error_page 500 502 503 504 /50x.html;
            location = /50x.html {
        }

    listen [::]:443 ssl ipv6only=on; # managed by Certbot
    listen 443 ssl; # managed by Certbot
    ssl_certificate /etc/letsencrypt/live/mail.livesentinel.io/fullchain.pem; # managed by Certbot
    ssl_certificate_key /etc/letsencrypt/live/mail.livesentinel.io/privkey.pem; # managed by Certbot
    include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
    ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
# Settings for a TLS enabled server.
#
#    server {
#        listen       443 ssl http2 default_server;
#        listen       [::]:443 ssl http2 default_server;
#        server_name  _;
#        root         /usr/share/nginx/html;
#
#        ssl_certificate "/etc/pki/nginx/server.crt";
#        ssl_certificate_key "/etc/pki/nginx/private/server.key";
#        ssl_session_cache shared:SSL:1m;
#        ssl_session_timeout  10m;
#        ssl_ciphers HIGH:!aNULL:!MD5;
#        ssl_prefer_server_ciphers on;
#
#        # Load configuration files for the default server block.
#        include /etc/nginx/default.d/*.conf;
#
#        location / {
#        }
#
#        error_page 404 /404.html;
#            location = /40x.html {
#        }
#
#        error_page 500 502 503 504 /50x.html;
#            location = /50x.html {
#        }
#    }



    server {
    if ($host = mail.livesentinel.io) {
        return 301 https://$host$request_uri;
    } # managed by Certbot


        listen       80 default_server;
        listen       [::]:80 default_server;
        server_name  mail.livesentinel.io;
    return 404; # managed by Certbot


}}

--More--(29%)


[root@vpn roundcubemail]# cat /etc/iredmail-release
0.9.9 MARIADB edition.

downloaded installer
centos 7

mariadb

nginx

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release):
- Deployed with iRedMail Easy or the downloadable installer?
- 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.
====

Thanks,

Kevin


Access forbiden to iredadmin

$
0
0

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 0.9.9
- Deployed with iRedMail Easy or the downloadable installer?
- Linux/BSD distribution name and version:  Ubuntu 16.04.5
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):
- 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.
====

After I installed iredmail with no web server, I installed apache2, I made some configuration to access iredadmin.
But I cannot access iredadmin:

403: You don't have permission to access /iredadmin on this server.

I found this log

Fri Mar 15 12:07:45.553875 2019] [authz_core:error] [pid 3090:tid 140693232228096] [client 192.168.2.214:37296] AH01630: client denied by server configuration: /opt/www/iredadmin/iredadmin.py

And here is my configurations

/etc/apache2/sites-available/admin.my-private-domain.com.conf

<VirtualHost *:80>
        ServerAdmin postmaster@my-private-domain.com
        ServerName admin.my-private-domain.com
        DocumentRoot /var/www/admin/
        ErrorLog /var/log/apache2/admin/error.log
        CustomLog /var/log/apache2/admin/access.log combined


        <Directory "/var/www/admin">
             Require all granted
             Options -Indexes
        </Directory>

        Alias /iredadmin/static "/opt/www/iredadmin/static/"
        WSGIScriptAlias /iredadmin "/opt/www/iredadmin/iredadmin.py/"
</VirtualHost>

/etc/apache2/conf-available/iredadmin.conf

WSGISocketPrefix /var/run/wsgi
WSGIDaemonProcess iredadmin user=iredadmin threads=15
WSGIProcessGroup iredadmin

AddType text/html .py

<Directory /opt/www/iredadmin/>
    Require all granted
</Directory>

Re: app.mydomain.com directly to sogo?

$
0
0

I followed this tip with iredmail 0.9.9. But after restarting nginx, I get the host refused the connection.

I am new to nginx so I have no clue where to look, google did not help...

here's my config, linked to sites-enabled

server {
    listen  80;
    server_name webmail.mydomain;
    include /etc/nginx/templates/sogo-subdomain.tmpl;
    include /etc/nginx/templates/redirect_to_https.tmpl;
}
server {
    listen 443;
    server_name webmail.mydomain;
    include /etc/nginx/templates/sogo-subdomain.tmpl;
    include /etc/nginx/templates/ssl.tmpl;
}

What is wrong???

Re: Two iRedMail servers: They keep rejecting each other's email

$
0
0
ZhangHuangbin wrote:

Does it work for you now?


Yes it does, thank you.
I still wonder why the issue if both email servers are legit?

Re: SoGo post install after setup

$
0
0

I did find a repo helper at the bottom of the download page at https://sogo.nu/download.html

For Debian 9 it shows (dirmngr must be installed),

gpg --keyserver keys.gnupg.net --recv-key 0x810273C4
gpg --armor --export 0x810273C4 | sudo apt-key add -
sudo apt-get update
sudo apt-get install apt-transport-https
sudo tee /etc/apt/sources.list.d/SOGo.list <<EOF
deb https://packages.inverse.ca/SOGo/nightly/4/debian/ stretch stretch
EOF
sudo apt-get update
sudo apt-get install sogo

Re: SoGo post install after setup

$
0
0

Can you check your guide for outdated information?? 

https://docs.iredmail.org/sogo-centos-6 … l-database


Create required SQL database

GRANT SELECT ON vmail.mailbox TO sogo@localhost;

MariaDB [(none)]> GRANT SELECT ON vmail.mailbox TO sogo@localhost;
ERROR 1146 (42S02): Table 'vmail.mailbox' doesn't exist


Are there some tables we should of created, or some script to do it for us?

The database vmail does not even exist

Thank you

Viewing all 43350 articles
Browse latest View live


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