Date: Fri, 22 Feb 2002 15:09:41 -0500 From: "Morse, Richard E." <REMORSE@PARTNERS.ORG> To: 'Danny Horne' <danny@clifftop.net>, Lord Raiden <raiden23@netzero.net>, freebsd-questions@FreeBSD.ORG Subject: RE: mail aliasing/forwards Message-ID: <375F68784081D511908A00508BE3BB17DDDBCB@phsexch22.mgh.harvard.edu>
next in thread | raw e-mail | index | archive | help
Hi! One correction to this suggestion -- you need to tell Sendmail to not expand the original username. In the example below, the .forward file in the users home directory would contain the following line: ----------------------------------Start of file: \user1, user2@otherdomain.com, user3@yetanotherdomain.com ----------------------------------End of file. by putting the '\' in front of the user1, you tell sendmail to stop looking up this alias in the aliases file, and instead treat it as an actual users to deliver to. HTH, Ricky -----Original Message----- From: Danny Horne [mailto:danny@clifftop.net] Sent: Friday 22 February 2002 2:54 PM To: Lord Raiden; freebsd-questions@FreeBSD.ORG Subject: RE: mail aliasing/forwards > -----Original Message----- > From: owner-freebsd-questions@FreeBSD.ORG > [mailto:owner-freebsd-questions@FreeBSD.ORG]On Behalf Of Lord Raiden > Sent: Friday 22 February 2002 7:53pm > To: freebsd-questions@FreeBSD.ORG > Subject: mail aliasing/forwards > > > (sigh) Users these days. These guys are keeping me on my > feet. Ok, > here's my dilemma. I've got a user who wants all of their mail that goes > into account 1 to automatically forward to two other accounts. So, for > example, if someone send mail to "user1@domain.com" the email is > delivered > to "user1@domain.com" as well as "user2@otherdomain.com" and > "user3@yetanotherdomain.com". > > The part that worries me is if this will cause an infinite > loop in the > mail system, which I want to avoid with a passion. Is this > possible to do, > and if so, how? I've looked at the mail aliases file and I don't see > anything that resembles what I'm trying to do. I'm guessing that to send > it to more than one person you would put either commas or semi colons > between each of the addresses. But like I said, before I screwed > anything > up I wanted to find out the correct way to do this first. Thanks. > If you're using Sendmail create a .forward file in user1's home directory & enter all three email addresses on seperate lines, that should do it without causing a loop. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?375F68784081D511908A00508BE3BB17DDDBCB>