From: Jeff Jansen [mailto:[EMAIL PROTECTED]
> 
> On Friday 16 January 2004 5:01 pm, Bowie Bailey wrote:
> > Is it possible to use Courier to create a 'smart' mail relay?
> >
> > What I want is a mail server that can reject mail to non-existent
> > users based on it's userdb, but then send the good mail along to
> > another server for delivery.
> >
> > From what I can tell by reading the man pages, I can't use
> > esmtproutes to send the mail to another server if the mail is local,
> > but if the mail is not local, then it won't check the usernames.  Is
> > there any way around this?
> 
> Not sure about this but what about using aliases?  So let's say that
> you are "relay.example.com" and you are the primary MX for
> "example.com" and you want to send the mail onto mail.example.com.  So
> you would put "example.com" into locals and esmtpacceptmailfor and
> then create aliases like
> 
> [EMAIL PROTECTED]:  [EMAIL PROTECTED]
> 
> Now you have no accounts on your system but you accept mail for
> example.com if there's a valid alias which will in turn ship it out to
> mail.example.com.
> 
> As I said, I haven't thought this through really well but it seems to
> me that this would work.

Interesting.  It would require an alias line for each user, but I could
probably automate that.  I could do this if I had to, but I would really
prefer something that let's me say "send all local mail to another
server" rather than doing it user by user.

Also, if I put "example.com" into locals, then wouldn't the alias need
to be for "user" rather than "[EMAIL PROTECTED]"?  In my case, I would
prefer to use the full address since I host several domains.  So I
should put "example.com" in to hosteddomains instead, right?

Thanks,
Bowie


-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to