?
Solved

How do i configure a MX fallback using Qmail

Posted on 2008-06-17
5
Medium Priority
?
356 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
[X]
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
  • 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 2000 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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

Import PST to Exchange using Power Shell new-mailboximportrequest command, you can simply import the PST file into Exchange mailbox or archived. To know How to import PST into Exchange  2013 read the complete article.
Phishing attempts can come in all forms, shapes and sizes. No matter how familiar you think you are with them, always remember to take extra precaution when opening an email with attachments or links.
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
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…
Suggested Courses

764 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