Old 4.2 user, with 6.2 newbie questions

2007-05-21 Thread Chuck Grimes
On 18-May-07 [EMAIL PROTECTED] wrote:
> On Fri, May 18, 2007 at 07:33:14AM -0700, Chuck Grimes wrote:
>> enabled in inetd.conf. 
>> 
>> My problem is that using the modem to connect to my isp, I can not get
>> fetchmail, rsh, rlogin, or ftp to work. They all start just fine and
>> then hang. I have to kill the user1 to get the tty1 back. 
>> 
>> I set this new box (6.2) up with a network connection to my old box
>> (4.2) as a gateway. When the 4.2 box connects to the isp, I can use
>> rsh, rlogin, fetchmail from the new box using the old box as the
>> connection. This implies there is something wrong with the new box
>> serial connection to my isp. 
>> 
>> However, from the new box (6.2) after starting the dial up connection
>> on the serial port, I can use telnet to get to the isp shell account.
>> 
>> What is the difference between how rsh uses the various ip/tcp
>> protocols and how telnet? 
> 
> Sounds like a routing problem to me, i,e., your ISP is part of a local
> network connection (so you can telnet to it) but your ISP's gateway is
> not set as a default route on the 6.2 box like it is on the 4.2 box.
> 
> HTH,
> 
> Steve

Thanks for the response. Sorry about my long delayed response. I
worked most of Saturday playing around with ppp and various options in
rc.conf trying to narrow the problem down to some kind of route
problem. In the process I did find some routing problems and fixed
them. 

But there was no improvement in the failure to keep an rsh or
ftp session going over a serial port connection with my isp.

I am going to start another thread under the title ``sio problems?''
and try to figure out what's wrong with my serial port. I suspect
while sio4 works enough to start a link with my isp, it somehow
fails at some point. I think the problem is the serial port
configuration. I suspect the swap during bootup sio0 -> sio4 is the
heart of the problem.

With that in mind, I think you are right about a routing problem in
the sense that the mapping of physical serial device (modem) to its
virtual serial device (sio0 -> sio4) is mixed up somehow and that in
turn creats the effect of a routing problem. 

Even if a fixed serial port system doesn't help, at least it will be
one more problem fixed.

CG

(this was also delayed by the list server as spam?)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Old 4.2 user, with 6.2 newbie questions

2007-05-18 Thread Chuck Grimes

Thanks to Ted M and Mikhail G for the help on Fetchmail.

I think I have narrowed the problem down to exclude any configuration
mistakes in fetchmail or sendmail.

I think I have a problem with my serial port sio0 (it has a 56k USR
modem). In dmesg:

dmesg | grep "sio":


sio0: configured irq 22 not in bitmap of probed irqs 0
sio0: port may not be enabled
sio0: <3COM PCI FaxModem> port 0x1000-0x1007 irq 22 at device 1.0 on pci7
sio0: moving to sio4
sio4: type 16550A
fwohci0: OHCI version 1.10 (ROM=0)
sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0
sio0: type 16550A
sio1: configured irq 3 not in bitmap of probed irqs 0
sio1: port may not be enabled
*sio4: 297 more interrupt-level buffer overflows (total 297)

The last line shows an added messages that the sio4 has
overflows. Notice that the sio0 (with 56k modem) has been remapped to
sio4.

Also, my isp uses standand ip/tcp (IPv4, not IPv6). I have both
enabled in inetd.conf. 

My problem is that using the modem to connect to my isp, I can not get
fetchmail, rsh, rlogin, or ftp to work. They all start just fine and
then hang. I have to kill the user1 to get the tty1 back. 

I set this new box (6.2) up with a network connection to my old box
(4.2) as a gateway. When the 4.2 box connects to the isp, I can use
rsh, rlogin, fetchmail from the new box using the old box as the
connection. This implies there is something wrong with the new box
serial connection to my isp. 

However, from the new box (6.2) after starting the dial up connection
on the serial port, I can use telnet to get to the isp shell account.

What is the difference between how rsh uses the various ip/tcp
protocols and how telnet? 

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Old 4.2 user, with 6.2 newbie questions

2007-05-11 Thread Mikhail Goriachev
Chuck Grimes wrote:

[...]

> My first priority is getting fetchmail running. Here is the
> fetchmailrc dot file:
> 
> defaults proto pop3 
> user mailname 
> poll my.isp.com 
> pass x 
> set daemon 840 
> 
> As user, I can run fetchmail at the command line, without an error
> message, but it also doesn't get and deliver any mail. I can send
> email to myself, but I am sure it never leaves the machine. The
> [EMAIL PROTECTED] is correct---so sendmail masquerade is working. For
> example, sendmail does not write: [EMAIL PROTECTED], as it
> would without masquerade.


Fetchmail (new one that is) now can be ran in daemon mode so the
following has to be added into /etc/rc.conf:

fetchmail_enable="YES"
fetchmail_polling_interval="300"



The fetchmailrc file has to be owned by fetchmail:

# ls -al /usr/local/etc/fetchmailrc
-rw---  1 fetchmail  fetchmail  6614 Feb 27 11:57 fetchmailrc



This is the syntax I use in fetchmailrc:

poll pop3.domain.tld proto pop3 no dns
 user "USERNAME1", with password "PASSWORD1", is "USERNAME1" here;
 user "USERNAME2", with password "PASSWORD2", is "USERNAME2" here;
 user "USERNAME3", with password "PASSWORD3", is "USERNAME3" here;



Some users aren't located on the same server. So I redirect their
correspondence with the help of /etc/mail/aliases:

USERNAME3:[EMAIL PROTECTED]



> I changed the permissions on sendmail back to:
> 
> $ ll -r-sr-xr-x  1 root  wheel 583680 Jan 11 23:42  sendmail
> 
> from 6.2 default:
> 
> $ ll -rwsr-xr-x  1 root  wheel 583680 Jan 11 23:42  sendmail
> 
> I've tried it both ways and niether seems to make any difference.



For all of that, I didn't have to touch sendmail (apart from aliases).


Hopefully this will help you somehow.



Regards,
Mikhail.

-- 
Mikhail Goriachev
Webanoide

Telephone: +61 (0)3 62252501
Mobile Phone: +61 (0)4 38255158
E-Mail: [EMAIL PROTECTED]
Web: www.webanoide.org
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


RE: Old 4.2 user, with 6.2 newbie questions

2007-05-11 Thread Ted Mittelstaedt

sendmail is much newer on 6.2, I would ask on the fetchmail mailing
list if I were you.  I've never used fetchmail myself, but I had
to make a number of changes in various scripts and such that communicated
with sendmail when I updated a server from 4x to 6x as they changed/broke
things in the newer sendmail.  (for security reasons no doubt)

Ted

> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of Chuck Grimes
> Sent: Thursday, May 10, 2007 9:55 PM
> To: freebsd-questions@freebsd.org
> Subject: Old 4.2 user, with 6.2 newbie questions
> 
> 
> 
> I am in the process of moving from 4.2-RELEASE on an old box to
> 6.2-RELEASE on a new box (Core 2 Duo, DG965WH mobo, GeForce 7600gs,
> 1G RAM, 400G sata drive). I need to figure out a couple of userland
> changes to the default 6.2 installation which took about an hour and
> went great.
> 
> I have a shell account on my isp which runs 4.10-STABLE. In my old 4.2
> box I have fetchmail set to log in, get mail and hand it over to local
> sendmail to put it in my local /var/mail/user directory on my old
> machine. I also use rsh (I know, don't) to log in to my shell
> account. I use my own sendmail to send mail out to various lists on
> the old box. I masquerade as my isp in sendmail, which puts the
> appropriate user name on my headers.
> 
> Ok. In 6.2 box I've turned off local only mail (no submit.cf) and have
> sendmail maquerade working. I can send email out as a user, but I can't
> retrieve mail on my isp via fetchmail.
> 
> I think ppp is configured correctly because I can telnet just fine to
> my shell account, but I can't rsh. It hangs after the password has
> been sent (yes you are not supposed to need a password with rlogin,
> but my isp uses one anyway for minium security). 
> 
> If I am root and switch during rsh/rlogin login to my username, I can
> get a little further along. I get the first few system announcements
> on the shell server, and then the terminal hangs. I have to kill the
> rlogin PID to get back the ttyN terminal.
> 
> There also seems to be buffer overflows or conflicts between the mouse
> (on a usb port, usm0), 56k modem (PCI, sio0 remapped to sio4?), and
> printer (lpt0). In ppp, I use /dev/cuad4, despite the fact the modem
> is reported in dmesg as on sio0. Whatever is going on at some lower
> layer, all these devices work with random messages about stray
> irq's---so I am ignoring them at the moment. In other words, I can use
> dial-up, the mouse works, and the printer prints (via lp). Seems good
> enough for the moment.
> 
> There have obviously been changes to the 6.2 base install that I don't
> know about that probably account for some of these problems. 
> Unfortunately,
> most of these issues are no covered in the manuals that came with 
> the CDs, or
> the coverage was out of date
> 
> Suggestions on where to look, things to check and change would be
> greatly appreciated. At the moment I am more interested in getting
> correct behavior, than I am concerned with security. 
> 
> My first priority is getting fetchmail running. Here is the
> fetchmailrc dot file:
> 
> defaults proto pop3 
> user mailname 
> poll my.isp.com 
> pass x 
> set daemon 840 
> 
> As user, I can run fetchmail at the command line, without an error
> message, but it also doesn't get and deliver any mail. I can send
> email to myself, but I am sure it never leaves the machine. The
> [EMAIL PROTECTED] is correct---so sendmail masquerade is working. For
> example, sendmail does not write: [EMAIL PROTECTED], as it
> would without masquerade.
> 
> I changed the permissions on sendmail back to:
> 
> $ ll -r-sr-xr-x  1 root  wheel 583680 Jan 11 23:42  sendmail
> 
> from 6.2 default:
> 
> $ ll -rwsr-xr-x  1 root  wheel 583680 Jan 11 23:42  sendmail
> 
> I've tried it both ways and niether seems to make any difference.
> 
> My general impression is that 6.2 has set up restrictions or modified
> rsh and fetcmail---or perhaps these are fine, but don't interact well
> with older verisons, i.e 4.10. Although I can ftp to my shell
> and down load files. 
> 
> Also I updated the ports via ftp as root, and everything took forever,
> but seems to work fine. For example I use Magicfilter which was not in
> the cd's, so from ports/printer, I downloaded Magicfilter, compiled
> and installed it and it works fine as a postscript filter for lpr. 
> 
> I know these are quite a few questions, but any suggestions on any of
> them would be much appreciated.
> 
> CG
> 
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to 
> "[EMAIL PROTECTED]"
> 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Old 4.2 user, with 6.2 newbie questions

2007-05-10 Thread Chuck Grimes

I am in the process of moving from 4.2-RELEASE on an old box to
6.2-RELEASE on a new box (Core 2 Duo, DG965WH mobo, GeForce 7600gs,
1G RAM, 400G sata drive). I need to figure out a couple of userland
changes to the default 6.2 installation which took about an hour and
went great.

I have a shell account on my isp which runs 4.10-STABLE. In my old 4.2
box I have fetchmail set to log in, get mail and hand it over to local
sendmail to put it in my local /var/mail/user directory on my old
machine. I also use rsh (I know, don't) to log in to my shell
account. I use my own sendmail to send mail out to various lists on
the old box. I masquerade as my isp in sendmail, which puts the
appropriate user name on my headers.

Ok. In 6.2 box I've turned off local only mail (no submit.cf) and have
sendmail maquerade working. I can send email out as a user, but I can't
retrieve mail on my isp via fetchmail.

I think ppp is configured correctly because I can telnet just fine to
my shell account, but I can't rsh. It hangs after the password has
been sent (yes you are not supposed to need a password with rlogin,
but my isp uses one anyway for minium security). 

If I am root and switch during rsh/rlogin login to my username, I can
get a little further along. I get the first few system announcements
on the shell server, and then the terminal hangs. I have to kill the
rlogin PID to get back the ttyN terminal.

There also seems to be buffer overflows or conflicts between the mouse
(on a usb port, usm0), 56k modem (PCI, sio0 remapped to sio4?), and
printer (lpt0). In ppp, I use /dev/cuad4, despite the fact the modem
is reported in dmesg as on sio0. Whatever is going on at some lower
layer, all these devices work with random messages about stray
irq's---so I am ignoring them at the moment. In other words, I can use
dial-up, the mouse works, and the printer prints (via lp). Seems good
enough for the moment.

There have obviously been changes to the 6.2 base install that I don't
know about that probably account for some of these problems. Unfortunately,
most of these issues are no covered in the manuals that came with the CDs, or
the coverage was out of date

Suggestions on where to look, things to check and change would be
greatly appreciated. At the moment I am more interested in getting
correct behavior, than I am concerned with security. 

My first priority is getting fetchmail running. Here is the
fetchmailrc dot file:

defaults proto pop3 
user mailname 
poll my.isp.com 
pass x 
set daemon 840 

As user, I can run fetchmail at the command line, without an error
message, but it also doesn't get and deliver any mail. I can send
email to myself, but I am sure it never leaves the machine. The
[EMAIL PROTECTED] is correct---so sendmail masquerade is working. For
example, sendmail does not write: [EMAIL PROTECTED], as it
would without masquerade.

I changed the permissions on sendmail back to:

$ ll -r-sr-xr-x  1 root  wheel 583680 Jan 11 23:42  sendmail

from 6.2 default:

$ ll -rwsr-xr-x  1 root  wheel 583680 Jan 11 23:42  sendmail

I've tried it both ways and niether seems to make any difference.

My general impression is that 6.2 has set up restrictions or modified
rsh and fetcmail---or perhaps these are fine, but don't interact well
with older verisons, i.e 4.10. Although I can ftp to my shell
and down load files. 

Also I updated the ports via ftp as root, and everything took forever,
but seems to work fine. For example I use Magicfilter which was not in
the cd's, so from ports/printer, I downloaded Magicfilter, compiled
and installed it and it works fine as a postscript filter for lpr. 

I know these are quite a few questions, but any suggestions on any of
them would be much appreciated.

CG

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"