Peter,
Thank you for your response. This will come in handy.
The reason I was hoping there was a Perl way to do
this, i.e. qmqpc messages into the qmail queue is for
testing purposes for another app I am working on.
Mike.
--- Peter Samuel <[EMAIL PROTECTED]>
wrote:
> On Thu, 15 Jun 2000, mwangu wrote:
>
> > Could anyone please point me to some good
> > documentation on how to use these to put messages
> in
> > the queue. I already have qmqpd running using
> > tcpserver and it appears to work.
> >
> > If it can be done using perl that would be great.
>
> Perl is not needed.
>
> On the client machines (ie those machines that will
> be sending mail
> via QMQP to the server running qmqpd) do this: (DO
> NOT DO THIS ON THE
> SERVER RUNNING qmail-qmqpd!)
>
> 1) find the IP address of the server running
> qmqpd. It MUST be the IP
> address. Let's assume it is 1.2.3.4
>
> cd /var/qmail/control
> cp /dev/null ./locals
> echo 1.2.3.4 > ./qmqpservers
>
> 2) replace qmail-queue with the QMQP client
> program, qmail-qmqpc
>
> cd /var/qmail/bin
> mv qmail-queue qmail-queue.orig
> ln qmail-qmqpc qmail-queue
>
> 3) wait for any mail queued on the client box to
> be delivered:
>
> qmail-qstat
> messages in queue: 0
> messages in queue but not yet preprocessed: 0
>
> then stop qmail-send
>
> Now, all mail that passes through this client will
> be sent to the
> server whose IP address is 1.2.3.4 via QMQP.
>
> Repeat for all your other null clients.
>
> You might also want to set up a second box running
> qmail-qmqpd to
> queue mail just in case your first qmqpd servier is
> unavailable:
>
> On the new server running qmail-qmqpd
>
> 1)
> cd /var/qmail/control
> cp /dev/null ./locals
> echo ":mailhost.your.domain" > ./smtproutes
>
> On the null clients
>
> 1)
> cd /var/qmail/control
> cp /dev/null ./locals
> echo 1.2.3.5 >> ./qmqpservers
>
> Regards
> Peter
> ----------
> Peter Samuel
> [EMAIL PROTECTED]
> Technical Consultant or at
> present:
> eServ. Pty Ltd
> [EMAIL PROTECTED]
> Phone: +61 2 9206 3410 Fax: +61
> 2 9281 1301
>
> "If you kill all your unhappy customers, you'll only
> have happy ones left"
>
__________________________________________________
Do You Yahoo!?
Send instant messages with Yahoo! Messenger.
http://im.yahoo.com/