[CentOS] sendmail alias
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.reini...@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 ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] sendmail alias
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: pepsi That 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 ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] sendmail alias
=?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 ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] sendmail alias
Kai Schaetzl schrieb: =?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? ;-) Because some coworkers messed up my alias file ... :-) And I was wondering if this setup will work. Cheers, Götz -- Götz Reinicke IT-Koordinator Tel. +49 7141 969 420 Fax +49 7141 969 55 420 E-Mail goetz.reini...@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 ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] sendmail alias
=?ISO-8859-1?Q?G=F6tz_Reinicke_-_IT-Koordinator?= wrote on Mon, 18 Jan 2010 15:49:35 +0100: Because some coworkers messed up my alias file I would certainly remove the quotation marks! A good time to talk about a policy who's allowed to make these changes ;-) You might also use Webmin for such tasks done by co-workers and allow only internal IP access. That would have also prevented wrong entries. Kai -- Get your web at Conactive Internet Services: http://www.conactive.com ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos