* SUMMARY: Mail forwarding
@ 2001-03-14 14:57 Gil Renard
0 siblings, 0 replies; 2+ messages in thread
From: Gil Renard @ 2001-03-14 14:57 UTC (permalink / raw)
To: tru64-unix-managers
Sorry for the late summary, original question at the
bottom.
Thank's to all who responded. I solved this using
Postfix (an MTA) with a special feature called
canonical_map that helps in rewriting mail addresses
that match certain regular expressions.
Gil Renard
Original question:
I have the following situation: I have three machines
(mail.example.com, numbers.example.com and
names,example.com). I need to receive mail on
mail.example.com and forward it depending on the "To"
field with the following rules:
-If the user name contains numbers, forward it to
numbers.example.com
72981@mail.example.com--> 5572981@numbers.example.com
-If the user name contains letters, forward it to
names.example.com
mail.example.com doesn't have any of these user
accounts, I need it only as a forwarder. I also need
this to work automatically when I add accounts in
numbers and in names.
I'm considering two approaches to this problem: using
procmail or writing some sendmail ruleset. How would
you solve this?
I can use 4.0f or 5.1, if needed I can compile a new
sendmail or other MTA.
__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - Buy the things you want at great prices.
http://auctions.yahoo.com/
^ permalink raw reply [flat|nested] 2+ messages in thread
* SUMMARY: mail forwarding
@ 2004-06-14 10:40 Joe Evans
0 siblings, 0 replies; 2+ messages in thread
From: Joe Evans @ 2004-06-14 10:40 UTC (permalink / raw)
Thanks to those that contributed.
Most people suggested putting an entry in /etc/aliases.
the second option was to create a .forward file in the home directory of
the user i.e. /
this could have multiple users on different lines. Although using a
mail group would be preferable in this circumstance.
option 3 was to "use a procmail rule (this allows selection and
filtering by subject, originator, or content and many other things"
--
Joe Evans,
Technical Services Manager,
Management Information Systems,
King's College London,
57 Waterloo Road,
London SE1 8WA
Telephone:020 7848 3774
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-06-14 10:40 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-06-14 10:40 SUMMARY: mail forwarding Joe Evans
-- strict thread matches above, loose matches on Subject: below --
2001-03-14 14:57 SUMMARY: Mail forwarding Gil Renard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox