How to Configure Zimbra to use SPAMEXperts filter

Discuss your pilot or production implementation with other Zimbra admins or our engineers.
CelulaWeb
Posts: 4
Joined: Wed Jun 20, 2018 7:59 pm

How to Configure Zimbra to use SPAMEXperts filter

Postby CelulaWeb » Thu Jun 21, 2018 1:15 pm

Hello,

I have done a sucessful migration to Zimbra 8.8 recently. But now I'm with problems to configure Zimbra to use the SPAM filter service our previous server was using. My main problem is with the outgoing messages. Some domains from my server should be configured to send using the filter while others dont need it.

The service is SPAM Experts who offers a guide in his KB about how to configure Postfix. Im trying to follow this guidelines without much sucess until now.
https://kb.spamexperts.com/36458-mta-co ... ed-routing

My last unsucessful attempt was try to configure Zimbras's Postfix using this following set of commands.
postmap /etc/postfix/sasl_passwd
postmap /etc/postfix/sender_relay
su - zimbra
zmlocalconfig -e postfix_smtp_sasl_auth_enable=yes
zmlocalconfig -e postfix_smtp_sasl_password_maps=hash:/etc/postfix/sasl_passwd
zmlocalconfig -e postfix_smtp_sasl_security_options=
zmlocalconfig -e postfix_smtp_sender_dependent_authentication=yes
zmlocalconfig -e postfix_sender_dependent_relayhost_maps=hash:/etc/postfix/sender_relay

I have found many references about this commands in my searchs but looks like they didnt setup Zimbra 8.8 as intended.
If anybody could help me with this configurations, I will be very grateful.


Klug
Elite member
Elite member
Posts: 2282
Joined: Mon Dec 16, 2013 11:35 am
Contact:

Re: How to Configure Zimbra to use SPAMEXperts filter

Postby Klug » Thu Jun 21, 2018 1:42 pm

Why not sending all mail to SpamExperts?
https://wiki.zimbra.com/wiki/Sending_ma ... rnal_relay
CelulaWeb
Posts: 4
Joined: Wed Jun 20, 2018 7:59 pm

Re: How to Configure Zimbra to use SPAMEXperts filter

Postby CelulaWeb » Thu Jun 21, 2018 4:25 pm

That would work but our business model force us to use SPAM Experts to some domains while others dont have it. Our previous server was configured this way and I was tasked to reproduce this configuration in our new server.

I'm sure its possible, but i lack in Zimbra experience to do it.
User avatar
ccelis5215
Outstanding Member
Outstanding Member
Posts: 577
Joined: Sat Sep 13, 2014 2:04 am
Location: Caracas - Venezuela
ZCS/ZD Version: 8.0.9.GA.6191.UBUNTU12.64 FOSS

Re: How to Configure Zimbra to use SPAMEXperts filter

Postby ccelis5215 » Thu Jun 21, 2018 5:01 pm

CelulaWeb wrote:That would work but our business model force us to use SPAM Experts to some domains while others dont have it. Our previous server was configured this way and I was tasked to reproduce this configuration in our new server.

I'm sure its possible, but i lack in Zimbra experience to do it.


Hi, did you try this: https://wiki.zimbra.com/wiki/Relay_per_Domain#ZCS_8.8_instructions ?

ccelis
CelulaWeb
Posts: 4
Joined: Wed Jun 20, 2018 7:59 pm

Re: How to Configure Zimbra to use SPAMEXperts filter

Postby CelulaWeb » Thu Jun 21, 2018 6:02 pm

I saw it before but havent tried yet. Why this can resolve the sender_relay file configuration part but does not cover the sasl_passwd file part.

Every domain registered in SPAM Experts's service has to be configured with his corresponding outgoing user and password in this setup.

As stated in their KB:
Create sasl_passwd file for the individual outgoing user(s):
@example.com outgoing@example.com:THEPASSWORD
Klug
Elite member
Elite member
Posts: 2282
Joined: Mon Dec 16, 2013 11:35 am
Contact:

Re: How to Configure Zimbra to use SPAMEXperts filter

Postby Klug » Fri Jun 22, 2018 7:50 am

I'm doing such a thing (relaying per sender domain + queuing per recipient domain).

However, I'm not doing it in Zimbra for several reasons (won't survive upgrades, not easy to change some postfix setup in old Zimbra versions, etc).

So I created a tiny VM, Zimbra was setup to forward all the outgoing mails to this VM.
Postfix on this VM is configured in any way I want (it's just postfix, not postfix in ZCS): I have a specific transport_table, a relayhost_table, some authorized hosts/networks (no auth required), specific queues, etc.
It's really easier than trying to do it in ZCS.
User avatar
ccelis5215
Outstanding Member
Outstanding Member
Posts: 577
Joined: Sat Sep 13, 2014 2:04 am
Location: Caracas - Venezuela
ZCS/ZD Version: 8.0.9.GA.6191.UBUNTU12.64 FOSS

Re: How to Configure Zimbra to use SPAMEXperts filter

Postby ccelis5215 » Fri Jun 22, 2018 12:28 pm

Klug wrote:I'm doing such a thing (relaying per sender domain + queuing per recipient domain).

However, I'm not doing it in Zimbra for several reasons (won't survive upgrades, not easy to change some postfix setup in old Zimbra versions, etc).

So I created a tiny VM, Zimbra was setup to forward all the outgoing mails to this VM.
Postfix on this VM is configured in any way I want (it's just postfix, not postfix in ZCS): I have a specific transport_table, a relayhost_table, some authorized hosts/networks (no auth required), specific queues, etc.
It's really easier than trying to do it in ZCS.


+1
CelulaWeb
Posts: 4
Joined: Wed Jun 20, 2018 7:59 pm

Re: How to Configure Zimbra to use SPAMEXperts filter

Postby CelulaWeb » Thu Jul 12, 2018 4:38 pm

Hello,

First i want to thank Klug for his answer. Has been sometime since I posted my question here. I discussed the option to create a second postfix server as Klug suggested with my director but he believes its not the best solution. I have been search for a alternative way to complete this task using one server ever since.

I found a guide intended to configure another service but seem to implement a similar configuration with what we wish to do. All configurations are done through 'zmprov' but I'm not sure this changes will be persistent or survive upgrades.
https://www.smtp2go.com/setupguide/zimbra-mta-8-7/

Anybody knows if I follow this guide lines with some customization will allow me to configure Zimbra as intended?

Return to “Administrators”

Who is online

Users browsing this forum: Baidu [Spider] and 19 guests