1

Topic: Fresh install and domain issue

==== Required information ====
- iRedMail version:
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):
- Linux/BSD distribution name and version:
- Related log if you're reporting an issue:
============ Required information ====
- iRedMail version: iRedMail-0.8.7
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Linux/BSD distribution name and version: Ubuntu 14.04
- Related log if you're reporting an issue: n/a
====

Hi,

I’m on server migration process and I would like to give a try to iRedMail, so I’ve installed iRedMail on my new server (dedicated). Now I’m testing the new server to be sure that everything would work fine before I migrate the whole content and settings from the old one. Notice that I have not updated DNS records yet (domain —let’s say ABC.com— points to the old IP).
What I want to achieve is my domain (ABC.com) and iRed installation FQDN hostname to be the same.

The process that I followed during iRedMail installation was:
> Set hostname under /etc/hostname to “ABCDEF.com”
> Set under /etc/hosts “127.0.0.1   ABCDEF.com ABCDEF localhost localhost.localdomain”
> Run installation (successfully)
> Change hostname from “ABCDEF.com” to “ABC.com”
> Change /etc/hosts to “127.0.0.1   ABC.com ABC localhost localhost.localdomain”

Notice again that I have not updated DNS records yet and testing is conducted using the new server’s IP (let’s say 85.127.88.01).

Now, when I visiting https://85.127.88.01/iredadmin and https://85.127.88.01/mail everything works fine, but not for https://85.127.88.01/cluebringer. Why is that happening?

One other thing that I have noticed is in postmaster (root) mailbox logwatch delivers once a day a report “From: root@ABCDEF.com”. When I update “myhostname”, “myorigin” and “mydomain” values (under /etc/postfix/main.cf) to “ABC.com” (the desired domain name) logwatch delivers nothing into postmaster’s mailbox, why?
One last thing: I have changed “$mydomain” and “$myhostname” values to ABC.com (under /etc/amavis/conf.d/50-user). Should I make changes to DNS server to point the new IP in order iRedMail to work properly?

Best regards,
anarchos78

----

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

2

Re: Fresh install and domain issue

As mentioned in iRedMail installation wizard, you cannot use a FQDN for both server hostname and virtual mail domain name, that's why you don't receive email sent by logwatch anymore, i believe you can find some error like "do not use abc.com in both myhostname and virtual_mailbox_domains" in Postfix log file (/var/log/mail.log).

As a MTA, Postfix will try to deliver emails sent to local system account (e.g. root) to proper destination, e.g. 'root@[server_hostname]', but if you have the same domain name as virtual mail domain, Postfix doesn't know which destination it should use, query SQL database to get the virtual mail user (root@[server_hostname]), or deliver to system account?

3

Re: Fresh install and domain issue

Thank you for your reply.

I see no mail errors in /var/log/mail.log or /var/log/mail.err. I want to have user email accounts like blah@ABC.com or 123@ABC.com not blah@ABCDEF.com. How do i achieve this? One last thing, I will use amazon SES for outgoing emails, under DND TXT records for DKIM  should i use the dkin key provided by amazon, by iRedmail or both?

Many thanks!

4

Re: Fresh install and domain issue

*) Please use a different server hostname, for example, mail.abc.com, mx.abc.com, just not 'abc.com'.
*) Amazon DKIM should be fine since you use it for ALL outgoing emails.

5

Re: Fresh install and domain issue

Thank you for your tips.

One last thing. I cannot login-authenticate to cluebringer (i do not installed awstats). I think it has something to do with apache configuration but i cannot figured out. I there any known issue concerning cluebringer login? How can i tackle this?
Notice, that if i comment out everything in "/etc/apache2/conf-available/cluebringer.conf" i cna see cluebringer panel (without authentication).

cluebringer.conf content:
<Directory /usr/share/postfix-cluebringer-webui/webui/>
    DirectoryIndex index.php
    AuthType basic
    AuthName "Authorization Required"
    AuthMYSQL on
    AuthBasicAuthoritative Off
    AuthUserFile /dev/null

    ## Database related.
    AuthMySQL_Password_Table mailbox
    Auth_MySQL_Username_Field username
    Auth_MySQL_Password_Field password

    ## Password related.
    AuthMySQL_Empty_Passwords off
    AuthMySQL_Encryption_Types Crypt_MD5
    Auth_MySQL_Authoritative On
    Order allow,deny
    Allow from all
    Require valid-user
</Directory>

Many thanks

6

Re: Fresh install and domain issue

anarchos78 wrote:

I cannot login-authenticate to cluebringer

Any error message in web browser? and Apache log file (/var/log/apache2/)?

7

Re: Fresh install and domain issue

I have found the solution. My last question: where can i find info in how to use "Policyd Web Administration" and what rules to use? Are there any pointers?

Many thanks

8

Re: Fresh install and domain issue

anarchos78 wrote:

where can i find info in how to use "Policyd Web Administration" and what rules to use? Are there any pointers?

Only its official wiki site: http://wiki.policyd.org/

It's much easier to manage Cluebringer with iRedAdmin-Pro. Check feature list here:
http://www.iredmail.org/admin_panel.html
Screenshots are available here: http://www.iredmail.org/images/iredadmin/