-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Package: xmail Version: 1.25-4
Hello, I tried to install xmail (on some virtual machine with very little infrastructure), and it bombed on me: ===== # aptitude install xmail Reading package lists... Done Building dependency tree Reading state information... Done Reading extended state information Initializing package states... Done The following NEW packages will be installed: xmail 0 packages upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 0B/240kB of archives. After unpacking 643kB will be used. Writing extended state information... Done Preconfiguring packages ... Selecting previously deselected package xmail. (Reading database ... 11673 files and directories currently installed.) Unpacking xmail (from .../archives/xmail_1.25-4_i386.deb) ... Processing triggers for man-db ... Setting up xmail (1.25-4) ... I: Creating generic self-signed certificates. I: (replace with hand-crafted or authorized one if needed). hostname: Unknown host dpkg: error processing xmail (--configure): subprocess post-installation script returned error exit status 1 Errors were encountered while processing: xmail E: Sub-process /usr/bin/dpkg returned an error code (1) A package failed to install. Trying to recover: Setting up xmail (1.25-4) ... ln: creating symbolic link `/var/lib/xmail/aliasdomain.tab': File exists ln: creating symbolic link `/var/lib/xmail/aliases.tab': File exists ln: creating symbolic link `/var/lib/xmail/ctrl.ipmap.tab': File exists ln: creating symbolic link `/var/lib/xmail/ctrlaccounts.tab': File exists ln: creating symbolic link `/var/lib/xmail/domains.tab': File exists ln: creating symbolic link `/var/lib/xmail/extaliases.tab': File exists ln: creating symbolic link `/var/lib/xmail/filters.in.tab': File exists ln: creating symbolic link `/var/lib/xmail/filters.out.tab': File exists ln: creating symbolic link `/var/lib/xmail/filters.post-data.tab': File exists ln: creating symbolic link `/var/lib/xmail/filters.post-rcpt.tab': File exists ln: creating symbolic link `/var/lib/xmail/filters.pre-data.tab': File exists ln: creating symbolic link `/var/lib/xmail/finger.ipmap.tab': File exists ln: creating symbolic link `/var/lib/xmail/mailusers.tab': File exists ln: creating symbolic link `/var/lib/xmail/pop3.ipmap.tab': File exists ln: creating symbolic link `/var/lib/xmail/pop3links.tab': File exists ln: creating symbolic link `/var/lib/xmail/server.tab': File exists ln: creating symbolic link `/var/lib/xmail/smtp.ipmap.tab': File exists ln: creating symbolic link `/var/lib/xmail/smtp.ipprop.tab': File exists ln: creating symbolic link `/var/lib/xmail/smtpauth.tab': File exists ln: creating symbolic link `/var/lib/xmail/smtpextauth.tab': File exists ln: creating symbolic link `/var/lib/xmail/smtpfwd.tab': File exists ln: creating symbolic link `/var/lib/xmail/smtpgw.tab': File exists ln: creating symbolic link `/var/lib/xmail/smtprelay.tab': File exists ln: creating symbolic link `/var/lib/xmail/spam-address.tab': File exists ln: creating symbolic link `/var/lib/xmail/spammers.tab': File exists ln: creating symbolic link `/var/lib/xmail/userdef.tab': File exists dpkg: error processing xmail (--configure): subprocess post-installation script returned error exit status 1 Errors were encountered while processing: xmail Reading package lists... Done Building dependency tree Reading state information... Done Reading extended state information Initializing package states... Done Writing extended state information... Done ===== Second try: I added some line of the sort NNN.NNN.NNN.NNN name.full.domain name to /etc/hosts and, for good luck, also the same FQDN to /etc/mailname. Now, aptitude purge xmail && aptitude install xmail did not get me going yet. I added a "-f" to the "ln" command that kept failing on me (same as seen above), and also added a "set -x", both to /var/lib/dpkg/info/xmail.postinst . This failed, this time while trying to fire CtrlClnt against a system where xmail isn't running: ===== ... + read -r _db_internal_line + RET= + case ${_db_internal_line%%[ ]*} in + return 0 + redirect= + '[' /etc/mailname = /etc/mailname ']' + '[' -f /etc/mailname ']' ++ cat /etc/mailname + domainname=approx.famsik.de + cat + '[' -f /etc/xmail/default_domain ']' + old_domain=xmailserver.test + echo 'I: Adding new domain.' I: Adding new domain. ++ CtrlClnt -s localhost -u debian -p debian domainlist approx.famsik.de ErrCode = -152 ErrString = End of socket stream data + EXISTS_D= ===== I had another look at the script. Whether xmail runs or doesn't seems to be judged by the existence of some subdirectory of /var/lib/xmail/spool. (Hm. If the first attempt only got so far and collapsed, e.g., through a server crash at just the "right" moment?) I tried deleted /var/lib/xmail/spool. Sure enough, this ran into an endless loop waiting for xmail to start running: ===== + ln -sf /etc/xmail/dnsroots /var/lib/xmail + chmod 711 /var/lib/xmail + chmod 711 /var/spool/xmail + chmod 711 /var/spool/xmail/spool + chmod 770 /var/spool/xmail/spool/local + chown root:mail /var/spool/xmail/spool/local + chmod 770 /var/spool/xmail/spool/temp + chown root:mail /var/spool/xmail/spool/temp + chmod 700 /var/cache/xmail + SSL_CERT=/var/lib/xmail/server.cert + SSL_KEY=/var/lib/xmail/server.key + '[' '!' -f /var/lib/xmail/server.cert ']' + chmod +t /var/spool/xmail/spool/temp + chmod +t /var/spool/xmail/spool/local + dpkg-statoverride --force --update --add root mail 2555 /var/lib/xmail/sendmail/xsendmail An override for "/var/lib/xmail/sendmail/xsendmail" already exists, but --force specified so will be ignored. + '[' -x /etc/init.d/xmail ']' + update-rc.d xmail defaults ++ which invoke-rc.d + '[' -x /usr/sbin/invoke-rc.d ']' + invoke-rc.d xmail start Starting XMail server: XMail. + '[' configure = configure ']' + '[' '!' -f /var/run/XMail.pid ']' + '[' -z '' ']' + '[' '!' -d /var/lib/xmail/spool/22/22/ ']' + sleep 1 + '[' '!' -d /var/lib/xmail/spool/22/22/ ']' + sleep 1 + '[' '!' -d /var/lib/xmail/spool/22/22/ ']' + sleep 1 + '[' '!' -d /var/lib/xmail/spool/22/22/ ']' and many more of these. ===== At this point, I forced xmail to be started via /etc/init.d. This got me out of the endless loop, but now ==== ... + printf '%s\n' 'GET xmail/redirect' + IFS=' ' + read -r _db_internal_line + RET= + case ${_db_internal_line%%[ ]*} in + return 0 + redirect= + '[' /etc/mailname = /etc/mailname ']' + '[' -f /etc/mailname ']' ++ cat /etc/mailname + domainname=approx.famsik.de + cat + '[' -f /etc/xmail/default_domain ']' + old_domain=xmailserver.test + echo 'I: Adding new domain.' I: Adding new domain. ++ CtrlClnt -s localhost -u debian -p debian domainlist approx.famsik.de ErrCode = -152 ErrString = End of socket stream data + EXISTS_D= dpkg: error processing xmail (--configure): subprocess post-installation script returned error exit status 4 Errors were encountered while processing: xmail Reading package lists... Done Building dependency tree Reading state information... Done Reading extended state information Initializing package states... Done ==== Best regards, and thank you for providing fine software, Andreas Krüger -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkp7cWAACgkQnWrlKaIH40CzUgCgntU9gyef0fz27vnj14494N+D cz8An0qiYZ/Zyx/h99PNoH1Si71UdUVZ =jKgv -----END PGP SIGNATURE----- -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org