1

Topic: Relay one domain only to another server

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

Dear,

I have a question how to relay only some domain to another mail server with ssl connection, because we always reject if we send an email to that domain.

Maybe this is the scenario :

only the domain
iredmail > smtp relay server > domain destination

For oher domain
iredmail > smtp iredmail > other domain

I already try on this link http://www.iredmail.org/forum/topic334- … tion.html, but i still confious because i am newbie with postfix.

Regards

----

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

2

Re: Relay one domain only to another server

Looks like you need "sender_dependent_relayhost_maps" for outbound relay:
http://www.postfix.org/postconf.5.html# … yhost_maps

3

Re: Relay one domain only to another server

Dear,

Is the config change at /etc/postfix/main.cf ?
example :
#relayhost = $mydomain
#relayhost = [gateway.my.domain]
#relayhost = [mailserver.isp.tld]
#relayhost = uucphost
#relayhost = [an.ip.add.ress]


for relay :
relayhost = $domain_destination
relayhost = [smtp.relay]:25

What should i change again to relay just oone domain which reject by recipient?

Best thanks

4

Re: Relay one domain only to another server

marccell wrote:

Is the config change at /etc/postfix/main.cf ?

Yes.

marccell wrote:

What should i change again to relay just oone domain which reject by recipient?

Please check the link i posted in first reply.