Page 1 of 1

Defining an External MTA for a Domain

Posted: Tue Jul 21, 2020 2:16 pm
by ibrahimayhan
Hi Zimbra Team,
8.8.15 FOSS is used in our company,
I am testing the Proxmox Mail Gateway product,
I showed MX record Proxmox Mail Gateway for 1 domain name,
Incoming Mail This Way Passes Through PMG,
I want it to pass through PMG in mail sent by defining an external MTA address for a test domain only,
When I Look at the Global Settings, External MTA is Defined for the General
If I Type Outer MTA Here, The Delivery Problem May Occur Because The Other Domain Address Is Not PMG,
How Can I Transfer Only Mail Sent From One Domain Name To PMG?
I am waiting for help from you ?

Re: Defining an External MTA for a Domain

Posted: Tue Jul 21, 2020 2:38 pm
by imanudin11
ibrahimayhan wrote:Hi Zimbra Team,
8.8.15 FOSS is used in our company,
I am testing the Proxmox Mail Gateway product,
I showed MX record Proxmox Mail Gateway for 1 domain name,
Incoming Mail This Way Passes Through PMG,
I want it to pass through PMG in mail sent by defining an external MTA address for a test domain only,
When I Look at the Global Settings, External MTA is Defined for the General
If I Type Outer MTA Here, The Delivery Problem May Occur Because The Other Domain Address Is Not PMG,
How Can I Transfer Only Mail Sent From One Domain Name To PMG?
I am waiting for help from you ?
Hello,
You can configure relay based on user/domain sender. You can see here for the guidance: https://imanudin.net/2014/12/26/relay-t ... a-8-5-8-6/

Re: Defining an External MTA for a Domain

Posted: Tue Jul 21, 2020 2:55 pm
by ibrahimayhan
Hi,
# /Opt/zimbra/postfix/conf/main.cf,
Cannot Find Postfix Folder in Specified Location in Zimbra Server,
How Can I Find Folder Location?
imanudin11 wrote:
ibrahimayhan wrote:Hi Zimbra Team,
8.8.15 FOSS is used in our company,
I am testing the Proxmox Mail Gateway product,
I showed MX record Proxmox Mail Gateway for 1 domain name,
Incoming Mail This Way Passes Through PMG,
I want it to pass through PMG in mail sent by defining an external MTA address for a test domain only,
When I Look at the Global Settings, External MTA is Defined for the General
If I Type Outer MTA Here, The Delivery Problem May Occur Because The Other Domain Address Is Not PMG,
How Can I Transfer Only Mail Sent From One Domain Name To PMG?
I am waiting for help from you ?
Hello,
You can configure relay based on user/domain sender. You can see here for the guidance: https://imanudin.net/2014/12/26/relay-t ... a-8-5-8-6/

Re: Defining an External MTA for a Domain

Posted: Tue Jul 21, 2020 4:36 pm
by fs.schmidt
Hi,

The new path is /opt/zimbra/common/conf/main.cf.

Re: Defining an External MTA for a Domain

Posted: Wed Jul 22, 2020 8:24 am
by ibrahimayhan
Hi,
/opt/zimbra/common/conf/main.cf
To the Last Line of the File

sender_dependent_relayhost_maps = lmdb:/opt/zimbra/common/conf/bysender
Added

/opt/zimbra/common/conf/bysender
Into the File

@mahbubarice.com.tr     [pmg.akturkgroup.com.tr:25]                      
@mahbubarice.com.tr     [pmg.akturkgroup.com.tr:26]
@mahbubarice.com.tr [10.10.50.62:25]
@mahbubarice.com.tr [10.10.50.62:26]
pmg@mahbubarice.com.tr [10.10.50.62:25]
pmg@mahbubarice.com.tr [10.10.50.62:26]
I made the same definition more than once

postmap /opt/zimbra/common/conf/bysender
-----------------
postfix reload
I applied

Only Sent Mail Waits in the Zimbra Queue ?

https://hizliresim.com/Pl18qG

The picture also shows an error

imanudin11 wrote:
ibrahimayhan wrote:Hi Zimbra Team,
8.8.15 FOSS is used in our company,
I am testing the Proxmox Mail Gateway product,
I showed MX record Proxmox Mail Gateway for 1 domain name,
Incoming Mail This Way Passes Through PMG,
I want it to pass through PMG in mail sent by defining an external MTA address for a test domain only,
When I Look at the Global Settings, External MTA is Defined for the General
If I Type Outer MTA Here, The Delivery Problem May Occur Because The Other Domain Address Is Not PMG,
How Can I Transfer Only Mail Sent From One Domain Name To PMG?
I am waiting for help from you ?
Hello,
You can configure relay based on user/domain sender. You can see here for the guidance: https://imanudin.net/2014/12/26/relay-t ... a-8-5-8-6/

Re: Defining an External MTA for a Domain

Posted: Thu Jul 23, 2020 8:21 am
by ibrahimayhan
/opt/zimbra/common/conf/bysender

The problem is solved by defining multiple parameters inside it and editing it according to the postmap output

Re: Defining an External MTA for a Domain

Posted: Fri Jul 24, 2020 8:35 am
by ibrahimayhan
@imanudin11
I Provided The Identification Process,
Mail When I Test It Only Does Not Reach Through Mail Gateway,
Direct Zimbra Sending on Server,
What I Want is to Deliver Mail After Passing Through PMG ?
Where am I doing wrong ?

Re: Defining an External MTA for a Domain

Posted: Fri Jul 24, 2020 11:57 am
by ibrahimayhan
It Was An Error Because I Configured On The Zimbra Side According To The Wrong Version

https://wiki.zimbra.com/wiki/Relay_per_Domain