Re: need some advice on MTA

2003-02-05 Thread Anand Buddhdev
On Wed, Feb 05, 2003 at 01:02:29PM +0100, Roman Neuhauser wrote:

> I run four Postfixes (one of them with Courier-IMAP), and one Qmail
> with vpopmail.
> 
> Postfix is IMO easier to install and administer, but doesn't have a
> point'n'click interface.
> 
> It also looks like Postfix is a much faster moving target than
> Qmail, e. g. the virtual address/mailbox support has been evolving
> quite a lot, and the configuration changed in Postfix-2.
> 
> I wouldn't recommend Courier; I don't know the SMTP part of the
> pack, but the IMAP server is pretty admin-hostile in that it doesn't
> log almost anything at all, so when you run into trouble, you're
> left to guessing, and hacking the source.

Courier-IMAP is not admin-hostile. You can enable debugging, and it
will log a lot of information. The SMTP server and client part of
courier is also nice, robust and friendly to other sites, and has many
useful features (RBL checking, rejecting spam, flexible aliasing,
SMTP authentication, SSL support) all out of the box. And if you
install the entire courier suite, you also get a POP server, webmail
server and mailing list manager, and a webadmin CGI to configure it all
easily. Courier's SMTP server takes its basic design from qmail, but has
gone far beyond qmail in features, and has made many improvements over
those parts of qmail that many people have long been criticising. Take
a look at it more closely before trashing it so trivially.

-- 
Anand Buddhdev
http://anand.org

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message



Changing the FreeBSD boot loader options

2003-02-03 Thread Anand Buddhdev
I have installed FreeBSD 4.7 on my desktop, which already had windows
2000 on it in a partition. I also have a second IDE disk in the computer.

Upon boot, I get the following menu:

F1 FreeBSD (default)
F2 DOS
F5 Disk 1

How do I rename the label for F2 from DOS to Windows, and how do I
eliminate F5, since it is not needed? I read the manpage for boot0cfg,
but I couldn't figure out how to do it. Or do I need another boot manager
like grub?

-- 
Anand Buddhdev
http://anand.org

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message



playing CDs as non-root user

2003-01-26 Thread Anand Buddhdev
I've got my FreeBSD system setup with KDE and sound. I have 2 questions:

1. I got sound to work simply by doing "kldload snd" but then I did
kldstat and saw that all available sound modules had been loaded. I
thought that was unnecessary - is there any way (besides inserting
each module one at a time) that I can determine which exact module is
providing the driver for my sound card?

2. I can play a music CD just fine as root, using cdcontrol, as described
in the handbook. But under KDE, running as a non-root user, I cannot
play music CDs. I looked at the permissions on /dev/acd0c, and they are
0640, root.operator, so an ordinary user cannot read the CD. I changed
the permissions to 0644, and I could play the CD. However, there must
be a good reason for the permisisons to be 0640, and I don't want to
mess up the permissions just to get the CD player to work. What is the
"official" way to get this to work? The handbook didn't mention it.

-- 
Anand Buddhdev
http://anand.org

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message



Re: How to cleanly remove bind before using bind9

2003-01-24 Thread Anand Buddhdev
On Fri, Jan 24, 2003 at 03:05:19PM +0100, Ruben de Groot wrote:

> > I have always found this to be a problem with FreeBSD: why can't sendmail,
> > bind and the other contributed software be made optional at install
> > time, so that the base system is not cluttered with old software when
> > we install new versions? The tight coupling of contributed software into
> > the base system is in my opinion not a good idea.
> 
> This question has been asked and answered numerous times on this list.
> Yes, it can be done (I believe there's a project "libh" or something
> working on it amongst other things), but it's a lot of work. Are you 
> volunteering to help?

Yes, I'd like to, where/if I can. How do I get involved in the project?

-- 
Anand Buddhdev
http://anand.org

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message



Re: How to cleanly remove bind before using bind9

2003-01-24 Thread Anand Buddhdev
On Thu, Jan 23, 2003 at 06:29:22PM -0500, stan wrote:

> I want to use bind 9 from the ports tree. I see how to prevent the bundled
> bind from being built the next time I make world, and I see how to change
> the init files et all to use the ports bind9. 
> 
> What I _don't_ see (and I'm certain it's just my lack of knowledge here),
> is a clean way to remove all teh traces of the existing bersion of bind
> which was built the last time I did a make world.

I have always found this to be a problem with FreeBSD: why can't sendmail,
bind and the other contributed software be made optional at install
time, so that the base system is not cluttered with old software when
we install new versions? The tight coupling of contributed software into
the base system is in my opinion not a good idea.

-- 
Anand Buddhdev
http://anand.org

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message



Re: WAP-server [Was Re: entropy]

2003-01-15 Thread Anand Buddhdev
On Wed, Jan 15, 2003 at 04:53:25PM +0100, Paul Everlund wrote:

> Do anyone by the way know if a special web-server is required for
> serving wap-pages, i.e. can one use Apache? If not, what's out there?
> Will take a look in the ports tree to see if I find anything.

A "wap page" is nothing more than content that has been marked up with
WML, the wireless mark-up language. You can serve WML content with any
webserver, including apache. Just add a line like this to the httpd.conf
file:

AddType text/vnd.wap.wml .wml

Where .wml is the file extension you use for your WML pages.

-- 
Anand Buddhdev
http://anand.org

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message



Re: lynx downloads

2003-01-14 Thread Anand Buddhdev
On Tue, Jan 14, 2003 at 04:42:00PM -0600, Brian Henning wrote:

> i am trying to download an iso image with lynx from a http site. i noticed
> that lynx stores the file in the /tmp directory. the problem is my /tmp is
> only 250MB but the iso is 500+ MB. What can i do in order avoid getting disk
> errors while downloading this file?

Use wget or curl instead of lynx. These utilities download the file via
FTP or HTTP directly to the location of your choice, eg:

$ cd /path/to/big/partition
$ wget http://site/large.iso

-- 
Anand Buddhdev
http://anand.org

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message



Re: Multiple network cards with IP addresses in the same network

2003-01-13 Thread Anand Buddhdev
On Mon, Jan 13, 2003 at 07:53:08AM -0500, Bill Moran wrote:

> >I have a FreeBSD 4.7 system, with 3 ethernet cards. The first two
> >are recognised as fxp0 and fxp1 and the second as em0 (intel gigabit
> >card). I configured the em0 with address 192.168.0.1/24. I then wanted
> >to configure fxp0 with the address 192.168.0.2/24, and also connect it
> >to the switch so that I can connect to the server via both addresses.
> >However, FreeBSD's ifconfig command fails, and won't let me add the second
> >address to the fxp0 interface. I read the manual page about ifconfig,
> >and read about aliases, where it said that for aliases, I must use the
> >netmask /32. When I do try to add the second address with a netmask of
> >/32, it works, but it doesn't make sense to me. How is that interface
> >going to to know that it is part of a /24 network if I use a /32 netmask?
> >
> >Would anyone be kind enough to explain why:
> >
> >1. For aliases, I need the /32 mask
> 
> I didn't know that you did.  I've certainly had aliases that weren't /32

I have been using linux for about 2 years now. Let me explain why I
don't understand.

I have addresses 192.168.0.1 and 192.168.0.2. I want to run different
services on the 2 different IP addresses. In a linux system, I do:

ifconfig eth0 192.168.0.1 netmask 255.255.255.0
ifconfig eth0:0 192.168.0.2 netmask 255.255.255.0

So that I have 2 different addresses bound to the same interface.

On FreeBSD, if I do:

ifconfig fxp0 192.168.0.1 netmask 255.255.255.0
ifconfig fxp0 192.168.0.2 netmask 255.255.255.0 alias

That fails.

The ifconfig manpage states that a nonconflicting netmaks must be used
for the alias, and suggests to use 0x. I don't understand why,
because I don't see why one network interface cannot have more than one
address bound to it within the same network. If I use a /32 netmask for
the alias address, how will the kernel respond to arp requests for that
alias address?

> >2. Adding a second IP to a *different* network card in the same server
> >does not work if the second IP is within the network of the first one.
> 
> Because it breaks routing and the basic concept of IP addys and netmasks.
> If you have two NICs on the same network, how is the kernel supposed to
> route packets?

I still don't understand. In a linux system I can do:

route add -net 0.0.0.0 netmask 0.0.0.0 gw 192.168.0.254 dev eth0
route add -net 0.0.0.0 netmask 0.0.0.0 gw 192.168.0.254 dev eth1

This adds 2 default routes in the linux kernel, telling it to route
packets to the outside world using either network interface, where eth0
has address 192.168.0.1/24 and eth1 has address 192.168.0.2/24. What's
wrong with that?

> If you want this setup as a failover solution, there are other ways.
> There's a program in the ports (I can't remember the name, you'll have to
> do some research) that will monitor an interface, and if it becomes non-
> responsive, run a script of your choosing.  Thus, you can have it start
> up the other network card if the first fails.

Ok, I understand that, and it may be a very useful program, *if* you
want to bring up the other interface with perhaps the same IP address.

All I want to do is to have 2 different IP addresses on each of the
different interfaces in the server, where the addresses are in the
same network. I can do it in linux. Why can't I do it in FreeBSD?

> If failover isn't what you're looking for, then I'd reconsider your
> network topology.  It doesn't really make sense to have 2 NICs with the
> same network number in one machine.

Why not? I haven't seen any such warning in my IP networking books
or courses.

-- 
Anand Buddhdev
http://anand.org

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message



Multiple network cards with IP addresses in the same network

2003-01-13 Thread Anand Buddhdev
I have a FreeBSD 4.7 system, with 3 ethernet cards. The first two
are recognised as fxp0 and fxp1 and the second as em0 (intel gigabit
card). I configured the em0 with address 192.168.0.1/24. I then wanted
to configure fxp0 with the address 192.168.0.2/24, and also connect it
to the switch so that I can connect to the server via both addresses.
However, FreeBSD's ifconfig command fails, and won't let me add the second
address to the fxp0 interface. I read the manual page about ifconfig,
and read about aliases, where it said that for aliases, I must use the
netmask /32. When I do try to add the second address with a netmask of
/32, it works, but it doesn't make sense to me. How is that interface
going to to know that it is part of a /24 network if I use a /32 netmask?

Would anyone be kind enough to explain why:

1. For aliases, I need the /32 mask

2. Adding a second IP to a *different* network card in the same server
does not work if the second IP is within the network of the first one.

-- 
Anand Buddhdev
http://anand.org

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message



Re: FreeBSD ISO Images

2002-11-21 Thread Anand Buddhdev
On Thu, Nov 21, 2002 at 06:48:28PM +0300, Odhiambo Washington wrote:

> I must have missed this. Or simply dump. period.
> 
> It looks like there is no more ISO image to burn to a CD since 4.6.2??

Sure there is. Which server were you looking at, and which directory?

> Why are there 2 disk images? I burnt a 4.7-disc1.iso and it fails to
> boot - no kernel...

The image you burnt must be bad. And you only need the first CD; the
rest of the CDs contain extra packages, but you can install FreeBSD 4.7
from just the first CD.

-- 
Anand Buddhdev
http://anand.org

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message



Re: yahoo IM crashing for anyone else?

2002-11-21 Thread Anand Buddhdev
On Wed, Nov 20, 2002 at 09:18:50PM -0800, Jim Arnold wrote:

> About three days again Gaim started crashing on me
> with  a vengeance with a signal 6. It appears to be
> related to Yahoo. As a test I installed ymessanger and
> it too is crashing just as often.

Gaim had a bug that was causing a segfault with yahoo. It was fixed in
the latest version, so upgrade to 0.59.6. I can't explain why ymessenger
was crashing.

-- 
Anand Buddhdev
http://anand.org

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message



Changing the boot manager

2002-11-19 Thread Anand Buddhdev
I currently have the booteasy boot manager on my FreeBSD system, so it
prompts me with a menu on startup (F1 FreeBSD) and waits 5 seconds before
defaulting to F1. But I only have FreeBSD my box. Is there any way to
go back to the simpler, standard boot code that loads FreeBSD directly?

I have read about boot0cfg, which is supposed to allow me to change the
MBR, but I can't seem to find the correct boot code to install there to
get rid of booteasy.

-- 
Anand Buddhdev

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message



Re: package/port dependency failures (solved)

2002-11-17 Thread Anand Buddhdev
On Sat, Nov 16, 2002 at 10:54:35AM -0800, Kent Stewart wrote:

[cut]

> You can break anything when you go out of the way to do it. If you had 
> updated the links in the database "pkgdb -F", I think it would have 
> still found that sysconftool was a R-deps, at least, it was when I did 
> a make search right now.
> 
> That is part of what portupgrade does for you. You can do things like 
> "portupgrade -ruf sysconftool" and it would have updated sysconftool 
> and everything that used it. Since courier changed 2 months ago, you 
> could have run "portupgrade -Ruf courier" and it would have rebuild 
> courier and everything it uses. The "-uf" option would have rebuilt 
> courier and updated the links.
> 
> Portupgrade appears to check the database by running "pkgdb -F" before 
> and after and keeps things hooked together. It is everybodies friend :).

Thanks for this tip Stewart! Works great. This tool should become part
of the base system.

-- 
Anand Buddhdev
http://anand.org

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message



package/port dependency failures

2002-11-16 Thread Anand Buddhdev
I have recently begun to experiment with FreeBSD packages and ports,
and I noticed a problem with dependencies:

The system is FreeBSD 4.7.

I installed a package called "courier" using ports. It had a number of
dependencies, which it also installed, including one called "sysconftool".

When I then looked at the package database, under sysconftool, I saw that
it was a requirement for courier. Attempting to remove sysconftool with
pkg_delete failed with the warning that it was required by courier. That
was good, and is the kind of behaviour I see with RPM on linux.

However, I was able to remove sysconftool by using "make deinstall" in
the ports tree. It did warn that it was needed by courier, but removed
it anyway.

So I then typed "make install" to add it back in, because courier needs
it. However, this time round, it was not a requirement for courier (the
package database did not show it as a requirement). And I was able to
remove it using pkg_delete.

To me, this seems wrong: package dependencies are easily lost, and after
a while, the packages on a FreeBSD system could become unstable due to
missing dependencies.

Is this a fault within the ports system, or is it just this one package
that's bad?

I think the ports system is nice, but if it makes a sysadmin's life
difficult with bad dependency management, then I'd have an issue with it.

Any comments?

-- 
Anand Buddhdev
http://anand.org

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message