Wie bekomme ich `mail` auf einem CentOS 6 Server (läuft mit Postfix)

17964
warren

Auf meinem alten Server und auf den meisten anderen Geräten, die ich ausgeführt habe, befindet sich ein mailProgramm.

Auf meinem neuen CentOS 6-Server, der Postfix als MTA ausführt, kann ich keine Befehlszeilen-E-Mail senden mail- das Tool ist nicht vorhanden.

Bei einem yum whatprovides mailAnruf bekomme ich nichts hilfreiches zurück:

$ yum whatprovides mail Loaded plugins: fastestmirror Determining fastest mirrors * base: centos.kiewel-online.ch * extras: centos.kiewel-online.ch * updates: centos.kiewel-online.ch base | 3.7 kB 00:00 base/primary_db | 4.2 MB 00:00 cr | 3.5 kB 00:00 cr/primary_db | 3.9 MB 00:00 extras | 3.0 kB 00:00 extras/primary_db | 1.9 kB 00:00 updates | 3.5 kB 00:00 updates/primary_db | 3.3 MB 00:00 Warning: 3.0.x versions of yum would erroneously match against filenames. You can use "*/mail" and/or "*bin/mail" to get that behaviour No Matches found 

Wie sollen User-to-User-Mails auf CentOS 6 versendet werden?

3

1 Antwort auf die Frage

9
Garrett

In CentOS, this binary is provided by the mailx package:

yum install mailx 

FYI, as the message at the bottom of your post indicates, you are using whatprovides incorrectly. Proper usage searching mirrors for a file called 'mail' would have been:

yum whatprovides */mail 
Ich wusste nicht, dass ich das, was bietet, falsch läuft - so haben Sie es bei älteren Ausgaben von `yum` gemacht :) warren vor 12 Jahren 0
"yum whatprovides * / mail" oder "yum whatprovides * bin / mail"? vor 11 Jahren 0