There are many ways to do this. One way is to change your transport processor on your conf file.
After the local delivery mailet add another Recipient is local and have it forward to your email.
What will happen is that the LocalDelivery will find a match and consume the email, else it will
go through to the next mailet. In this case your local email address...
I.e.
  <processor name="transport">
    <!-- Is the recipient is for a local account, deliver it locally -->
    <mailet match="RecipientIsLocal" class="LocalDelivery">
    </mailet>
    <!-- If the host is handled by this server and it did not get locally delivered, this is an invalid recipient -->
    <mailet match="HostIsLocal" class="Forward">
      <forwardto>email@gigaideas.com.cn</forwardto>
    </mailet>
...
This will send any messages sent to an invalid local address to the address specified.
 
HTH,
Ozzy
 
-----Original Message-----
From: Steven Ye [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 14, 2001 6:41 AM
To: [EMAIL PROTECTED]
Subject: Fw: About the auto forward.

 
----- Original Message -----
From: Steven Ye
Sent: Thursday, June 14, 2001 9:39 PM
Subject: About the auto forward.

Hello:
    First I need to say that it porject is extreamely great.
    I've meet some problem, when using James.
    How to deal with this:
    If one mail is sent to our mail server with the correct domain name,
but the username is not in the list, maybe cause by some error spelling.
How to forward these mail to and existing email accout.
    For example:
    If someone send mail to:
    [EMAIL PROTECTED] but he just typed [EMAIL PROTECTED]
    but the user steenn doesn't exits. How to forward the mail to an
exiting user, for example: [EMAIL PROTECTED].
 
    This is really important for us. Cause we just want to setup a James
mail server to represent sendmail. But we need to solve these problem first.
 
Thank you.
 
Steven Ye

Reply via email to