sendmail does not satisfy virtual/mta properly because ssmtp gets emerged after sendmail. Here is the basic problem: emerge unmerge ssmtp emerge sendmail <ssmtp gets reemerged?> emerge -e sendmail <ssmtp blocks sendmail>
Another part of the problem is that when ssmtp emerges it does this: >>> /usr/bin/newaliases -> /usr/sbin/ssmtp >>> /usr/bin/mailq -> /usr/sbin/ssmtp which overrides the sendmail commands.
emerge -p ssmtp These are the packages that I would merge, in order: Calculating dependencies ...done! [blocks B ] net-mail/sendmail ("virtual/mta" from pkg net-mail/ssmtp-2.48) [ebuild N ] net-mail/ssmtp-2.48 where's your problem ?
This bug got me also..... when installling a ebuild that required a virtual/mta it was installing a new mta to satisfy the depenicy killing my sendmail server. Ouch!
more /var/cache/edb/world | grep sendmail should print sendmail which portage version ?
I've got the same problem on a couple of boxen, covering MANY portage versions ( all for the last 4 months or so ). more /var/cache/edb/world | grep sendmail gives: net-mail/sendmail This behaviour ( ssmtp binary replacing sendmail binary ) caused MAJOR havoc here at work today as the sendmail build failed, and left me mailserver-less. Ouch!
Here is the problem: sting root # emerge -pv sendmail > where's your problem ? These are the packages that I would merge, in order: Calculating dependencies ...done! [ebuild N ] net-dns/hesiod-3.0.2 [ebuild N ] net-mail/sendmail-8.12.10 +ssl -ldap -sasl +berkdb -tcpd -gdbm -mbox [ebuild N ] net-mail/ssmtp-2.48 [ebuild N ] net-mail/procmail-3.22-r6 ------->%---- Notice how ssmtp emerges right after sendmail? That is the problem.
should be fixed, see bug #29499 for details