source: trunk/packs/maint/sendmail-relay-select @ 19884

Revision 19884, 323 bytes checked in by jweiss, 21 years ago (diff)
do direct delivery if the sender is not @mit.edu (eg root@machine.mit.edu)
  • Property svn:executable set to *
Line 
1#!/bin/sh
2# $Id: sendmail-relay-select,v 1.2 2003-10-22 06:47:09 jweiss Exp $
3
4if [ -n "$DIRECT_DELIVERY" ]; then
5  exit 0
6fi
7domain=`echo $2 | tr '[A-Z]' '[a-z]' | sed -e 's/.*@//'`
8if [ -f /etc/athena/sendmail.conf -a "mit.edu" = "$domain" ]; then
9  awk '/relay/ {print $2}' /etc/athena/sendmail.conf
10  exit 0
11fi
12
13exit 0
Note: See TracBrowser for help on using the repository browser.