Hi! Thanks for your suggestion.
I have a question though:
in the startup script:
/usr/local/bin/tcpserver -x /etc/tcp.smtp.cdb -v -u 1003 -g 1002 0 smtp \
/bin/sh -c ' /var/qmail/bin/qmail-smtpd
cd /var/qmail/autoturn
exec /usr/local/bin/setlock -nx $TCPREMOTEIP/seriallock \
/usr/local/bin/maildirsmtp $TCPREMOTEIP \
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
autoturn-$TCPREMOTEIP- $TCPREMOTEIP AutoTURN
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
' 2>&1 | /var/qmail/bin/splogger smtpd 3 &
maildirsmtp is the engine that is pushing out the mails.
But from maildirsmtp man pages:
--------------------------------------------------
NAME
maildirsmtp - send a maildir through SMTP
SYNOPSIS
maildirsmtp dir prefix host helohost
DESCRIPTION
maildirsmtp scans a maildir, dir, and sends each message to host through
SMTP. It removes prefix from the begin- ning of each envelope recipient
address. It ignores any message whose recipient address does not begin
with pre-fix.
-----------------------------------------------------
I believe the prefix here refers to autoturn-$TCPREMOTEIP- which is the
IP address of the mail server that is making the ETRN/SMTP connection.
If you look at a sample message in the autoturn directory:
*******************************************************************
Return-Path: <[EMAIL PROTECTED]>
Delivered-To: [EMAIL PROTECTED]
^^^^^^^^^^^^^^^^^^^^^^^^^
Received: (qmail 557 invoked from network); 30 Jul 1999 03:12:21 -0000
Received: from singapura.singnet.com.sg (165.21.10.10)
by tsunami.singnet.com.sg with SMTP; 30 Jul 1999 03:12:21 -0000
Received: from localhost (sekchye@localhost) by singapura.singnet.com.sg
(8.8.5/
8.7.2) with ESMTP id TAA13056 for <[EMAIL PROTECTED]>; Fri,
30 Jul
1999 19:10:58 +0800 (SST)
Date: Fri, 30 Jul 1999 19:10:58 +0800 (SST)
From: Goh Sek Chye <[EMAIL PROTECTED]>
X-Sender: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: test AUTOTURN 1
Message-ID:
<[EMAIL PROTECTED]>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
*******************************************************************
It occurs to me that maildirsmtp will not deliver messages that does not
match the IP address of the mail server (mx1 or mx2) that is making the
SMTP or ETRN connection to the AUTOTURN server, even though the mails for
both server are in the same directory.
This would means that if the customer wants to retrieve all his mails,
both mx1 and mx2 must make the ETRN/SMTP connection (but of course not at
the same time)
What I would like here is to push out all the mails to the customer when
either mx1 or mx2 do the ETRN/SMTP connection. That way, if mx1 is down,
mx2 can still get all the mails.
Appreciate any suggestions and help.
Thanks.
On Wed, 4 Aug 1999, Markus Stumpf wrote:
#On Tue, Aug 03, 1999 at 08:52:56AM +0800, Goh Sek Chye wrote:
#> Lets say one of my existing ISDN customer has the following MX records:
#>
#> customer.com IN MX 10 mx1.customer.com (customer mail server)
#> customer.com IN MX 20 mx2.customer.com (customer mail server)
#> customer.com IN MX 30 mail.big.isp ( our AUTOTURN server)
#>
#> How can I configure mails for this customer's domain "customer.com" to be
#> stored in one single directory and when mx1.customer.com. or
#> mx2.customer.com. makes a SMTP connection to our AUTOTURN server, mails in
#> that directory will be pushed out to whichever server that is making the
#> SMTP connection?
#
#Set up excactly like described in the AUTOTURN file of serialmail.
#In steps 6) and 7) replace the IP address (1.2.3.4) with the ip address
#of mx1.customer.com
#
#Then do the following:
# # cd /var/qmail/autoturn
# # ln -s <ip_mx1_cust> <ip_mx2_cust>
#This creates a symbolic link, so both "IP addresses" share the same
#directory.
#
#That should do the trick.
#
# \Maex
#
#--
#SpaceNet GmbH | http://www.Space.Net/ | Yeah, yo mama dresses
#Research & Development | mailto:[EMAIL PROTECTED] | you funny and you need
#Joseph-Dollinger-Bogen 14 | Tel: +49 (89) 32356-0 | a mouse to delete files
#D-80807 Muenchen | Fax: +49 (89) 32356-299 |
#