Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] qmail does not allow auth from virtual domains
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Deathwing00
Bodhisattva
Bodhisattva


Joined: 13 Jun 2003
Posts: 4087
Location: Dresden, Germany

PostPosted: Sun Oct 14, 2007 2:03 am    Post subject: [SOLVED] qmail does not allow auth from virtual domains Reply with quote

Hey fellows,

I have a very annoying issue here. We have migrated a qmail server from Suse to Gentoo. Unfortunately, looks like the virtual domains do not work correctly.

If I use local users, authentication works; however, on the virtual domain nothing works, it always fails. See below:


Code:
# telnet localhost 110
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
+OK <6295.1192327124@mail2.virtualdomain.net>
user iaslanidis
+OK
pass **********
-ERR unable to scan $HOME/Maildir
Connection closed by foreign host.


This is fine, it's a local user. However:

Code:
# telnet localhost 110
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
+OK <6312.1192327157@mail2.virtualdomain.net>
user iaslanidis@virtualdomain.net
+OK
pass ***********
-ERR authorization failed
Connection closed by foreign host.


I recall that there was some kind of change with the authentication prgram, is that maybe the issue?

The logs do not display anything unusual:

Code:
@40000000471177de37584bfc tcpserver: status: 1/30
@40000000471177de37585f84 tcpserver: pid 6295 from 127.0.0.1
@40000000471177de39522be4 tcpserver: ok 6295 :::ffff:127.0.0.1:110 :::ffff:127.0.0.1::44035
@40000000471177ec2e277bac tcpserver: end 6295 status 256
@40000000471177ec2e278b4c tcpserver: status: 0/30
@40000000471177ff209d1d0c tcpserver: status: 1/30
@40000000471177ff209d347c tcpserver: pid 6312 from 127.0.0.1
@40000000471177ff22896c4c tcpserver: ok 6312 :::ffff:127.0.0.1:110 :::ffff:127.0.0.1::47389
@400000004711780e0090090c tcpserver: end 6312 status 256
@400000004711780e00901c94 tcpserver: status: 0/30



Could anyone try to help out on doing a simple example of how to configure qmail with vpopmail (without mysql), e.g. configuration files, scripts and so on? I'm very confused about all this issue.

Thanks for your help!!!


Last edited by Deathwing00 on Mon Oct 15, 2007 2:30 pm; edited 1 time in total
Back to top
View user's profile Send private message
Deathwing00
Bodhisattva
Bodhisattva


Joined: 13 Jun 2003
Posts: 4087
Location: Dresden, Germany

PostPosted: Sun Oct 14, 2007 3:06 pm    Post subject: Reply with quote

Additional informatin when trying to authenticate against SMTP server:

Quote:

auth login
334 VXNlcm5hbWU6
aWFzbGFuaWRpc0B0YW5nbzA0Lm5ldA
334 UGFzc3dvcmQ6
RnJpZ29waWUwOTg
535 authentication failed (#5.7.1)


Now, I created a new virtual domain called superman by doing:

Code:
vadddomain superman


Then I added a user to that domain:

Code:
vadduser superman@superman


When I try to log into pop3 of that user I get:

Code:
# telnet localhost 110
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
+OK <10946.1192375383@myserver.net>
user superman@superman
+OK
pass superman
-ERR authorization failed
Connection closed by foreign host.



A directory 'superman' is created under domains of vpopmail.

Code:
total 16
-rw-------  1 vpopmail vpopmail   34 2007-10-14 17:22 .dir-control
drwx------  3 vpopmail vpopmail   96 2007-10-14 17:22 postmaster
-rw-------  1 vpopmail vpopmail   55 2007-10-14 17:22 .qmail-default
drwx------  3 vpopmail vpopmail   96 2007-10-14 17:22 superman
-rw-------  1 vpopmail vpopmail  236 2007-10-14 17:22 vpasswd
-rw-------  1 vpopmail vpopmail 2328 2007-10-14 17:22 vpasswd.cdb
-rw-------  1 vpopmail vpopmail    0 2007-10-14 17:22 .vpasswd.lock


And the Maildir is just fine (yes, I configured it to be Maildir instead of .maildir):

Code:

-rw------- 1 vpopmail vpopmail   7 2007-10-14 17:22 lastauth
drwx------ 5 vpopmail vpopmail 120 2007-10-14 17:22 Maildir
Back to top
View user's profile Send private message
Deathwing00
Bodhisattva
Bodhisattva


Joined: 13 Jun 2003
Posts: 4087
Location: Dresden, Germany

PostPosted: Mon Oct 15, 2007 11:31 am    Post subject: Reply with quote

Code:

@4000000047134ed616926394 new msg 875885
@4000000047134ed616927b04 info msg 875885: bytes 226 from <root@mail2.tango04.net> qp 3157 uid 0
@4000000047134ed6184f712c starting delivery 16: msg 875885 to local alias-tango04.net-gentoo@tango04.net
@4000000047134ed6184f84b4 status: local 1/10 remote 0/20
@4000000047134ed61890eecc delivery 16: failure: Sorry,_no_mailbox_here_by_that_name._(#5.1.1)/
@4000000047134ed61891063c status: local 0/10 remote 0/20
@4000000047134ed619825794 bounce msg 875885 qp 3160
@4000000047134ed619826b1c end msg 875885
@4000000047134ed6198af69c new msg 875889
@4000000047134ed6198afe6c info msg 875889: bytes 776 from <> qp 3160 uid 206
@4000000047134ed61b6ee93c starting delivery 17: msg 875889 to remote root@mail2.tango04.net
@4000000047134ed61b6efcc4 status: local 0/10 remote 1/20
@4000000047134ed627cc31bc delivery 17: deferral: Sorry,_I_wasn't_able_to_establish_an_SMTP_connection._(#4.4.1)/
@4000000047134ed627cc3d74 status: local 0/10 remote 0/20
Back to top
View user's profile Send private message
Deathwing00
Bodhisattva
Bodhisattva


Joined: 13 Jun 2003
Posts: 4087
Location: Dresden, Germany

PostPosted: Mon Oct 15, 2007 2:31 pm    Post subject: Reply with quote

Resolution in https://bugs.gentoo.org/show_bug.cgi?id=195931
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum