Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How to make hotwayd work on an amd64 box
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
RedBeard0531
Guru
Guru


Joined: 21 Sep 2002
Posts: 415
Location: maryland

PostPosted: Tue Jul 13, 2004 1:23 pm    Post subject: How to make hotwayd work on an amd64 box Reply with quote

Since hotwayd doesnt work with amd64, a chrooted i[3456]86 environment must be set-up. This is easy to do in gentoo-land.

Code:

mkdir /chroot
cd /chroot
<download a stage tarball (i'd use pentium4 has sse2 support, but you can use athlon-xp) >
tar -xjfp <starge-tarball>
cp /etc/resolv.conf /chroot/etc
cp /etc/make.conf /chroot/etc
mp -m sh /chroot/etc/make.conf   # You could use any editer, I just wanted to plug my favorite. Try it - You'll like it
linux32 chroot /chroot /bin/bash
env-update
source /etc/profile

Then folloew the rest of http://www.gentoo.org/doc/en/gentoo-x86-quickinstall.xml. When editing your new make.conf, make sure that you change your CHOST to i686-pc-linux-gnu. Also make sure to adjust your cflags. If you emerge >=gcc-3.4.0, you can use --march=athlon64 otherwise you must use penium4 or athlon-xp. You can also add sse, mmx, and 3dnow to your USE.


Then emerge hotwayd into your chrooted environment. Then in your normal environment make your /etc/xinetd.d/hotwayd file look somewhat like this: (note: user server server_args and disable)


Code:

service hotwayd
{
   only_from = localhost
   socket_type = stream
   wait = no
   user = root
   port = 110
   server = /bin/chroot
   server_args = /chroot /usr/sbin/hotwayd
   log_on_success += USERID
   log_on_failure += USERID
   disable = no
 }
 


After restarting xinetd, you should be able to configre you favorite mail client to fetch pop3 from 127.0.0.1:110. Hope this helps someone.
_________________
OH MY GOD! Kenny just killed Kenny!
That Basterd!
Back to top
View user's profile Send private message
Robert S
Guru
Guru


Joined: 15 Aug 2004
Posts: 443
Location: Canberra Australia

PostPosted: Sun Jan 02, 2005 2:31 am    Post subject: Reply with quote

No luck :( . I get this in /var/log/messages:

Jan 2 13:22:49 myserver xinetd[7874]: START: hotwayd pid=7893 from=192.168.2.20
Jan 2 13:23:23 myserver hotway[7893]: Fatal connection error: Unknown Error.

.. and this when I try to run fetchmail:

fetchmail: 6.2.5 querying localhost (protocol POP3) at Sun Jan 2 13:27:03 2005: poll started
fetchmail: POP3< +OK POP3 hotwayd v0.7.4 -> The POP3-HTTPMail Gateway. Server on myserver active.
fetchmail: POP3> CAPA
fetchmail: POP3< -ERR Command not implemented
fetchmail: Command not implemented
fetchmail: Repoll immediately on my_name@hotmail.com@localhost
fetchmail: POP3< +OK POP3 hotwayd v0.7.4 -> The POP3-HTTPMail Gateway. Server on myserver active.
fetchmail: POP3> USER my_name@hotmail.com
fetchmail: POP3< +OK Username validated, Password required
fetchmail: POP3> PASS *
fetchmail: POP3< -ERR Fatal connection error: Unknown Error.
fetchmail: Fatal connection error: Unknown Error.
fetchmail: Authorization failure on my_name@hotmail.com@localhost
fetchmail: POP3> QUIT
fetchmail: POP3<
fetchmail: 6.2.5 querying localhost (protocol POP3) at Sun Jan 2 13:27:07 2005: poll completed
fetchmail: Query status=3 (AUTHFAIL)
fetchmail: normal termination, status 3

Is it safe to run hotway as root?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks 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