1 (edited by tboud 2015-03-20 19:50:06)

Topic: What means virtualdomain in Iredadmin installation

What is Virtualdomain in this case ?
I have now two servers, and i added for both same virtualdomain name.
added these at iredadmin installation section.

server hostname = mail1.postman.net
virtualdomain = postman.net

Then i have another server and added same virtualdomain, does it matter anyhow ?

server hostname = mail2.postman.net
virtualdomain = postman.net

Should i change virtualdomain, for example what kind of name ?

Appreciate help, thanks


==== Required information ====
- iRedMail version: 0.9
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Nginx
- Linux/BSD distribution name and version: CentOS 6
- Related log if you're reporting an issue:
====

----

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

2

Re: What means virtualdomain in Iredadmin installation

Postfix will accept emails sent to [system_account]@[server hostname], and [mail users]@[virtual mail domains].
If virtual mail domain name is hosted locally, Postfix will deliver email locally, not send to another server you host the same virtual mail domain.

3

Re: What means virtualdomain in Iredadmin installation

What Zhang explains at the end is the most important, if either server sends mail to postman.net then the e-mail will stay on the same server. Postfix is under the impression that anything@postman.net is local so it'll try to deliver it only locally

4

Re: What means virtualdomain in Iredadmin installation

Did i get it right,
For like example if i have, bounce@postman.net
I wont be getting bounce messages to this address since it has same virtual domain ?

Should i just buy new domain, like postman1.net and use it then
or where is best way to assing virtual domain.

Appreciate help, with this smile

5

Re: What means virtualdomain in Iredadmin installation

the normal trend is to use mail.example.com as your FQDN and example.com as your 1st Virtual Domain. That way your server knows itself as mail.example.com and it knows that all e-mails incoming to example.com are dealt with by it.

6

Re: What means virtualdomain in Iredadmin installation

Thanks for reply and helping smile

So i will add mail.postman.net as FQDN and virtualdomain postman.net

And if i make another server
I will do like this:

mail2.postman.net as FQDN and virtualdomain postman.net

Is that correct ?

7

Re: What means virtualdomain in Iredadmin installation

I will help back for sure by checking those better admin panels,
Currently I dont know how to use all additional features,
im studying and a bit novice still.

8

Re: What means virtualdomain in Iredadmin installation

tboud wrote:

So i will add mail.postman.net as FQDN and virtualdomain postman.net
And if i make another server
I will do like this:
mail2.postman.net as FQDN and virtualdomain postman.net

WRONG.
mail domain name (postman.net in your case) cannot be hosted on multiple servers, except one is primary mx and others are backup mx, or hosted on servers in a cluster setup.

Why you want to host one mail domain name on multiple servers?

9 (edited by tboud 2015-03-25 20:32:18)

Re: What means virtualdomain in Iredadmin installation

I wanted to make secondary email server, it will rotate servers every 500 messages sent.
In this part when i was installing another server, I didnt know which virtual domain name to choose.

These settings are in my first server
VPS email server = mail1.postman.net  ( VPS email server, iredadmin installation)
virtualdomain = postman.net ( my actual domain, where im using above email server as Email application(EMA) )

I have Email Application on my postman.net website, which work like (ymlp, mailchimp)
postman.net is just a sample, instead using example. more clear for me smile

10

Re: What means virtualdomain in Iredadmin installation

The issue is, if you try to send something from server1 to your virtualdomain it won't ever leave server1 even if the current rotation means server2 is running virtualdomain currently and vise versa.

11

Re: What means virtualdomain in Iredadmin installation

Maybe i will buy new domain and use it as virtualdomain setting then.
Would that solve the problem, i dont understant any other way big_smile

12

Re: What means virtualdomain in Iredadmin installation

You can't have two servers sending and receiving as the same Domain.

13

Re: What means virtualdomain in Iredadmin installation

So my mailserver is
mail1.postman.net

and what i add to virtual domain, i will just add for example.
post.postman.net ( and maybe i have to add mx record for this also from actual domain DNS, right ? )

Is there anyway to add 2 mail servers for my domain ?

Thanks

14

Re: What means virtualdomain in Iredadmin installation

They can both receive. But one can't send to the other, one would be like a backup cache for if the other one ever goes down. But it wouldn't have imap pop3 and SMTP access, it'd just hold incoming emails while the other is down and give them to the primary when it's back up. This also break greylisting. Iredmail doesn't scale horizontally. Mail servers only scale horizontally if you keep the mail and user data on a separate group of servers. Scaling vertically is making your server more powerful and more stable. Horizontally means more servers.

15

Re: What means virtualdomain in Iredadmin installation

If you have two domains you receive email for,  you could have them on separate servers and make them backup mx of each other. So if either dies the other will hold its incoming mail until it's back up

16

Re: What means virtualdomain in Iredadmin installation

I would use servers only for sending
and none of the emails i sent, will not use my domain postman.net as sending domain.

only requirement would be that my bounce messages would arrive to my
bounce@postman.net email address smile

17

Re: What means virtualdomain in Iredadmin installation

Set up one iredmail server, and one postfix server, both will be able to send, just set your return path (envelope sender) to bounce@postman.net and have postman.net as your iredmail virtual domain

18

Re: What means virtualdomain in Iredadmin installation

Alright, thank you smile

If i only install postfix feature from iredadmin script,
then i only uncheck iredadmin from the selection ? (screenshot link)

http://www.iredmail.org/images/installa … onents.png

19

Re: What means virtualdomain in Iredadmin installation

You can do that, but that server won't need Dovecot, Amavis, Spamd, Clamd, iRedAPD, etc, it'd work but would be wasteful.
What you need is a Null Client.
https://www.digitalocean.com/community/ … untu-14-04
The Digital Ocean Tutorial is best for what you need, and will leave your server using up a bunch less resources

20

Re: What means virtualdomain in Iredadmin installation

Just remember that when you do this, to add both servers to your domain's SPF Record so that they are both authorized to send mail on your domain's behalf.

21

Re: What means virtualdomain in Iredadmin installation

Thank you so much ! smile
Im good now with this thread, now i understant this part.

22

Re: What means virtualdomain in Iredadmin installation

Don't hesitate to open up another Thread if you encounter any other issues