Solved

How do i configure a MX fallback using Qmail

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

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

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.
Workplace bullying has increased with the use of email and social media. Retain evidence of this with email archiving to protect your employees.
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 email address policy 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…

757 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

22 Experts available now in Live!

Get 1:1 Help Now