From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96079036515963.tru64-unix-managers.marc@archive.invalid> From: Larry Griffith Date: Fri, 26 Feb 1999 13:29:26 +0000 To: tru64-unix-managers Subject: [SUMMARY]Sendmail configuration question X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96079036515963 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 Sean O'Connell Robert Benites Arrigo Triulzi 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@B.cs.wsc.ma.edu. This address bounces (it should just be larry@cs.wsc.ma.edu). Question #1: how can I tell sendmail to rewrite names without hosts as name@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@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@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@B.cs.wsc.ma.edu is aliased to student@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@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 ============================================================================