UUCP and SMTP in Linux Sendmail??

UUCP and SMTP in Linux Sendmail??

Post by Tony Schwar » Sun, 24 Sep 1995 04:00:00



I am trying to get UUCP working on our system.  We receive SMTP mail on our
Linux system just fine but now need to catch some of our clients email so that
they can pick it up via UUCP mail.  I am having massive problems trying to do
this.

If anyone is doing such a thing in Sendmail, PLEASE pass on any suggestions,
configurations, or ideas.

Thanks

Tony Schwartz
==============================================================
Tony Schwartz, President                        (503) 243-1940
Transport Logic            http://transport.com/transport.html
$25/month 120 hours SLIP/PPP      Autosignup/Download 243-2792
Portland  *  Vancouver  *  McMinnville   *   Salem    *   Bend
==============================================================

 
 
 

UUCP and SMTP in Linux Sendmail??

Post by Unix Consulti » Mon, 25 Sep 1995 04:00:00


Tony Schwartz (t...@transport.com) wrote:

: I am trying to get UUCP working on our system.  We receive SMTP mail on our
: Linux system just fine but now need to catch some of our clients email so that
: they can pick it up via UUCP mail.  I am having massive problems trying to do
: this.
:
: If anyone is doing such a thing in Sendmail, PLEASE pass on any suggestions,
: configurations, or ideas.
:
: Thanks
:
: Tony Schwartz
: ==============================================================
: Tony Schwartz, President                        (503) 243-1940
: Transport Logic            http://transport.com/transport.html
: $25/month 120 hours SLIP/PPP      Autosignup/Download 243-2792
: Portland  *  Vancouver  *  McMinnville   *   Salem    *   Bend
: ==============================================================

Maybe the following can help:

---- Cut Here and feed the following to sh ----
#!/bin/sh
# This is a shell archive (produced by GNU sharutils 4.1).
# To extract the files from this archive, save it to some FILE, remove
# everything before the `!/bin/sh' line above, then type `sh FILE'.
#
# Made on 1995-09-23 07:45 EDT by <root@btoy1>.
# Source directory was `/'.
#
# Existing files will *not* be overwritten unless `-c' is specified.
#
# This shar contains:
# length mode       name
# ------ ---------- ------------------------------------------
#    292 -rw-r--r-- etc/sendmail.cw
#    985 -rw-r--r-- etc/sendmail.oE
#   2159 -rw-r--r-- usr/src/sendmail/cf/btoy1.mc
#    430 -rw-r--r-- usr/src/sendmail/cf/Makefile.btoy1
#
touch -am 1231235999 $$.touch >/dev/null 2>&1
if test ! -f 1231235999 && test -f $$.touch; then
  shar_touch=touch
else
  shar_touch=:
  echo
  echo 'WARNING: not restoring timestamps.  Consider getting and'
  echo "installing GNU \`touch', distributed in GNU File Utilities..."
  echo
fi
rm -f 1231235999 $$.touch
#
# ============= etc/sendmail.cw ==============
if test ! -d 'etc'; then
  echo 'x - creating directory etc'
  mkdir 'etc'
fi
if test -f 'etc/sendmail.cw' && test X"$1" != X"-c"; then
  echo 'x - skipping etc/sendmail.cw (file already exists)'
else
  echo 'x - extracting etc/sendmail.cw (text)'
  sed 's/^X//' << 'SHAR_EOF' > 'etc/sendmail.cw' &&
# -------------------------------------------------------------------
# /etc/sendmail.cw - Names of hosts that we accept mail for
# -------------------------------------------------------------------
#
localhost
#
btoy1
btoy1-gw.roc
btoy1-gw.roc.servtech.com
btoy1.rochester.ny.us
btoy1.uucp
SHAR_EOF
  $shar_touch -am 0202084695 'etc/sendmail.cw' &&
  chmod 0644 'etc/sendmail.cw' ||
  echo 'restore of etc/sendmail.cw failed'
  shar_count="`wc -c < 'etc/sendmail.cw'`"
  test 292 -eq "$shar_count" ||
    echo "etc/sendmail.cw: original size 292, current size $shar_count"
fi
# ============= etc/sendmail.oE ==============
if test -f 'etc/sendmail.oE' && test X"$1" != X"-c"; then
  echo 'x - skipping etc/sendmail.oE (file already exists)'
else
  echo 'x - extracting etc/sendmail.oE (text)'
  sed 's/^X//' << 'SHAR_EOF' > 'etc/sendmail.oE' &&
X
If the remainder of this message indicates that the mail has been
successfully delivered just skip this info - else these might be
possible causes for any problem that you might have encountered:
X
Error               Cause
-------------       -----------------------------------------------------
User unknown:       The username or mail alias you specified is wrong.  
X                    Look for misspellings.
Host unknown:       You mistyped the host portion of the address. Look for
X                    O's (oh's) where 0's (zero's) should be, or transposed
X                    characters.
Transient Failure:  A failure in tranmission has occurred.  Read the
X                    remainder of the error below to see if this is just a
X                    warning that a remote host is temporarily unreachable.  
X                    Usually you do *not* need to resend your message.
X
For more information about this error message, send an email to
"r...@btoy1.rochester.ny.us"
X
SHAR_EOF
  $shar_touch -am 0304230895 'etc/sendmail.oE' &&
  chmod 0644 'etc/sendmail.oE' ||
  echo 'restore of etc/sendmail.oE failed'
  shar_count="`wc -c < 'etc/sendmail.oE'`"
  test 985 -eq "$shar_count" ||
    echo "etc/sendmail.oE: original size 985, current size $shar_count"
fi
# ============= usr/src/sendmail/cf/btoy1.mc ==============
if test ! -d 'usr'; then
  echo 'x - creating directory usr'
  mkdir 'usr'
fi
if test ! -d 'usr/src'; then
  echo 'x - creating directory usr/src'
  mkdir 'usr/src'
fi
if test ! -d 'usr/src/sendmail'; then
  echo 'x - creating directory usr/src/sendmail'
  mkdir 'usr/src/sendmail'
fi
if test ! -d 'usr/src/sendmail/cf'; then
  echo 'x - creating directory usr/src/sendmail/cf'
  mkdir 'usr/src/sendmail/cf'
fi
if test -f 'usr/src/sendmail/cf/btoy1.mc' && test X"$1" != X"-c"; then
  echo 'x - skipping usr/src/sendmail/cf/btoy1.mc (file already exists)'
else
  echo 'x - extracting usr/src/sendmail/cf/btoy1.mc (text)'
  sed 's/^X//' << 'SHAR_EOF' > 'usr/src/sendmail/cf/btoy1.mc' &&
#####################################################################
# /usr/src/sendmail/cf/btoy1.mc - Configuration for sendmail (8.7)
#####################################################################
include(`../m4/cf.m4')
#- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Globals
# Last changed: Fri Sep 22 22:37:44 EDT 1995
VERSIONID(`btoy1 setup - linux for smtp and uucp')dnl
OSTYPE(linux)dnl
#- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Features
FEATURE(always_add_domain)dnl
FEATURE(use_cw_file)dnl
FEATURE(local_procmail)dnl
FEATURE(allmasquerade)dnl
FEATURE(masquerade_envelope)dnl
#- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Mailers we use
MAILER(smtp)dnl
MAILER(uucp)dnl
#- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Some filenames
define(`confERROR_MESSAGE', `/etc/sendmail.oE')dnl
#- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# UUCP definitions
SITECONFIG(uucp.btoy1, btoy1, U)
#- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Timeouts
define(`confDIAL_DELAY', 40s)dnl
define(`confTO_INITIAL', 5m)dnl
define(`confTO_HELO', 5m)dnl
define(`confTO_MAIL', 10m)dnl
define(`confTO_RCPT', 1h)dnl
define(`confTO_DATAINIT', 5m)dnl
define(`confTO_DATABLOCK', 1h)dnl
define(`confTO_DATAFINAL', 1h)dnl
define(`confTO_RSET', 5m)dnl
define(`confTO_QUIT', 2m)dnl
define(`confTO_MISC', 2m)dnl
define(`confTO_COMMAND', 1h)dnl
define(`confTO_IDENT', 2m)dnl
define(`confTO_FILEOPEN', 60s)dnl
define(`confTO_QUEUERETURN', 5d)dnl
define(`confTO_QUEUERETURN_NORMAL', 5d)dnl
define(`confTO_QUEUERETURN_URGENT', 2d)dnl
define(`confTO_QUEUERETURN_NONURGENT', 7d)dnl
define(`confTO_QUEUEWARN', 4h)dnl
define(`confTO_QUEUEWARN_NORMAL', 4h)dnl
define(`confTO_QUEUEWARN_URGENT', 1h)dnl
define(`confTO_QUEUEWARN_NONURGENT', 12h)dnl
#- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Miscellaneous
define(`MASQUERADE_NAME', btoy1.rochester.NY.US)dnl
define(`confME_TOO', `True')dnl
define(`confDEF_CHAR_SET', iso-8859-1)dnl
define(`confTRUSTED_USERS', ftpmail)dnl
SHAR_EOF
  $shar_touch -am 0923074395 'usr/src/sendmail/cf/btoy1.mc' &&
  chmod 0644 'usr/src/sendmail/cf/btoy1.mc' ||
  echo 'restore of usr/src/sendmail/cf/btoy1.mc failed'
  shar_count="`wc -c < 'usr/src/sendmail/cf/btoy1.mc'`"
  test 2159 -eq "$shar_count" ||
    echo "usr/src/sendmail/cf/btoy1.mc: original size 2159, current size $shar_count"
fi
# ============= usr/src/sendmail/cf/Makefile.btoy1 ==============
if test -f 'usr/src/sendmail/cf/Makefile.btoy1' && test X"$1" != X"-c"; then
  echo 'x - skipping usr/src/sendmail/cf/Makefile.btoy1 (file already exists)'
else
  echo 'x - extracting usr/src/sendmail/cf/Makefile.btoy1 (text)'
  sed 's/^X//' << 'SHAR_EOF' > 'usr/src/sendmail/cf/Makefile.btoy1' &&
#
# Makefile to build a new /etc/sendmail.cf for btoy1
#
X
INPDIR=/usr/src/sendmail/cf
INPNAME=btoy1.mc
OUTDIR=/usr/src/sendmail
OUTNAME=btoy1.cf
INSDIR=/etc
INSNAME=sendmail.cf
X
# Make a new btoy1.cf file
all:    $(INPDIR)/$(INPNAME)
X       m4 $(INPDIR)/$(INPNAME) > $(OUTDIR)/$(OUTNAME)
X
# Test that new file
test:   all
X       sendmail -bt -C$(OUTDIR)/$(OUTNAME)
X
install: all
X       install $(OUTDIR)/$(OUTNAME) $(INSDIR)/$(INSNAME)
X
clean:
X       rm *~
SHAR_EOF
  $shar_touch -am 0219143895 'usr/src/sendmail/cf/Makefile.btoy1' &&
  chmod 0644 'usr/src/sendmail/cf/Makefile.btoy1' ||
  echo 'restore of usr/src/sendmail/cf/Makefile.btoy1 failed'
  shar_count="`wc -c < 'usr/src/sendmail/cf/Makefile.btoy1'`"
  test 430 -eq "$shar_count" ||
    echo "usr/src/sendmail/cf/Makefile.btoy1: original size 430, current size $shar_count"
fi
exit 0
--
-------- Thomas Bullinger ------- Specializing in Linux systems --------
* Installation * Setup * Maintenance * Training * Software * Information
* Email: cons...@btoy1.rochester.ny.us    FAX: +1-716-377-6732
* WWW:   http://btoy1-gw.roc.servtech.com/~consult

 
 
 

UUCP and SMTP in Linux Sendmail??

Post by Ian Bro » Tue, 26 Sep 1995 04:00:00


    Tony> I am trying to get UUCP working on our system.  We receive
    Tony> SMTP mail on our Linux system just fine but now need to
    Tony> catch some of our clients email so that they can pick it up
    Tony> via UUCP mail.  I am having massive problems trying to do
    Tony> this.

    Tony> If anyone is doing such a thing in Sendmail, PLEASE pass on
    Tony> any suggestions, configurations, or ideas.

    Tony> Thanks

    Tony> Tony Schwartz
    Tony> ==============================================================
    Tony> Tony Schwartz, President (503) 243-1940 Transport Logic
    Tony> http://transport.com/transport.html $25/month 120 hours
    Tony> SLIP/PPP Autosignup/Download 243-2792 Portland * Vancouver *
    Tony> McMinnville * Salem * Bend
    Tony> ==============================================================

Tony,

My IP provider is doing this exact same thing with Linux.  He solved the
problem by incorporating procmail into his sendmail configuration.  Procmail
will determine that the receipient gets their mail via UUCP and spool
the mail for the receipient.  The great thing about using procmail
is that the user can turn off and on the UUCP forwarding simply by
editing their .forward file.  Procmail is available at sunsite etc.

Hope this helps.

Regards

--
Ian Brown


 
 
 

UUCP and SMTP in Linux Sendmail??

Post by Tim Fro » Thu, 05 Oct 1995 04:00:00


I missed the original post, but this could be done by rules in sendmail.cf:
The sendmail.cf needs uucp as well as smtp mailer definitions, then in
ruleset zero

or

The first would be for a site which you are feeding mail to.  The second
example rule would be for a single user (with an address in *your* address
space.  The value attached to the $: should be the mail address of the
recipient in a form that can then be converted by the recipient rewriting
rules (R=xxx) for the uucp mailer, into what the remote site expects.

For a site, this allows the domain address to be either a separate domain,
which has MX records that point to your site, or a subdomain in your own
namespace.

Also, it is likely that the rmail program at the remote end can accept
domain-style addresses as well as UUCP bangified ones, in which case
the sendmail 8.6/8.7 uucp-dom or uucp-uudom mailer would be preferred,
since these preserve the domain-style From: address, even if the 'From '
header is bangified [uucp-uudom].  The choice depends on whether From:


most preferable format of course).




>    Tony> I am trying to get UUCP working on our system.  We receive
>    Tony> SMTP mail on our Linux system just fine but now need to
>    Tony> catch some of our clients email so that they can pick it up
>    Tony> via UUCP mail.  I am having massive problems trying to do
>    Tony> this.

>    Tony> If anyone is doing such a thing in Sendmail, PLEASE pass on
>    Tony> any suggestions, configurations, or ideas.

>    Tony> Thanks

>    Tony> Tony Schwartz
>    Tony> ==============================================================
>    Tony> Tony Schwartz, President (503) 243-1940 Transport Logic
>    Tony> http://transport.com/transport.html $25/month 120 hours
>    Tony> SLIP/PPP Autosignup/Download 243-2792 Portland * Vancouver *
>    Tony> McMinnville * Salem * Bend
>    Tony> ==============================================================

>Tony,

>My IP provider is doing this exact same thing with Linux.  He solved the
>problem by incorporating procmail into his sendmail configuration.  Procmail
>will determine that the receipient gets their mail via UUCP and spool
>the mail for the receipient.  The great thing about using procmail
>is that the user can turn off and on the UUCP forwarding simply by
>editing their .forward file.  Procmail is available at sunsite etc.

>Hope this helps.

>Regards

>--
>Ian Brown



--


P.O. Box 3055,                      Voice: +64 4 495-0400
Wellington, New Zealand.            Fax:   +64 4 495-0565
 
 
 

1. UUCP, SMTP and Sendmail smarthost.

I am running Open Network Server 3.0 and have a commercial UUCP
account with Netcom for e-mail and news under my own domain.

Apparently the bundled version of Sendmail that comes with SCO
does not have any provision for using a smart mailhost. (Or if
it does, I certainly haven't been able to find it yet.)

Re-reading the O'Reilly Sendmail book indicates that a later
version of Sendmail, 8.n, supports this. Is there a site that
has this available that is either already complied for SCO or
that will compile properly? (I do have the Dev Sys packages.)

A local LAN using SMTP with a UUCP smart mailhost to the
internet used to be pretty much the standard. Has the proliferation
of Windows(tm) boxes and Netcruiser(tm) accounts wiped this out?
(Much like the success of the Salk vacine over the past 40 years.)

Thanks Jeff

Or will the bundled version of Sendmail accept a default mail
site as the smart mailhost? Does anyone have a functioning
sendmail.cf that they'd care to share?

--


 US Mail: PO Box 4425 Carson, CA 90749   |  potent god. I see it more as a
   Phone: 1 (310) 887-8545               |  badly run corporation."

2. MATLAB under Linux/Alpha ?

3. Is PROCMAIL/SENDMAIL/SMTP/UUCP Possible?

4. UnixWare 2.03 stdio not standard?

5. How to set sendmail SMTP auth and SMTP SSL on Solaris 9 (x86)

6. questions about open source...

7. Linux UUCP/SMTP question

8. servlets running on linux

9. ISP -> UUCP -> Linux -> POP/SMTP -> endusers Please Advice

10. SMTP UUCP novell linux and groupwise are having a problem

11. Linux and SMTP/UUCP

12. problem in unstanding sendmail/cf SMTP auth (Solaris 8 Sendmail 8.10) Please Explain

13. Sendmail routing to UUCP host on OS5.0.4 (sendmail 8.8.5)