XMailforum is a readonly knowledge archive now.

Registering as a new user or answering posts is not possible anymore.

Might the force be with you, to find here what you are looking for.

2019-09-20 - hschneider, Admin

Cookie Disclaimer: This forum uses only essential, anonymous session cookies (xmailforum*), nothing to be scared of.

XMail Forum -> Howto Installing Xmail On Debian (knoppix) System

Closed TopicStart new topicStart Poll

> Howto Installing Xmail On Debian (knoppix) System
drewkeller
Posted: May 20 2003, 07:31 AM
Quote Post


Newbie
*

Group: Members
Posts: 6
Member No.: 503
Joined: 27-March 03



I am very newbie with Linux with 3 days experience. I was having problems until i wrote this HOWTO and it started working; i'm still not sure exactly why. This is very similar to the original HOWTO but there are some differences that I would not have understood 3 days ago. So maybe this will help others in the future....

HOWTO
Installing xmail on Debian (Knoppix) system

Based from Richard Downing's HOWTO for setting up XMail on a LFS system and modified by Drew Keller for setup on my Debian (Knoppix) system.

(logged in as root)
download using the Linux/FreeBSD/OpenBSD/Solaris download link
copy everything out of tar.gz to /xmail
#cd /xmail
# make -f Makefile.lnx
# cp -a MailRoot /var
# chmod 700 /var/MailRoot
# cp XMail XMCrypt MkUsers sendmail /var/MailRoot/bin
# cp CtrlClnt /usr/bin

Copy documentation....
# cd /xmail/docs
(had to create /usr/share/xmail before doing the following)
# cp -p Readme.txt /usr/share/xmail/Manual.txt
# cp Readme.html /usr/share/xmail/Manual.html

Add xmail to startup sequence...
make sure that /etc/inetd.conf doesn't have any POP/SMT/finger etc services enabled
# cd /xmail
(changed the following to /init.d instead of /rc.d/init.d shown in the HOWTO)
# cp xmail /etc/init.d

Replace sendmail....
# mv /usr/sbin/sendmail /usr/sbin/sendmail.orig
# cp sendmail /usr/sbin/sendmail.xmail
# chmod +s /usr/sbin/sendmail.xmail
created the script listed in the HOWTO and saved as /usr/sbin/sendmail
# chmod +x /usr/sbin/sendmail

Test xmail server...
# export MAIL_ROOT=/var/MailRoot
# /var/MailRoot/bin/XMail -Md -Pl -Sl -Fl -Cl -Ll

You should see the xmail servers start.

in a separate shell.....
# telnet
telnet > open localhost 110
[xmail POP3 server responds]
user xmailuser
pass xmail
[xmail server responds]
quit
telnet > close

If everything is working, add a control account to ctrlaccount.tab, make change to server.tab and any other .tab files that you wish to customize. Modify smtprelay.tab and/or smtp.ipmap.tab to restrict mail relaying of your server. Adding users will be done below.

To set up xmail for starting when Linux starts....
The SysV-init Editor has some readable documentation that describes how the startup sequence works. As I understand it, the run levels (rc.?) can vary depending on what sorts of states the computer runs in. On mine, rc.1 is not used so i didn't do anything with it. Run levels 2-5 all had start items, so I added xmail as a start service, each with the same sorting number. Run levels 0 and 6 looked identical so i added xmail as stop service to both (other similar items were listed as stop services) with the same sorting number.

Reboot or start the xmail daemon with
# /etc/rc.d/init.d/xmail start

The rest of this is taken directly from Richard Downing's HOWTO:

Setting up another user account.
--------------------------------
Type the following, you don't need to be 'root':

/usr/bin/CtrlClnt -s 109bean.org.uk -u root -p ciao \
useradd 109bean.org.uk newuser newpassword U

Of course, you need to substitute your domain name, Control Account and
password.

In these CtrlClnt (Control Client) commands you should NOT use MKCrypt-ed
passwords.

Once the user account(s) are set up, you can try sending mail between them
locally. Set up your MUA, say Mutt or Kmail, to send via smtp localhost:110,
and receive by POP3 from '109bean.org.uk' or whatever your domain is
called, with the appropriate username and password as just setup.

Setting up a POP3 drop from your ISP.
-------------------------------------
Assuming your ISP presents a simple unencrypted (old-fashioned) POP3 service,
you need to know your login name (you-at-isp) and password
(your-isp-pop-password)and the address of the POP3 server.

/usr/bin/CtrlClnt -s 109bean.org.uk -u root -p ciao \
poplnkadd 109bean.org.uk richard \
pop3.isp.com you-at-isp your-isp-pop-password CLR

This will set up an automatic synchonisation between XMail and your pop3 account at pop3.isp.com, syncronising every 2 minutes (120 seconds). To change the synchronisation rate to, say, every 5 minutes, you need to edit
the command line switch -Yi 300 (300 seconds) in /etc/rc.d/init.d/xmail.

If your ISP supports APOP authorisation substitute APOP for CLR above.
PMEmail Poster
Top
atomant
Posted: May 20 2003, 07:34 AM
Quote Post


No - I'm not an answering script ...
Group Icon

Group: Admin
Posts: 1776
Member No.: 427
Joined: 18-January 03



Thanks for the contrib Drewkeller.


--------------------
Bye,
Sasa



-------------------------------------------------------------------

All electric machines work on smoke...when the smoke escape from machines, they don't work anymore
Windows: "Where do you want to go today?"
Linux: "Where do you want to go tomorrow?"
FreeBSD: "Are you guys coming or what?"
PMEmail PosterUsers WebsiteICQ
Top
0 User(s) are reading this topic (0 Guests and 0 Anonymous Users)
0 Members:
« Next Oldest | Documentation and Knowledge Base | Next Newest »

Closed TopicStart new topicStart Poll