From ars.muc.de Sat, 26 Jun 93 19:36:29 MET
Newsgroups: comp.os.os2.networking
Path: ars!colin.muc.de!lrz-muenchen.de!informatik.tu-muenchen.de!math.fu-berlin.de!xlink.net!news.belwue.de!news.uni-ulm.de!news
From: mstaedt@va-klaus.va.fh-ulm.de (Olaf Mittelstaedt)
Subject: Re: Sendmail via mail-host?
Message-ID: <1993Jun24.064905.22383@wega.rz.uni-ulm.de>
Sender: news@wega.rz.uni-ulm.de (News Net)
Organization: University of Ulm, Germany
Date: Thu, 24 Jun 1993 06:49:05 GMT
Lines: 42

Hi Martin,

> I am trying to set up sendmail (of IBM's TCPIP 1.2.1 for OS/2) to
> use our mailhost to send mail, instead to try to deliver the mail
> itself. This is because our environment doesn't allow my PC
> to connect directly to the internet.
> Does anybody have an idea how to patch sendmail.cf to accomplish this?

with the help of our UNIX admin I figured out how to do that (at least for my configuration):

- near the end of Sendmail.Cf, locacte a line preceeded by "#Send domain address to tcp. ..."
- my line was

  R$*<@$+>$*			$#tcp$@$2$:$1<@$2>$3

- replace the $2 in the second parth with the name of your SMTP mailer

  R$*<@$+>$*			$#tcp$@felix.rz.fh-ulm.de$:$1<@$2>$3

Needless to say that you should make a backup copy of Sendmail.Cf, just in case.

Kind regards,

Olaf




Olaf Mittelstaedt                 | Local Mail: mstaedt@va-klaus
Fachhochschule Ulm                | Internet  : mittelst@fh-ulm.de
Prittwitzstrasse 10               | Phone     : ++49 731 502 8220
D-7900 Ulm/Donau                  | Fax       : ++49 731 502 8270
D-7900 Ulm/Donau                  | Fax       : ++49 731 502 8270

------------
Written with LA Times for OS/2(Beta)
------------
Coming soon to a server near you
-------------
Unregistered copy with 28 days of use remaining
-------------



From ars.muc.de Sun, 18 Jul 93 15:22:40 MET
Path: ars!colin.muc.de!lrz-muenchen.de!informatik.tu-muenchen.de!math.fu-berlin.de!xlink.net!howland.reston.ans.net!usc!cs.utexas.edu!swrinde!emory!news-feed-2.peachnet.edu!umn.edu!lynx.unm.edu!dns1.NMSU.Edu!opus!ghenniga
From: ghenniga@nmsu.EDU (Gary Hennigan)
Newsgroups: comp.os.os2.networking
Subject: Re: Advice on SENDMAIL
Date: 17 Jul 93 12:00:06
Organization: New Mexico State University, Las Cruces, NM
Lines: 55
Distribution: world
Message-ID: <GHENNIGA.93Jul17120006@ampere.nmsu.EDU>
References: <742730838snz@vgscient.demon.co.uk> <742792392snx@esl-hub.demon.co.uk>
Reply-To: ghenniga@NMSU.Edu
NNTP-Posting-Host: ampere.nmsu.edu
In-reply-to: dbuckley@esl-hub.demon.co.uk's message of Thu, 15 Jul 1993 20:13:12 +0000

In article <742792392snx@esl-hub.demon.co.uk> dbuckley@esl-hub.demon.co.uk (David Buckley) writes:
>In article <742730838snz@vgscient.demon.co.uk> Richard@dis.demon.co.uk writes:
>> Does anybody know how to get TCP/IP 1.2.1 mail to work currently with a
>> dial up link. We have a number of OS/2 machines on a network which are
>> all running TCP/IP well. They can easily send mail to each other, but
>> a roblem arrises when trying to send mail to the out-side world. Because
>> we have a dial-up Internet link which obviously spends more time down than
>> up, sendmail just reports that the destination address does not exist.
>>
>> Is there some way of stopping sendmail from trying to send until the link
>> is up, or can I make it try again at a latter stage rather than just
>> giving up.
>
>I'm not convinced that sendmail is the right tool in our environment.
>Sendmail receives OK, but isn't great at delivering mail, likes to
>deliver direct to the final destination (where possible), and has an
>annoying habit of just not wanting to deliver some mail items at all!
>
>I'm considering building a small SMTP client, to work in a similar manner
>to KA9Q, ie, it just delivers everything to gate (or is it post?),
>and lets DIS work ouyt the continued route from there....

I have a similiar problem. I sometimes use SLIP at home to dial up our
campus. The campus dialups, as per NSF guidelines, only allow connections
to local machines. This is fine for terminal sessions, I can telnet to
a local machine and then go off-campus from there. The problem is email,
since IBM's sendmail wants to connect directly it's not possible to send
email, when connected via SLIP, to any sites out of our local area. Also,
our campus has a server that is MUCH smarter about routing email than
OS/2 is. Anyway, to make a long story short, what I needed to do was route
email to our campus server which can be done by modifying the OS/2
sendmail.cf. Somewhere towards the bottom there should be some lines like:

#
#  Send domain address to tcp.  This includes domain literals [IP quads].
#  User is full focused path.
#
R$*<@$+>$*              $#tcp$@$2$:$1<@$2>$3

Change this rule to the following:

#
#  Send domain address to tcp.  This includes domain literals [IP quads].
#  User is full focused path.
#
R$*<@$+>$*              $#tcp$@hostname$:$1<@$2>$3

where "hostname" is the name of your email handler/router. I didn't come
up with this but it works great for me!

Gary Hennigan
---------
PhD Student, Computational Electromagnetics
Department of Electrical Engineering, New Mexico State University
email: ghenniga@NMSU.Edu	Phone:(505)646-7837


From ars.muc.de Thu, 23 Dec 93 14:05:16 MET
Path: ars!colin.muc.de!regent!lrz-muenchen.de!fauern!xlink.net!howland.reston.ans.net!europa.eng.gtefsd.com!MathWorks.Com!noc.near.net!das-news.harvard.edu!husc-news.harvard.edu!husc-news.harvard.edu!news
Newsgroups: comp.os.os2.networking
Subject: Re: TCP/IP 2.0 sendmail
Message-ID: <1993Dec19.225851.29327@husc14.harvard.edu>
From: abrown@husc.harvard.edu (Aaron Brown)
Date: 19 Dec 93 22:58:51 EST
Reply-To: abrown@husc.harvard.edu (Aaron Brown)
References: <2evb3gINNi0b@rs18.hrz.th-darmstadt.de>
Organization: Harvard University
Nntp-Posting-Host: abrown.student.harvard.edu
X-Newsreader: IBM NewsReader/2 v1.00
Lines: 37

In <2evb3gINNi0b@rs18.hrz.th-darmstadt.de>, vowe@vowe.bwl.th-darmstadt.de writes:
>
>Is there a way to set up SendMail, so that it will send all mail to a
> designated host instead of trying to deliver it directly to the host in the TO
> address?

Yes there is.  Edit your sendmail.cf file (in \tcpip\etc) as follows:

-> change the section (near the end) that appears:

#  Send domain address to tcp.  This includes domain literals [IP quads].
#  User is full focused path.
#
#
R$*<@$+>$*           $#tcp$@$2$:$1<@$2>$3

-> to:

#  Send domain address to tcp.  This includes domain literals [IP quads].
#  User is full focused path.
#
#
R$*<@$+>$*           $#tcp$@foo.bar.edu$:$1<@$2>$3

-> where foo.bar.edu is the name of your host (mine is husc.harvard.edu, for
example).

Hope this helps...

--Aaron

=============
Aaron B. Brown
-------------
abrown@husc.harvard.edu




From ars.muc.de Wed, 29 Dec 93 11:22:58 MET
Newsgroups: comp.os.os2.networking
Path: ars!colin.muc.de!regent!lrz-muenchen.de!fauern!xlink.net!howland.reston.ans.net!pipex!sunic!trane.uninett.no!news.eunet.no!nuug!odin!usenet
From: nit3ieh@accsys.oslo.nit.no
Subject: Re: sendmail to uucp sites
Sender: usenet@odin.oslo.nit.no
Message-ID: <CIK5vB.9CH@odin.oslo.nit.no>
Date: Fri, 24 Dec 1993 21:18:46 GMT
Lines: 44
Reply-To: nit3ieh@accsys.oslo.nit.no
References: <2fb7ig$hrk@cleese.apana.org.au>
Organization: Norwegian Information Technology
X-Newsreader: IBM NewsReader/2 v1.00

In <2fb7ig$hrk@cleese.apana.org.au>, dwallace@cleese.apana.org.au (David G. Wallace) writes:
>Is there any method of altering sendmail.cf to allow for mail to be sent
>via a host to uucp sites? I run a SLIP link to a mailhost which runs a
>dialup for mail deliveries, hence all mail not for that specific machine
>is shown by sendmail to be undeliverable and dropped back into the out
>tray for queueing. As it stands I am unable to email anywhere apart from
>our own network. Any help or pointers appreciated.
>
>Dave.

I have a setup similar to yours. I assume that the sendmail program on the
mailhost knows how to process mail with 'unknown' addresses.
I have solved this problem using a nameserver. I gather since you use UUCP
to send mail you are not directly connected to the internet. This will not
work in that case, but you would not have this problem then either.. :-)

To get the sendmail on the OS/2 server to use the mailhost for external mail
is to configure the mailhost (or another unix host) as a root name server.
then you can just put the following entrys into the zone file for the root
domain:


*.no.			IN	MX	10 odin.oslo.nit.no.
*.edu.			IN	MX	10 odin.oslo.nit.no.
*.com.			IN	MX	10 odin.oslo.nit.no.
*.au.			IN	MX	10 odin.oslo.nit.no.
*.gov.			IN	MX	10 odin.oslo.nit.no.
*.org.			IN	MX	10 odin.oslo.nit.no.
*.mil.			IN	MX	10 odin.oslo.nit.no.
.
.
.

here the machone odin.oslo.nit.no runs the sendmail that knows where to send
external mail. If you send mail to other toplevel domains. just add them like
the one shown here.

This setup only works when this data is inserted into a root domain zone file.

Regards,
Ivar E. Hosteng

email: nit3ieh@accsys.oslo.nit.no       or: nit3ieh@odin.oslo.nit.no
Written using NewsReader/2 and IBM OS/2 2.1



From ars.muc.de Wed, 29 Dec 93 11:23:52 MET
Path: ars!colin.muc.de!regent!lrz-muenchen.de!fauern!xlink.net!howland.reston.ans.net!europa.eng.gtefsd.com!uunet!munnari.oz.au!metro!basser.cs.su.oz.au!news.adelaide.edu.au!gateway.dircsa.org.au!apanix!usenet
From: dgw@xamb.apana.org.au (David Wallace)
Newsgroups: comp.os.os2.networking
Subject: sendmail to uucp sites
Date: 28 Dec 1993 01:49:05 GMT
Organization: Zinkler Cybernetics
Lines: 45
Distribution: world
Message-ID: <2fo3ah$7rs@olivaw.apanix.apana.org.au>
Reply-To: dgw@xamb.apana.org.au
NNTP-Posting-Host: xamb.apana.org.au
X-Newsreader: IBM OS/2 PM RN (NR/2) v0.17l by O. Vishnepolsky and R. Rogers


>I have solved this problem using a nameserver. I gather since you use UUCP
>to send mail you are not directly connected to the internet. This will not
>work in that case, but you would not have this problem then either.. :-)

A quick recap:  I'm using Sendmail.exe in SMTP mode, which tries to
connect directly to sites.  There are two problems with this - quite a
few of the apana.org.au sites are uucp sites (mine isn't), and our
direct connection to the internet is down for a few weeks due to a site
relocation so the mailhost is currently running a dialup to a direct
link every few hours.  This results in "cannot connect" failures for
most email leaving here.  My mailhost runs a nameserver, but the problem
is more of a routing one.  SMTP by default attempts a direct connection
- I need some method of getting sendmail to send all mail only to my
"smart" unix-based mailhost (which can then move it), not to attempt any
further hops.

I have altered the sendmail.cf line:

R$*<@$+>$*              $#tcp$@2$:$1<@$2>$3

to:

R$*<@$+>$*              $#tcp$@apanix.apana.org.au$:$1<@$2>$3

and the mail is no longer getting "cannot connect" messages and staying
in the out tray; the mail is getting queued on the mailhost, however I
haven't received any replies to my "please respond on receipt" messages
- so it may not be working.  (The above line change didn't work with the
sendmail.* in TCP/IP 2.0; generated an "error in line xx" message.  I
dropped in the sendmail.exe and .cf from 1.2.1 and it appears OK.)

I will also check that my mailhost has the nameserver configured
correctly - that could be the problem.

(Our newsfeed has been very erratic for the past week, so I may have
missed some other articles on this topic.)


Regards and my thanks, Dave.


 David Wallace          |  "and we were sent off first", he concluded,
 dgw@xamb.apana.org.au  |   and hummed a little bathing tune.



From ars.muc.de Fri, 07 Jan 94 20:29:52 MET
Newsgroups: comp.os.os2.networking
Path: ars!colin.muc.de!regent!lrz-muenchen.de!fauern!xlink.net!howland.reston.ans.net!cs.utexas.edu!uunet!netnews!usenet
From: hildajk1@aplcomm.jhuapl.edu (Ken Hildabolt)
Subject: Re: sendmail problem ins tcpip 2.0
Message-ID: <CJ8M97.8yt@netnews.jhuapl.edu>
Sender: usenet@netnews.jhuapl.edu
Reply-To: hildajk1@aplcomm.jhuapl.edu (Ken Hildabolt)
Organization: The Johns Hopkins University / Applied Physics Laboratory
X-Newsreader: IBM NewsReader/2 v1.00
References: <2gd15uINNg8j@dns1.NMSU.Edu>
Date: Fri, 7 Jan 1994 02:15:06 GMT
Lines: 28

In <2gd15uINNg8j@dns1.NMSU.Edu>, scastill@nmsu.edu (Steven Castillo) writes:
>Sometimes when sending mail to remote locations I got the mail bounced back with
>the following error message:
>
>Returned mail:  Cannot send message for zero seconds.
>
>According to my tcpip setup my mail should be queued for 30 minutes (start
>lamail -q30m) before retrying.  Is this a bug in sendmail or am I missing
>something?
>I am running os/2 2.1 with tcpip 2.0 on a 486 50 w/32 mbytes memory.  Thanks in
>advance.
>
>Steven Castillo
>New Mexico State U.
>
>scastill@nmsu.edu
>(505)646-3214

Steven,

You need to add a parameter to sendmail.cf in the etc directory. Under the
"O" section, add: 'OT10h'. This tells sendmail that if it cannot connect to
the remote system (to whom you are sending) to try for 10 hours at the rate
set with the -q parm. (i.e.., every 30 minutes retry it).

Ken Hildabolt   hildajk1@aplcomm.jhuapl.edu
The Johns Hopkins University/Applied Physics Laboratory



From ars.muc.de Tue, 08 Feb 94 21:47:50 MET
Newsgroups: comp.os.os2.networking
Path: ars!colin.muc.de!regent!lrz-muenchen.de!fauern!zib-berlin.de!zrz.TU-Berlin.DE!netmbx.de!Germany.EU.net!EU.net!uknet!pipex!uunet!netnews!usenet
From: hildajk1@aplcomm.jhuapl.edu (Ken Hildabolt)
Subject: Re: Sendmail lies about queueing
Message-ID: <CKvvr4.EzC@netnews.jhuapl.edu>
Sender: usenet@netnews.jhuapl.edu
Reply-To: hildajk1@aplcomm.jhuapl.edu (Ken Hildabolt)
Organization: The Johns Hopkins University / Applied Physics Laboratory
X-Newsreader: IBM NewsReader/2 v1.01
References: <2j6050$e1e@netnews.upenn.edu>
Date: Tue, 8 Feb 1994 02:18:40 GMT
Lines: 75

In <2j6050$e1e@netnews.upenn.edu>, sjt@enlil.museum.upenn.edu (Steve Tinney) writes:
>I just installed the tcp20 csd in the hopes it would cure my problems
>with sendmail. At least one remains, namely that when sendmail
>discovers an existent but down host it claims that the mail will be
>queued (in \tcpip\etc\sendmail.err). However, despite the existence
>of \tcpip\etc\mqueue, sendmail does no such thing, but instead
>sends me a stub message with no body from which I suppose it thinks
>I can infer that the mail was undeliverable.
>
>Does anyone know the fix to this? I'm fed up with it! Funnily enough,
>it used to enqueue the stuff correctly under TCP 1.2.1, but ever since
>2.0 and, now the CSD, it blows it.
>
>  Steve
>
>----------------------------------------------------------------------
>Steve Tinney                                        Babylonian Section
>                   University Museum of the University of Pennsylvania
>sjt@enlil.museum.upenn.edu                     Phila, PA. 215-898-4047

Rather than bitch, pose the problem and people will answer.

In this case, put an option in sendmail.cf like 'OT10h'. This parameter will
work if you have sendmail running. The -q30m parameter says that every 30
minutes for up to 10 hours, it will attempt to connect to distant mail
server. Here is IBM's "OT" explanation:

     You can add the OT option to the Options section of your SENDMAIL.CF
     file.  YOU MUST use an editor (such as the E.EXE editor) that
     preserves tabs!

     Use the OT option to tell the SENDMAIL program at your workstation how
     to process mail to be delivered to a host that is currently not
     receiving.  If you omit the OT option, the mail is deleted from the
     queue when you next start SENDMAIL.  You can use the OT option to tell
     SENDMAIL to keep the mail on its queue, and to continue trying to
     resend it, for a specified period of time.

     The format of the OT option is:

                   OTxt

     OT        Code the characters OT as shown.

     x         This value tells SENDMAIL for how long to keep the mail in
               its queue for re-transmission.  Replace the "x" with a
               number specifying the number of hours, days, minutes, or
               weeks.

     t         This value tells SENDMAIL how often to resend to a server
               that failed.  Replace the "t" with a unit of time.

               w         The x value is the number of weeks.
               d         The x value is the number of days.
               h         The x value is the number of hours.
               m         The x value is the number of minutes.

     Here is an example of the OT option that tells SENDMAIL to keep the
     undelivered mail in its queue, and to keep trying to resend it, for 8
     hours before deleting it from the queue.

        #####################################################################
        # Options Timeout parameter:                                        #
        # Causes notes, sent to a server that was down, to be queued        #
        # for retry.  OTxt   Where x is a number and t is the timeout char: #
        #   h-hours, d-days, m-minutes.                                     #
        # Without the OTxt specification, the message does not get queued.  #
        #####################################################################
        OT8h



Ken Hildabolt   hildajk1@aplcomm.jhuapl.edu
The Johns Hopkins University/Applied Physics Laboratory



From ars.muc.de Wed, 09 Feb 94 23:58:01 MET
Path: ars!colin.muc.de!regent!lrz-muenchen.de!fauern!zib-berlin.de!netmbx.de!Germany.EU.net!EU.net!howland.reston.ans.net!agate!msuinfo!netnews.upenn.edu!enlil.museum.upenn.edu!sjt
From: sjt@enlil.museum.upenn.edu (Steve Tinney)
Newsgroups: comp.os.os2.networking
Subject: Re: Sendmail lies about queueing
Date: 8 Feb 1994 15:37:18 GMT
Organization: University of Pennsylvania
Lines: 20
Message-ID: <2j8bje$92l@netnews.upenn.edu>
References: <2j6050$e1e@netnews.upenn.edu> <CKvvr4.EzC@netnews.jhuapl.edu> <1994Feb8.092725.29981@husc14.harvard.edu>
NNTP-Posting-Host: enlil.museum.upenn.edu
X-Newsreader: TIN [version 1.2 PL0 [OS/2]]

Aaron Brown (abrown@husc.harvard.edu) wrote:
: In <CKvvr4.EzC@netnews.jhuapl.edu>, hildajk1@aplcomm.jhuapl.edu (Ken Hildabolt) writes:
: >In <2j6050$e1e@netnews.upenn.edu>, sjt@enlil.museum.upenn.edu (Steve Tinney) writes:
: >>I just installed the tcp20 csd in the hopes it would cure my problems
: >In this case, put an option in sendmail.cf like 'OT10h'. This parameter will
: Well, this doesn't work for me.  I put an OT3d in my sendmail.cf, but queued
: mail never is resent.

Thanks to Ken Hildabolt and D. Scott Katzer, who e-mailed me, I followed
the instructions in \tcpip\doc\basecsd.doc and added OT24h. The mail
is now getting queued, and I also get the minimalistic note from sendmail
as before. I added this just after the Os option and before the precedences
section, in case that's of importance.

 Steve

----------------------------------------------------------------------
Steve Tinney                                        Babylonian Section
                   University Museum of the University of Pennsylvania
sjt@enlil.museum.upenn.edu                     Phila, PA. 215-898-4047


From ars.muc.de Thu, 12 May 94 20:28:02 MET
Path: ars!colin.muc.de!regent!informatik.tu-muenchen.de!zib-berlin.de!zrz.TU-Berlin.DE!netmbx.de!Germany.EU.net!EU.net!howland.reston.ans.net!gatech!udel!news2.sprintlink.net!news.sprintlink.net!bga.com!news
From: hicks@bga.com
Newsgroups: comp.os.os2.networking.tcp-ip
Subject: Re: Sendmail.cf
Date: 7 May 1994 17:11:11 GMT
Organization: Hicksford Incorporated Research Department
Lines: 19
Message-ID: <2qgi3f$1ep@giga.bga.com>
References: <mparker.768213900@lancelot.st.nepean.uws.edu.au>
Reply-To: hicks@bga.com
NNTP-Posting-Host: slip210.bga.com
X-Newsreader: IBM NewsReader/2 v1.00

In <mparker.768213900@lancelot.st.nepean.uws.edu.au>, mparker@arthur.st.nepean.uws.edu.au (Matthew Parker) writes:
>Hello everyone,
>
>	I am trying to gather info on the parameters on sendmail.cf file, I am trying to
>       write filter in C to convert between the mail and *.msg format for my BBS and
>       may even make it work with a squish format.  Anyway I found the paramater
>       MLocal filename, paramaters will run an external mailer, I was wondering what
>       the paramaters are for this line...  Or any other in this file...
>Regards
>	Matthew Parker
>
I would recommend the book "sendmail" by Costales, Allman and Rickert, published
by O'Reilly and Associates. It is almost 800 pages and completely explains the
parameters and rules in snedmail.cf.

Jim Hicks
-----------------------------------------------------------------------------
Hicksford Incorporated - 11602 Ruffed Grouse Dr. - Austin, TX 78758



From ars.muc.de Thu, 12 May 94 20:30:32 MET
Newsgroups: comp.os.os2.networking.tcp-ip
Path: ars!colin.muc.de!isar.de!xlink.net!howland.reston.ans.net!EU.net!uknet!doc.ic.ac.uk!aixssc.uk.ibm.com!watnews.watson.ibm.com!newsgate.watson.ibm.com!hawnews.watson.ibm.com!news
From: fargo@vnet.ibm.com (Ethan Young)
Subject: Re: Sendmail & UUCP
Sender: news@hawnews.watson.ibm.com (NNTP News Poster)
Message-ID: <CpJxDo.4wF@hawnews.watson.ibm.com>
Date: Mon, 9 May 1994 20:10:36 GMT
Lines: 88
Reply-To: fargo@vnet.ibm.com (Ethan Young)
Disclaimer: This posting represents the poster's views, not necessarily those of IBM.
References: <1994May6.131417.7066@bradford.ac.uk>
Nntp-Posting-Host: altair6.ims.advantis.com
Organization: Advantis Corp. - Server Software Development
X-Newsreader: IBM NewsReader/2 v1.00

In <1994May6.131417.7066@bradford.ac.uk>, J.Poltorak@bradford.ac.uk (J POLTORAK) writes:
>
>Has anyone made any progress with Sendmail and UUCP?
>
>If so, please give me a few tips.
>
>I've just got a book about sendmail - but I don't know how reliable it is
>for OS/2.
>
>BTW are we likely to get v8 before long?
>
>John

John,

I've been working on this problem and have made a lot of headway.

I'm using UUPC/Extended for OS/2, available on ftp.uu.net in
networking/uucp/uupc/pc coupled with the SENDMAIL program included in
IBM's TCP/IP v2.0.

The first step was to install, configure, and test UUPC.  The next
step was to modify the sendmail.cf file.  If you look there, there is
a sample declaration for a UUCP mailer (which assumes /usr/bin/uux).
What I did was to create a new line as follows:

Muucp, P=C:\UUPC\BIN\SMAIL.EXE, F=DFMhuU, S=13, R=23, M=100000,
       A=-x 0 $u@$h

(Note: the M must be the first letter on the line and there can only
be spaces or tabs before the A=).  I copied the RMAIL.EXE program
which came with UUPC to SMAIL.EXE.  Also, I had to uncomment a number
of rules.

1. Under rule set 3, there's a comment which says "Change a!b@c to
@c:a!b".  Uncomment the rule below that.

2. Rule set 8 is also commented out.  You must uncomment this set.
The lines start with S8 and include all lines that start with R up
until the comment about MAILERS.

3. In rule set 0, there's a paragraph about resolving UUCP addresses
to the proper mailer.  Uncomment the three rules under this paragraph.

To receive mail, you have two choices:

1. Tell your e-mail feed to modify their sendmail.cf (or equivalent)
to do:

uux your_system!sendmail -f <sender_address> <recipient_address>

2. Write a REXX script or C executable to replace RMAIL.EXE.  This
replacement RMAIL simply reads in the incoming message and pipes it to
SENDMAIL.  I wrote a REXX script which works, but I don't have it
handy to include.  If anyone wants it, send e-mail to
fargo@vnet.ibm.com and I'll forward it to you.  Once you've written
your replacement RMAIL, just put it in the PATH before UUPC's
RMAIL.EXE and receiving mail should work.

I recommend option 2 as most UNIX systems will do:

uux <some flags> -a $f your_system!rmail ($u)

$f = sender's address
$u = recipient's address

And it may not be possible for them to change this mailer that easily.

With this setup, I'm able to send/receive e-mail over UUCP using IBM's
LaMail.  The only caveat is that I either have to send mail using the
recipients explicit bang path (sys!sys!user) or I send mail to
user@sys.UUCP.  I've been reading through the O'Riely "sendmail" book
and am trying to figure out how to set up sendmail.cf to use a
smart-host so that I can send mail to user@sys.subdomain.domain and
have SENDMAIL forward it to my UUCP neighbor.  I'll post my results
once I get it working.

As far as a good book, O'Riely's "sendmail" is a great book.  It
doesn't explicity cover IBM's SENDMAIL, but most of the stuff in the
book has worked so far except for interactive rule-testing (-bt).

I don't know if V8 sendmail has been ported to OS/2.  I hope someone
does 'cuz debugging a configuration file without interactive
rule-testing is a pain.

Ethan Young                        Disclaimer: All opinions are from
Advantis Corporation               the deranged mind of the poster.
fargo@vnet.ibm.com                 Advantis has nothing to do with it.


From ars.muc.de Mon, 23 May 94 21:19:48 MET
Newsgroups: comp.os.os2.networking.tcp-ip
Path: ars!colin.muc.de!regent!informatik.tu-muenchen.de!zib-berlin.de!zrz.TU-Berlin.DE!netmbx.de!Germany.EU.net!EU.net!howland.reston.ans.net!torn!nott!cunews!freenet.carleton.ca!FreeNet.Carleton.CA!ap054
From: ap054@FreeNet.Carleton.CA (John C. Griggs)
Subject: Sendmail problems solved
Message-ID: <Cq4sHC.CsG@freenet.carleton.ca>
Sender: news@freenet.carleton.ca
Reply-To: ap054@FreeNet.Carleton.CA (John C. Griggs)
Organization: The National Capital FreeNet
Date: Sat, 21 May 1994 02:34:24 GMT
Lines: 17



I posted a message about 2 or 3 weeks ago about a problem we were having
with IBM sendmail hanging while talking to sendmail on our Sparc and/or smail
on our linux box (I've misplaced the original post :-).  We also had the
seemingly ubiquitous Stack Overflow error.

All of our problems have been solved (so far at least) by using IBM
sendmail.exe v1.3.0 which is available as a beta from the IBM customer service
BBS at (919) 517-0001. It is in the OS/2 TCP/IP area. Note that it is not
the version that appears as a separate file in the CSD.

Hope this help someone.

Cheers - John
--
John C. Griggs				ap054@freenet.carleton.ca


From ars.muc.de Fri, 27 May 94 22:11:21 MET
Newsgroups: comp.os.os2.networking.tcp-ip
Path: ars!colin.muc.de!lrz-muenchen.de!fauern!xlink.net!howland.reston.ans.net!agate!library.ucla.edu!csulb.edu!csus.edu!netcom.com!costello
From: costello@netcom.com (Ed Costello)
Subject: Re: Sendmail: can alias be a pipe
Message-ID: <costelloCqB8p7.AyB@netcom.com>
Organization: Easy Ed's Hack & Snack Shack
X-Newsreader: TIN [version 1.2 PL1]
References: <2rr5t1$84n@netnews.upenn.edu>
Date: Tue, 24 May 1994 14:10:19 GMT
Lines: 25

Timothy P. Cheney (tcheney@lexis.pop.upenn.edu) wrote:

> Can Sendmail 1.2.10 deliver mail to a process?  E.G. in \tcpip\etc\aliases:

> somename: '| c:\perl4036\perl c:\perl4036\script.pl'

I know the following works:

somename:|\\bin\test.cmd

This will pipe the note to \bin\test.cmd.  It looks like the note is
processed by the prog mailer first, before being "delivered" to the alias,
so you might need to diddle with the flags on the local mailer definition.
Eg: the default Mprog definition has F=lsdF which tells sendmail to
prepend the note with a unix style From line.

I don't know if the quo ted string will work...maybe you could invoke
an intermediate command that invokes the perl script?


//name	dd							 -ed costello
//email	dd						  costello@netcom.com
//	dd						costello@vnet.ibm.com
//*Not an official spokesthing for IBM.  Were I an official spokesthing, I'd
//*post in EBCDIC.


From azu.informatik.uni-stuttgart.de!mattes Fri May 27 19:12:31 1994 remote from ars
Received:  from colin by ars.muc.de (UUPC/extended 1.12i) with UUCP
           for rommel; Fri, 27 May 1994 19:12:30 +0200
Received: from ifi.informatik.uni-stuttgart.de ([129.69.211.1]) by colin.muc.de with SMTP id <135946(1)>; Fri, 27 May 1994 15:30:33 +0200
Received: from azu.informatik.uni-stuttgart.de by ifi.informatik.uni-stuttgart.de with SMTP; Fri, 27 May 94 15:28:07 +0200
From:	Eberhard Mattes <mattes@azu.informatik.uni-stuttgart.de>
Date:	Fri, 27 May 1994 15:28:07 +0200
Message-Id: <9405271328.AA04332@azu.informatik.uni-stuttgart.de>
Received: by azu.informatik.uni-stuttgart.de; Fri, 27 May 94 15:28:07 +0200
To:	mattes@azu.informatik.uni-stuttgart.de
Subject: Emacs 19.23 & sendmail
X-Created-Offline: 27-May-1994 13:56:03
Status: RO

You should put the following line into your \tcpip\etc\sendmail.cf
file:

Oem

This makes sendmail report errors back by mail.

-em
From ars.muc.de Tue, 26 Jul 94 20:52:26 MET
Newsgroups: comp.os.os2.networking.tcp-ip
Path: ars!colin.muc.de!lrz-muenchen.de!fauern!xlink.net!howland.reston.ans.net!agate!library.ucla.edu!csulb.edu!csus.edu!netcom.com!costello
From: costello@netcom.com (Ed Costello)
Subject: Re: Output from SENDMAIL
Message-ID: <costelloCtHzy7.4F4@netcom.com>
Organization: Easy Ed's Hack & Snack Shack (Poughkeepsie, NY)
X-Newsreader: TIN [version 1.2 PL1]
References: <1994Jul20.135043.1437@bradford.ac.uk>
Date: Mon, 25 Jul 1994 13:25:19 GMT
Lines: 15

J POLTORAK (J.Poltorak@bradford.ac.uk) wrote:
> I know that it is picked up by the local delivery agent, but I would like
> to provide my own. ... but I have no idea where to pick the data up from.

My understanding is this: sendmail attempts to invoke the mailer
specified by the Mlocal line in your sendmail.cf.  If that mailer
exists, it pipes the message to the mailer using stdin and invokes the
mailer with the options specified by the /A parm in the Mlocal line.
If the mailer does not exist, sendmail uses lamailer.dll to save the
note in the directory specifed on the Mlocal line (lamailer.dll also
creates the lamail index file).


//name	dd							 -ed costello
//email	dd						  costello@netcom.com


From ars.muc.de Tue, 26 Jul 94 20:53:23 MET
Newsgroups: comp.os.os2.networking.tcp-ip
Path: ars!colin.muc.de!isar.de!xlink.net!howland.reston.ans.net!spool.mu.edu!umn.edu!news
From: frickson@gibbon.com (John Frickson)
Subject: Re: Output from SENDMAIL
Message-ID: <CtJ6HI.B44@news.cis.umn.edu>
Sender: news@news.cis.umn.edu (Usenet News Administration)
Nntp-Posting-Host: dialup-2-174.gw.umn.edu
Reply-To: frickson@gibbon.com (John Frickson)
Organization: University of Minnesota, Twin Cities
X-Newsreader: IBM NewsReader/2 v1.02
References: <costelloCtHzy7.4F4@netcom.com> <1994Jul25.155244.7326@bradford.ac.uk>
Date: Tue, 26 Jul 1994 04:42:29 GMT
Lines: 81

In <1994Jul25.155244.7326@bradford.ac.uk>,
J.Poltorak@bradford.ac.uk (J POLTORAK) writes:

>Ed Costello (costello@netcom.com) wrote:
>: J POLTORAK (J.Poltorak@bradford.ac.uk) wrote:
>: > I know that it is picked up by the local delivery agent, but I would like
>: > to provide my own. ... but I have no idea where to pick the data up from.
>
>: My understanding is this: sendmail attempts to invoke the mailer
>: specified by the Mlocal line in your sendmail.cf.  If that mailer
>: exists, it pipes the message to the mailer using stdin and invokes the
>: mailer with the options specified by the /A parm in the Mlocal line.
>
>This what I thought would happen too. In such a case I would expect to be
>able to pick up the mail from stdin using a 'linein' statement in a REXX
>program. I didn't manage to find any but a couple of postings have
>suggested that this ought to work - so I'll try again.

I just tried a little experiment, and lo and behold it worked!  The
mlocal line in my sendmail.cf looks like this:

Mlocal, P=c:\tcpip\bin\mail.exe, F=lsDFP,  S=10, R=20, A=c:\tcpip\etc\mail $u
        ^^^^^^^^^^^^^^^^^^^^^^^
So I wrote a little program and compiled it to mail.exe.  Here's the source:

--------------------8<--------------------8<--------------------8<----------
/* Mail.c - test of mlocal in sendmail.cf */
#include<stdio.h>
int main(int argc, char *argv[])
{
   int   i, x;
   FILE  *f;
   char  curline[512];
   printf("argc: %d\n", argc);
   for (i = 0; i < argc; ++i)
      printf("Arg %d:%s\n", i, argv[i]);
   while(!feof(stdin)) {
      fgets(curline, x, stdin);
      printf("STDIN:%s", curline);
      strcpy(curline,"");
   }
   return (0);
}
--------------------8<--------------------8<--------------------8<----------

Then I mailed this message to myself:

     From: "John C. Frickson"     <frickson@gibbon.com>
     To:    someone@guenon
     Subject: test

     test

And I got the following output:

     argc: 3
     Arg 0:c:\tcpip\bin\mail.exe
     Arg 1:c:\tcpip\etc\mail
     Arg 2:someone
     STDIN:From user@guenon.gibbon.com  Mon Jul 25 23:43:37 1994
     STDIN:Return-Path: <user@guenon.gibbon.com>
     STDIN:Received: by guenon.gibbon.com (IBM OS/2 SENDMAIL VERSION 1.3.2)/1.0)
     STDIN:    id AA0757; Mon, 25 Jul 94 23:43:37 -0500
     STDIN:Date: Mon, 25 Jul 94 23:43:37 -0500
     STDIN:Message-Id: <9407260443.AA0757@guenon.gibbon.com>
     STDIN:From: "John C. Frickson"     <frickson@gibbon.com>
     STDIN:To: someone@guenon
     STDIN:Subject: test
     STDIN:
     STDIN:info

So, yes it does appear to work!

John

-----
John C. Frickson         | <frickson@gibbon.com>      |  Running OS/2
Gibbon Computer Products | <frickson@gold.tc.umn.edu> |    PGP 2.6
9864 Palm St. NW         | Voice Days: (612)936-8831  | Public Key ID:
Coon Rapids, MN 55433    | Voice Eves: (612)754-2315  |    CF1FE4E5



From ars.muc.de Sun, 27 Nov 94 21:48:33
Newsgroups: comp.os.os2.networking.tcp-ip
Path: ars!news.muc.de!news.space.net!stasys!sungy!koppel.East.Sun.COM!cronkite.Central.Sun.COM!news2me.EBay.Sun.COM!koriel!cs.utexas.edu!howland.reston.ans.net!gatech!concert!sas!mozart.unx.sas.com!news
From: eurjof@eur.sas.com (Jochen Friedrich)
Subject: Re: Sendmail for OS/2
Sender: news@unx.sas.com (Noter of Newsworthy Events)
Message-ID: <CzqD1E.33L@unx.sas.com>
Date: Wed, 23 Nov 1994 17:10:25 GMT
References:  <3at5n0$hhs@bighorn.terra.net>
Nntp-Posting-Host: eurjof.eur.sas.com
Organization: SAS Institute GmbH
X-Newsreader: LA Times for OS/2 [version: 3.3]
Lines: 61

In message <3at5n0$hhs@bighorn.terra.net> - roger@coelacanth.com (Roger
Williams) writes:

>>In my sendmail.cf file, the Mlocal parameter points to c:\tcpip\bin\mail.exe,
>>but there is no mail.exe in c:\tcpip\bin.  I use LaMail, and, as far as I can
>>tell, it works correctly.  Does anyone know why the sendmail.cf parameter
>>points to a non-existant file?
>
>If mail.exe *does* exist, it will be executed when new mail comes in
>(a useful feature, but one that I discovered by accident when I
>renamed my text-mode mail reader, mail24.exe, to mail.exe).

This can i.e. be used to split mail into seperate mail folders for different
users. In my uucp/sendmail interface, i look up the user in passwd and store
the mail into the infolder in the uucp mail directory.

Cheers,
Jochen

/* deliver.exe - a local delivery mail agent. This agent looks up the   *
 * passwd file, if the user really exists. If yes, the mail file is     *
 * opened and the mail is appended to the file.                         *
 * 07OKT94 JOF                                                          */

#define INCL_DOSPROCESS
#include <os2.h>
#include <stdio.h>
#include <string.h>
#include <direct.h>
#include "sysexits.h"
#include "pwd.h"

main(int argc, char **argv)
{
	char path[1024];
	char buffer[1024];
	FILE *mail;

	if (argc !=3)
		exit (EX_USAGE);
	if (!getpwnam(argv[2]))
		exit (EX_NOUSER);
	if (chdir(argv[1])<0)
		exit (EX_USAGE);

	strcpy(path,argv[1]);
	strcat(path,"\\");
	strcat(path,argv[2]);

	mail = NULL;
	while (!mail) {
		mail=fopen(path,"a");
		if (!mail) DosSleep(10000);
		}
	while (fgets(buffer,1024,stdin))
		fprintf(mail,"%s",buffer);
	fclose(mail);
	exit (EX_OK);
}



From eurjof@eur.sas.com Mon Sep  4 15:23:16 1995 remote from ars
Received:  from lamb.sas.com by ars.de (UUPC/extended 1.12n) with UUCP
           for rommel; Mon, 04 Sep 1995 15:23:16 +0200
Received: from lamb.sas.com by ars.de (IBM OS/2 SENDMAIL VERSION 1.3.14/3.0ars)
	  id AA0145; Mon, 04 Sep 95 15:22:57 +0200
Received: from mozart by lamb.sas.com (5.65c/SAS/Gateway/01-23-95)
	id AA23917; Mon, 4 Sep 1995 09:02:48 -0400
Received: from cafe7.eur.sas.com by mozart (5.65c/SAS/Domains/5-6-90)
	id AA06825; Mon, 4 Sep 1995 09:02:38 -0400
Received: from eurjof.eur.sas.com by cafe7.eur.sas.com (5.65c/SAS/Domains/06-23-95)
	id AA09128; Mon, 4 Sep 1995 15:02:37 +0200
From: Jochen Friedrich <eurjof@eur.sas.com>
Return-Path: <eurjof@eur.sas.com>
Received: by eurjof.eur.sas.com (IBM OS/2 SENDMAIL VERSION 1.3.13B/SAS/Eur Generic OS2/06-22-95)
	id AA0088; Mon, 04 Sep 95 15:02:37 +0200
Date: Mon, 04 Sep 95 15:02:37 +0200
Message-Id: <9509041302.AA0088@eurjof.eur.sas.com>
To: rommel@ars.de
Subject: serious sendmail configuration problem
Status: RO

Hi Kai,

rommel@ars.muc.de (Kai Uwe Rommel) writes:
>However, the domain foobar.de (actually, the real domain name, of
>course) is also registered with an MX record pointing to the machine
>mailhost.foobar.de so that people can send mail to any user on any
>machine in the *.foobar.de domain by simply using <user@foobar.de> as
>the address. The MX address resolution works fine. When I send an
>email from any outside machine to <user@foobar.de> then the
>mailhost.foobar.de machine is connected by the sending sendmail (or
>other mailer) correctly.

Hmm... es wird scheinbar wirklich mal Zeit, dieser Newsgroup eine FAQ zu
spendieren...

Die OS/2 sendmail.cf ist im allgemeinen so aufgebaut, dass lokale Mails
in Ruleset 3 erkannt werden und den Pseudo-Hostname LOCAL bzw LOCAL.D
bekommen. Dies geschieht durch folgende 2 Rules:

R$+<@$=w.$D>		$@$1<@LOCAL.D>
R$+<@$=w>		$@$1<@LOCAL>

Um fuer Mails direkt an die Domain das selbe zu tun, fuegt man folgende
Rule unter die o.g. hinzu:

R$+<@$D>		$@$1<@LOCAL.D>

>If I run the sendmail in debug mode, I get an entry in the log file
>that says "Local configuration error. Hostname not recognized as
>local" which relates to the foobar.de host name.

Sendmail prueft intern, ob der 'remote' SMTP Host einen anderen Namen als
der lokale Host hat (dazu wird die HELO Zeile verwendet). Falls ja, geht
sendmail davon aus, dass eine Loop existiert und produziert o.g. Fehlermeldung.
In Deinem Fall wird eine lokale Mail nicht als lokal erkannt und dem SMTP Mailer
zugeordnet. Dieser findet nur den MX auf sich selbst und kontaktiert den eigenen
sendmail Daemon. Dieser produziert dann die Fehlermeldung.

Gruss,
Jochen

From news.space.net!news.ecrc.de!news.hamburg.pop.de!nordwest.pop.de!informatik.uni-bremen.de!cs.tu-berlin.de!zrz.TU-Berlin.DE!isst.fhg.de!berlin.fhg.de!news.fhg.de!blackbush.xlink.net!howland.reston.ans.net!cs.utexas.edu!academ!bcm.tmc.edu!pendragon.jsc.nasa.gov!news.msfc.nasa.gov!newsfeed.internetmci.com!news.sprintlink.net!redstone.interpath.net!sas!mozart.unx.sas.com!news Thu, 2 Nov 1995 11:29:13 GMT
Newsgroups: comp.os.os2.mail-news,comp.os.os2.networking.tcp-ip
Path: news.space.net!news.ecrc.de!news.hamburg.pop.de!nordwest.pop.de!informatik.uni-bremen.de!cs.tu-berlin.de!zrz.TU-Berlin.DE!isst.fhg.de!berlin.fhg.de!news.fhg.de!blackbush.xlink.net!howland.reston.ans.net!cs.utexas.edu!academ!bcm.tmc.edu!pendragon.jsc.nasa.gov!news.msfc.nasa.gov!newsfeed.internetmci.com!news.sprintlink.net!redstone.interpath.net!sas!mozart.unx.sas.com!news
From: eurjof@eur.sas.com (Jochen Friedrich)
Subject: Re: ** sendmail for multiple domains **
Sender: news@unx.sas.com (Noter of Newsworthy Events)
Message-ID: <DHEyKq.43D@unx.sas.com>
Date: Thu, 2 Nov 1995 11:29:13 GMT
X-Nntp-Posting-Host: eurjof.eur.sas.com
Reply-To: eurjof@eur.sas.com
References: <471k6a$293i@news.gate.net>
Organization: SAS Institute GmbH
X-Newsreader: IBM NewsReader/2 v1.9d - NLS
Lines: 23
Xref: news.space.net comp.os.os2.mail-news:3581 comp.os.os2.networking.tcp-ip:41107

In <471k6a$293i@news.gate.net>, alpartis@forum.apms.com writes:
>I've tried defining a macro class as follows:
>
>CDdomain2.com domain3.com
>
>and I've added a rule in ruleset 3 like this
>
>R$+<@$=D>               $@$1<@LOCAL>

IBM sendmail is a port of an old V5 sendmail. This does not support seperator
characters in a macro. However, you can solve your problem with a rule like this:

R$*<@domain2.com>$*               $@$1<@LOCAL>$2
R$*<@domain3.com>$*               $@$1<@LOCAL>$2

or with this:

CD domain2 domain3

R$*<@$=D.com>$*               $@$1<@LOCAL>$3

Cheers,
Jochen


From news.space.net!roka.net!ius.gun.de!gtnduss1.du.gtn.com!news2.gtn.com!news.gun.de!genesis.westend.com!news.rwth-aachen.de!news.dfn.de!news.belwue.de!news.uni-stuttgart.de!rz.uni-karlsruhe.de!blackbush.xlink.net!howland.reston.ans.net!cs.utexas.edu!news.sprintlink.net!newsfeed.internetmci.com!tank.news.pipex.net!pipex!dispatch.news.demon.net!demon!mail2news.demon.co.uk!kempson 02 Nov 1995 17:52:32 +0000
X-Mailer: Umail 1.50i
Message-ID: <11011995221158um@snowyowl.co.uk>
Organization: Snowy Owl Systems Limited
X-Gateway: ZCONNECT UX ius.gun.de [DUUCP BETA vom 28.07.1995], RFC1036/822 XX ius.gun.de [UNIX/Connect v0.73]
References: <471k6a$293i@news.gate.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
From: kempson@snowyowl.co.uk (Niel Kempson)
Subject: Re: ** sendmail for multiple domains **
Date: 02 Nov 1995 17:52:32 +0000
Path: news.space.net!roka.net!ius.gun.de!gtnduss1.du.gtn.com!news2.gtn.com!news.gun.de!genesis.westend.com!news.rwth-aachen.de!news.dfn.de!news.belwue.de!news.uni-stuttgart.de!rz.uni-karlsruhe.de!blackbush.xlink.net!howland.reston.ans.net!cs.utexas.edu!news.sprintlink.net!newsfeed.internetmci.com!tank.news.pipex.net!pipex!dispatch.news.demon.net!demon!mail2news.demon.co.uk!kempson
Newsgroups: comp.os.os2.mail-news,comp.os.os2.networking.tcp-ip
Distribution: world
Lines: 84
Xref: news.space.net comp.os.os2.mail-news:3607 comp.os.os2.networking.tcp-ip:41159


In article <471k6a$293i@news.gate.net>,
    alpartis@forum.apms.com wrote ...

> I'm not a sendmail expert (and I doubt more than 5 'experts'
> actually exist), but I'm forced to administer it in my domain.
> I need to modify sendmail.cf to handle reception of mail for
> multiple domains (we serve as the mail hub and POP server for
> over 15 domains and I just learned that mail is being rejected
> for all but one - the local domain).
>
> I've tried defining a macro class as follows:
>
> CDdomain2.com domain3.com
>
> and I've added a rule in ruleset 3 like this
>
> R$+<@$=D>               $@$1<@LOCAL>
>
> This doesn't seem to be doing the trick.  Your help is GREATLY
> appreciated.

The CD definition won't work because the "." is used to separate tokens
by sendmail.  (In other words, the CD definitions can't have dots in
them.)

You *can* accept mail for multiple domains using OS/2 sendmail.

Assumptions:

    o   mail for each user ID is stored for POP collection.  Therefore
        mail to fred@any.supported.domain is put in a single fred
        mailbox.

    o   the official host name is mail-gw.apms.com, but several domains
        have MX records in the DNS redirecting mail to this host

Take a "standard" sendmail.cf file for OS/2 sendmail:

    o   define host and domain name:

        # host name is mail-gw and domain is apms.com
        Dwmail-gw
        Cwmail-gw
        DDapms.com

    o   find the ruleset 0 section and look for an entry like this

        #
        #  Handle explicit local delivery.
        #
        #  The entire prefix is treated as local user.
        R$+<@LOCAL$*>		$#local $:$1


    o   afterwards, add a set of entries to catch mail for other domains
        and treat it as local

        #
        # Handle other destinations as local.  We support mail for:
        #
        #   user@*.apms.com, user@apms.com
        #   user@mycharity.org, user@*.sendmail-consultants.com
        #
        R$+<@$+.apms.com>			$#local $:$1
        R$+<@apms.com>				$#local $:$1
        R$+<@mycharity.org>			$#local $:$1
        R$+<@$+.sendmail-consultants.com>       $#local $:$1

Outgoing mail will not have its From/Reply-To headers rewritten by
sendmail.  (This is possible if you wanted to force all outgoing mail to
be rewritten as from user@apms.com, but I don't think you want that.)

I use this sort of rule to accept mail for 4 domains - it does work :-)

Feel free to e-mail if you need more help.

Niel
--
Dr C Niel Kempson
Snowy Owl Systems Limited
E-mail: kempson@snowyowl.co.uk (Internet)




