Christian Franke wrote:
Yaakov Selkowitz wrote:
Corinna, Christian, Daniel, Pierre,
Because MTAs must be user-configured, and we certainly don't want to
lose the selection during package upgrades, the alternatives cannot
be handled in package postinst/prerm. I think the only way to make
this work is for each MTA config script to handle these instead by
including the following snippets in the respective MTA config scripts.
Please review this carefully in case I missed anything.
...
postfix:
========
/usr/sbin/alternatives --install /usr/sbin/sendmail mta
/usr/sbin/postfix.exe 0 \
--slave /usr/lib/sendmail mta-sendmail /usr/sbin/postfix.exe \
--slave /usr/bin/mailq mta-mailq /usr/sbin/postfix.exe \
--slave /usr/bin/newaliases mta-newaliases /usr/sbin/postfix.exe
/usr/sbin/alternatives --set mta /usr/sbin/postfix.exe
"postfix" is the control program, there is a separate "sendmail"
command for sendmail emulation. Attached is the alternatives part of
the /etc/postinstall/postfix.sh from the current draft postfix
package. It also provides links for the related man pages.
Forgot to mention: This will be moved from postinstall to the configure
script as requested.
- MTA packaging (exim, postfix, sendmail, ssmtp) Yaakov Selkowitz
- Re: MTA packaging (exim, postfix, sendmail, ssmtp) Yaakov Selkowitz
- Re: MTA packaging (exim, postfix, sendmail, ssmtp) Corinna Vinschen
- RE: MTA packaging (exim, postfix, sendmail, ssmtp) Pierre A. Humblet
- Re: MTA packaging (exim, postfix, sendmail, ssmtp) D. Boland
- MTA packaging (exim, postfix, sendmail, ssmtp) Yaakov Selkowitz
- Re: MTA packaging (exim, postfix, sendmail, ssm... Christian Franke
- Re: MTA packaging (exim, postfix, sendmail,... Christian Franke
- Re: MTA packaging (exim, postfix, sendmail, ssm... Corinna Vinschen
- Re: MTA packaging (exim, postfix, sendmail, ssm... D. Boland