Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 268010 - net-mail/vchkuser-0.3.1: chmod for vchkuser executable not correct after installation
Summary: net-mail/vchkuser-0.3.1: chmod for vchkuser executable not correct after inst...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: High critical
Assignee: Qmail Team (OBSOLETE)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-30 16:01 UTC by Nicolas GRIMLER
Modified: 2009-07-05 20:16 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nicolas GRIMLER 2009-04-30 16:01:07 UTC
After emerging vchkuser and configured in the smtpplugins configuration file of QMail, no mails can be recieved with error 'no such recipient' in logs and sender recieve a mailer-daemon error message.

Reproducible: Always

Steps to Reproduce:
1. emerge net-mail/vchkuser (actual version in portage: 0.3.1)
2. configure /var/qmail/control/smtpplugins to enable vchkuser in [rcpt] section
3. restart QMail with /etc/init.d/svscan restart

Actual Results:  
After emailing the author (Benedikt Böhm) about this problem he recommend me to change permissions to setuid vchkuser executable.
Changing with 'chmod 4750 vchkuser' solve the problem.

Expected Results:  
When recieving an email, the QMail process pass the rcpt-to header to vchkuser for verification against the vpopmail user database. If user found then the message is delivred otherwise and error is thrown saying that no such user can be found on the mail server.

When tested manually with command: 'SMTPRCPTTO=<user@domain.tld> ./vchkuser', with a valid address passed to SMTPRCPTTO, logs show 'vchkuser[xxxx]: <user@domain.tld> exists (vuserinfo)'

This is the author response to my email:

From : Benedikt Böhm [mailto:xx@xxxx] 
Sent : thursday 30 april 2009 09:22
To : Nicolas GRIMLER
Subject : Re: Bug in vchkuser qmail-spp plugin ?!

Hi Nicolas,

did you do chmod 4750
/var/qmail/plugins/vchkuser? i think it is not
mentioned anywhere, maybe i should add a note to the readme ;)

Bene

-----
In the README.rst file included in the source package it is mentionned that vchkuser is a setuid program and need to use vpopmail user and qmail group.
Comment 1 Benedikt Böhm (RETIRED) gentoo-dev 2009-07-05 20:16:28 UTC
the ebuild does the correct thing now