Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

How do i configure a MX fallback using Qmail

Posted on 2008-06-17
5
348 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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

Utilizing an array to gracefully append to a list of EmailAddresses
New-MailboxSearch Powershell Command and step by step approach to Search and Extract Emails form Exchange 2013 Journaling server.
In this video we show how to create a Resource Mailbox in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: Navigate to the Recipients >> Resources tab.: "Recipients" is our default selection …
The basic steps you have just learned will be implemented in this video. The basic steps are shown to configure an Exchange DAG in a live working Exchange Server Environment and manage the same (Exchange Server 2010 Software is used in a Windows Ser…

856 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