Restrict outgoing mails with Zimbra with certain subject line. Possible?
Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Restrict outgoing mails with Zimbra with certain subject line. Possible?
Hello All,
We are in process of implementing Zimbra as Smart Host for Exchange server we have. It is a free community edition as it will only be used as Smart Host.
What we need is that, when a user tries to send an email using our exchange, Zimbra should check for the subject line, and if that contains certain words, the mail should be rejected and not sent outside.
Is there a way to configure Zimbra MTA to reject outgoing mails based on subject line?
Well, zimbra uses spamassassin to check mail for spam, so you can configure spamassassin to mark as spam any mail with the said subject.
You can read this to see how to create such a custom rule.
Just make sure that the score you give is above zimbra's kill threshold, so it nukes that mail.
Thanks for the cook book. I would like to go through all the links and the documentation in the above link and try all those. As a workaround, I had used rules for dropping all the outgoing mails with certain subject line using Postfix configuration itself. But that is not sooo good idea for as I see, Spam Assassin seems to a be self learning software and this will help a lot.
One more thing I would like to ask here, is Spam Assassin linked and integrated with IMAP/POP services or even with MTA? The reason I am asking this is, I need to scan outgoing mails as well for spam. I do not intend to use this server for receiving emails.
One more thing I would like to ask here, is Spam Assassin linked and integrated with IMAP/POP services or even with MTA? The reason I am asking this is, I need to scan outgoing mails as well for spam. I do not intend to use this server for receiving emails.
Spam filters like spamassassin work with the MTA not with IMAP/POP.
So in zimbra anything you send or receive is passed through spamassassin and then it goes for delivery either locally (incoming mail) or to the destination MTA (outgoing mail)
Ohh... thanks for the clarification. I thought Spam Assassin would restrict the mails that are received by Zimbra and it is integrated with Pop or IMAP service.
Thanks for your time and response. I would also like to know if there is any option in Zimbra admin web console where I can see all the deferred mails that are marked as Spam. Or any other spool directory where these spam messages are stored.
I would also like to know if there is any option in Zimbra admin web console where I can see all the deferred mails that are marked as Spam. Or any other spool directory where these spam messages are stored.
I don't know if you can see the outgoing spam.
There is a queue option in admin console where you can see the deferred or held messages among others, but I don't think it contains the outbound spam mail. That is because if the SA score is above the spam kill limit, mail gets deleted and in other cases it's sent to the recipient.
Maybe you should ask the zimbra forums about this.
I have tried Zimbra forums a bit but I am not too comfortable with Zimbra forums. Or should I say I do not like them as much as LQ. Most of the answers on Zimbra forums from mods are "Search forums this has been answered so many times" or something similar.
There are lot of questions those have been answered earlier. But people still ask them as they are not able to search.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.