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 | |
---|
4 | if [ -n "$DIRECT_DELIVERY" ]; then |
---|
5 | exit 0 |
---|
6 | fi |
---|
7 | domain=`echo $2 | tr '[A-Z]' '[a-z]' | sed -e 's/.*@//'` |
---|
8 | if [ -f /etc/athena/sendmail.conf -a "mit.edu" = "$domain" ]; then |
---|
9 | awk '/relay/ {print $2}' /etc/athena/sendmail.conf |
---|
10 | exit 0 |
---|
11 | fi |
---|
12 | |
---|
13 | exit 0 |
---|
Note: See
TracBrowser
for help on using the repository browser.