Solved

Forward all (or selective domains) outgoing email to a Barracuda anti-spam appliance

Posted on 2008-10-24
2
714 Views
Last Modified: 2013-12-06
I have a mailserver with around 1000 domains and 8000 popboxes, it's running Qmail and ClamAV, however occasionally a blacklist detects a virus from our IP and blocks the mailserver temporarily. This, despite the fact we have ClamAV and qmail-scanner installed.

We have a Barracuda Anti-spam appliance for incoming mail, but now want to route outgoing email through the Barracuda as well. My question is, how do i configure Qmail for this?

/var/qmail/control/smtproutes is used to forward incoming email to another address, but how can i tell qmail to forward outgoing email to the Barracuda?
0
Comment
Question by:Xyptilon2
2 Comments
 
LVL 20

Accepted Solution

by:
Daniel McAllister earned 500 total points
ID: 22797329
You already have your answer... make a wild-card entry in the /var/qmail/control/smtproutes file that says that EVERYTHING goes to your Barracuda device.

Here is a sample file for /var/qmail/control/smtproutes:

domain-a.tld:mail.domain-a.tld
domain-b.tld:mail.domain-b.tld
:192.168.0.200

The only thing to be careful of is that you don't make a loop -- local domains need to be delivered locally. You can force this by making an entry in either the /var/qmail/control/locals file or the /var/qmail/control/virtualdomains file (depending on how you're setup).

The key here is that the entry in smtproutes with NO front-end (before the colon) applies as a "default" -- and can easily be used to send your outbound e-mails to your SPAM/AV filter.

I hope this helps... someone!

Dan
IT4SOHO
0
 
LVL 13

Author Closing Comment

by:Xyptilon2
ID: 31509562
I could have sworn i tried that... anyway, it did the trick. thanks!
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you thought ransomware was bad, think again! Doxware has the potential to be even more damaging.
Resolve DNS query failed errors for Exchange
In this video we show how to create a User Mailbox in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Recipients >> Mailb…
In this video we show how to create an Accepted Domain in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Mail Flow >> Ac…

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question