From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96078620310510.tru64-unix-managers.marc@archive.invalid> From: Andy Townsend Date: Wed, 17 Dec 1997 15:27:51 +0000 To: tru64-unix-managers Subject: Summary: Mail aliases and DU X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96078620310510 Dear all, Warm thanks to those who responded to my question so rapidly: Dan Hubbard Dr. Tom Blinn Burch Seymour RTPS Steve VanDevender Juan Gallego Hugh Pritchard Arpad B. Palotas John F. Marten Matt J. L. Goebel Len Senetza mortimer@physics.uq.edu.au Matt Moore Robert L. McMillin Tom Smith Lucio Chiappetti Anthony Holloway Dan Roscigno Here is the original posting: --- Good afternoon all, Due to the buffer overflow problem we have disabled POP mail for users outside of our site. Some people would like to be able to access their mail using Eudora from their homes. Therefore, I am trying to set up sendmail 8.8.8 to send two copies of each mail message to mail recipients; one to their local network account and one to their home ISP accounts. I see that the aliases file can only contain local mailboxes. And, I don't want to use .forward as I would like the users to receive their mail both on-site and from home. Is this possible? If so, how is it accomplished? The mail server is an Alpha running Dunix 4.0b. Thanks, and I'll summarize, Andy Townsend University of Maryland - Horn Point Laboratory townsend@hpl.umces.edu (410) 221-8487 --- The overwhelming response was that this was possible to accomplish through the aliases file. The syntax I had tried was incorrect, and I had misread the man pages for aliases. First some excerpts of what I received and then what I did: > In the Rand Mail Handler software (MH), there is a utility called slocal that can do ingenious things. See the reference page. It's much easier to do this with something that runs in user context than trying to get sendmail to do it. > Take a look at procmail. I do this all the time with that... source is on ftp.informatik.rwth-aachen.de The recipe in my ~/.procmailrc file is: # # Forward all mail from me to me AND my popmail account # :0 ! rlm-pop > Re duplicate mail: About duplicating mail for somebody into an office account and an home account, we had bad experience for one of our users who asked for that. He read mails from home, and did not read the same mails again from office, therefore they remained there cluttering his inbox. Our arrangement is that users with a workstation have mail delivered directly to that. Since most workstations are for personal use, it is not a problem if they keep mail ("in evidence") in the inbox or move it to folders under their login directory. For PC users incoming mail is stored on /var/spool on a server. We run imapd and they use PC-Pine (which most but not all Unix users use as well) and a .pinerc configuration such that read mail is transferred to their PC disk. The problem is with the few users not using an imap client. > The solution that I chose: Have you tried putting the following TWO lines in the user's .forward file: \user user@home.isp.com After doing that I ran newaliases and everything worked perfectly. The "\" before "user" prevents a local mail loop. Thanks again for your attention and responses! IMHO this list contains the most helpful group of people I have ever "met". Andy Townsend