Relay all local emails to postfix MTA

Discuss your pilot or production implementation with other Zimbra admins or our engineers.
Post Reply
tayyeb
Posts: 3
Joined: Sat Sep 13, 2014 3:33 am

Relay all local emails to postfix MTA

Post by tayyeb »

We have to relay all emails including local emails to another postfix MTA. This is required since we have to pass all emails to Kaspersky Linux Email Security (KLMS) server. KLMS is a AntiSpam and AV solution.
We have also configured zimbra 8 server to relay all emails to postfix machine using the method described here
Sending mail through an external relay - Zimbra :: Wiki

As described in (setting zimbraMtaRelayHost in Zimbra Administration UI) section. So we have configured this using the Administration UI.
Similarly we have configured postfix to relay all emails to zimbra 8 server

Configuring postfix to forward all email to a smtp gateway

As described at the link above.
Now the Issue is that "still" none of the internal emails are forwarded to the postfix machine from the zimbra machine. We have confirmed this using the postfix email queue logs. All emails are sent locally to the users inbox which should not happen.
A good solution to relay local domain emails to postfix server will be highly appreciated.
tayyeb
Posts: 3
Joined: Sat Sep 13, 2014 3:33 am

Relay all local emails to postfix MTA

Post by tayyeb »

The local zimbra emails are to be relayed to the postfix machine.

So how to relay all emails including emails on local domain from zimbra to postfix mta?
bdial
Elite member
Elite member
Posts: 1633
Joined: Fri Sep 12, 2014 10:39 pm

Relay all local emails to postfix MTA

Post by bdial »

Under the server configuration / MTA settings, you should see 2 settings
Web mail MTA Hostnames

Relay MTA for external delivery
set BOTH of these to your external postfix instance.
tayyeb
Posts: 3
Joined: Sat Sep 13, 2014 3:33 am

Relay all local emails to postfix MTA

Post by tayyeb »

Web mail MTA and Relay MTA both were configured but the emails were still not received on postfix MTA.

The emails were received in the local recipient's inbox though.
pachiko
Posts: 4
Joined: Sat Sep 13, 2014 3:53 am

Relay all local emails to postfix MTA

Post by pachiko »

Hello,

do you resolv the problem please? we have the same issue. we want to use external smtp server for internal users .
Post Reply