Re: roundcubemail on openbsd 5.0

2011-12-15 Thread Wesley M.
Hi,

I tried to blank tables in roundcubemail database, done.
But it still doesn't work. I can't login with user@domain
I can only with : username
And mails are sent with @localhost

I let you my main.inc.php file attached
And the file /var/www/roundcubemail/virtusertable contain :
user@domain  user
userx@domainx userx

Thank you for your replies and your help.
Wesley M.

PS : OpenBSD 5.0 / rouncubemail package 0.5.3p1

 Original Message 
Subject: Re: roundcubemail on openbsd 5.0
Date: Wed, 14 Dec 2011 21:35:49 +
From: Stuart Henderson s...@spacehopper.org
To: Wesley M. open...@e-solutions.re
Cc: misc@openbsd.org, mwlu...@blackhelicopters.org, po...@openbsd.org
Reply-To: po...@openbsd.org

I have just tested this method with roundcube 0.7 on OpenBSD with
a blank database and it works fine there, logging in with the full
email address as specified in the left-hand column of the
virtusertable file uses the username on the right-hand-side as
the imap login name, and in prefs/identities it shows up the
full list of sender addresses with a matching entry.

Have you tried it with a blank database?

Reply-to set to ports@, though you might do better with a roundcube
forum instead if you still have problems..



On 2011/12/14 10:33, Wesley M. wrote:
 Hi,
 
 I use sendmail 8.14.15 with virtusertable and procmail for multiple
 domains and
 dovecot 2.0; and Apache (chrooted in /var/www)
 MAILDIR : /var/mailserver/%u/
 IMAP/POP3/IMAPS/POP3S works.
 I just want :
 
 At the Roundcube login page, type user1@domain1 and 
 send emails from this email :user1@domain1 without @localhost
 
 Actually i can only log in with user1 and when i send email, i have
 user1@localhost
 
 I tried this :
 add these 2 lines
 in main.inc.php and cp /etc/mail/virtusertable in
/var/www/roundcubemail/
 
 $rcmail_config['plugins'] = array('virtuser_file');
 $rcmail_config['virtuser_file'] = '/roundcubemail/virtusertable'; 
 add a new user, try to connect with
 user_new@domain1 : no success
 try to connect with user_new : OK but always
 send emails with @localhost 
 
 I read man pages, a lot of documents in
 Internet, it doesn't work for me.
 Any idea ? 
 
 Thank you very much for your
 replies, your helps. 
 
 Wesley. 
 
 www.mouedine.net
 
 On Tue, 13 Dec 2011 20:48:16 +, Stuart Henderson
s...@spacehopper.org
 wrote:
  On 2011/12/13 15:28, Michael W. Lucas wrote:
  I have Roundcube elsewhere.  It basically runs like any other
  IMAP/pop3 client, e.g., communicates over port 110/995/whatever.  My
  roundcube install isn't actually on my mail server.
  
  This leads me to think that copying system files into the chroot
isn't
  going to help.
  
  It has some special support for looking up usernames from a file
  in virtusertable format. Can't say I've used it myself though..
  
  Using a mail client other than roundcube, can you authenticate to the
  server using user@domain, and send mail from user@domain?
  
  Had Wesley followed the advice in my email about where to look
  in the config file etc. he would probably have it working by now.
  
See the config file, where it says This domain will be used to
form e-mail addresses of new users. Note that it says *new*;
existing users will need to be changed in the database.

[demime 1.01d removed an attachment of type application/octet-stream which had 
a name of main.inc.php]



Re: roundcubemail on openbsd 5.0

2011-12-14 Thread nick
Wesley, I think once you've logged in with a user, you're stuck
with whatever was in the config file as has been previously said as it's
created the roundcube entries in the database. 

What you'll need to do
now for that user is to log into roundcube, click Personal Settings at
the top, then click identities and change the email address manually for
them. 

If you've a lot of users you could probably open up the database
manually and change the records directly. 

Regards. 

On 14/12/2011
06:33, Wesley M. wrote: 

 Hi,
 
 I use sendmail 8.14.15 with
virtusertable and procmail for multiple
 domains and
 dovecot 2.0; and
Apache (chrooted in /var/www)
 MAILDIR : /var/mailserver/%u/

IMAP/POP3/IMAPS/POP3S works.
 I just want :
 
 At the Roundcube login
page, type user1@domain1 and 
 send emails from this email
:user1@domain1 without @localhost
 
 Actually i can only log in with
user1 and when i send email, i have
 user1@localhost
 
 I tried this
:
 add these 2 lines
 in main.inc.php and cp /etc/mail/virtusertable
in /var/www/roundcubemail/
 
 $rcmail_config['plugins'] =
array('virtuser_file');
 $rcmail_config['virtuser_file'] =
'/roundcubemail/virtusertable'; 
 add a new user, try to connect with

user_new@domain1 : no success
 try to connect with user_new : OK but
always
 send emails with @localhost 
 
 I read man pages, a lot of
documents in
 Internet, it doesn't work for me.
 Any idea ? 
 

Thank you very much for your
 replies, your helps. 
 
 Wesley. 
 

www.mouedine.net [1]
 
 On Tue, 13 Dec 2011 20:48:16 +, Stuart
Henderson 
 wrote:
 
 On 2011/12/13 15:28, Michael W. Lucas wrote:

 
 I have Roundcube elsewhere. It basically runs like any other
IMAP/pop3 client, e.g., communicates over port 110/995/whatever. My
roundcube install isn't actually on my mail server. This leads me to
think that copying system files into the chroot isn't going to help.

It has some special support for looking up usernames from a file in
virtusertable format. Can't say I've used it myself though.. 
 

Using a mail client other than roundcube, can you authenticate to the
server using user@domain, and send mail from user@domain?
 Had Wesley
followed the advice in my email about where to look in the config file
etc. he would probably have it working by now. 
 
 See the config
file, where it says This domain will be used to form e-mail addresses
of new users. Note that it says *new*; existing users will need to be
changed in the database.

  

Links:
--
[1]
http://www.mouedine.net
[2] mailto:s...@spacehopper.org



Re: roundcubemail on openbsd 5.0

2011-12-14 Thread Wesley M.
Hi,
Very funny, i already know this tips.
But when i add a new user and try to connect on, i always have @localhost.
At Roundcube login prompt : type username@specificdomainuser doesn't work.
And type just the username work, try to send a mail, it sends with
@localhost
I know i can modify manually this. But the goal is to have this
automatically
for new users.

Wesley

On Wed, 14 Dec 2011 08:38:18 +, nick n...@njryan.com wrote:
 Wesley, I think once you've logged in with a user, you're stuck
 with whatever was in the config file as has been previously said as it's
 created the roundcube entries in the database. 
 
 What you'll need to do
 now for that user is to log into roundcube, click Personal Settings at
 the top, then click identities and change the email address manually for
 them. 
 
 If you've a lot of users you could probably open up the database
 manually and change the records directly. 
 
 Regards. 
 
 On 14/12/2011
 06:33, Wesley M. wrote: 
 
 Hi,
 
 I use sendmail 8.14.15 with
 virtusertable and procmail for multiple
 domains and
 dovecot 2.0; and
 Apache (chrooted in /var/www)
 MAILDIR : /var/mailserver/%u/

 IMAP/POP3/IMAPS/POP3S works.
 I just want :
 
 At the Roundcube login
 page, type user1@domain1 and 
 send emails from this email
 :user1@domain1 without @localhost
 
 Actually i can only log in with
 user1 and when i send email, i have
 user1@localhost
 
 I tried this
 :
 add these 2 lines
 in main.inc.php and cp /etc/mail/virtusertable
 in /var/www/roundcubemail/
 
 $rcmail_config['plugins'] =
 array('virtuser_file');
 $rcmail_config['virtuser_file'] =
 '/roundcubemail/virtusertable'; 
 add a new user, try to connect with

 user_new@domain1 : no success
 try to connect with user_new : OK but
 always
 send emails with @localhost 
 
 I read man pages, a lot of
 documents in
 Internet, it doesn't work for me.
 Any idea ? 
 

 Thank you very much for your
 replies, your helps. 
 
 Wesley. 
 

 www.mouedine.net [1]
 
 On Tue, 13 Dec 2011 20:48:16 +, Stuart
 Henderson 
 wrote:
 
 On 2011/12/13 15:28, Michael W. Lucas wrote:
 
 
 I have Roundcube elsewhere. It basically runs like any other
 IMAP/pop3 client, e.g., communicates over port 110/995/whatever. My
 roundcube install isn't actually on my mail server. This leads me to
 think that copying system files into the chroot isn't going to help.

 It has some special support for looking up usernames from a file in
 virtusertable format. Can't say I've used it myself though.. 
 

 Using a mail client other than roundcube, can you authenticate to the
 server using user@domain, and send mail from user@domain?
 Had Wesley
 followed the advice in my email about where to look in the config file
 etc. he would probably have it working by now. 
 
 See the config
 file, where it says This domain will be used to form e-mail addresses
 of new users. Note that it says *new*; existing users will need to be
 changed in the database.
 
   
 
 Links:
 --
 [1]
 http://www.mouedine.net
 [2] mailto:s...@spacehopper.org



Re: roundcubemail on openbsd 5.0

2011-12-14 Thread Nick Ryan
Apologies, I wasn't trying to be funny. There's a few bits of
troubleshooting at
http://trac.roundcube.net/wiki/Howto_Config#ConfiguringforVirtualUsers
where it looks like they describe a similar issue to the one you're
having. 

Can't help any more than that though. 

On 14/12/2011 10:20,
Wesley M. wrote: 

 Hi,
 Very funny, i already know this tips.
 But
when i add a new user and try to connect on, i always have @localhost.

At Roundcube login prompt : type username@specificdomainuser doesn't
work.
 And type just the username work, try to send a mail, it sends
with
 @localhost
 I know i can modify manually this. But the goal is
to have this
 automatically
 for new users.
 
 Wesley
 
 On Wed,
14 Dec 2011 08:38:18 +, nick wrote:
 
 Wesley, I think once
you've logged in with a user, you're stuck with whatever was in the
config file as has been previously said as it's created the roundcube
entries in the database. What you'll need to do now for that user is to
log into roundcube, click Personal Settings at the top, then click
identities and change the email address manually for them. If you've a
lot of users you could probably open up the database manually and change
the records directly. Regards. On 14/12/2011 06:33, Wesley M. wrote: 


 Hi, I use sendmail 8.14.15 with
 virtusertable and procmail for
multiple 
 
 domains and dovecot 2.0; and
 Apache (chrooted in
/var/www) I just want : At the Roundcube login page, type user1@domain1
and user1@localhost I tried this : $rcmail_config['virtuser_
 ckquote
'/roundcubemail/virtusertable'; ages, a lot of
 n Intern
 

yle=padding-left:5px; border-lef
 solid; margin-left:5px;
width:100%replies, your helps. Wesley. www.mouedine.net [3][1] 2011
20:48:16 +, Stuart
 son wrote: 3 15:28, Michael W. Lucas wrote:

lockquote 
 ff 2px solid; margin-left:5px; width:100%I have
Roundcube elsewhere. It basically runs like any other n't actually on my
mail server. This leads m
 at copying system files into the chroot
isn't going to help.It has some special support for looking up usernames
from a file in virtusertable format. Can't say I've used it myself
though..Usin
 
 m user@domain?
 tyle=padding-left:5px;
border-left:#1010ff 2px solid; margin-left:5px; width:100% See the
config 
 
 ; existing users will need to be changed in the
database. Links: -- [1] http://www.mouedine.net [1] [2]
mailto:s...@spacehopper.org [2]
 
 
 
 

  

Links:
--
[1]
http://www.mouedine.net
[2] mailto:s...@spacehopper.org
[3]
http://www.mouedine.net
[4] mailto:n...@njryan.com



Re: roundcubemail on openbsd 5.0

2011-12-14 Thread Stuart Henderson
I have just tested this method with roundcube 0.7 on OpenBSD with
a blank database and it works fine there, logging in with the full
email address as specified in the left-hand column of the
virtusertable file uses the username on the right-hand-side as
the imap login name, and in prefs/identities it shows up the
full list of sender addresses with a matching entry.

Have you tried it with a blank database?

Reply-to set to ports@, though you might do better with a roundcube
forum instead if you still have problems..



On 2011/12/14 10:33, Wesley M. wrote:
 Hi,
 
 I use sendmail 8.14.15 with virtusertable and procmail for multiple
 domains and
 dovecot 2.0; and Apache (chrooted in /var/www)
 MAILDIR : /var/mailserver/%u/
 IMAP/POP3/IMAPS/POP3S works.
 I just want :
 
 At the Roundcube login page, type user1@domain1 and 
 send emails from this email :user1@domain1 without @localhost
 
 Actually i can only log in with user1 and when i send email, i have
 user1@localhost
 
 I tried this :
 add these 2 lines
 in main.inc.php and cp /etc/mail/virtusertable in /var/www/roundcubemail/
 
 $rcmail_config['plugins'] = array('virtuser_file');
 $rcmail_config['virtuser_file'] = '/roundcubemail/virtusertable'; 
 add a new user, try to connect with
 user_new@domain1 : no success
 try to connect with user_new : OK but always
 send emails with @localhost 
 
 I read man pages, a lot of documents in
 Internet, it doesn't work for me.
 Any idea ? 
 
 Thank you very much for your
 replies, your helps. 
 
 Wesley. 
 
 www.mouedine.net
 
 On Tue, 13 Dec 2011 20:48:16 +, Stuart Henderson s...@spacehopper.org
 wrote:
  On 2011/12/13 15:28, Michael W. Lucas wrote:
  I have Roundcube elsewhere.  It basically runs like any other
  IMAP/pop3 client, e.g., communicates over port 110/995/whatever.  My
  roundcube install isn't actually on my mail server.
  
  This leads me to think that copying system files into the chroot isn't
  going to help.
  
  It has some special support for looking up usernames from a file
  in virtusertable format. Can't say I've used it myself though..
  
  Using a mail client other than roundcube, can you authenticate to the
  server using user@domain, and send mail from user@domain?
  
  Had Wesley followed the advice in my email about where to look
  in the config file etc. he would probably have it working by now.
  
See the config file, where it says This domain will be used to
form e-mail addresses of new users. Note that it says *new*;
existing users will need to be changed in the database.



Re: roundcubemail on openbsd 5.0

2011-12-13 Thread Michael W. Lucas
I have Roundcube elsewhere.  It basically runs like any other
IMAP/pop3 client, e.g., communicates over port 110/995/whatever.  My
roundcube install isn't actually on my mail server.

This leads me to think that copying system files into the chroot isn't
going to help.

Using a mail client other than roundcube, can you authenticate to the
server using user@domain, and send mail from user@domain?

==ml

On Mon, Dec 12, 2011 at 04:37:50PM +0400, Wesley M. wrote:
 I tried this :
 cp /etc/mail/virtusertable /var/www/roundcubemail/
 And changed in /var/www/roundcubemail/main.inc.php this line to 
 $rcmail_config['virtuser_file'] = '/roundcubemail/virtusertable';
 Add a new user.
 
 Try it, only works with his username, and when i try to send emails, it
 comes from username@localhost
 Any idea ?
 
 
  My first guess here would be that httpd is probably chrooted in which
  case you're trying to access a file that is not available
  
  When i try to connect using user@domain :
  error authentification
  and when i use just the username, there's @localhost
  attached to the username. 
  
  See the config file, where it says This domain will be used to
  form e-mail addresses of new users. Note that it says *new*;
  existing users will need to be changed in the database.

-- 
Michael W. Lucas
http://www.MichaelWLucas.com/, http://blather.MichaelWLucas.com/
Latest book: Network Flow Analysis http://www.networkflowanalysis.com/
mwlu...@blackhelicopters.org, Twitter @mwlauthor



Re: roundcubemail on openbsd 5.0

2011-12-13 Thread Stuart Henderson
On 2011/12/13 15:28, Michael W. Lucas wrote:
 I have Roundcube elsewhere.  It basically runs like any other
 IMAP/pop3 client, e.g., communicates over port 110/995/whatever.  My
 roundcube install isn't actually on my mail server.
 
 This leads me to think that copying system files into the chroot isn't
 going to help.

It has some special support for looking up usernames from a file
in virtusertable format. Can't say I've used it myself though..

 Using a mail client other than roundcube, can you authenticate to the
 server using user@domain, and send mail from user@domain?

Had Wesley followed the advice in my email about where to look
in the config file etc. he would probably have it working by now.

   See the config file, where it says This domain will be used to
   form e-mail addresses of new users. Note that it says *new*;
   existing users will need to be changed in the database.



Re: roundcubemail on openbsd 5.0

2011-12-13 Thread Wesley M.
Hi,

I use sendmail 8.14.15 with virtusertable and procmail for multiple
domains and
dovecot 2.0; and Apache (chrooted in /var/www)
MAILDIR : /var/mailserver/%u/
IMAP/POP3/IMAPS/POP3S works.
I just want :

At the Roundcube login page, type user1@domain1 and 
send emails from this email :user1@domain1 without @localhost

Actually i can only log in with user1 and when i send email, i have
user1@localhost

I tried this :
add these 2 lines
in main.inc.php and cp /etc/mail/virtusertable in /var/www/roundcubemail/

$rcmail_config['plugins'] = array('virtuser_file');
$rcmail_config['virtuser_file'] = '/roundcubemail/virtusertable'; 
add a new user, try to connect with
user_new@domain1 : no success
try to connect with user_new : OK but always
send emails with @localhost 

I read man pages, a lot of documents in
Internet, it doesn't work for me.
Any idea ? 

Thank you very much for your
replies, your helps. 

Wesley. 

www.mouedine.net

On Tue, 13 Dec 2011 20:48:16 +, Stuart Henderson s...@spacehopper.org
wrote:
 On 2011/12/13 15:28, Michael W. Lucas wrote:
 I have Roundcube elsewhere.  It basically runs like any other
 IMAP/pop3 client, e.g., communicates over port 110/995/whatever.  My
 roundcube install isn't actually on my mail server.
 
 This leads me to think that copying system files into the chroot isn't
 going to help.
 
 It has some special support for looking up usernames from a file
 in virtusertable format. Can't say I've used it myself though..
 
 Using a mail client other than roundcube, can you authenticate to the
 server using user@domain, and send mail from user@domain?
 
 Had Wesley followed the advice in my email about where to look
 in the config file etc. he would probably have it working by now.
 
   See the config file, where it says This domain will be used to
   form e-mail addresses of new users. Note that it says *new*;
   existing users will need to be changed in the database.



roundcubemail on openbsd 5.0

2011-12-12 Thread Wesley M.
Hi,
I use sendmail with procmail(for maildir) and dovecot on OpenBSD
5.0
And a virtusertable /etc/mail/virtusertable for multiple domains.
All
works fine, i can send and receive emails. 

When i use roundcube, if i
type a username, try to send an email, it is from username@localhost
So, i
modified the file /var/www/roundcubemail/config/main.inc.php and add the
following : 

$rcmail_config['plugins'] =
array('virtuser_file');
$rcmail_config['virtuser_file'] =
'/etc/mail/virtusertable'; 

When i try to connect using user@domain :
error authentification
and when i use just the username, there's @localhost
attached to the username. 

If someone can help me on.
Thank you very much.


Wesley. 



Re: roundcubemail on openbsd 5.0

2011-12-12 Thread Wesley M.
I tried this :
cp /etc/mail/virtusertable /var/www/roundcubemail/
And changed in /var/www/roundcubemail/main.inc.php this line to 
$rcmail_config['virtuser_file'] = '/roundcubemail/virtusertable';
Add a new user.

Try it, only works with his username, and when i try to send emails, it
comes from username@localhost
Any idea ?


 My first guess here would be that httpd is probably chrooted in which
 case you're trying to access a file that is not available
 
 When i try to connect using user@domain :
 error authentification
 and when i use just the username, there's @localhost
 attached to the username. 
 
 See the config file, where it says This domain will be used to
 form e-mail addresses of new users. Note that it says *new*;
 existing users will need to be changed in the database.



Re: roundcubemail on openbsd 5.0

2011-12-12 Thread Stuart Henderson
On 2011-12-12, Wesley M. open...@e-solutions.re wrote:
 Hi,
 I use sendmail with procmail(for maildir) and dovecot on OpenBSD
 5.0
 And a virtusertable /etc/mail/virtusertable for multiple domains.
 All
 works fine, i can send and receive emails. 

 When i use roundcube, if i
 type a username, try to send an email, it is from username@localhost
 So, i
 modified the file /var/www/roundcubemail/config/main.inc.php and add the
 following : 

 $rcmail_config['plugins'] =
 array('virtuser_file');
 $rcmail_config['virtuser_file'] =
 '/etc/mail/virtusertable'; 

My first guess here would be that httpd is probably chrooted in which
case you're trying to access a file that is not available

 When i try to connect using user@domain :
 error authentification
 and when i use just the username, there's @localhost
 attached to the username. 

See the config file, where it says This domain will be used to
form e-mail addresses of new users. Note that it says *new*;
existing users will need to be changed in the database.