1

Topic: How to send email from a second domain

==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.7
- Linux/BSD distribution name and version: DEBIAN 8
- 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.
====

We have got a server with two IP adresses (mydomain.tld = xxx.xxx.xxx.xxx and mysecond-domain.tld = yyy.yyy.yyy.yyy). I have created with iredadmin the domain mysecond-domain.tld.

Now we wish to send the emails from a user at the second domain (user1@mysecond-domain.tld) from the other IP adress yyy.yyy.yyy.yyy so that IP adress and server name in DNS will match.

What will we have to do, to achieve this?

----

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

2

Re: How to send email from a second domain

Doc here: https://docs.iredmail.org/send.out.emai … esses.html

3

Re: How to send email from a second domain

Thanks! My fault, I searched for "domain" and didn't look for IP address.

Do I have to use the certificates for the second domain (yyy.yyy.yyy.yyy)?

4

Re: How to send email from a second domain

ThASattler wrote:

Do I have to use the certificates for the second domain (yyy.yyy.yyy.yyy)?

If you need ssl support, then yes.

5

Re: How to send email from a second domain

ZhangHuangbin wrote:

If you need ssl support, then yes.

And is it possible to achieve this for the two domains like with web server with different aliases?

By the way it seems to me, only for sending emails from second domain, I do not need ssl support. Is this right?

6

Re: How to send email from a second domain

Note about multiple ssl cert support:

- Apache/Nginx (web server) supports per-domain ssl config.
- Dovecot (pop3/imap server) supports per-domain SSL cert config.
- Postfix doesn't support per-domain ssl cert config very well, you need multi-instance instead: http://www.postfix.org/MULTI_INSTANCE_README.html

So if you have only few domains, it might be the best solution to use only one cert for them all.