- You have to use a portage overlay tree. If you don't know what this is you probably don't have one. It's easy to create and will not damage anything in your system or other ebuilds.
- Edit your /etc/make.conf and set PORTDIR_OVERLAY to a path of your choice, normally /usr/local/portage
- Create this directory
- Go to you overlay directory and create two directories:
mkdir -p dev-libs/libowfat/ mail-mta/qsmtp
- Put libowfat-0.24.ebuild into dev-libs/libowfat/ and qsmtp-0.11.ebuild in mail-mta/qsmtp/. Create the digest for it:
ebuild dev-libs/libowfat/libowfat-0.24.ebuild digest
ebuild mail-mta/qsmtp/qsmtp-0.11.ebuild digest
- The MD5 sum of the files can be found in the file Manifest in this two directories. The MD5 sums are c8b111456ee1513cbee7c74984c25fdf for libowfat-0.24.ebuild and d71b5e682517696a40ef1b834783c577 for qsmtp-0.11.ebuild.
- You have to unmask this two packages, they are only available in ~arch. Your arch is something like x86 or x86-64 (I also successfully used this one on hppa, but there should be no problems on others archs).
echo dev-libs/libowfat ~ARCH >> /etc/portage/package.keywords
echo mail-mta/qsmtp ~ARCH >> /etc/portage/package.keywords
- Now emerge Qsmtp:
emerge -at qsmtp
Normally you should get two packages, libowfat and qsmtp. If you don't have qmail installed already you will get tons more.
- Change the boot skript of qmail-smtpd to use /var/qmail/bin/Qsmtpd instead
- Use Qremote for sending mail:
mv /var/qmail/bin/qmail-remote /var/qmail/bin/qmail-remote.orig
ln -s /var/qmail/bin/Qremote /var/qmail/bin/qmail-remote