Sendmail redirect problem

Matthew Seaman m.seaman at infracaninophile.co.uk
Sun Sep 28 13:47:45 PDT 2003


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 twistfire at rambler.ru. I need a mail account like
> fire at someserver.ru. 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 fire at someserver.ru t will automatically redirects to twistfire at rambler.ru.
> 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20030928/4e45cede/attachment.bin


More information about the freebsd-questions mailing list