[SUMMARY]Sendmail configuration question

From: Larry Griffith <larry_at_cs.wsc.ma.edu>
Date: Fri, 26 Feb 1999 08:29:26 -0500

Dear Managers,

     Between the responses I received from the list and a little
tinkering on my own I managed to get things working (and understood
the configuration a little better). Thanks to

Mike Iglesias <iglesias_at_draco.acs.uci.edu>
Sean O'Connell <sean_at_stat.Duke.EDU>
Robert Benites <benites_at_cs.unca.edu>
Arrigo Triulzi <arrigo_at_albourne.com>

     I included the following lines in my generic-osf1.mc file (the
MASQUERADE_AS line was already present):

MASQUERADE_AS(cs.wsc.ma.edu)dnl
FEATURE(allmasquerade)dnl
FEATURE(masquerade_envelope)dnl
FEATURE(always_add_domain)dnl
EXPOSED_USER(root)dnl
define(`MAIL_HUB',cs.wsc.ma.edu)dnl

     I also found I had to remove my .REDIRECT aliases. Apparently
sendmail processes this BEFORE rewriting addresses. However, since
mail is now going to the right place that's not a problem.

     Well, onto the next problem! Thanks again!

                                                Larry

Original post
-------- ----

Dear Managers,

     I thought this would be a FAQ, but I can't find the answer either
in the archives or in the sendmail documentation (of course, I have a
long record of being blind and/or stupid..).

     We use sendmail v8.9.2 on Tru64 Unix v4.0Dp3. A very common
mailing error is handled most ungracefully. Here's the situation:

Two T64U hosts: A.cs.wsc.ma.edu and B.cs.wsc.ma.edu. A is a POP/IMAP
server which also answers to the name cs.wsc.ma.edu. A student logged
into B tries to send e-mail to larry. larry is rewritten by sendmail
as larry_at_B.cs.wsc.ma.edu. This address bounces (it should just be
larry_at_cs.wsc.ma.edu). Question #1: how can I tell sendmail to rewrite
names without hosts as name_at_cs.wsc.ma.edu? The sendmail documentation
is rather cryptic on this point.

     The bounce message is sent both to postmaster and to student.
The one to postmaster is handled correctly. However, the bounce
message to student tries to go to student_at_B.cs.wsc.ma.edu, which also
bounces. Hence as far as student knows, the original message went
through OK, while postmaster/root gets two bounce messages. Question
#2 (which may be Question #1 again in disguise): how can I tell
sendmail to send the bounce message to student_at_cs.wsc.ma.edu? Bounces
from outside our subdomain are handled correctly; I don't want to
change that.

     Our current sendmail configuration includes

MASQUERADE_AS(`cs.wsc.ma.edu`)dnl.

     E-mail to student_at_B.cs.wsc.ma.edu is aliased to
student_at_B.cs.wsc.ma.edu.REDIRECT. (I don't want incoming mail to host
B).

                                                TIA,
                                                Larry

============================================================================
Larry Griffith Dept. of Computer & Info Science
larry_at_cs.wsc.ma.edu Westfield State College
(413) 572-5294 Westfield, MA 01086 USA
PGP public key available at: http://cs.wsc.ma.edu/dcis/griffith.html
============================================================================
Received on Fri Feb 26 1999 - 13:32:12 NZDT

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:39 NZDT