On Sun, Sep 28, 2003 at 09:25:22AM +0300, Alex Zivenko wrote:

> I have some problem here. I need a mail account on the another server, which runs on 
> freebsd. I have a mail account, for example [EMAIL PROTECTED] I need a mail account 
> like
> [EMAIL PROTECTED] But the  acces is restricted to prevent security vulnerabilities. 
> The mail server is closed for ip addresses not from their subnets. So I decided not 
> to login there, but when the mail will come to [EMAIL PROTECTED] t will 
> automatically redirects to [EMAIL PROTECTED]
> How can I do that? What I need to do in Sendmail?

Sounds like you need to read the aliases(5) man page.  If you haven't
got access to /etc/mail/aliases on the machine in question, then you
can probably just set up a .forward file in your home dir on that
machine (See forward(5)). That just overrides the local delivery
agent, instead forwarding the e-mail to the address in the .forward
file.  Don't set up two machines to forward to each other or they will
spend a lot of time playing ping-pong with your e-mail, which will
eventually be bounced back to sender as undeliverable.

        Cheers,

        Matthew

PS You can set up that sort of either-way forwarding using
procmail(1), but it relies on using formail(1) to insert special
headers so that you can avoid forarding loops.  See the procmailex(1)
man page for an example.

-- 
Dr Matthew J Seaman MA, D.Phil.                       26 The Paddocks
                                                      Savill Way
PGP: http://www.infracaninophile.co.uk/pgpkey         Marlow
Tel: +44 1628 476614                                  Bucks., SL7 1TH UK

Attachment: pgp00000.pgp
Description: PGP signature

Reply via email to