Defining an External MTA for a Domain

Discuss your pilot or production implementation with other Zimbra admins or our engineers.
ibrahimayhan
Posts: 36
Joined: Fri Oct 18, 2019 1:29 pm

Defining an External MTA for a Domain

Postby ibrahimayhan » Tue Jul 21, 2020 2:16 pm

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 ?


imanudin11
Outstanding Member
Outstanding Member
Posts: 297
Joined: Sat Sep 13, 2014 2:23 am
ZCS/ZD Version: Release 8.8.15.GA.3829.UBUNTU16.64
Contact:

Re: Defining an External MTA for a Domain

Postby imanudin11 » Tue Jul 21, 2020 2:38 pm

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/
ibrahimayhan
Posts: 36
Joined: Fri Oct 18, 2019 1:29 pm

Re: Defining an External MTA for a Domain

Postby ibrahimayhan » Tue Jul 21, 2020 2:55 pm

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/
User avatar
fs.schmidt
Outstanding Member
Outstanding Member
Posts: 262
Joined: Sat Sep 13, 2014 3:37 am
Location: Brazil
Contact:

Re: Defining an External MTA for a Domain

Postby fs.schmidt » Tue Jul 21, 2020 4:36 pm

Hi,

The new path is /opt/zimbra/common/conf/main.cf.
My best regards,
Fabio S. Schmidt
http://www.bktech.com.br
Brasília - Brazil
ibrahimayhan
Posts: 36
Joined: Fri Oct 18, 2019 1:29 pm

Re: Defining an External MTA for a Domain

Postby ibrahimayhan » Wed Jul 22, 2020 8:24 am

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/
ibrahimayhan
Posts: 36
Joined: Fri Oct 18, 2019 1:29 pm

Re: Defining an External MTA for a Domain

Postby ibrahimayhan » Thu Jul 23, 2020 8:21 am

/opt/zimbra/common/conf/bysender

The problem is solved by defining multiple parameters inside it and editing it according to the postmap output
ibrahimayhan
Posts: 36
Joined: Fri Oct 18, 2019 1:29 pm

Re: Defining an External MTA for a Domain

Postby ibrahimayhan » Fri Jul 24, 2020 8:35 am

@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 ?
ibrahimayhan
Posts: 36
Joined: Fri Oct 18, 2019 1:29 pm

Re: Defining an External MTA for a Domain

Postby ibrahimayhan » Fri Jul 24, 2020 11:57 am

It Was An Error Because I Configured On The Zimbra Side According To The Wrong Version

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

Return to “Administrators”

Who is online

Users browsing this forum: No registered users and 18 guests