[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Smail/Sendmail Question


	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.
	Rewrite even the 'From ' header so that this message truly
	appears to come from internet.com
	Include local mail delivery mailers, to the spool or feeding
	through the .forward file
	Include mailers to send mail off site via smtp
	Accept mail for internet.com, so if mail comes for
	user@internet.com 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 another@internet.com; I solve
	it by sending mail to another@mail.internet.com, which is a
	valid email for my ISP, and I rarely send mail to a non local
	user at my ISP.
	Rewrite most headers to pretend that mail comes from internet.com
	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.) 
	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.
	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.
	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
	    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.
	    All take an optional argument (the file to use).  The
	    default filenames are listed below.
	    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.
	     If you want to use check_mail2, do the following: Put
	     [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
	     spammer@address.domain 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


	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.

__> 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,
                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:/,
                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,
                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,
                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,
                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,
                A=IPC $h
 "But this one goes to eleven." Nigel Tufnel
Manoj Srivastava  <srivasta@acm.org> <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 debian-user-request@lists.debian.org
TO UNSUBSCRIBE FROM THIS MAILING LIST. Trouble?  E-mail to listmaster@debian.org .

Reply to: