I’ve got a default dot-courier script to do some address rewriting so that I can have several domains associated with each user account.
 

It works fine except that bounces for non-existing accounts are a general undeliverable mail message and I would like to be able to have them give the more precise “<<< 550 User unknown”  message.

 

Is there a way to get dot-courier to give a “<<< 550 User unknown” bounce like what occurs for a non-existing account when there is no dot-courier processing? Is there a better place to do this address rewriting than the dot-courier file?
 
#!/bin/sh
#
# Written 24Jan03 by Stephen S Kelley
# last modified 24Jan03 SSK
#
# this script delivers mail for addresses that have no specific accounts
or aliases
 
NEWADDR=""
 
case $HOST in
  # rewrite [EMAIL PROTECTED] to [EMAIL PROTECTED]
  domain1)
    NEWADDR="[EMAIL PROTECTED]"
    ;;
  # rewrite [EMAIL PROTECTED] to [EMAIL PROTECTED]
  domain2)
    NEWADDR="[EMAIL PROTECTED]"
    ;;
esac
 
if [ “$NEWADDR” != “” ]
  then
    # deliver to $NEWADDR
    printf "$NEWADDR\n"
  else
    # return as undeliverable
    exit ??? (what do I return here to get 550 bounce? I’ve tried 64, 65, 67, 68, 69, 70, 76, 77, 78, or 112)
fi 

 

Dr. Stephen S. Kelley, President
VirtuState, Inc.
[EMAIL PROTECTED]
http://www.virtustate.com

 

Reply via email to