Well, assuming sendmail: you can set up a MAILERTABLE to do this.

_mailertable____________________________
domain.com     <tab>   smtp: relayto.domain.com
_____________________________________

(the <tab> is a real tab... it is important that you use a tab between them)
I'm using HASH, so make sure you hash your mailertable before usign it.

Then in my sendmail.cf  I modify the K variable to use the mailertable.

______________________________________
# Database for special routing
Kmailertable hash /etc/mail/mailertable
______________________________________

And that will take all mail and forward it to another mail host. This
assumes a lot, so use at your own risk.

Hope that helps.
Will


_________________________
William Schwartz
Network Integrator
[EMAIL PROTECTED]


----- Original Message -----
From: "Mathco Tech. Dep" <[EMAIL PROTECTED]>
To: "Redhat request" <[EMAIL PROTECTED]>
Sent: Thursday, February 24, 2000 3:04 PM
Subject: Relaying Mail Question


> Hi
>
> Is there any way i can re-relay e-mails from
> my internal mailserver to a external smtp
> server?
>
> +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
> | Mathias Björkman                        |
> | Head technician                         |
> | Mathco Computer                         |
> | e-mail: [EMAIL PROTECTED]                 |
> | e-mail: [EMAIL PROTECTED]             |
> +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
>
>
> --
> To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
> as the Subject.
>
>
>


-- 
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.

Reply via email to