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
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 :-)
Stephen Harris schrieb:
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
:-) It must be monday ... I've looked up the warning (what I could have done before posting) and:
http://home.bolink.org/ebooks/networking/sendmail/ch24_04.htm
24.4.4 Duplicate Entries and Automation
Ordinarily, duplicate local names on the left-hand side of the colon in an alias file will result in an error. For example, consider this abstract from an aliases file:
staff: bob staff: george
Running newaliases on this file would produce the following error message and would cause the first entry to be ignored:
Warning: duplicate alias name george
/Götz
=?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
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
=?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
I install XAMPP in a server and know I want some binaries run as they were part of the system (I reaaly don't know if this correct). So I need that -pear- -pecl- and others run as:
#pear install [PACKAGE]
and not
#cd /path/to/pear/ && ./pear install [PACKAGE]
Same with rest
Best Regards
Saludos Fraternales _____________________________ Atte. Alberto García Gómez M:.M:. Administrador de Redes/Webmaster IPI "Carlos Marx", Matanzas. Cuba. 0145-2887(30-33) ext 124
From: Alberto García Gómez alberto@ipimtzcm.rimed.cu
I install XAMPP in a server and know I want some binaries run as they were part of the system (I reaaly don't know if this correct). So I need that -pear- -pecl- and others run as: #pear install [PACKAGE] and not #cd /path/to/pear/ && ./pear install [PACKAGE]
Add /path/to/bin to the PATH variable. See examples in /etc/profile.d/
JD
Thanks friend, but I don't what I supouse to do there...can you give me an example for this case:
# ./path/to/pear/pear
as
# pear
Thanks a lot
Saludos Fraternales _____________________________ Atte. Alberto García Gómez M:.M:. Administrador de Redes/Webmaster IPI "Carlos Marx", Matanzas. Cuba. 0145-2887(30-33) ext 124
----- Original Message ----- From: "John Doe" jdmls@yahoo.com To: "CentOS mailing list" centos@centos.org Sent: Monday, January 18, 2010 12:21 PM Subject: Re: [CentOS] About GLOBAL vars
From: Alberto García Gómez alberto@ipimtzcm.rimed.cu
I install XAMPP in a server and know I want some binaries run as they were part of the system (I reaaly don't know if this correct). So I need that -pear- -pecl- and others run as: #pear install [PACKAGE] and not #cd /path/to/pear/ && ./pear install [PACKAGE]
Add /path/to/bin to the PATH variable. See examples in /etc/profile.d/
JD
_______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
From: Alberto García Gómez alberto@ipimtzcm.rimed.cu
From: "John Doe"
Add /path/to/bin to the PATH variable. See examples in /etc/profile.d/ Thanks friend, but I don't what I supouse to do there...can you give me an example for this case: # ./path/to/pear/pear as # pear
Create /etc/profile.d/mypear.sh and put the line: export PATH=/path/to/pear:$PATH
JD
Am Montag, den 18.01.2010, 18:02 +0100 schrieb Alberto García Gómez:
I install XAMPP in a server and know I want some binaries run as they were part of the system (I reaaly don't know if this correct). So I need that -pear- -pecl- and others run as:
#pear install [PACKAGE]
and not
#cd /path/to/pear/ && ./pear install [PACKAGE]
Same with rest
Best Regards
Saludos Fraternales
1. Don't hijack threads (use reply and then change the topic) 2. use yum install software. See "yum list php-pear* php-pecl*"
Chris
financial.com AG
Munich head office/Hauptsitz München: Maria-Probst-Str. 19 | 80939 München | Germany Frankfurt branch office/Niederlassung Frankfurt: Messeturm | Friedrich-Ebert-Anlage 49 | 60327 Frankfurt | Germany Management board/Vorstand: Dr. Steffen Boehnert | Dr. Alexis Eisenhofer | Dr. Yann Samson | Matthias Wiederwach Supervisory board/Aufsichtsrat: Dr. Dr. Ernst zur Linden (chairman/Vorsitzender) Register court/Handelsregister: Munich – HRB 128 972 | Sales tax ID number/St.Nr.: DE205 370 553
Please don't hijack threads. If you want to ask something, then please use the "new message" button in your mail client and *not* the "reply" button. Thank you.
Kai