Solved

How do i configure a MX fallback using Qmail

Posted on 2008-06-17
5
347 Views
Last Modified: 2013-12-02
I have 2 mailservers not behind an anti-spam appliance and i have one that is behind a Barracuda anti-spam appliance. Now i want to configure a MX fallback for all the domains. How would i go about doing that? Assume there are a few thousand domains.

I figured placing the domain in /var/qmail/control/morercpthosts will make qmail allow receiving mail for this domain and adding an entry in /var/qmail/control/smtproutes will allow a forward to be setup to the appropriate mailserver... but how do i prevent spammers from using this 2nd MX fallback and spam my users?
0
Comment
Question by:Xyptilon2
  • 2
5 Comments
 
LVL 17

Expert Comment

by:fgrushevsky
ID: 21805959
why can't you put Barracuda appliance external IP address in smtproutes ?
0
 
LVL 13

Author Comment

by:Xyptilon2
ID: 21810594
:S yes i see no reason why i cannot do that.. i've no idea why i was thinking about puting the IP of the mailserver behind the appliance in the SMTP Route.. must have been late last night :)

Is setting the domain in morercpthosts and in smtproutes enough to have fallback functionality? if the primary mailserver is offline, how can i prevent the mail that is delivered from falling out of the queue if it is down for too long?
0
 
LVL 17

Accepted Solution

by:
fgrushevsky earned 500 total points
ID: 21813758
the answer probably would be adjusting queuelifetime
The "queuelifetime" setting for qmail determines how long messages can stay in the queue. The value is in seconds. By default, your qmail server will keep messages in the queue for 604,800 seconds, or 7 days. However, you can set a custom queuelifetime by creating a file called /var/qmail/control/queuelifetime. The content of that file is a single line containing a number which represents the number of seconds the queue will hold any given message. If you want to set a custom queuelifetime, you might want to whip out the old calculator.
0

Featured Post

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

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

Workplace bullying has increased with the use of email and social media. Retain evidence of this with email archiving to protect your employees.
Email signatures have numerous marketing benefits. Here are 8 top reasons to turn your email signature into a marketing channel.
In this video we show how to create a Contact 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 >> Contact ta…
In this video we show how to create a mailbox database 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 Servers >> Data…

815 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now