Koozali.org: home of the SME Server

Getting Qmail to accept mail for a foreign domain

Andrew Hodgson

Getting Qmail to accept mail for a foreign domain
« on: August 29, 2003, 04:40:30 PM »
Hi,

Someone asked me for help on this, and I am now intreeged to get it working :)

I am trying to create a backup mx server.

I have two SME servers, one configured with my primary domain, and working fine.  I have another SME box, that is configured with another (not used domain) and has a hostname of mx2.mydomain.com.  I have added my primary domain to the Qmail rcpthosts file, but Qmail then tries to deliver the message locally.  What I want is for Qmail to queue the message in its outqueue, so that it will be retried according to the Schedule on the "life with Qmail" Internet site.  This Is this possible?

I realise getting mail delivery triggered via ETRN is not very easy in a Qmail installation, which is why I want to try with the delivery every so often approach.

Tia
Andrew.

Andrew Hodgson

Re: Getting Qmail to accept mail for a foreign domain
« Reply #1 on: August 31, 2003, 03:07:08 AM »
Hi,

Solved this problem, the domain name needs to be in /var/qmail/control/rcpthosts but not in /var/qmail/control/locals which I am not even sure how it got there - working fine now with my SME box as secondary mx for a friend.

Andrew.