Hello, Marc Haber wrote: > On Thu, Feb 28, 2008 at 03:07:09PM +0100, Stefan Alfredsson wrote: >> Snoopy seems to be incompatible with the nullmailer package. >> When running nullmailer in daemon mode, it normally uses fd 4 for socket >> communication. With snoopy installed, nullmailer uses fd 0. fd 0 is >> normally used to read the mail to deliver, and this collision seem to >> cause problems. However, running /usr/sbin/nullmailer-send works fine. >> >> This can be debugged by running >> strace -f /usr/sbin/nullmailer-send -d >> compared to >> strace -f /usr/sbin/nullmailer-send >> >> If this can not be fixed, I suggest the postinst do a check for an >> installed nullmailer package and issue a warning if so. > > Can you please give a more replicable example about what nullmailer > should do, and what it doesn't do with snoopy installed? > Unfortunately, I do not seem to understand the report.
Sure, sorry for being unclear. In short, when snoopy is installed, nullmailer is not working. Here is an example to illustrate: (apt-get install nullmailer) normal functioning: [EMAIL PROTECTED]:~> mail [EMAIL PROTECTED] Subject: test testing . Cc: [EMAIL PROTECTED]:~> sudo su host:/home/alfs# mailq host:/home/alfs# find /var/spool/nullmailer/queue/ /var/spool/nullmailer/queue/ host:/home/alfs# (Nothing is in the queue, since the mail has been delivered. As it should be) host:/home/alfs# tail /var/log/mail.log Mar 16 03:39:09 host nullmailer[17355]: Trigger pulled. Mar 16 03:39:09 host nullmailer[17355]: Rescanning queue. Mar 16 03:39:09 host nullmailer[17355]: Starting delivery: protocol: smtp host: smtp.bredband.net file: 1205635149.17389 Mar 16 03:39:10 host nullmailer[17390]: smtp: Succeeded: 250 ok: Message 347409217 accepted Mar 16 03:39:10 host nullmailer[17355]: Sent file. Mar 16 03:39:10 host nullmailer[17355]: Delivery complete, 0 message(s) remain. Mar 16 03:39:10 host nullmailer[17355]: Trigger pulled. Mar 16 03:39:10 host nullmailer[17355]: Rescanning queue. (logs indicate that the message has been sent. All OK) Problem when snoopy is installed: --------------------------------- host:~# apt-get install snoopy Reading package lists... Done Building dependency tree Reading state information... Done The following NEW packages will be installed: snoopy 0 upgraded, 1 newly installed, 0 to remove and 719 not upgraded. Need to get 0B/10,5kB of archives. After unpacking 106kB of additional disk space will be used. debconf: delaying package configuration, since apt-utils is not installed Selecting previously deselected package snoopy. (Reading database ... 47517 files and directories currently installed.) Unpacking snoopy (from .../snoopy_1.3-13_i386.deb) ... Setting up snoopy (1.3-13) ... host:~# /etc/init.d/nullmailer restart Stopping mail-transfer-agent: nullmailer. Starting mail-transfer-agent: nullmailer. host:~# exit [EMAIL PROTECTED]:~> mail [EMAIL PROTECTED] Subject: test2 testing 2 . Cc: [EMAIL PROTECTED]:~> sudo su host:/home/alfs# mailq 2008-03-16 03:42:07 305 bytes from <[EMAIL PROTECTED]> to <[EMAIL PROTECTED]> (a mail is in the queue) host:/home/alfs# host:/home/alfs# find /var/spool/nullmailer/queue/ /var/spool/nullmailer/queue/ /var/spool/nullmailer/queue/1205635327.17842 host:/home/alfs# (double check that it is in the nullmailer queue) (wait for some minutes) host:/home/alfs# tail /var/log/mail.log Mar 16 03:42:07 host nullmailer[17829]: Trigger pulled. Mar 16 03:42:07 host nullmailer[17829]: Rescanning queue. Mar 16 03:42:07 host nullmailer[17829]: Starting delivery: protocol: smtp host: smtp.bredband.net file: 1205635327.17842 Mar 16 03:47:07 host nullmailer[17843]: smtp: Failed: Mar 16 03:47:07 host nullmailer[17829]: Sending failed: Protocol error (problem to deliver email, still in queue) (Now, removing snoopy, the mail gets delivered:) host:/home/alfs# mailq 2008-03-16 03:42:07 305 bytes from <[EMAIL PROTECTED]> to <[EMAIL PROTECTED]> host:/home/alfs# apt-get remove snoopy Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: ld.so.preload-manager Use 'apt-get autoremove' to remove them. The following packages will be REMOVED: snoopy 0 upgraded, 0 newly installed, 1 to remove and 719 not upgraded. Need to get 0B of archives. After unpacking 106kB disk space will be freed. Do you want to continue [Y/n]? (Reading database ... 47525 files and directories currently installed.) Removing snoopy ... /etc/ld.so.preload removed. /lib/snoopy.so removed from /etc/ld.so.preload host:/home/alfs# mailq 2008-03-16 03:42:07 305 bytes from <[EMAIL PROTECTED]> to <[EMAIL PROTECTED]> host:/home/alfs# /etc/init.d/nullmailer restart Stopping mail-transfer-agent: nullmailer. Starting mail-transfer-agent: nullmailer. host:/home/alfs# mailq host:/home/alfs# (queue is now empty) host:/home/alfs# tail /var/log/mail.log ... Mar 16 03:48:57 host nullmailer[17973]: Rescanning queue. Mar 16 03:48:57 host nullmailer[17973]: Starting delivery: protocol: smtp host: smtp.bredband.net file: 1205635327.17842 Mar 16 03:48:57 host nullmailer[17974]: smtp: Succeeded: 250 ok: Message 374594676 accepted Mar 16 03:48:57 host nullmailer[17973]: Sent file. Mar 16 03:48:57 host nullmailer[17973]: Delivery complete, 0 message(s) remain. (mail has been delivered). So, when snoopy is installed, nullmailer does not work. Regards, Stefan