1

Topic: adding additional domains for email to existing iRedMail server

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

So, I have my first email/domain working.  Cloudmark thinks I'm 'spammy' and I'll fix that (I hope - earthlink completely rejects my emails).

Now I intend to add a bunch of new emails and domains to get everything off of GoDaddy.  Here's my questions:

1.  I can follow the directions under the https://myserver.com/iredadmin to add new domains and new users - no problem.
2.  On the DNS records for the actual/separate new domains, do I just add MX, DKIM, SPF and DMARC records? (ie I don't change the A record, right?)
3.  The mail server lives at x.y.z.a or https://myserver.com (A records work, reverse dns, etc. is set up).  I'm adding server2.com and server3.com in iRedMail plus users.  If I change the MX Record on server2.com (and whatever others the answer in #2 advises) can I have the family type https://server2.com/mail or will they still need to get mail at https://myserver.com/mail?


Thanks for any answers.  I'm hoping that Cloudmark will let me out of jail and I can 'port over' all my existing accounts to the new server.


Andrew

----

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

2

Re: adding additional domains for email to existing iRedMail server

2. Yes you'll need to change or add MX, DKIM, SPF and DMARC records
3. https://server2.com/mail will not work automatically as server2.com A record points to another server. You can create a redirect from there to original webmail url. Or you can create a subdomain i.e. webmail.server2.com and point it with DNS to mail server, then add apache virtualserver and SSL certificate for it. Though easiest option will be to just use the original webmail url.

There might be multiple reasons why recipient server marks your mails as spam:
- your ip is blacklisted or has a bad reputation
- your server network provider has a bad reputation
- as a new server you need to build a reputation
- some of the settings are not correct
- your test email content was counted as a spam

Generally it's very hard to know why some provider is marking your mail as a spam and another one is not, as all of them have their own rules.

3

Re: adding additional domains for email to existing iRedMail server

Not sure I follow how to create the redirect - the existing domains don't have websites, just email (presently hosted by GoDaddy).  If someone can explain #3 more verbosely <g> I'd appreciate it.

I understand the reasons for spam marking, I just don't understand whey my site it affected.  I'm receiving a 10/10 from www.mail-tester.com and I'm not blacklisted at any of the blacklist sites.  Hopefully cloudmark will clear me; Google is accepting my email, but putting me in SPAM by default (don't know why either).

Thanks for the response, and hopefully some additional help.


Andrew


RikuS wrote:

2. Yes you'll need to change or add MX, DKIM, SPF and DMARC records
3. https://server2.com/mail will not work automatically as server2.com A record points to another server. You can create a redirect from there to original webmail url. Or you can create a subdomain i.e. webmail.server2.com and point it with DNS to mail server, then add apache virtualserver and SSL certificate for it. Though easiest option will be to just use the original webmail url.

There might be multiple reasons why recipient server marks your mails as spam:
- your ip is blacklisted or has a bad reputation
- your server network provider has a bad reputation
- as a new server you need to build a reputation
- some of the settings are not correct
- your test email content was counted as a spam

Generally it's very hard to know why some provider is marking your mail as a spam and another one is not, as all of them have their own rules.

4

Re: adding additional domains for email to existing iRedMail server

For the redirect you need to have an FTP/SFTP/SSH access to web server where server2.com A record is pointing. Redirect can be done with virtual host rules, .htaccess file, index.php file or even html meta tag. With some hosts you might be able to easily create a subdomain like webmail.server2.com with redirect to where ever you want, but not sure about GoCrappy smile

Is GoDaddy hosting the server2.com website (which doesn't exist but A record is probably pointing somewhere like MX is pointing to GoDaddy now)?

5 (edited by RikuS 2017-08-29 05:31:34)

Re: adding additional domains for email to existing iRedMail server

And more about the spam: every provider has their own blacklists and your ip or ip range might be in some of them after previous users, you probably have no idea what the ip users before you have used it for. Provider blacklists doesn't show up on those public listings at all. Online mail testers can only test some of your settings, they have no access to provider policies and blacklists. Also at least Microsoft often marks emails as spam from new mail servers without reputation, it takes a while to build this reputation.

6

Re: adding additional domains for email to existing iRedMail server

RikuS,

Thanks for your reply.

GoDaddy is holding the domains/DNS Records.  I don't have websites on any of the GoDaddy domains (except for the webserver now set up on 'myserver.com' hosted at Woothosting (so not a GoDaddy hosting).

If I type http://server2.com I get a 'parked by Godaddy' webpage.  interestingly, if I use the IP address I get a 404 error.  it would be nice to have a dns record that points to the email server for server2.com on myserver.com, but it won't kill me if I can't get there (I don't want to pay hosting/web fees to GoDaddy in addition to the DNS/domain fee they now get).

Additional Question: On SPF and DMARC and DKIM settings for server2.com's DNS records.  Should they be copied verbatim from myserver's dns settings, or should they be 'customized' in some way since they live in server2's dns records?

I love getting answers from smart people - it greatly overcomes my own stupidity <g>.

Thanks.


Andrew

7 (edited by RikuS 2017-08-30 05:50:21)

Re: adding additional domains for email to existing iRedMail server

I think the most common and easiest to maintain way is to use one centralized webmail url for your all mail domains. I would forget those redirects completely, but that's just me.

As for the server2.com's DNS records, at least DKIM has to be customized as it's a domain-level digital signature and unique per domain. Here's how to set up MX, SPF and DKIM for mail domain http://www.iredmail.org/docs/setup.dns. … omain-name

Other free useful tools for mail admins are:
Google Postmaster Tools https://postmaster.google.com/
Microsoft Smart Network Data Services https://postmaster.live.com/snds/
Microsoft Remote Connectivity Analyzer https://testconnectivity.microsoft.com
Dmarc weekly digest by Postmark https://dmarc.postmarkapp.com
MXToolbox mail server tests https://mxtoolbox.com/diagnostic.aspx
Test the Spammyness of your Emails http://www.mail-tester.com

Hope this helps smile

8

Re: adding additional domains for email to existing iRedMail server

the iRedMail config told me to edit a file to add the domains to use the myserver.com's DKIM file; I've done that and used the original DKIM.  I'll check it to see if it worked tomorrow (mail-tester only allows 3 uses per day).

The reason I'd like to use https://server2.com/mail or https://server2.com/mail is that the family will tend to remember their email address / favored location versus what I tell them to use.  There's an ease of use factor for the kids/wife.

Thanks for your continued info/response.

Andrew

9 (edited by RikuS 2017-08-30 06:26:08)

Re: adding additional domains for email to existing iRedMail server

Oh yes you're correct, here it's said that you may use the same DKIM for all domains http://www.iredmail.org/docs/sign.dkim. … omain.html. I just like to keep them separated so there will never be any issues if the first one gets deleted or has some DNS changes which aren't always on your control. You need to add MX, SPF and DMARC anyway so creating additional DKIM shouldn't be an issue. So maybe just do what works for you best.

I just logged in to GoDaddy and looks like there's an option to create a subdomain with redirect. So you can create a subdomain mail.server2.com which redirects to webmail https://server.com/mail. Redirecting subdirectory is not possible with GoDaddy DNS only.

10

Re: adding additional domains for email to existing iRedMail server

Also if your family members are going to install mail accounts to Outlook, Mail, Thunderbird, Spark or other apps, they will need to use your mail server hostname anyway for IMAP/POP and SMTP, that DNS redirect won't work on those settings. Webmail is pretty oldschool these days, but it sure makes sense if your devices are not available and you need to access mail.

11

Re: adding additional domains for email to existing iRedMail server

RikuS,

I get that they will need to configure Outlook and their phones correctly (that's what I'm for <g>).

Can you give me  better directions on setting up server2  with a subdomain and redirect?  I'm not sure where to look on GoDaddy.

Thanks.

Andrew

12 (edited by RikuS 2017-08-30 07:18:17)

Re: adding additional domains for email to existing iRedMail server

Sure, just browse to domains DNS Management and look for Forwarding.

http://www.iredmail.org/forum/misc.php?action=pun_attachment&amp;item=1146

Post's attachments

Screen Shot 2017-08-30 at 0.08.55.png 75.03 kb, file has never been downloaded. 

You don't have the permssions to download the attachments of this post.

13

Re: adding additional domains for email to existing iRedMail server

I set up a subdomain - and it worked.  Thanks.

Andrew



RikuS wrote:

Sure, just browse to domains DNS Management and look for Forwarding.

http://www.iredmail.org/forum/misc.php?action=pun_attachment&amp;item=1146