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

Re: Reviving Email Problem in Replication

$
0
0
ZhangHuangbin wrote:
arshambh9 wrote:

i send email from mailserver 1 to mailserver 2 but i never ever recevied any email on mailserver 2 !!!

How did you send this email?

here is my senario:

i login to https://10.0.0.2/iredadmin and create user mail1@server.com
and i login to https://10.0.0.4/iredadmin and create user mail2@server.com
after that
i go to this url: https://10.0.0.2/mail    and login to mail2@server.com account
and i go to url: https://10.0.0.4/mail    and login to mail1@server.com account
after that
i sent test email from mail2@server.com to  mail1@server.com

but i didn`t received it

but if i send email from mail2@server.com to mail2@server.com

i received it

or if i send email from mail1@server.com to mail1@server.com

i received it

my backend is postgresql and i run Master-Master Replication with bucardo
if you see i create mail1@server.com from 10.0.0.2 and i login to https://10.0.0.4/mail
or i create mail2@server.com from 10.0.0.4 and i login to https://10.0.0.2/mail

thanks for your help


Re: Reviving Email Problem in Replication

$
0
0

Check Postfix and GlusterFS log files on both servers.

Email sent from mail1 to mail2 on 10.0.0.2  should be delivered locally on 10.0.0.2, but glusterfs should replicate / sync the email to 10.0.0.4.

Re: Emails recieved and shown as delivered in log but not on server

$
0
0

After building a new server and installing the software from scratch i found missing emails, well it turns out the issue was actually one of the two mail clients that was receiving all the emails was somehow intercepting the mail and removing it from the server before the other email client could download them. as of now i don't know why or how the one client was doing this with out something in a log file but after removing that client from being able to connect to the server the issue went away.

Re: Emails recieved and shown as delivered in log but not on server

Weird (?) postfix rewriting of invalid domains on incoming email

$
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? Old installer
- Linux/BSD distribution name and version: 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? No
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

I have a single incoming email that has shown some curious rewriting behaviour in postfix that I don't really understand. The logs don't really seem to provide any helpful insight - I may need to log more verbosely and try to reproduce the behaviour but I wondered if the behaviour had been seen before.

I run a few mail domains on my server: call them domain1.com, domain2.com ...
Let's say the mail server itself has hostname / DNS: mail.domain.com

I received an email today, along with some colleagues on other external services, from outside. My address details were correct and the email was delivered through postfix into dovecot on my domain.

However, one of the other To: email address had an invalid domain, call it email@baddomain.com, which has no MX records available. Of course, I received my copy and my colleagues received their copies and I suppose the original sender received a bounce of some sort.

For some reason I don't understand, my postfix rewrote the baddomain.com incoming address, changing it to email@mail.domain.com in the email in my mailbox. When I did a reply-all, my server then threw an error message because email@mail.domain.com (of course) doesn't exist.

It's not a big problem, because you can edit the addressees and delete the problem name when you know it is there - but I'd prefer a more robust solution.

Looking at the replies received from colleagues, a few have mail servers that replace email@baddomain.com with IMCEAINVALID-email@baddomain.com - is that a way that certain other products handle this? Others seem to have just dropped the offending address.

Any thoughts on this puzzle, please?

Re: Weird (?) postfix rewriting of invalid domains on incoming email

$
0
0
martinveasey wrote:

For some reason I don't understand, my postfix rewrote the baddomain.com incoming address, changing it to email@mail.domain.com in the email in my mailbox. When I did a reply-all, my server then threw an error message because email@mail.domain.com (of course) doesn't exist.

Please check mail header, does it have header "From: email@mail.domain.com" or "From: email@mail.domain.com <email@baddomain.com"?

Re: Reviving Email Problem in Replication

$
0
0
ZhangHuangbin wrote:

Check Postfix and GlusterFS log files on both servers.

Email sent from mail1 to mail2 on 10.0.0.2  should be delivered locally on 10.0.0.2, but glusterfs should replicate / sync the email to 10.0.0.4.

thanks
but i`m newble
where can i check Postfix log?

and about clusterfs i share this path : " /var/vmail/ "

in server 10.0.0.2 i execute this command for check glusterfs sharing:

1=>   cd /var/vmail
2=>   touch R1 R2 R3 R4 R5 R6

and in 10.0.0.4 i execute this command and i able to see the files:

1=>   ls -la /var/vmail
Resualt: R1 R2 R3 R4 R5 R6

and i thinks it`s work fine
i don`t know what should i do ?
do you have any advice please?
is there any easy package that i could share  /var/vmail on my both servers?

thnaks in advance

Re: Weird (?) postfix rewriting of invalid domains on incoming email

$
0
0

Thanks for getting back to me. Not sure I explained too well.

The email comes from a real person and is addressed to me correctly. The problem address is one of the other recipients on the email and therefore doesn't appear in the From: header. Headers looks a bit like this:

Return-Path: <realperson@client.com>
Delivered-To: martin@domain.com
Received: from mail.domain.com (localhost [127.0.0.1])
    by mail.domain.com (Postfix) with ESMTP id 2D1FB879CB
    for <martin@domain.com>; Wed,  2 Jan 2019 15:11:08 +0000 (UTC)
X-Virus-Scanned: Debian amavisd-new at mail.domain.com
Authentication-Results: mail.domain.com (amavisd-new);
    dkim=pass (2048-bit key)
Received: from mail.domain.com ([127.0.0.1])
    by mail.domain.com (mail.domain.com [127.0.0.1]) (amavisd-new, port 10024)
    with ESMTP id Mhw7HX7dAJLk for <martin@domain.com>;
    Wed,  2 Jan 2019 15:11:05 +0000 (UTC)
Received: from xxx.xxx.xxx
    (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
    (No client certificate requested)
    by mail.domain.com (Postfix) with ESMTPS id C8CE482748
    for <martin@domain.com>; Wed,  2 Jan 2019 15:11:05 +0000 (UTC)
From: "Real Person" <realperson@client.com>
To: "Recipient 1" <recipient1@...>,
    martin@domain.com,
    "Recipient 2" <recipient2@...>,
    "Recipient 3" <recipient3@...>,
    "Recipient 4" <recipient4@...>,
    email@mail.domain.com, ...


Re: Easiest way to upgrade to latest version

DKIM Selector

$
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? I curled a tar.
- Linux/BSD distribution name and version: FreeBSD 12.0-RELEASE
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? Neh
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue. Neh
====

Just a quick question to change DKIM Selector I only need to change this line in /usr/local/etc/amavisd.conf

dkim_key('domain.eml', 'myselector', '/var/lib/dkim/domain.eml.pem');

Amavis does both signing and verifying, so I would assume it is enough, but maybe some checks are done somewhere else along the way.

Thank you.

0.9.9 Roundcube - 502 Bad Gateway - upstream prematurely closed

$
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? I curled tar
- Linux/BSD distribution name and version: FreeBSD 12.0-RELEASE
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? Neh
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

Hi, I just freshly installed iRedMail 0.9.9 in iocage jail. Everything works, but Roundcube.
When I try to access https://mail.domain.eml/mail Nginx returns 502 Bad Gateway and puts this in the error log:

2019/01/03 05:58:12 [error] 31374#100516: *11 upstream prematurely closed connection while reading response header from upstream, client: xxx.yyy.zzz.111, server: _, request: "GET /mail/ HTTP/1.1", upstream: "fastcgi://192.168.8.36:9999", host: "mail.domain.eml"

I checked /usr/local/etc/php-fpm.d/www.conf and added the 192.168.8.36 ip to listen.allowed_clients, but without any luck.

listen = 192.168.8.36:9999
listen.owner = www
listen.group = www
listen.mode = 0660
listen.allowed_clients = 127.0.0.1, 192.168.8.36

There is no log in: /usr/local/www/roundcube/logs

It seems that php-fpm.log does not record anything either:

Jan  3 05:31:20 mail php-fpm[31063]: [NOTICE] ready to handle connections
Jan  3 05:47:52 mail php-fpm[31338]: [NOTICE] configuration file /usr/local/etc/php-fpm.conf test is successful
Jan  3 05:47:52 mail php-fpm[31063]: [NOTICE] Finishing ...
Jan  3 05:47:52 mail php-fpm[31063]: [NOTICE] exiting, bye-bye!
Jan  3 05:47:52 mail php-fpm[31347]: [NOTICE] configuration file /usr/local/etc/php-fpm.conf test is successful
Jan  3 05:47:52 mail php-fpm[31349]: [NOTICE] fpm is running, pid 31349
Jan  3 05:47:52 mail php-fpm[31349]: [NOTICE] ready to handle connections


Do you have any other tips?

switching to apache2 - what will break?

$
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? installer
- Linux/BSD distribution name and version: debian 9
- 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.
====
A quick question:

iRedMail no longer installs with apache2 , only nginx is supported apparently.  I need to switch to apache2 because nginx will not serve any css to other sites I set up on the server. There seem to be many, many different reasons why this can happen with nginx, but nothing I have found after two days of searching solves the problem.  If the main mail parts will still run with apache2 on the server, I may be able to manage without some web functions that are supported by nginx.   

So I would like to know which parts of iRedMail will break as a result of installing apache2.

TIA

Re: Preventing backscatter

$
0
0

Is it possible to read the remote LDAP database rather than replicate? Do you have any documentation on how the LDAP works on local account lookups?

Cannot see groups in SOgo

$
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? downloadable installer
- Linux/BSD distribution name and version: Debian 9 (Stretch)
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): LDAP
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? -
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
For the context: I've a Active Directory on a Windows Server. On another hand, I've my Debian server with the installation for iredmail with SOgo (so two different machine).

Hello,

I cannot make the groups visible inside SoGo or RoundCube. I verified with this command line
# postmap -q DG_myCustomGroup@example.com ldap:/etc/postfix/ad_virtual_group_maps.cf and it's printing correctly the users inside it. I can see users normally without any problem, I've just troubles with normal groups in my AD server.

The query inside the /etc/sogo/sogo.conf is like that:

{
        type = ldap;
        CNFieldName = cn;
        IDFieldName = cn;
        UIDFieldName = sAMAccountName;
        baseDN = "ou=uGroups,ou=Users,ou=MyCorp,dc=example,dc=com";
        bindDN = "cn=mailadm,ou=Workers,ou=Users,ou=MyCorp,dc=example,dc=com;
        bindPassword = "$mypasswd";
        canAuthenticate = YES;
        displayName = "Show Groups";
        hostname = ldap://x.x.x.x:389;
        id = groups;
        isAddressBook = YES;
}

Thanks for your help!

Problems with configuration in nginx

$
0
0

Hello, the first thing I want to ask is if iredmail can coexist with other virtual ones within nginx.
My question is this because I have a server running with several virtual and when I install iredmail lost access to all virtual, any url that I call goes directly to the webmail of iredmail.
I have configured the ngnix virtual but they do not respond all go to the webmail of iredmail and I also stop working the https for the other applications, I can only access by ip and http, not https.
This happens to me since I install iredmail, surely the installation changes nginx configurations but I can not find them.

Greetings and thanks


Re: 0.9.9 Roundcube - 502 Bad Gateway - upstream prematurely closed

$
0
0

Hi

Yes. Same here. FreeBSD 11.2 RELEASE, no jail. Restarting services useless. Problem only resolve when i restart the server. But it's happening again in 24 hours.

Best Regards.

Hasan Alp İNAN

Re: 0.9.9 Roundcube - 502 Bad Gateway - upstream prematurely closed

$
0
0

Try to increase settings in /usr/local/etc/php-fpm.conf, restart php-fpm service and try again:

pm.max_children = 100
pm.start_servers = 5
pm.min_spare_servers = 5
pm.max_spare_servers = 10
pm.max_requests = 100

Re: Problems with configuration in nginx

$
0
0

Nginx configured by iRedMail loads files from some directories, you need to make sure your virtual web host config files are loaded by Nginx. Please start with /etc/nginx/nginx.conf, check the "include ..." directives.

Re: Preventing backscatter

$
0
0
sayso wrote:

Is it possible to read the remote LDAP database rather than replicate?

Sure, just make sure OpenLDAP is not listening on 127.0.0.1 only and accessible from your backup mx server (firewall).

sayso wrote:

Do you have any documentation on how the LDAP works on local account lookups?

Check /etc/postfix/ldap/*.cf on iRedMail server.

Re: switching to apache2 - what will break?

$
0
0
artavec wrote:

because nginx will not serve any css to other sites I set up on the server.

This doesn't make any sense, Nginx should work fine in this case. Did you get any error message of this issue?

Viewing all 43488 articles
Browse latest View live


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