Hello Gabriel,

On Friday, September 28, 2001 at 2:49:28 PM you wrote (at least in part):

GA> Hello,
GA> I wonder whether anyone would see anysense in a vpopmail API call to
GA> add a domain to only rcpthosts so there would be a call to simply add
GA> a domain to a backup mx that serves as relay in case the
GA> primary mx goes down. thoughts?

GA> I'm not yet sure on the implementation:
GA> - - does it need to check for the existence of the domain as normal
GA>   domain? IMHO it would be enough it it added the domain to rcpthosts
GA>   cause if it's already there, it doesn't get listed twice anyway.

GA> - - I think vadddomain() doesn't need to take care of an eventually
GA>   existing the rcpthosts entry cause that one wouldn't hurt if
GA> someone
GA>   tries to add a domain, right?

No but it would if you delete the domain sometime later and it _is_ listed
twice unless you're checking for _EVERY_ existence of 'domain' in rctphosts or
morercpthosts.

But for your construct you don't need an API-call you can simply do

'echo "domain" >>/var/qmail/control/rcpthosts && killall -HUP qmail-send'
or
'echo "domain" >>/var/qmail/control/rcpthosts && svc -h qmail'

The lesser only if you're running qmail via supervise scripts.
Next thing would be to add a line to 'smtproutes' too.

Nevertheless this kind of backup-MX ain't very usefull, if primary MX is down
servers should hold mails in queue for several days. if them use the backup-MX
and this backup-MX also only "streches" the queue a bit the win is only a few
second/minutes (or even let it be hours) of time, unless you don't set
queuetime on that backup-MX to a very high value (what I would not recommend).

An other theory for your scenario would be a gateway that connects a private
net with the internet. If that gateway shall receive mails via port 25 but not
store them locally but forward them to a local computer running vpopmail.
In that case you vadddomain() on that local computer and need to tell the
gateway to rcpthosts that domain too, but that's quite more simple done 'by
hand' than via API-call :-)
Easiest would be a

'scp /var/qmail/control/rcpthosts gateway:/var/qmail/control'

:-)
-- 
Best Regards
Peter Palmreuther                          mailto:[EMAIL PROTECTED]
(The Bat! v1.54 Beta/9 on Windows NT 5.0 Build 2195 Service Pack 2)

Acting without thinking can be awfully entertaining.

Reply via email to