Bug#413968: clamsmtpd fails, error 451
Well, hard to say it's related without actually being able to reproduce the error, but this: add_clamav2group || true means that any errors from trying to add the clamav user to the clamsmtp group on package install are silently ignored. Probably better to propagate the error, then at least this bug report might be debuggable as a package failing to install, instead of a package failing to run. I can't see any overt reason why it should have failed, though, so I wonder if this bug should be downgraded regardless. -- Steve Langasek Give me a lever long enough and a Free OS Debian Developer to set it on, and I can move the world. [EMAIL PROTECTED] http://www.debian.org/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#413968: clamsmtpd fails, error 451
Steve Langasek [EMAIL PROTECTED] wrote: Well, hard to say it's related without actually being able to reproduce the error, but this: add_clamav2group || true means that any errors from trying to add the clamav user to the clamsmtp group on package install are silently ignored. Probably better to propagate the error, then at least this bug report might be debuggable as a package failing to install, instead of a package failing to run. I think this is a good idea. I wasn't real comfortable adding the || true to begin with, but saw other scripts that did this as precedence. Thanks for investigating. I can't see any overt reason why it should have failed, though, so I wonder if this bug should be downgraded regardless. I would have to agree here as well. I will downgrade to normal. Olaf had been sending me emails directly regard this bug report that I could forward to the queue. In any case, I'll take the || true off and upload the package today. -- Chad Walstrom [EMAIL PROTECTED] http://www.wookimus.net/ assert(expired(knowledge)); /* core dump */ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#413968: clamsmtpd fails, error 451
Olaf, With some friendly help and prodding from Steve Langeseck, I recognized some logic errors in the postinst script. Frankly, I am surprised no one ran into it earlier. Here's what I surmise was happening. 1. You had installed clamsmtp in the past. 2. You had removed the package with the --purge flag at some point. this removed the clamav user from the clamsmtp group. (NOTE: clamsmtp user and group had not been removed by the --purge.) 3. When you re-installed the package, the postinst script tested for the existence of the clamsmtp user and group. If it found them, it assumed that everything was fine and moved on to the fixperms portion of the script. This skipped the routines to add clamav to the clamsmtp group, adding clamsmtp to the aliases file, and fixing the config file. I've uploaded a new package that doesn't have these flaws. You do not need to re-install the package, as it sounds like you've worked out the bugs with your current installation. I'm not sure why you needed to specify the 127.0.0.1:10025 address in the OutAddress configuration directive. It could be an issue with ipv4 v.s. ipv6. Though, I'm not sure that's something I can handle in a postinst script. It would be possible to change the template config file to include it, however. If you could do some more testing on your platform to confirm this, I would appreciate it. As it doesn't relate to this bug, per se, you could open a new bug report. I know that reportbug isn't a required tool, but it does include some very helpful information regarding your installed environment, including architecture, debconf settings, and package dependencies. I would urge you to consider using it. Thanks! -- Chad Walstrom [EMAIL PROTECTED] http://www.wookimus.net/ assert(expired(knowledge)); /* core dump */ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#413968: clamsmtpd fails, error 451
On Fri, Mar 09, 2007 at 08:17:03AM +0100, Olaf Zaplinski wrote: uid=101(clamav) gid=101(clamav) groups=101(clamav) clamav should belong to clamsmtp. Run this as root: # adduser clamav clamsmtp # /etc/init.d/clamsmtpd stop # strace clamsmtpd 21 | tee clamsmtpd.strace.log The log file is attached also, it is all in one tgz file. I'll look at this in a moment. I do think it's your group permissions though. You say this is a clean install, not an upgrade? -- Chad Walstrom [EMAIL PROTECTED] http://www.wookimus.net/ assert(expired(knowledge)); /* core dump */ signature.asc Description: Digital signature
Bug#413968: clamsmtpd fails, error 451
Package: clamsmtp Maintainer: Chad Walstrom [EMAIL PROTECTED] Architecture: i386 Version: 1.8-1 Severity: grave result of fresh install: Mar 8 11:04:47 binky postfix/smtpd[14969]: connect from localhost[127.0.0.1] Mar 8 11:04:47 binky postfix/smtpd[14969]: ADCA5471D1A: client=mx1.bmcag.de[62.206.102.78] Mar 8 11:04:47 binky clamsmtpd: 10: clamav error: /var/spool/clamsmtp/clamsmtpd.f59cDl: lstat() failed. ERROR Mar 8 11:04:47 binky clamsmtpd: 10: from=[...], to=[...], status=CLAMAV-ERROR binky:~# l /var/spool/clamsmtp/ total 0 drwxr-x--- 2 clamsmtp clamsmtp 6 Mar 8 11:10 ./ drwxr-xr-x 8 root root 101 Mar 8 10:49 ../ so no permission problem. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#413968: clamsmtpd fails, error 451
Olaf Zaplinski [EMAIL PROTECTED] wrote: result of fresh install: Mar 8 11:04:47 binky postfix/smtpd[14969]: connect from localhost[127.0.0.1] Mar 8 11:04:47 binky postfix/smtpd[14969]: ADCA5471D1A: client=mx1.bmcag.de[62.206.102.78] Mar 8 11:04:47 binky clamsmtpd: 10: clamav error: /var/spool/clamsmtp/clamsmtpd.f59cDl: lstat() failed. ERROR Mar 8 11:04:47 binky clamsmtpd: 10: from=[...], to=[...], status=CLAMAV-ERROR binky:~# l /var/spool/clamsmtp/ total 0 drwxr-x--- 2 clamsmtp clamsmtp 6 Mar 8 11:10 ./ drwxr-xr-x 8 root root 101 Mar 8 10:49 ../ so no permission problem. Could you check a few things? 1) How much space do you have under /var or /var/spool. 2) Could you send a copy of your configuration file with the bug report. 3) Are you sure that the clamav user is part of the clamsmtp group? (run id -a clamav) You should see something like: uid=108(clamav) gid=108(clamav) groups=108(clamav),115(clamsmtp) Finally, could you run this as root? # /etc/init.d/clamsmtpd stop # strace clamsmtpd 21 | tee clamsmtpd.strace.log Send an email, then compress the log and send it to me directly? My guess is that you have a permissions problem with clamav (clamd). Additionally, you can use a clamd.conf file to boost logging to the clamav-daemon application (clamd). -- Chad Walstrom [EMAIL PROTECTED] http://www.wookimus.net/ assert(expired(knowledge)); /* core dump */ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]