Hi,

        If your username is different on your ISP account, and you
 want mail to go there, your mail user agent is generally what one
 configures to set a correct From: and Reply-to: fields; You can, fo
 course, add to rule set 1 to rewrite outgoing addresses, but that
 requires knowledge of sendmail.cf. I don't know if exim/smail do
 header rewrite in a simpler fashion (they shaould, they all claim to
 be simpler than sendmail)

        For recieving mail, just add an alias in /etc/aliases
remoteuser: localuser
        and re run newaliases

        In the set of instructions I gave you, I said use a line like 
 define(`confDELIVERY_MODE', `queue'); which made sendmail queue up
 every thing. This is not what you asked for. The corresct solution is
 somewhat more complex, and is included below the explanations
______________________________________________________________________
        This is a Debian system; use the Debian set of path macros and
        so on.
OSTYPE(debian)dnl
        Rewrite even the 'From ' header so that this message truly
        appears to come from internet.com
FEATURE(masquerade_envelope)dnl
        Include local mail delivery mailers, to the spool or feeding
        through the .forward file
MAILER(local)dnl
        Include mailers to send mail off site via smtp
MAILER(smtp)dnl
        Accept mail for internet.com, so if mail comes for
        [EMAIL PROTECTED] from this machine (no need to send it off
        machine then). This can be a slight problem if you want to
        really send mail to a non local [EMAIL PROTECTED]; I solve
        it by sending mail to [EMAIL PROTECTED], which is a
        valid email for my ISP, and I rarely send mail to a non local
        user at my ISP.
Cwinternet.com
        Rewrite most headers to pretend that mail comes from internet.com
MASQUERADE_AS(internet.com)dnl
______________________________________________________________________
        Use a file in /etc/mail/sendmail.cw on startup to find the set
        of local names or aliases for my machine (alternate names for
        this host.) 
 FEATURE(use_cw_file)dnl
        Read the file /etc/mail/sendmail.ct file to get the names of users
        that will be ``trusted'', that is, able to set their envelope
        from address using -f without generating a warning message.
 FEATURE(use_ct_file)dnl
        Reject all mail addressed to "address.REDIRECT" with a ``551
        User not local; please try <address>'' message.  If this is
        set, you can alias people who have left to their new address
        with ".REDIRECT" appended.
 FEATURE(redirect)dnl
        Include sender in group expansions.
 define(`confME_TOO', True)dnl
 
 # anti spam hacks, but these need external files to be set up, so use 
 # with care
        file containing IP numbers of machines which can use our relay
        /etc/mail/LocalIP by default
 HACK(use_ip)
            If you want to use check_rcpt, do the following: Decide
            whether you wan to use the check for local machines by IP
            number (use_ip) or by name (use_names). Next, decide
            whether you want also allow relay to several machines in
            addition to those you accept as local (class w).
            Depending on your selection, put some of the first three
            HACKs into your .mc file, and always use the last one.
            HACK(use_ip)
            HACK(use_names)
            HACK(use_relayto)
            All take an optional argument (the file to use).  The
            default filenames are listed below.
            
            HACK(check_rcpt4)
            
            Put the appropriate values in the files:
            use_ip          [/etc/mail/LocalIP]     
            use_names       [/etc/mail/LocalNames]  
            use_relayto     [/etc/mail/RelayTo]     
            
            1997-03-16: check_rcpt4 can now make use of use_ip and use_names.
            It replaces check_rcpt3, which is still available if there is
            a problem with the new version.
 HACK(check_rcpt4)
             If you want to use check_mail2, do the following: Put
             
             HACK(check_mail2)
             [This has also an optional argument, the default is given below.]
             
             in your .mc file. Put addresses of well-known spammers
             (e-mail addresses, domains) in the appropriate database
             [default]: junk [hash /etc/mail/junk]
             
             The format is:
             junk.domain JUNK
             [EMAIL PROTECTED] SPAMMER
             Create the database (man makemap) in the chosen format.
             
             PS: You can activate the reverse IP lookup and the
             validity check of the FROM address by
             define(`_IP_LOOKUP_',1)dnl
             define(`_DNSVALID_',1)dnl
             respectively.

 HACK(check_mail2)
 ----------------------------------------------------------------------

        I would advice you to read /usr/doc/sendmail/op.*;
 /usr/doc/sendmail/cf.README.gz, and /use/doc/sendmail/README.Spam.gz
        

        As to making all off machine mail queue up, a patch to
 sendmail.cf like this could help

        I hope this helps.

        manoj
______________________________________________________________________
__> diff -u /etc/sendmail.cf.orig /etc/sendmail.cf
--- /etc/sendmail.cf.orig    Mon Mar  9 12:09:57 1998
+++ /etc/sendmail.cf Mon Mar  9 12:10:45 1998
@@ -886,7 +886,7 @@
 Mlocal,                P=/usr/sbin/sensible-mda, F=lsDFMAw5:/|@qh90, S=10/30, 
R=20/40,
                T=DNS/RFC822/X-Unix,
                A=sensible-mda $g $u ${client_addr}
-Mprog,         P=/bin/sh, F=lsDFMoqeu9, S=10/30, R=20/40, D=$z:/,
+Mprog,         P=/bin/sh, F=lsDFMoqu9, S=10/30, R=20/40, D=$z:/,
                T=X-Unix,
                A=sh -c $u
 
@@ -932,16 +932,16 @@
 
 #####  @(#)smtp.m4     8.33 (Berkeley) 7/9/96  #####
 
-Msmtp,         P=[IPC], F=mDFMuX, S=11/31, R=21, E=\r\n, L=990,
+Msmtp,         P=[IPC], F=mDFMueX, S=11/31, R=21, E=\r\n, L=990,
                T=DNS/RFC822/SMTP,
                A=IPC $h
-Mesmtp,                P=[IPC], F=mDFMuXa, S=11/31, R=21, E=\r\n, L=990,
+Mesmtp,                P=[IPC], F=mDFMueXa, S=11/31, R=21, E=\r\n, L=990,
                T=DNS/RFC822/SMTP,
                A=IPC $h
-Msmtp8,                P=[IPC], F=mDFMuX8, S=11/31, R=21, E=\r\n, L=990,
+Msmtp8,                P=[IPC], F=mDFMueX8, S=11/31, R=21, E=\r\n, L=990,
                T=DNS/RFC822/SMTP,
                A=IPC $h
-Mrelay,                P=[IPC], F=mDFMuXa8, S=11/31, R=61, E=\r\n, L=2040,
+Mrelay,                P=[IPC], F=mDFMueXa8, S=11/31, R=61, E=\r\n, L=2040,
                T=DNS/RFC822/SMTP,
                A=IPC $h
 
______________________________________________________________________
-- 
 "But this one goes to eleven." Nigel Tufnel
Manoj Srivastava  <[EMAIL PROTECTED]> <http://www.datasync.com/%7Esrivasta/>
Key C7261095 fingerprint = CB D9 F4 12 68 07 E4 05  CC 2D 27 12 1D F5 E8 6E


--
E-mail the word "unsubscribe" to [EMAIL PROTECTED]
TO UNSUBSCRIBE FROM THIS MAILING LIST. Trouble?  E-mail to [EMAIL PROTECTED] .

Reply via email to