Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 300329 - mail-filter/maildrop is not working apparently because of socket problem
Summary: mail-filter/maildrop is not working apparently because of socket problem
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Net-Mail Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-09 20:17 UTC by Karlis.Repsons
Modified: 2011-05-27 14:28 UTC (History)
0 users

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 Karlis.Repsons 2010-01-09 20:17:33 UTC
Tried using maildrop with postfix as described in the second part of [1], but it failed. strace showed me "connect(3, {sa_family=AF_FILE, path="/var/lib/courier/authdaemon/socket"...}, 110) = -1 ENOENT (No such file or directory)". Then I tried to copy another socket with name "socket", but it failed with "connect(3, {sa_family=AF_FILE, path="/var/lib/courier/authdaemon/socket"...}, 110) = -1 ECONNREFUSED (Connection refused)". I'm confused about this, what is wrong? As sockets can't be created as easy as pipes, I presume, there is more "wrong" than just a missing file...  

And that is not all! If I use emerge, I see "mail-filter/maildrop-2.2.0", but when I later run $ maildrop -v, I get this: "maildrop 2.1.0"!

[1] http://www.postfix.org/MAILDROP_README.html

Reproducible: Always

Steps to Reproduce:
1.emerge mail-filter/maildrop-2.2.0
2.strace maildrop -d myusername
3.maildrop -v

Actual Results:  
Postfix says: status=deferred (temporary failure. Command output: ERR: authdaemon: s_connect() failed: No such file or directory /usr/bin/maildrop: Temporary authentication failure.)

and 

status=deferred (temporary failure. Command output: ERR: authdaemon: s_connect() failed: Connection refused /usr/bin/maildrop: Temporary authentication failure. )

Also see the strace errors!

Expected Results:  
Mail delivery as expected in [1]!
Comment 1 Karlis.Repsons 2010-01-11 09:23:58 UTC
Indeed, things are not allright with that package -- these USE flags were used:
mail-filter/maildrop-2.2.0  USE="gdbm mysql -authlib -berkdb -debug -fam -ldap -postgres", but anyway, I got /etc/init.d/courier-authlib along with all the further unneeded trouble with mysql. Looks like I'll install maildrop manually.

Or I terribly misunderstand something?
Comment 2 Karlis.Repsons 2010-01-11 11:10:25 UTC
Perhaps the ebuild author forgot to take this into account:
"      If the configure script detects that the Courier Authentication
       Library is installed, support for courier-authlib gets automatically
       compiled. Use the --disable-authlib option to manually disable      
       courier-authlib support."
as stated in maildrop INSTALL file? So, somehow there was that library installed, USE flag denied building support for it, but still it was built!
Comment 3 Torsten Veller (RETIRED) gentoo-dev 2010-01-11 11:48:20 UTC
(In reply to comment #1)
> mail-filter/maildrop-2.2.0  USE="gdbm mysql -authlib -berkdb -debug -fam -ldap
> -postgres", 

If you set USE=mysql, you'll get courier-authlib.
Comment 4 Karlis.Repsons 2010-01-11 12:19:10 UTC
Thanks, I didn't realize that. But is there any point to have mysql, but not authlib in the same time? I mean, maybe there is a useflag conflict in my situation. Also that about version differences seem a valid problem.
Comment 5 Eray Aslan gentoo-dev 2011-05-27 14:28:03 UTC
Fixed in mail-filter/maildrop-2.5.4.