gtwy ~ # emerge sendmail Calculating dependencies... done! !!! Error: the mail-mta/sendmail package conflicts with another package; !!! the two packages cannot be installed on the same system together. !!! Please use 'emerge --pretend' to determine blockers. For more information about Blocked Packages, please refer to the following section of the Gentoo Linux x86 Handbook (architecture is irrelevant): http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?full=1#blocked gtwy ~ # emerge --pretend sendmail These are the packages that would be merged, in order: Calculating dependencies... done! [blocks B ] mail-mta/sendmail (is blocking mail-mta/ssmtp-2.61-r2) [blocks B ] mail-mta/ssmtp (is blocking mail-mta/sendmail-8.14.0) [ebuild N ] mail-mta/sendmail-8.14.0 USE="ssl tcpd -ipv6 -ldap -mailwrapper -mbox -nis -sasl -sockets" [ebuild N ] mail-filter/procmail-3.22-r7 USE="-mbox (-selinux)" Reproducible: Always Steps to Reproduce: if you do not already have ssmtp or sendmail on your system: emerge sendmail Actual Results: [blocks B ] mail-mta/sendmail (is blocking mail-mta/ssmtp-2.61-r2) [blocks B ] mail-mta/ssmtp (is blocking mail-mta/sendmail-8.14.0) Expected Results: installed sendmail
Set USE=mailwrapper if you need both.
*** Bug 183363 has been marked as a duplicate of this bug. ***
(In reply to comment #1) > Set USE=mailwrapper if you need both. > hi, I'm running gentoo systems since years and always replaced ssmtp against sendmail without any problems... yesterday I installed a clean x86_64 gentoo-system (Intel C2D). My system also had the BLOCKER-problem. ssmtp/sendmail are blocking each other - only ssmpt can be emerged. Changing to sendmail (unmerging ssmtp, emerging sendmail) is not possible. Using the "mailwrapper" USE FLAG is not an option for me because I just want to install and run *one* MTA (in my case sendmail). During gentoo system installation ssmtp was emerged (as expected) as an dependency to "cron". Changing to "sendmail" afterwards does not work (see previously posted emerge blocker output!). Unmerging ssmtp with "emerge -C ssmtp" worked fine, but afterwards "emerge -v sendmail" again reports BLOCKING, although ssmtp has already been removed?!?! The only chance I had was: emerge -C ssmtp mv /usr/portage/mail-mta/ssmtp /tmp emerge -v sendmail mv /tmp/ssmtp /usr/portage/mail-mta In my opinion there still is something wrong regarding the dependencies of ssmtp and/or sendmail - could this be? Or is this an ARCH-depending problem (it's my first x86_64 installation)? Cheers Daniel
I have a similar problem in installing postfix and mailx on a fresh system. I am requested to install ssmtp each time even if I select to install sendmail at the same time :-( # emerge -pv sendmail mailx These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild N ] net-mail/mailbase-1 USE="pam" 0 kB [ebuild N ] mail-client/mailx-support-20060102-r1 9 kB [ebuild N ] net-libs/liblockfile-1.06-r2 32 kB [ebuild N ] mail-mta/ssmtp-2.61-r2 USE="ipv6 ssl -mailwrapper -md5sum" 53 kB [ebuild N ] mail-filter/procmail-3.22-r7 USE="-mbox (-selinux)" 222 kB [ebuild N ] mail-client/mailx-8.1.2.20050715-r1 129 kB [ebuild N ] mail-mta/sendmail-8.14.0 USE="ipv6 ssl tcpd -ldap -mailwrapper -mbox -nis -sasl -sockets" 2,009 kB [blocks B ] mail-mta/sendmail (is blocking mail-mta/ssmtp-2.61-r2) [blocks B ] mail-mta/ssmtp (is blocking mail-mta/sendmail-8.14.0) Total: 7 packages (7 new, 2 blocks), Size of downloads: 2,451 kB It's even the same if I select postfix too :-( # emerge -pv postfix mailx These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild N ] net-mail/mailbase-1 USE="pam" 0 kB [ebuild N ] dev-db/mysql-init-scripts-1.2 0 kB [ebuild N ] dev-libs/libpcre-7.3-r1 USE="-doc -unicode" 747 kB [ebuild NS ] sys-devel/automake-1.7.9-r1 565 kB [ebuild N ] mail-client/mailx-support-20060102-r1 9 kB [ebuild N ] net-libs/liblockfile-1.06-r2 32 kB [ebuild N ] dev-db/mysql-5.0.44 USE="big-tables ssl -berkdb -cluster -debug -embedded -extraengine -latin1 -max-idx-128 -minimal -perl (-selinux) -static" 23,869 kB [ebuild N ] mail-mta/ssmtp-2.61-r2 USE="ipv6 ssl -mailwrapper -md5sum" 53 kB [ebuild N ] virtual/mysql-5.0 0 kB [ebuild N ] mail-client/mailx-8.1.2.20050715-r1 129 kB [ebuild N ] net-libs/courier-authlib-0.58 USE="berkdb crypt mysql pam -debug -gdbm -ldap -postgres" 1,960 kB [ebuild N ] net-mail/courier-imap-4.0.6-r2 USE="berkdb ipv6 nls -debug -fam -gdbm (-selinux)" 3,084 kB [ebuild N ] dev-libs/cyrus-sasl-2.1.22-r2 USE="authdaemond crypt gdbm mysql pam ssl urandom (-berkdb) -java -kerberos -ldap -ntlm_unsupported_patch -postgres -sample -srp" 1,572 kB [ebuild N ] mail-mta/postfix-2.3.6 USE="hardened ipv6 mysql pam sasl ssl vda -cdb -dovecot-sasl -ldap -mailwrapper -mbox -nis -postgres (-selinux)" 2,727 kB [blocks B ] mail-mta/ssmtp (is blocking mail-mta/postfix-2.3.6) [blocks B ] mail-mta/postfix (is blocking mail-mta/ssmtp-2.61-r2) Total: 14 packages (13 new, 1 in new slot, 2 blocks), Size of downloads: 34,741 kB
(In reply to comment #3) - If you want multiple MTAs at the same time, you *must* have USE=mailwrapper set - If do *not* want multiple MTAs, unmerge ssmtp and emerge an MTA of your choice, with mailwrapper use flag *unset*. Emerge it directly, do *not* try to let it emerge as a virtual/mta dependency of another package or you'll hit Bug 1343. Any further questions should go to forums.g.o. or #gentoo IRC channel on Freenode, not here.
> - If do *not* want multiple MTAs, unmerge ssmtp and emerge an MTA of your > choice, with mailwrapper use flag *unset*. Emerge it directly, do *not* try to > let it emerge as a virtual/mta dependency of another package or you'll hit Bug > 1343. This is exactly what we are trying to do. If you have a virgin system with NO mta installed and emerge either postfix or sendmail you are REQUIRED to install ssmtp! Because portage has required you to install the package it blocks the one you want to install!
Yeah, cool... Now go, package.mask mail-mta/ssmtp if you don't want it and read Bug 1343 as referred to above. This bug is CLOSED.
I got this as a solution... emerge procmail emerge -C ssmtp emerge sendmail