Hi, how are mails forwarded, if I do have the same alias pointing to two different users like this (two entries, two lines): bon.aqua: coke bon.aqua: pepsi Will coke and pepsi get the mail adressed to bon.aqua or will only the first entry get the mail? I know, that "bon.aqua: coke, pepsi" will forward the mails to coke and pepsi, Cheers, G?tz -- G?tz Reinicke IT-Koordinator Tel. +49 7141 969 420 Fax +49 7141 969 55 420 E-Mail goetz.reinicke at filmakademie.de Filmakademie Baden-W?rttemberg GmbH Akademiehof 10 71638 Ludwigsburg www.filmakademie.de Eintragung Amtsgericht Stuttgart HRB 205016 Vorsitzende des Aufsichtsrats: Prof. Dr. Claudia H?bner Staatsr?tin f?r Demographischen Wandel und f?r Senioren im Staatsministerium Gesch?ftsf?hrer: Prof. Thomas Schadt
On Mon, Jan 18, 2010 at 02:39:37PM +0100, G?tz Reinicke - IT-Koordinator wrote:> how are mails forwarded, if I do have the same alias pointing to two > different users like this (two entries, two lines): > > bon.aqua: coke > bon.aqua: pepsiThat will not work.> Will coke and pepsi get the mail adressed to bon.aqua or will only the > first entry get the mail?You'll get a warning message $ grep testme /etc/aliases testme: user1 testme: user2 $ newaliases /etc/aliases: line 105: testme... Warning: duplicate alias name testme /etc/aliases: 80 aliases, longest 10 bytes, 812 bytes total I think the second entry will get the mail; aliases are stored as db or dbm files, and so only have one value per key. Sendmail doesn't merge keys. (At least looking at the resulting DB file I only see "user2" in the file).> I know, that "bon.aqua: coke, pepsi" will forward the mails to coke and > pepsi,That is the correct format. Use it :-) -- rgds Stephen
=?ISO-8859-15?Q?G=F6tz_Reinicke_-_IT-Koordinator?= wrote on Mon, 18 Jan 2010 14:39:37 +0100:> how are mails forwarded, if I do have the same alias pointing to two > different users like this (two entries, two lines): > > bon.aqua: coke > bon.aqua: pepsi > > Will coke and pepsi get the mail adressed to bon.aqua or will only the > first entry get the mail?Only one will get used, don't remember if the first or the last. I think it is the first.> > I know, that "bon.aqua: coke, pepsi" will forward the mails to coke and > pepsi,So, why ask? ;-) Kai -- Get your web at Conactive Internet Services: http://www.conactive.com