Re: Need help with backup shell script

2008-01-16 Thread Andreas Widerøe Andersen
On Nov 21, 2007 2:55 PM, Valerio Daelli [EMAIL PROTECTED] wrote:

 On Nov 21, 2007 2:39 PM, Andreas Widerøe Andersen [EMAIL PROTECTED]
 wrote:
  Hi,
 
  I'm working on a shell script that will let me attach (mount) an
  external USB 2.0 harddrive and to my FreeBSD 6.2 server and perform a
  full backup of /backup on my server (all files and subfolders) once or
  twice a week (whenever I run the cronjob). The script must be able to
  run through a cronjob and the drive must be mounted and unmounted
  after each job (I will swap between two drives of the same type and
  size). The script must also remove folders/files older than 30 days.
 
  Does anyone use a script like this today that they can share? I'm not
  a shell scripter myself so any help is highly appreciated.
 
  Here's my rough idea/sketch:
 
  #! /bin/sh
 
  $MOUNT = /external
  $DATE= date_today
 
  mount usb_drive $MOUNT
  cd /$MOUNT
  rm all files forlders older than 30 days
  mkdir /$DATE
  cp -fr /backup to /$MOUNT/$DATE
  cd
  unmount
 
 
 ---
 #!/bin/sh

 MOUNT=/external
 DATE=`date +%Y%m%d%H%M`

 mount /dev/da2 $MOUNT #Change device name
 find $MOUNT -mtime +30 -delete
 mkdir $MOUNT/$DATE
 cp -rp /backup/* $MOUNT/$DATE
 umount /external
 ---

 Bye

 Valerio Daelli


Hi again and thanks for the replies to my question.

I have finally rebuilt world and compiled a new kernel since I didn't have
USB support and SCSI/da support in my previous kernel. I have also used your
suggestion and created this script that I can run from command line or as a
cronjob:

#!/bin/sh

MOUNT=/external
DATE=`date +%Y%m%d%H%M`

mount /dev/da0 $MOUNT #Change device name
find $MOUNT -mtime +30 -delete
mkdir $MOUNT/$DATE
rsync -rlpgoD /backup/ $MOUNT/$DATE
umount /external

dmesg shows:

umass0: Generic USB Storage Device, rev 2.00/0.00, addr 2
umass0: Get Max Lun not supported (TIMEOUT)
da0 at umass-sim0 bus 0 target 0 lun 0
da0: SAMSUNG HD501LJ 0-10 Fixed Direct Access SCSI-2 device
da0: 1.000MB/s transfers
da0: 476940MB (976773168 512 byte sectors: 255H 63S/T 60801C)

When I try to run my script I get this prompt back:

mount: /dev/da0 on /external: incorrect super block

(allthough the script seems to continue to run).

Am I doing something wrong here or do I need to I need to use one of the
other from /dev:

ls -la /dev
[snip]
crw-r-   1 root   operator0,  92 Jan 12 03:42 da0
crw-r-   1 root   operator0,  93 Jan 12 03:28 da0s1
crw-r-   1 root   operator0,  98 Jan 12 03:28 da0s1c
crw-r-   1 root   operator0,  99 Jan 12 03:28 da0s1d

Thanks for any help here!

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


Need help with backup shell script

2007-11-21 Thread Andreas Widerøe Andersen
Hi,

I'm working on a shell script that will let me attach (mount) an
external USB 2.0 harddrive and to my FreeBSD 6.2 server and perform a
full backup of /backup on my server (all files and subfolders) once or
twice a week (whenever I run the cronjob). The script must be able to
run through a cronjob and the drive must be mounted and unmounted
after each job (I will swap between two drives of the same type and
size). The script must also remove folders/files older than 30 days.

Does anyone use a script like this today that they can share? I'm not
a shell scripter myself so any help is highly appreciated.

Here's my rough idea/sketch:

#! /bin/sh

$MOUNT = /external
$DATE= date_today

mount usb_drive $MOUNT
cd /$MOUNT
rm all files forlders older than 30 days
mkdir /$DATE
cp -fr /backup to /$MOUNT/$DATE
cd
unmount

Thanks for your help!
Best regards,
Andreas
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Live video streaming on FreeBSD?

2007-10-25 Thread Andreas Widerøe Andersen
Does any of these streaming solutions (encoders or servers) require me to
run a GUI on my FreeBSD boxes or can I simply run them like I always do:
command line only?

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


Live video streaming on FreeBSD?

2007-10-23 Thread Andreas Widerøe Andersen
Hi all,
I'm looking for a way to stream live video on FreeBSD (streamingserver and
encoder or either).

I have previously used Windows Media Server and Encoder quite a lot, but I
try to run as much as possible on FreeBSD. My question would be, is there a
streaming server and possibly an encoder available for FreeBSD that will
stream live video that is compatible with most mediaplayers (for Windows,
Mac and Linux desktops)?

Any help or directions are very much appreciated.

Thanks for your help!

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


Best way to upgrade mysql-server?

2007-07-30 Thread Andreas Widerøe Andersen
Hi,
I recently upgraded from 3.23 to 4.027. My steps were:

1. Stopped the mysql server
2. make deinstall in mysql-server 3.23
3. make deinstall in mysql-client 3.23
4. make install clean in mysql-server 4.0.27
5. Ran the mysql_fix_privilege_tables
6. Started the mysql server again

(and ofcourse backups before step 1)

Things seem to be working fine.

In regards to the existing database files, are there more correct ways of
doing an upgrade on a production server?

Also, does anyone have some good advice on optimizing tables, correcting and
speeding up things after an upgrade?

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


php4 compile errors - need some help

2007-07-27 Thread Andreas Widerøe Andersen
I need some help identifying what causes this error and how to fix it:

#portupgrade php4

[snip]
mv -f ext/standard/base64.o ext/standard/base64.lo
/bin/sh /usr/ports/lang/php4/work/php-4.4.7/libtool --preserve-dup-deps
--mode=compile cc  -Iext/standard/
-I/usr/ports/lang/php4/work/php-4.4.7/ext/standard/
-DPHP_ATOM_INC -I/usr/ports/lang/php4/work/php-4.4.7/include
-I/usr/ports/lang/php4/work/php-4.4.7/main -I/usr/ports/lang/php4/work/php-
4.4.7 -I/usr/ports/lang/php4/work/php-4.4.7/TSRM
-I/usr/ports/lang/php4/work/php-4.4.7/Zend-pipe -g -Wall
-prefer-non-pic -c
/usr/ports/lang/php4/work/php-4.4.7/ext/standard/basic_functions.c
-o ext/standard/basic_functions.lo
cc -Iext/standard/ -I/usr/ports/lang/php4/work/php-4.4.7/ext/standard/
-DPHP_ATOM_INC -I/usr/ports/lang/php4/work/php-4.4.7/include
-I/usr/ports/lang/php4/work/php-4.4.7/main -I/usr/ports/lang/php4/work/php-
4.4.7 -I/usr/ports/lang/php4/work/php-4.4.7/TSRM
-I/usr/ports/lang/php4/work/php-4.4.7/Zend -pipe -g -Wall -c
/usr/ports/lang/php4/work/php-4.4.7/ext/standard/basic_functions.c -o
ext/standard/basic_functions.o
/usr/ports/lang/php4/work/php-4.4.7/ext/standard/basic_functions.c:71:
getopt.h: No such file or directory
/usr/ports/lang/php4/work/php-4.4.7/ext/standard/basic_functions.c:1479:
warning: `struct option' declared inside parameter list
/usr/ports/lang/php4/work/php-4.4.7/ext/standard/basic_functions.c:1479:
warning: its scope is only this definition or declaration, which is probably
not what you want.
/usr/ports/lang/php4/work/php-4.4.7/ext/standard/basic_functions.c: In
function `free_longopts':
/usr/ports/lang/php4/work/php-4.4.7/ext/standard/basic_functions.c:1484:
dereferencing pointer to incomplete type
/usr/ports/lang/php4/work/php-4.4.7/ext/standard/basic_functions.c:1484:
increment of pointer to unknown structure
/usr/ports/lang/php4/work/php-4.4.7/ext/standard/basic_functions.c:1484:
arithmetic on pointer to an incomplete type
/usr/ports/lang/php4/work/php-4.4.7/ext/standard/basic_functions.c:1485:
dereferencing pointer to incomplete type
/usr/ports/lang/php4/work/php-4.4.7/ext/standard/basic_functions.c: In
function `zif_getopt':
/usr/ports/lang/php4/work/php-4.4.7/ext/standard/basic_functions.c:1560:
sizeof applied to an incomplete type
/usr/ports/lang/php4/work/php-4.4.7/ext/standard/basic_functions.c:1572:
dereferencing pointer to incomplete type
/usr/ports/lang/php4/work/php-4.4.7/ext/standard/basic_functions.c:1576:
dereferencing pointer to incomplete type
/usr/ports/lang/php4/work/php-4.4.7/ext/standard/basic_functions.c:1579:
dereferencing pointer to incomplete type
/usr/ports/lang/php4/work/php-4.4.7/ext/standard/basic_functions.c:1584:
dereferencing pointer to incomplete type
/usr/ports/lang/php4/work/php-4.4.7/ext/standard/basic_functions.c:1585:
dereferencing pointer to incomplete type
/usr/ports/lang/php4/work/php-4.4.7/ext/standard/basic_functions.c:1586:
dereferencing pointer to incomplete type
/usr/ports/lang/php4/work/php-4.4.7/ext/standard/basic_functions.c:1589:
increment of pointer to unknown structure
/usr/ports/lang/php4/work/php-4.4.7/ext/standard/basic_functions.c:1589:
arithmetic on pointer to an incomplete type
/usr/ports/lang/php4/work/php-4.4.7/ext/standard/basic_functions.c:1607:
warning: implicit declaration of function `getopt_long'
/usr/ports/lang/php4/work/php-4.4.7/ext/standard/basic_functions.c:1619:
arithmetic on pointer to an incomplete type
/usr/ports/lang/php4/work/php-4.4.7/ext/standard/basic_functions.c:1619:
dereferencing pointer to incomplete type
/usr/ports/lang/php4/work/php-4.4.7/ext/standard/basic_functions.c:1651:
warning: passing arg 1 of `free_longopts' from incompatible pointer type
*** Error code 1

Stop in /usr/ports/lang/php4/work/php-4.4.7.
*** Error code 1

Stop in /usr/ports/lang/php4.
*** Error code 1

Stop in /usr/ports/lang/php4.
** Command failed [exit code 1]: /usr/bin/script -qa /tmp/portupgrade84922.0
make
** Fix the problem and try again.
** Listing the failed packages (*:skipped / !:failed)
! lang/php4 (php4-4.4.4_1)  (missing header)
---  Packages processed: 0 done, 0 ignored, 0 skipped and 1 failed

System FreeBSD 4.11 STABLE (yes, this will be the final update before the
machine is taken offline in a month).

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


Video fileserver - Need some input

2007-05-09 Thread Andreas Widerøe Andersen

I'm planning a new fileserver for my post-production facility and need some
input regarding filesystems and network setup. I've been a FreeBSD fan for
almost 10 years now and will try to build this server based on the latest
stable FreeBSD version, allthough most machines here run WinXP.

We have an internal 1 Gigabit network here and in addition to this the video
fileserver will have two direct NIC connections to two WinXP capture
stations. I will most likely be using a Raid-0 or a Raid-5 setup with SATA
drives. The system will have something like 4-8 TB of HDD space.

I'm not so afraid of loosing data, but we need a system that is fast and
will allow capture from two external Windows XP machines through direct
Gigabit ethernet. The datarates are 8 bit @ 720 x 576 @ 25fps = 20 MB
per/sec, or 70 GB per/hr.
10 bit @ 720 x 576 @ 25fps = 26 MB per/sec, or 93 GB per/hr.

In addition to this 1-5 machines will have access to the fileserver through
a shared Gigabit network connection for making DVDs and use the files as
source for editing. In short: There will be two direct 1Gb network
connections and one shared 1Gb connection. Will the server hold up?

So, my questions are, will the default FreeBSD filesystem be fast enough?
Are there any special settings I need to do during slice/partitioning? The
files will be LARGE. :-)

Samba will probably be ideal for the shared connection so users can browse
the directories. Samba should be able to do this, right?

Any other recommendations are very welcome.

Thanks!

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


Re: Video fileserver - Need some input

2007-05-09 Thread Andreas Widerøe Andersen

On 5/9/07, Chris Slothouber [EMAIL PROTECTED] wrote:


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 2007-05-09 08:21, Andreas Widerøe Andersen wrote:
 I'm planning a new fileserver for my post-production facility and need
some
 input regarding filesystems and network setup. I've been a FreeBSD fan
for
 almost 10 years now and will try to build this server based on the
latest
 stable FreeBSD version, allthough most machines here run WinXP.

 In addition to this 1-5 machines will have access to the fileserver
through
 a shared Gigabit network connection for making DVDs and use the files as
 source for editing. In short: There will be two direct 1Gb network
 connections and one shared 1Gb connection. Will the server hold up?

Depending on the resolution and frame rate of your video, GigE is
nowhere near fast enough a pipe for live video manipulation.  This is
certainly the case when dealing with broadcast video.



We're only working in Standard Definition PAL (see the datarates in my first
post). I have done DV capture tests before over the network and that worked
fine. We're already having three machines feeding from one server today and
that works fine too allthough it is a bit slow. We're mainly copying files
to local drives, but DVD creation happens straight from the server.

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


How do I prevent unauthorized ssh login attempts?

2007-04-26 Thread Andreas Widerøe Andersen

I'm getting a lot of unauthorized ssh login attempts. I have a pretty basic
FreeBSD 6.2 setup. I have compiled my own kernel. Here's what I get from my
daily security run output:

myserver.domain.com login failures:
Apr 25 20:00:19 myserver sshd[57810]: Invalid user staff from 65.171.74.26
Apr 25 20:00:22 myserver sshd[57812]: Invalid user sales from 65.171.74.26
Apr 25 20:00:24 myserver sshd[57814]: Invalid user recruit from 65.171.74.26
Apr 25 20:00:26 myserver sshd[57816]: Invalid user alias from 65.171.74.26
Apr 25 20:00:28 myserver sshd[57818]: Invalid user office from 65.171.74.26
Apr 25 20:00:30 myserver sshd[57820]: Invalid user samba from 65.171.74.26
Apr 25 20:00:32 myserver sshd[57822]: Invalid user tomcat from 65.171.74.26
Apr 25 20:00:34 myserver sshd[57824]: Invalid user webadmin from
65.171.74.26
Apr 25 20:00:36 myserver sshd[57826]: Invalid user spam from 65.171.74.26
Apr 25 20:00:38 myserver sshd[57828]: Invalid user virus from 65.171.74.26
Apr 25 20:00:41 myserver sshd[57830]: Invalid user cyrus from 65.171.74.26
Apr 25 20:00:43 myserver sshd[57832]: Invalid user oracle from 65.171.74.26
Apr 25 20:00:45 myserver sshd[57834]: Invalid user michael from 65.171.74.26
Apr 25 20:00:47 myserver sshd[57836]: Invalid user ftp from 65.171.74.26
Apr 25 20:00:49 myserver sshd[57838]: Invalid user test from 65.171.74.26
Apr 25 20:00:51 myserver sshd[57840]: Invalid user webmaster from
65.171.74.26
Apr 25 20:00:53 myserver sshd[57842]: Invalid user postmaster from
65.171.74.26
Apr 25 20:00:56 myserver sshd[57844]: Invalid user postfix from 65.171.74.26
Apr 25 20:00:57 myserver sshd[57846]: Invalid user postgres from
65.171.74.26
Apr 25 20:00:59 myserver sshd[57848]: Invalid user paul from 65.171.74.26
Apr 25 20:01:04 myserver sshd[57852]: Invalid user guest from 65.171.74.26
Apr 25 20:01:06 myserver sshd[57854]: Invalid user admin from 65.171.74.26
Apr 25 20:01:08 myserver sshd[57856]: Invalid user linux from 65.171.74.26
Apr 25 20:01:11 myserver sshd[57858]: Invalid user user from 65.171.74.26
Apr 25 20:01:13 myserver sshd[57860]: Invalid user david from 65.171.74.26

How can I stop these attempts or block them - or even recognize them? I do
not have IPF installed.

Thanks for your help.

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


Re: How do I prevent unauthorized ssh login attempts?

2007-04-26 Thread Andreas Widerøe Andersen

On 4/26/07, Arek Czereszewski [EMAIL PROTECTED] wrote:


Andreas Widerøe Andersen wrote:
 I'm getting a lot of unauthorized ssh login attempts. I have a pretty
basic
 FreeBSD 6.2 setup. I have compiled my own kernel. Here's what I get from
my
 daily security run output:
[...]

Run sshd on other port.
And say about this your ssh users.



Can I change the ssh port on a live server somehow without getting locked
out? The server is on a remote co-location a flight away from me.

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


Re: How do I prevent unauthorized ssh login attempts?

2007-04-26 Thread Andreas Widerøe Andersen

On 4/26/07, Duane Hill [EMAIL PROTECTED] wrote:


On Thu, 26 Apr 2007, Pietro Cerutti wrote:

 On 4/26/07, Andreas Widerøe Andersen [EMAIL PROTECTED] wrote:
 On 4/26/07, Arek Czereszewski [EMAIL PROTECTED] wrote:
 
  Andreas Widerøe Andersen wrote:
   I'm getting a lot of unauthorized ssh login attempts. I have a
pretty
  basic
   FreeBSD 6.2 setup. I have compiled my own kernel. Here's what I get
 from
  my
   daily security run output:
  [...]
 
  Run sshd on other port.
  And say about this your ssh users.


 Can I change the ssh port on a live server somehow without getting
locked
 out? The server is on a remote co-location a flight away from me.

 Yes you can. SSH will keep your connection active until you log out,
 then you can log in using the new port

I will add the fact you will want to keep the current connection live and
test after you make the change with a new connection. That way if the new
connection fails, you still have a foot in the door.



Thanks! I got it working without having to fly out to the server. :-)

Let's see if this will prevent the unauthorized sshd login attempts.

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


How do I forward old root emails from the root mailbox to my address?

2007-04-25 Thread Andreas Widerøe Andersen

Hi,
On one of my FreeBSD servers all system emails to root is stored in the root
mailbox under /var/mail/root. I have updated my alias file so new mail is
forwarded to one of my email adresses, but is there a simple way for me to
send all these old mails in root's mailbox to my email address without
logging in through pop3/imap?

A command line trick would be perfect.

Thanks for your help!

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


Re: How do I forward old root emails from the root mailbox to my address?

2007-04-25 Thread Andreas Widerøe Andersen

On 4/25/07, Oliver Peter [EMAIL PROTECTED] wrote:


On Wed, Apr 25, 2007 at 11:11:07AM +0200, Andreas Widere Andersen wrote:
 Hi,
 On one of my FreeBSD servers all system emails to root is stored in the
root
 mailbox under /var/mail/root. I have updated my alias file so new mail
is
 forwarded to one of my email adresses, but is there a simple way for me
to
 send all these old mails in root's mailbox to my email address without
 logging in through pop3/imap?

 A command line trick would be perfect.

mutt is your friend.

Open the mbox file with
  # mutt -R -f /var/mail/root

Then Tag all mails (press 'T' then enter '.') and bounce the tagged
messages (press ';' and thenn 'b') to your personal email address.

That's the easiest way I know.
(Of course you need a running MTA, too)



Thanks for your reply. I don't have mutt installed and I was hoping for a
way of doing this without installing additional software. Also, I didn't
mention that on one of the machines there are probably a year of emails so
the box is quite large.

Any other ways? I have sendmail installed and running.

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


Re: How do I forward old root emails from the root mailbox to my address?

2007-04-25 Thread Andreas Widerøe Andersen

On 4/25/07, Steve Bertrand [EMAIL PROTECTED] wrote:


Oliver Peter wrote:
 On Wed, Apr 25, 2007 at 11:11:07AM +0200, Andreas Widere Andersen wrote:
 Hi,
 On one of my FreeBSD servers all system emails to root is stored in the
root
 mailbox under /var/mail/root. I have updated my alias file so new mail
is
 forwarded to one of my email adresses, but is there a simple way for me
to
 send all these old mails in root's mailbox to my email address without
 logging in through pop3/imap?

Perform the following command, assuming 'user' is the account you have
with the alias to somewhere else:

# mail -f /var/mail/root -F user

..which will merrily dump each message to the alias user, and from there
forward it to your email account.

Steve



Sweet!
Thank you all for helping out.

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


Need help: Zend Optimizer breaks Apache

2007-01-29 Thread Andreas Widerøe Andersen

Hi,
I'm having big problems getting the Zend Optimizer to work. I'm on FreeBSD
6.2 with PHP 5.2 installed and Apache 1.3.37. I install the Zend Optimizer
from ports and the current version is 3.22 (allthough my problems have been
around since I first tried this port at version 3.01).

Here's my backtrace:

# gdb /usr/local/sbin/httpd
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type show copying to see the conditions.
There is absolutely no warranty for GDB.  Type show warranty for details.
This GDB was configured as i386-marcel-freebsd...(no debugging symbols
found)...
(gdb) r -X
Starting program: /usr/local/sbin/httpd -X
(no debugging symbols found)...(no debugging symbols found)...(no debugging
symbols found)...(no debugging symbols found)...(no debugging symbols
found)...(no debugging symbols found)...(no debugging symbols found)...(no
debugging symbols found)...(no debugging symbols found)...(no debugging
symbols found)...(no debugging symbols found)...(no debugging symbols
found)...(no debugging symbols found)...(no debugging symbols found)...(no
debugging symbols found)...(no debugging symbols found)...(no debugging
symbols found)...(no debugging symbols found)...(no debugging symbols
found)...(no debugging symbols found)...(no debugging symbols found)...(no
debugging symbols found)...(no debugging symbols found)...(no debugging
symbols found)...(no debugging symbols found)...(no debugging symbols
found)...(no debugging symbols found)...(no debugging symbols found)...(no
debugging symbols found)...(no debugging symbols found)...(no debugging
symbols found)...(no debugging symbols found)...(no debugging symbols
found)...(no debugging symbols found)...(no debugging symbols found)...(no
debugging symbols found)...(no debugging symbols found)...(no debugging
symbols found)...(no debugging symbols found)...(no debugging symbols
found)...(no debugging symbols found)...(no debugging symbols found)...(no
debugging symbols found)...(no debugging symbols found)...(no debugging
symbols found)...(no debugging symbols found)...(no debugging symbols
found)...(no debugging symbols found)...(no debugging symbols found)...(no
debugging symbols found)...(no debugging symbols found)...(no debugging
symbols found)...(no debugging symbols found)...(no debugging symbols
found)...(no debugging symbols found)...(no debugging symbols found)...(no
debugging symbols found)...(no debugging symbols found)...(no debugging
symbols found)...(no debugging symbols found)...(no debugging symbols
found)...(no debugging symbols found)...(no debugging symbols found)...(no
debugging symbols found)...(no debugging symbols found)...(no debugging
symbols found)...(no debugging symbols found)...(no debugging symbols
found)...(no debugging symbols found)...(no debugging symbols found)...(no
debugging symbols found)...(no debugging symbols found)...(no debugging
symbols found)...(no debugging symbols found)...(no debugging symbols
found)...(no debugging symbols found)...(no debugging symbols found)...(no
debugging symbols found)...
Program received signal SIGSYS, Bad system call.
0x2812ae17 in shmget () from /lib/libc.so.6
(gdb) bt
#0  0x2812ae17 in shmget () from /lib/libc.so.6
#1  0x28e6b1ef in get_module () from
/usr/local/lib/php/20060613/Optimizer/php-5.2.x/ZendOptimizer.so
#2  0x in ?? ()
#3  0x0008 in ?? ()
#4  0x0180 in ?? ()
#5  0x28ee9dd8 in ?? () from /usr/local/lib/php/20060613/Optimizer/php-5.2.x
/ZendOptimizer.so
#6  0x284a6970 in ?? () from /usr/local/libexec/apache/libphp5.so
#7  0xbfbfe4b4 in ?? ()
#8  0x280859a1 in _rtld_bind () from /libexec/ld-elf.so.1
Previous frame inner to this frame (corrupt stack?)

Any ideas of what's going wrong here?

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


6.2 STABLE?

2007-01-26 Thread Andreas Widerøe Andersen

I just finished making and installing world and a new kernel yesterday. I
had cvsup'ed the latest src/ports with releng 6_2.

I thought 6.2 STABLE was out, but a uname-a shows 6.2 RELEASE on my system.

Am I missing something? :-)

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


Re: PHP compile arguements

2006-10-27 Thread Andreas Widerøe Andersen

Thanks! That worked.

Just one more question, I need to debug PHP5/Zend Optimizer because i
crashes (core dumps) Apache when started. I have enabled logging in php.ini,
but where is the logfile?

Cheers,
Andreas

On 10/26/06, Josh Paetzel [EMAIL PROTECTED] wrote:


On Thursday 26 October 2006 15:04, Andreas Widerøe Andersen wrote:
 Hi,
 I need to recompile PHP on my FreeBSD 6.1 STABLE system with two
 compile arguements and I don't know how to do this.

 What would the correct compile arguements be when using PORTINSTALL
 for:

 WITH apache and WITHOUT versioning?

 Thanks!
 Andreas

If you use the lang/php5 port and do a make config it will pop up a
dialog box which will allow you to select the apache option.  To take
out versioning you'll have to edit the port's Makefile and
remove --enable-versioning from the CONFIGURE_ARGS

--
Thanks,

Josh Paetzel


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


Re: PHP compile arguements

2006-10-27 Thread Andreas Widerøe Andersen

Nevermind... I've found it, but I don't get any error messages at all even
thought Apache crashes when I have enabled the ZendOptimizer extensions.soin my
php.ini file...

error_log/var/log/php_error.log/var/log/php_error.loglog_errorsOnOnand so
on...

/Andreas

On 10/27/06, Andreas Widerøe Andersen [EMAIL PROTECTED] wrote:


Thanks! That worked.

Just one more question, I need to debug PHP5/Zend Optimizer because i
crashes (core dumps) Apache when started. I have enabled logging in
php.ini, but where is the logfile?

Cheers,
Andreas

On 10/26/06, Josh Paetzel [EMAIL PROTECTED] wrote:

 On Thursday 26 October 2006 15:04, Andreas Widerøe Andersen wrote:
  Hi,
  I need to recompile PHP on my FreeBSD 6.1 STABLE system with two
  compile arguements and I don't know how to do this.
 
  What would the correct compile arguements be when using PORTINSTALL
  for:
 
  WITH apache and WITHOUT versioning?
 
  Thanks!
  Andreas

 If you use the lang/php5 port and do a make config it will pop up a
 dialog box which will allow you to select the apache option.  To take
 out versioning you'll have to edit the port's Makefile and
 remove --enable-versioning from the CONFIGURE_ARGS

 --
 Thanks,

 Josh Paetzel




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


PHP compile arguements

2006-10-26 Thread Andreas Widerøe Andersen

Hi,
I need to recompile PHP on my FreeBSD 6.1 STABLE system with two compile
arguements and I don't know how to do this.

What would the correct compile arguements be when using PORTINSTALL for:

WITH apache and WITHOUT versioning?

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


webbased email administration

2006-10-12 Thread Andreas Widerøe Andersen

Hi,
We're considering setting up an email service here and we need to give IT
admins in various companies the ability to administer their own email
addresses (under their domain).

I'm looking for software that will do this. We currently run Sendmail and
WU-POP3, but can easily change to Postfix or whatever needed.

Can anyone recommend a webbased system for administration of email adresses
that will run on FreeBSD?

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


ZendOptimizer on FreeBSD 6.1 - Apache core dumps

2006-10-07 Thread Andreas Widerøe Andersen

Hi,
We're about to purchase a software system that is encoded using Zend Guard
and therefore we need to install the ZendOptimizer on our FreeBSD 6.1 STABLE
server.

The ZendOptimizer package has been installed from ports (allthough manually
downloaded) and the needed text lines have been added to php.ini:

[Zend]
zend_optimizer.optimization_level=15
zend_extension_manager.optimizer=/usr/local/lib/php/20050922/Optimizer
zend_extension_manager.optimizer_ts=/usr/local/lib/php/20050922/Optimizer_TS
zend_extension=/usr/local/lib/php/20050922/ZendExtensionManager.so [ THIS
IS THE LINE THAT CAUSES THE PROBLEMS ]
zend_extension_ts=/usr/local/lib/php/20050922/ZendExtensionManager_TS.so

However, when starting Apache (1.3.37 and php 5.1.6) it core dumps and won't
start.

I have posted a message in the Zend forums days ago without a reply and now
it's getting urgent and I was hoping someone in here could provide us with
some help.

Here's the output from gdb:

Reading symbols from
/usr/local/lib/php/20050922/ZendExtensionManager.so...(no debugging symbols
found)...done.
Loaded symbols for /usr/local/lib/php/20050922/ZendExtensionManager.so
Reading symbols from /usr/local/lib/php/20050922/ctype.so...(no debugging
symbols found)...done.
Loaded symbols for /usr/local/lib/php/20050922/ctype.so
Reading symbols from /usr/local/lib/php/20050922/dom.so...(no debugging
symbols found)...done.
Loaded symbols for /usr/local/lib/php/20050922/dom.so
Reading symbols from /usr/local/lib/php/20050922/ftp.so...(no debugging
symbols found)...done.
Loaded symbols for /usr/local/lib/php/20050922/ftp.so
Reading symbols from /usr/lib/libssl.so.4...(no debugging symbols
found)...done.
Loaded symbols for /usr/lib/libssl.so.4
Reading symbols from /lib/libcrypto.so.4...(no debugging symbols
found)...done.
Loaded symbols for /lib/libcrypto.so.4
Reading symbols from /usr/local/lib/php/20050922/iconv.so...(no debugging
symbols found)...done.
Loaded symbols for /usr/local/lib/php/20050922/iconv.so
Reading symbols from /usr/local/lib/php/20050922/mysql.so...(no debugging
symbols found)...done.
Loaded symbols for /usr/local/lib/php/20050922/mysql.so
Reading symbols from /usr/local/lib/mysql/libmysqlclient.so.14...(no
debugging symbols found)...done.
Loaded symbols for /usr/local/lib/mysql/libmysqlclient.so.14
Reading symbols from /usr/local/lib/php/20050922/pcre.so...(no debugging
symbols found)...done.
Loaded symbols for /usr/local/lib/php/20050922/pcre.so
Reading symbols from /usr/local/lib/php/20050922/zlib.so...(no debugging
symbols found)...done.
Loaded symbols for /usr/local/lib/php/20050922/zlib.so
Reading symbols from /usr/local/lib/php/20050922/pdo.so...(no debugging
symbols found)...done.
Loaded symbols for /usr/local/lib/php/20050922/pdo.so
Reading symbols from /usr/local/lib/php/20050922/posix.so...(no debugging
symbols found)...done.
Loaded symbols for /usr/local/lib/php/20050922/posix.so
Reading symbols from /usr/local/lib/php/20050922/session.so...(no debugging
symbols found)...done.
Loaded symbols for /usr/local/lib/php/20050922/session.so
Reading symbols from /usr/local/lib/php/20050922/simplexml.so...(no
debugging symbols found)...done.
Loaded symbols for /usr/local/lib/php/20050922/simplexml.so
Reading symbols from /usr/local/lib/php/20050922/sqlite.so...(no debugging
symbols found)...done.
Loaded symbols for /usr/local/lib/php/20050922/sqlite.so
Reading symbols from /usr/local/lib/php/20050922/tokenizer.so...(no
debugging symbols found)...done.
Loaded symbols for /usr/local/lib/php/20050922/tokenizer.so
Reading symbols from /usr/local/lib/php/20050922/xml.so...(no debugging
symbols found)...done.
Loaded symbols for /usr/local/lib/php/20050922/xml.so
Reading symbols from /usr/local/lib/php/20050922/xmlreader.so...(no
debugging symbols found)...done.
Loaded symbols for /usr/local/lib/php/20050922/xmlreader.so
Reading symbols from /usr/local/lib/php/20050922/xmlwriter.so...(no
debugging symbols found)...done.
Loaded symbols for /usr/local/lib/php/20050922/xmlwriter.so
Reading symbols from /usr/local/lib/php/20050922/bz2.so...(no debugging
symbols found)...done.
Loaded symbols for /usr/local/lib/php/20050922/bz2.so
Reading symbols from /usr/lib/libbz2.so.2...(no debugging symbols
found)...done.
Loaded symbols for /usr/lib/libbz2.so.2
Reading symbols from /usr/local/lib/php/20050922/openssl.so...(no debugging
symbols found)...done.
Loaded symbols for /usr/local/lib/php/20050922/openssl.so
Reading symbols from /usr/local/lib/php/20050922/mcrypt.so...(no debugging
symbols found)...done.
Loaded symbols for /usr/local/lib/php/20050922/mcrypt.so
Reading symbols from /usr/local/lib/libmcrypt.so.8...(no debugging symbols
found)...done.
Loaded symbols for /usr/local/lib/libmcrypt.so.8
Reading symbols from /usr/local/lib/libltdl.so.4...(no debugging symbols
found)...done.
Loaded symbols for /usr/local/lib/libltdl.so.4
Reading symbols from /usr/local/lib/php/20050922/mbstring.so...(no debugging
symbols found)...done.
Loaded symbols for 

Trouble installing 6.1 on an old machine

2006-09-04 Thread Andreas Widerøe Andersen

I have an OLD machine (from 1996) that's been running FreeBSD for about 8
years now steady and reliable. It has gone through several versions and was
running 4.11 untill today when I decided to make a fresh 6.1 install.

When booting from the installation CD the only way I can make it skip a lot
of harddrive errors is when I boot in safe mode. I did this and installed
the system. However, the same problems are there when I reboot from
harddrive after the install (not in safe mode).

Here are a few of the error messages I get:

ad0: Failure READ_DMA timed out LBA=0
ad1: Failure READ_DMA timed out LBA=13281487
ad1: Timeout READ_DMA retrying (1 retry left) LBA=0
and so on...

It ends with a mountroot prompt.

Any ideas what I can try?

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


Re: Trouble installing 6.1 on an old machine

2006-09-04 Thread Andreas Widerøe Andersen

I just downloaded version 4.11 from the FreeBSD ftp archives, burnt a boot
CD and tried to reinstall the system via FTP from the archives. This worked
perfect. No problems.

I guess this means it's not a hardware problem, but rather some changes made
to newer versions of FreeBSD.

Anyone know what I can do to get 6.1 up and running on this ancient machine?

Cheers,
Andreas

---

On 9/4/06, Andreas Widerøe Andersen [EMAIL PROTECTED] wrote:


I have an OLD machine (from 1996) that's been running FreeBSD for about 8
years now steady and reliable. It has gone through several versions and was
running 4.11 untill today when I decided to make a fresh 6.1 install.

When booting from the installation CD the only way I can make it skip a
lot of harddrive errors is when I boot in safe mode. I did this and
installed the system. However, the same problems are there when I reboot
from harddrive after the install (not in safe mode).

Here are a few of the error messages I get:

ad0: Failure READ_DMA timed out LBA=0
ad1: Failure READ_DMA timed out LBA=13281487
ad1: Timeout READ_DMA retrying (1 retry left) LBA=0
and so on...

It ends with a mountroot prompt.

Any ideas what I can try?

Thanks,
Andreas


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


Re: Trouble installing 6.1 on an old machine

2006-09-04 Thread Andreas Widerøe Andersen

Thanks for your help!

Yeah, can't get any BIOS upgrades anymore. I doubt that I'll spend time on
removing harddrives again. I may just stick to 4.11 then. It's just a
testserver on my local network anyway.

Best,
Andreas

---

On 9/4/06, Bob [EMAIL PROTECTED] wrote:


I have same problem with my 10+ year old server boxes.

First the boot bios scan has changed between 4.11 and 6.0. You can upgrade
your old PC's bios. In most cases the mfg does not support the motherboard
any more so chance of getting upgrade to burn the bios chip is most
un-likely. You can get 3rd party replacement bio chip from www.umicore.com
for around $80.00.

Second problem is the size of the 5.2 and newer FreeBSD install kernel. It
has gotten bigger and will not function properly on pre-2000 equipment.
Solution is to take the hard drive from old PC and plug into newer box and
do install. After base system install is completed just return hard drive
to
old pc and boot from it. Will work fine from that point on.  This works
fine
on my 386 cpu 33 mhz server pc manufactured in 1994 and its currently
running FreeBSD 6.1.

Good luck.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Andreas Widerøe
Andersen
Sent: Monday, September 04, 2006 6:47 AM
To: freebsd-questions@freebsd.org
Subject: Re: Trouble installing 6.1 on an old machine

I just downloaded version 4.11 from the FreeBSD ftp archives, burnt a boot
CD and tried to reinstall the system via FTP from the archives. This
worked
perfect. No problems.

I guess this means it's not a hardware problem, but rather some changes
made
to newer versions of FreeBSD.

Anyone know what I can do to get 6.1 up and running on this ancient
machine?

Cheers,
Andreas

---

On 9/4/06, Andreas Widerøe Andersen [EMAIL PROTECTED] wrote:

 I have an OLD machine (from 1996) that's been running FreeBSD for about
8
 years now steady and reliable. It has gone through several versions and
was
 running 4.11 untill today when I decided to make a fresh 6.1 install.

 When booting from the installation CD the only way I can make it skip a
 lot of harddrive errors is when I boot in safe mode. I did this and
 installed the system. However, the same problems are there when I reboot
 from harddrive after the install (not in safe mode).

 Here are a few of the error messages I get:

 ad0: Failure READ_DMA timed out LBA=0
 ad1: Failure READ_DMA timed out LBA=13281487
 ad1: Timeout READ_DMA retrying (1 retry left) LBA=0
 and so on...

 It ends with a mountroot prompt.

 Any ideas what I can try?

 Thanks,
 Andreas

___
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]


How to get the install config options back?

2006-09-04 Thread Andreas Widerøe Andersen

Hi,
When I install a new port (Ie. php5) I early get a config options box where
I can choose various add-ons.

However, if the installation fails or I abort it somehow I can't seem to get
the option box back the next time I want to install the port again.

How can I get this box back so I can make changes to the installation
options?

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


Re: Reinstalling Sendmail?

2006-08-13 Thread Andreas Widerøe Andersen

On 8/10/06, Frank Staals [EMAIL PROTECTED] wrote:


You can recompile sendmail, you'll have to have the kernel sources
installed though:

# cd /usr/src/lib/libsm; make clean; make obj; make depend; make
# cd /usr/src/lib/libsmutil; make clean; make obj; make depend; make
# cd /usr/src/usr.sbin/sendmail; make clean; make obj; make depend; make;
make install

you might want to read Jonathan Horne's page about configuring sendmail (
among other services ) :

http://dfwlpiki.dfwlp.org/index.php/Deploying_a_FreeBSD_Server#Configuring_Mail_Services



Thanks!
Nice tutorial.

I have dowloaded all sources from cvs to my system. Should I delete some old
sources/working dirs/etc from when I've installed software before or from
when I built world and kernel?

I guess they're under /usr/src somewhere.

Just worried about some old files with wrong config that might screw this
up.

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


Re: Reinstalling Sendmail?

2006-08-13 Thread Andreas Widerøe Andersen

On 8/10/06, Frank Staals [EMAIL PROTECTED] wrote:


Andreas Widerøe Andersen wrote:
 I have some problems with Sendmail (ref an older thread I posted):

 pid 72284 (sendmail), uid 0: exited on signal 11
 pid 72505 (sendmail), uid 0: exited on signal 11
 pid 72672 (sendmail), uid 0: exited on signal 11

 This happens every 30 minutes. It started after I upgraded from 4.7 to
 4.11p19.


 Is there some easy way I can reinstall sendmail completely getting it
 back
 to the way it is when installing a fresh system? I don't want to tweak
 and
 dig too much with this anymore so I rather start from scratch.

 I know it's part of the base system, but is there some way to do this?

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


You can recompile sendmail, you'll have to have the kernel sources
installed though:

# cd /usr/src/lib/libsm; make clean; make obj; make depend; make
# cd /usr/src/lib/libsmutil; make clean; make obj; make depend; make
# cd /usr/src/usr.sbin/sendmail; make clean; make obj; make depend; make;
make install

you might want to read Jonathan Horne's page about configuring sendmail (
among other services ) :

http://dfwlpiki.dfwlp.org/index.php/Deploying_a_FreeBSD_Server#Configuring_Mail_Services



Thanks!
Nice tutorial.

I have dowloaded all sources from cvs to my system. Should I delete some old
sources/working dirs/etc from when I've installed software before or from
when I built world and kernel?

I guess they're under /usr/src somewhere.

Just worried about some old files with wrong config that might screw this
up.

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


Re: Reinstalling Sendmail?

2006-08-13 Thread Andreas Widerøe Andersen

Hi,
I don't know how or where to see exactly why it is exiting. I only see what
I've posted from the standard logfiles under /var/log.

Can you please give me some input on where I can dig up some additional info
about the crash?

Thanks,
Andreas

---

On 8/10/06, Derek Ragona [EMAIL PROTECTED] wrote:


 You should check your log file and see why sendmail is exiting.

-Derek



At 06:33 AM 8/10/2006, Andreas Widerøe Andersen wrote:

I have some problems with Sendmail (ref an older thread I posted):

pid 72284 (sendmail), uid 0: exited on signal 11
pid 72505 (sendmail), uid 0: exited on signal 11
pid 72672 (sendmail), uid 0: exited on signal 11

This happens every 30 minutes. It started after I upgraded from 4.7 to
4.11p19.


Is there some easy way I can reinstall sendmail completely getting it back
to the way it is when installing a fresh system? I don't want to tweak and
dig too much with this anymore so I rather start from scratch.

I know it's part of the base system, but is there some way to do this?

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

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
MailScanner thanks transtec Computers for their support.


--
This message has been scanned for viruses and
dangerous content by *MailScanner* http://www.mailscanner.info/, and is
believed to be clean.
MailScanner thanks transtec Computers http://www.transtec.co.uk/ for
their support.


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


Reinstalling Sendmail?

2006-08-10 Thread Andreas Widerøe Andersen

I have some problems with Sendmail (ref an older thread I posted):

pid 72284 (sendmail), uid 0: exited on signal 11
pid 72505 (sendmail), uid 0: exited on signal 11
pid 72672 (sendmail), uid 0: exited on signal 11

This happens every 30 minutes. It started after I upgraded from 4.7 to 4.11p19.


Is there some easy way I can reinstall sendmail completely getting it back
to the way it is when installing a fresh system? I don't want to tweak and
dig too much with this anymore so I rather start from scratch.

I know it's part of the base system, but is there some way to do this?

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


Re: Finding IP Addresses (OT)

2006-08-10 Thread Andreas Widerøe Andersen

On 8/10/06, beno [EMAIL PROTECTED] wrote:


Hi;
I'm configuring my IP filter and I need to figure out what IP addresses
I use (via SSH2) to contact my server. However, my ISP is DirecWay
bouncing off a satellite. I've got a sample IP address from
/var/log/messages and I'm sure over time I could collect a truckload,
but I'd still miss some. Is there someplace on the Web that has those
ranges of IP addresses posted that the big companies use?
TIA,
beno



Hi,
In Europe  there is ripe.net. Try do this command:

# whois -h whois.ripe.net one.of.your.ips

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


Re: Need help! Apache core dumps when running startssl

2006-08-08 Thread Andreas Widerøe Andersen

On 8/8/06, Girish Venkatachalam [EMAIL PROTECTED] wrote:




--- Andreas Wider�e Andersen [EMAIL PROTECTED]
wrote:

 Hi,
 I recently upgraded one of my production servers to
 FreeBSD 4.11 p19 and
 then upgraded all ports. I'm now running Apache
 1.3.36 mod_ssl and Php 4.4.2
 .

 I had Squirrelmail running on https and now I can't
 start Apache with ssl.
 Every time it coredumps. I've tried snakeoil and my
 own cert. Same thing
 happens.

 This is the error message I can see from my
 httpd-error.log:

 [Mon Aug  7 20:20:03 2006] [notice] caught SIGTERM,
 shutting down

 ssl-engine log:

 [07/Aug/2006 20:29:01 16880] [info]  Server:
 Apache/1.3.36, Interface:
 mod_ssl/2.8.27, Library: OpenSSL/0.9.8b
 [07/Aug/2006 20:29:01 16880] [info]  Init: 1st
 startup round (still not
 detached)
 [07/Aug/2006 20:29:01 16880] [info]  Init:
 Initializing OpenSSL library
 [07/Aug/2006 20:29:01 16880] [info]  Init: Loading
 certificate  private key
 of SSL-aware server my.domain.com:443
 [07/Aug/2006 20:29:01 16880] [info]  Init: Seeding
 PRNG with 136 bytes of
 entropy
 [07/Aug/2006 20:29:01 16880] [info]  Init:
 Generating temporary RSA private
 keys (512/1024 bits)

 from messages:

 Aug  7 20:34:52 server /kernel: pid 17041 (httpd),
 uid 0: exited on signal
 11 (core dumped)

 That's it. I can't find any other logs and I can't
 tell what's wrong.

 What could it be and what can I do? I have checked
 the httpd.conf file and
 compared the previous version with the new dist.
 Same directives related to
 ssl virtualhost as far as I can see.

 Hope to get some input.
Looks like ur random seeding is not happening
properly. check whether /dev/random and /dev/urandom
work properly. You can verify it with the command

$openssl rand  512

HTH,
Girish



Thanks for your reply. This just gave me a lot of garbage on the screen.
Ie, like this:

¿Ð3•Éšï¼–|¥¾WpŒÞÐàvC~
jþ‚vzü¼ùµÒ¼}$(c)swüg;€ñ¿gé¶ïa°(c)éå4|C—(c)\Î
}™v=Ãñ5Î×%âÔÙZ`,BÜÃT‰‹þBŒv´ýh£ÙlõKkòä2ZüìÊg{åVµ±ü3`BɁ¦Á(›¤2çyõû12ÿNº9Å—ùèkÒ™ºß…¼'—ú

...

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

Re: Need help! Apache core dumps when running startssl

2006-08-08 Thread Andreas Widerøe Andersen


[snip]

Then that is working properly. I think you can try
this then. Which might also work and I am out  of
ideas. :-(

$ openssl genrsa 1024



# openssl genrsa 1024
Generating RSA private key, 1024 bit long modulus
...++
...++
e is 65537 (0x10001)
-BEGIN RSA PRIVATE KEY-
[deleted]
-END RSA PRIVATE KEY-

Seems fine to me. It generates the key just like it should I think.

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


Re: Need help! Apache core dumps when running startssl

2006-08-08 Thread Andreas Widerøe Andersen

On 8/8/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:


Quoting Girish Venkatachalam [EMAIL PROTECTED]:
Hope to get some input.
   Looks like ur random seeding is not happening
   properly. check whether /dev/random and
  /dev/urandom
   work properly. You can verify it with the command
  
   $openssl rand  512
  


Why not just run httpd under gdb, and see WHY it is crashing?

gdb httpd httpd.core

run -X

once cored, just back trace, step, and it should tell you exactly why it
is
crashing...



Thanks!
How do I start httpd with ssl support from this command? (I do apachectl
startssl when Apache crashes. apachectl start works fine though.)

Apache runs fine when ssl is NOT started.

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


Re: Need help! Apache core dumps when running startssl

2006-08-08 Thread Andreas Widerøe Andersen

On 8/8/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:


Quoting Andreas Widerøe Andersen [EMAIL PROTECTED]:

 On 8/8/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 
  Quoting Girish Venkatachalam [EMAIL PROTECTED]:
  Hope to get some input.
 Looks like ur random seeding is not happening
 properly. check whether /dev/random and
/dev/urandom
 work properly. You can verify it with the command

 $openssl rand  512

 
 
  Why not just run httpd under gdb, and see WHY it is crashing?
 
  gdb httpd httpd.core
 
  run -X
 
  once cored, just back trace, step, and it should tell you exactly why
it
  is
  crashing...


 Thanks!
 How do I start httpd with ssl support from this command? (I do apachectl
 startssl when Apache crashes. apachectl start works fine though.)

 Apache runs fine when ssl is NOT started.

run -X -DSSL



Here's the output:

# gdb httpd httpd.core
GNU gdb 4.18 (FreeBSD)
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type show copying to see the conditions.
There is absolutely no warranty for GDB.  Type show warranty for details.
This GDB was configured as i386-unknown-freebsd...(no debugging symbols
found)...
Core was generated by `httpd'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/lib/libcrypt.so.2...(no debugging symbols
found)...done.
Reading symbols from /usr/local/lib/libmm.so.14...(no debugging symbols
found)...done.
Reading symbols from /usr/local/lib/libexpat.so.6...(no debugging symbols
found)...done.
Reading symbols from /usr/lib/libc.so.4...(no debugging symbols
found)...done.
Reading symbols from /usr/local/libexec/apache/mod_mmap_static.so...(no
debugging symbols found)...done.
Reading symbols from /usr/local/libexec/apache/mod_vhost_alias.so...(no
debugging symbols found)...done.
Reading symbols from /usr/local/libexec/apache/mod_env.so...(no debugging
symbols found)...done.
Reading symbols from /usr/local/libexec/apache/mod_define.so...(no debugging
symbols found)...done.
Reading symbols from /usr/local/libexec/apache/mod_log_config.so...(no
debugging symbols found)...done.
Reading symbols from /usr/local/libexec/apache/mod_mime_magic.so...(no
debugging symbols found)...done.
Reading symbols from /usr/local/libexec/apache/mod_mime.so...(no debugging
symbols found)...done.
Reading symbols from /usr/local/libexec/apache/mod_negotiation.so...(no
debugging symbols found)...done.
Reading symbols from /usr/local/libexec/apache/mod_status.so...(no debugging
symbols found)...done.
Reading symbols from /usr/local/libexec/apache/mod_info.so...(no debugging
symbols found)...done.
Reading symbols from /usr/local/libexec/apache/mod_include.so...(no
debugging symbols found)...done.
Reading symbols from /usr/local/libexec/apache/mod_autoindex.so...(no
debugging symbols found)...done.
Reading symbols from /usr/local/libexec/apache/mod_dir.so...(no debugging
symbols found)...done.
Reading symbols from /usr/local/libexec/apache/mod_cgi.so...(no debugging
symbols found)...done.
Reading symbols from /usr/local/libexec/apache/mod_asis.so...(no debugging
symbols found)...done.
Reading symbols from /usr/local/libexec/apache/mod_imap.so...(no debugging
symbols found)...done.
Reading symbols from /usr/local/libexec/apache/mod_actions.so...(no
debugging symbols found)...done.
Reading symbols from /usr/local/libexec/apache/mod_speling.so...(no
debugging symbols found)...done.
Reading symbols from /usr/local/libexec/apache/mod_userdir.so...(no
debugging symbols found)...done.
Reading symbols from /usr/local/libexec/apache/mod_alias.so...(no debugging
symbols found)...done.
Reading symbols from /usr/local/libexec/apache/mod_rewrite.so...(no
debugging symbols found)...done.
Reading symbols from /usr/local/libexec/apache/mod_access.so...(no debugging
symbols found)...done.
Reading symbols from /usr/local/libexec/apache/mod_auth.so...(no debugging
symbols found)...done.
Reading symbols from /usr/local/libexec/apache/mod_auth_anon.so...(no
debugging symbols found)...done.
Reading symbols from /usr/local/libexec/apache/mod_auth_db.so...(no
debugging symbols found)...done.
Reading symbols from /usr/local/libexec/apache/mod_digest.so...(no debugging
symbols found)...done.
Reading symbols from /usr/local/libexec/apache/libproxy.so...(no debugging
symbols found)...done.
Reading symbols from /usr/local/libexec/apache/mod_cern_meta.so...(no
debugging symbols found)...done.
Reading symbols from /usr/local/libexec/apache/mod_expires.so...(no
debugging symbols found)...done.
Reading symbols from /usr/local/libexec/apache/mod_headers.so...(no
debugging symbols found)...done.
Reading symbols from /usr/local/libexec/apache/mod_usertrack.so...(no
debugging symbols found)...done.
Reading symbols from /usr/local/libexec/apache/mod_log_forensic.so...(no
debugging symbols found)...done.
Reading symbols from

Re: Need help! Apache core dumps when running startssl

2006-08-08 Thread Andreas Widerøe Andersen

On 8/8/06, Andreas Widerøe Andersen [EMAIL PROTECTED] wrote:




On 8/8/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

 Quoting Andreas Widerøe Andersen [EMAIL PROTECTED] :

  (no debugging symbols found)...(no debugging symbols found)...(no
 debugging
  symbols found)...
  Program received signal SIGPIPE, Broken pipe.
  0x2810b1e8 in writev () from /usr/lib/libc.so.4
  (gdb)

 And there's your problem.  Some library did not link to libc
 properly.  Do a
 backtrace and a step, it will tell you which module is failing.

 I've had numerous problems like this in the past (mostly with mod_php
 though),
 recompiling the modules that gave errors sorted them out.

 I doubt this is a mod_ssl issue.



Thanks. How do I find out which module is creating these problems? and can I
just recompile? I mean, what if it's a system module...

Sorry for all these questions, but this is a little above my head. :-)

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


Re: Need help! Apache core dumps when running startssl

2006-08-08 Thread Andreas Widerøe Andersen

On 8/8/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:


Quoting Andreas Widerøe Andersen [EMAIL PROTECTED]:

 On 8/8/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 
  Quoting Andreas Widerøe Andersen [EMAIL PROTECTED]:
 
   (no debugging symbols found)...(no debugging symbols found)...(no
  debugging
   symbols found)...
   Program received signal SIGPIPE, Broken pipe.
   0x2810b1e8 in writev () from /usr/lib/libc.so.4
   (gdb)
 
  And there's your problem.  Some library did not link to libc
properly.  Do
  a
  backtrace and a step, it will tell you which module is failing.
 
  I've had numerous problems like this in the past (mostly with mod_php
  though),
  recompiling the modules that gave errors sorted them out.
 
  I doubt this is a mod_ssl issue.


 Thanks. How do I find out which module is creating these problems? and
can I
 just recompile? I mean, what if it's a system module...

As I said,  use a backtrace

gdb httpd httpd.core
run -X -DSSL
bt
step

It should show you right up to the very line of code in the module that is
causing the crash...



This is what I get now:

(gdb) bt
#0  0x283d1d61 in bn_mul_add_words () from /usr/local/lib/libcrypto.so.4
#1  0x8 in ?? ()
Error accessing memory address 0x55b7d3a2: Bad address.
(gdb) step
Single stepping until exit from function bn_mul_add_words,
which has no line number information.

Program terminated with signal SIGSEGV, Segmentation fault.
The program no longer exists.
(gdb) bt
No stack.

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


Re: [SOLVED] Need help! Apache core dumps when running startssl

2006-08-08 Thread Andreas Widerøe Andersen

On 8/8/06, Andreas Widerøe Andersen [EMAIL PROTECTED] wrote:




On 8/8/06, Girish Venkatachalam [EMAIL PROTECTED] wrote:



 --- Andreas Wider�e Andersen [EMAIL PROTECTED]
 wrote:

  On 8/8/06, [EMAIL PROTECTED]
   [EMAIL PROTECTED] wrote:
  
   Quoting Andreas Wider�e Andersen
  [EMAIL PROTECTED]:
  
On 8/8/06, [EMAIL PROTECTED]
  [EMAIL PROTECTED] wrote:

 Quoting Andreas Wider�e Andersen
   [EMAIL PROTECTED]:

  (no debugging symbols found)...(no debugging
  symbols found)...(no
 debugging
  symbols found)...
  Program received signal SIGPIPE, Broken
  pipe.
  0x2810b1e8 in writev () from
  /usr/lib/libc.so.4
  (gdb)

 And there's your problem.  Some library did
  not link to libc
   properly.  Do
 a
 backtrace and a step, it will tell you which
  module is failing.

 I've had numerous problems like this in the
  past (mostly with mod_php
 though),
 recompiling the modules that gave errors
  sorted them out.

 I doubt this is a mod_ssl issue.
   
   
Thanks. How do I find out which module is
  creating these problems? and
   can I
just recompile? I mean, what if it's a system
  module...
  
   As I said,  use a backtrace
  
   gdb httpd httpd.core
   run -X -DSSL
   bt
   step
  
   It should show you right up to the very line of
  code in the module that is
   causing the crash...
 
 
  This is what I get now:
 
  (gdb) bt
  #0  0x283d1d61 in bn_mul_add_words () from
  /usr/local/lib/libcrypto.so.4
  #1  0x8 in ?? ()
  Error accessing memory address 0x55b7d3a2: Bad
  address.
  (gdb) step
  Single stepping until exit from function
  bn_mul_add_words,
  which has no line number information.
 
  Program terminated with signal SIGSEGV, Segmentation
  fault.
  The program no longer exists.
  (gdb) bt
  No stack.

 OpenSSL shared libraries are the culprit. Try
 installing some other version of openssl and please
 remember to build shared objects, IIRC it is
 ./config --enable-shared
 or something.

 That shud take care of ur problem.

 Best,
 Girish



I went into /usr/ports/security/openssl and did a make deinstall and then
make reinstall and it worked! Now things are back normal again.

Thanks a lot for all your help. Very much appreciated!!!

Best regards from sunny Norway,
Andreas
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]

Need help! Apache core dumps when running startssl

2006-08-07 Thread Andreas Widerøe Andersen

Hi,
I recently upgraded one of my production servers to FreeBSD 4.11 p19 and
then upgraded all ports. I'm now running Apache 1.3.36 mod_ssl and Php 4.4.2
.

I had Squirrelmail running on https and now I can't start Apache with ssl.
Every time it coredumps. I've tried snakeoil and my own cert. Same thing
happens.

This is the error message I can see from my httpd-error.log:

[Mon Aug  7 20:20:03 2006] [notice] caught SIGTERM, shutting down

ssl-engine log:

[07/Aug/2006 20:29:01 16880] [info]  Server: Apache/1.3.36, Interface:
mod_ssl/2.8.27, Library: OpenSSL/0.9.8b
[07/Aug/2006 20:29:01 16880] [info]  Init: 1st startup round (still not
detached)
[07/Aug/2006 20:29:01 16880] [info]  Init: Initializing OpenSSL library
[07/Aug/2006 20:29:01 16880] [info]  Init: Loading certificate  private key
of SSL-aware server my.domain.com:443
[07/Aug/2006 20:29:01 16880] [info]  Init: Seeding PRNG with 136 bytes of
entropy
[07/Aug/2006 20:29:01 16880] [info]  Init: Generating temporary RSA private
keys (512/1024 bits)

from messages:

Aug  7 20:34:52 server /kernel: pid 17041 (httpd), uid 0: exited on signal
11 (core dumped)

That's it. I can't find any other logs and I can't tell what's wrong.

What could it be and what can I do? I have checked the httpd.conf file and
compared the previous version with the new dist. Same directives related to
ssl virtualhost as far as I can see.

Hope to get some input.

Thanks  Best regards,
Andreas W. Andersen
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Help fixing sendmail crassh

2006-08-07 Thread Andreas Widerøe Andersen

Hi,

On 7/2/06, Giorgos Keramidas [EMAIL PROTECTED] wrote:


On 2006-07-02 11:32, Andreas Wider?e Andersen [EMAIL PROTECTED] wrote:
 Hi,
 Sendmail exits about every 30 minutes. I suspect it has to do with some
 mailqueues running, but I don't know how to stop or fix it.

 Running FreeBSD 4.11 p19
 Sendmail 8.13.1

 from /var/log/messages

 Jul  1 20:41:02 malibu /kernel: pid 50923 (sendmail), uid 0: exited on
signal 11
 Jul  1 21:08:59 malibu /kernel: pid 51058 (sendmail), uid 0: exited on
signal 11
 Jul  1 21:39:00 malibu /kernel: pid 51252 (sendmail), uid 0: exited on
signal 11
 Jul  1 22:07:39 malibu /kernel: pid 51374 (sendmail), uid 0: exited on
signal 11

Are other programs crashing with signal 11 too?  This may be a hardware
problem.  I've been running Sendmail on FreeBSD for ages without any
sign of signal 11:

# cd /var/log
# ( bzcat $( ls -d1 messages*bz2 | sort -r) ; cat messages ) | grep
'sendmail.*signal'
#



This shows a lot of Sendmail Signal 11 errors.


I was hoping someone could give me a hand here so I can get this issue
 resolved.

* What local configuration changes have you made to the standard
  freebsd.mc and freebsd.submit.mc files?



My freebsd.mc file from /etc/mail:

divert(0)
VERSIONID(`$FreeBSD: src/etc/sendmail/freebsd.mc,v 1.10.2.19 2003/12/31
17:42:16 gshapiro Exp $')
OSTYPE(freebsd4)
DOMAIN(generic)

FEATURE(access_db, `hash -o -TTMPF /etc/mail/access')
FEATURE(blacklist_recipients)
FEATURE(local_lmtp)
FEATURE(mailertable, `hash -o /etc/mail/mailertable')
FEATURE(virtusertable, `hash -o /etc/mail/virtusertable')

dnl Uncomment to allow relaying based on your MX records.
dnl NOTE: This can allow sites to use your server as a backup MX without
dnl   your permission.
dnl FEATURE(relay_based_on_MX)

dnl DNS based black hole lists
dnl 
dnl DNS based black hole lists come and go on a regular basis
dnl so this file will not serve as a database of the available servers.
dnl For that, visit
dnl
http://directory.google.com/Top/Computers/Internet/Abuse/Spam/Blacklists/

dnl Uncomment to activate Realtime Blackhole List
dnl information available at http://www.mail-abuse.com/
dnl NOTE: This is a subscription service as of July 31, 2001
dnl FEATURE(dnsbl)
dnl Alternatively, you can provide your own server and rejection message:
dnl FEATURE(dnsbl, `blackholes.mail-abuse.org', `550 Mail from 
${client_addr}  rejected, see htt
p://mail-abuse.org/cgi-bin/lookup? ${client_addr}')

dnl Dialup users should uncomment and define this appropriately
dnl define(`SMART_HOST', `your.isp.mail.server')

dnl Uncomment the first line to change the location of the default
dnl /etc/mail/local-host-names and comment out the second line.
dnl define(`confCW_FILE', `-o /etc/mail/sendmail.cw')
define(`confCW_FILE', `-o /etc/mail/local-host-names')

dnl Enable for both IPv4 and IPv6 (optional)
DAEMON_OPTIONS(`Name=IPv4, Family=inet')
dnl DAEMON_OPTIONS(`Name=IPv6, Family=inet6, Modifiers=O')

define(`confBIND_OPTS', `WorkAroundBroken')
define(`confNO_RCPT_ACTION', `add-to-undisclosed')
define(`confPRIVACY_FLAGS', `authwarnings,noexpn,novrfy')
MAILER(local)
MAILER(smtp)

freebsd.submit.mc

divert(0)dnl
VERSIONID(`$FreeBSD: src/etc/sendmail/freebsd.submit.mc,v 1.1.2.1 2003/10/30
22:38:33 gshapiro Exp $'
)
define(`confCF_VERSION', `Submit')dnl
define(`__OSTYPE__',`')dnl dirty hack to keep proto.m4 from complaining
define(`_USE_DECNET_SYNTAX_', `1')dnl support DECnet
define(`confTIME_ZONE', `USE_TZ')dnl
define(`confDONT_INIT_GROUPS', `True')dnl
define(`confBIND_OPTS', `WorkAroundBroken')dnl
dnl
dnl If you use IPv6 only, change [127.0.0.1] to [IPv6:::1]
FEATURE(`msp', `[127.0.0.1]')dnl


* Have you checked your memory for errors (see the sysutils/memtest and

  the sysutils/memtest86 ports).



Testing now, but don't think there are memory problems. The system works
fine besides Sendmail. Before I rebooted last time the server had an uptime
of  592 days.

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


Help fixing sendmail crassh

2006-07-02 Thread Andreas Widerøe Andersen

Hi,
Sendmail exits about every 30 minutes. I suspect it has to do with some
mailqueues running, but I don't know how to stop or fix it.

Running FreeBSD 4.11 p19
Sendmail 8.13.1

from /var/log/messages

Jul  1 20:41:02 malibu /kernel: pid 50923 (sendmail), uid 0: exited on
signal 11
Jul  1 21:08:59 malibu /kernel: pid 51058 (sendmail), uid 0: exited on
signal 11
Jul  1 21:39:00 malibu /kernel: pid 51252 (sendmail), uid 0: exited on
signal 11
Jul  1 22:07:39 malibu /kernel: pid 51374 (sendmail), uid 0: exited on
signal 11

from dmesg

pid 55105 (sendmail), uid 0: exited on signal 11
pid 55241 (sendmail), uid 0: exited on signal 11
pid 55371 (sendmail), uid 0: exited on signal 11

#] ps -aux | grep sendmail
root   55434  0.0  0.5  3924 2408  ??  I11:27AM   0:00.02 sendmail:
k629RrSW055434 [219.82.19
smmsp 92  0.0  0.2  3296  960  ??  Is   Wed03PM   0:00.30 sendmail:
Queue [EMAIL PROTECTED]:30:00 for
root  89  0.0  0.3  3776 1420  ??  Ss   Wed03PM   0:25.13 sendmail:
accepting connections (se
root   55441  0.0  0.1  1020  500  p0  DL+  11:28AM   0:00.00 grep sendmail

I was hoping someone could give me a hand here so I can get this issue
resolved.

Thanks!

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


How do I add more aliases to my .forward vacation file?

2006-06-29 Thread Andreas Widerøe Andersen

Hi,
How can I add more than one alias to my .forward vacation file?

I have an email address that has two aliases in addition to the username. I
receive mail to all and would like to know how (if) I can add another alias.

My .foward file is like this today:

\myusername, |/usr/bin/vacation -a myalias myusername

I have tried a few things, but just get error messages.

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


Re: How do I add more aliases to my .forward vacation file?

2006-06-29 Thread Andreas Widerøe Andersen

On 6/29/06, Alex Zbyslaw [EMAIL PROTECTED] wrote:


Andreas Widerøe Andersen wrote:

 Hi,
 How can I add more than one alias to my .forward vacation file?

 I have an email address that has two aliases in addition to the
 username. I
 receive mail to all and would like to know how (if) I can add another
 alias.

 My .foward file is like this today:

 \myusername, |/usr/bin/vacation -a myalias myusername

 I have tried a few things, but just get error messages.

And what are the error messages?



User unknown.

I tried both:

\myusername, |/usr/bin/vacation -a myalias1 myalias2 myusername

and

\myusername, |/usr/bin/vacation -a myalias1 -a myalias2 myusername

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


Need urgent help to get Sendmail running again

2006-06-26 Thread Andreas Widerøe Andersen

Hi,
I had a recent downtime on the mailserver I'm running due to remote location
and trouble with upgrading FreeBSD. I upgraded from 4.7 STABLE to the latest
4.11 with complete make world and new kernel, at first the machine didn't
come back up again due to a disk error, but now it's online again. However
I'm having big trouble getting Sendmail up and running normal again.

I used to have sendmail configured with Spamassassin and Spamass-Milter, but
I have now removed both of them from the .mc file and uninstalled both the
programs and startup files.

When the machine is rebooted I get the following errors:

pid 86 (sendmail), uid 0: exited on signal 11
pid 87 (sendmail), uid 0: exited on signal 11

Sendmail version 8.13.1

Here are the first lines from /var/log/maillog (server startup)

Jun 26 15:13:44 malibu sm-mta[86]: starting daemon (8.13.1):
[EMAIL PROTECTED]:30:00
Jun 26 15:13:44 malibu sm-msp-queue[91]: starting daemon (8.13.1):
[EMAIL PROTECTED]:30:00
Jun 26 15:13:45 malibu sendmail[95]: k5QDDjPI95: from=root, size=427,
class=-60, nrcpts=1, msgid=200606261313.k5QDD
[EMAIL PROTECTED], [EMAIL PROTECTED]
Jun 26 15:13:45 malibu sendmail[95]: k5QDDjPI95: to=ftp, ctladdr=root
(0/0), delay=00:00:00, xdelay=00:00:00, mailer
=relay, pri=138427, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred:
Connection refused by [127.0.0.1]
Jun 26 15:13:45 malibu sendmail[97]: k5QDDjQl97: from=root, size=433,
class=-60, nrcpts=1, msgid=200606261313.k5QDD
[EMAIL PROTECTED], [EMAIL PROTECTED]
Jun 26 15:13:45 malibu sendmail[97]: k5QDDjQl97: to=root, ctladdr=root
(0/0), delay=00:00:00, xdelay=00:00:00, maile
r=relay, pri=138433, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0,
stat=Deferred: Connection refused by [127.0.0.1]
Jun 26 15:13:46 malibu sendmail[99]: k5QDDjsQ99: from=root, size=455,
class=-60, nrcpts=1, msgid=200606261313.k5QDD
[EMAIL PROTECTED], [EMAIL PROTECTED]
Jun 26 15:13:46 malibu sendmail[99]: k5QDDjsQ99: to=ftp, ctladdr=root
(0/0), delay=00:00:01, xdelay=00:00:00, mailer
=relay, pri=138455, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred:
Connection refused by [127.0.0.1]
Jun 26 15:13:46 malibu sendmail[103]: k5QDDkGH000103: from=root, size=427,
class=-60, nrcpts=1, msgid=200606261313.k5QD
[EMAIL PROTECTED], [EMAIL PROTECTED]

There seems to be a lot of messages waiting to be sent, Ie. from the forum I
run.

Jun 26 15:13:57 malibu sm-msp-queue[92]: k5QAVQCT89: to=www,
delay=02:35:22, xdelay=00:00:00, mailer=relay, pri=8425
88, relay=[127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [
127.0.0.1]
Jun 26 15:13:57 malibu sm-msp-queue[92]: k5QAVQCY89: to=www,
delay=02:35:22, xdelay=00:00:00, mailer=relay, pri=8425
92, relay=[127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [
127.0.0.1]
Jun 26 15:13:57 malibu sm-msp-queue[92]: k5QAVQCW89: to=www,
delay=02:35:22, xdelay=00:00:00, mailer=relay, pri=8425
93, relay=[127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [
127.0.0.1]
Jun 26 15:13:57 malibu sm-msp-queue[92]: k5QAVQCe89: to=www,
delay=02:35:21, xdelay=00:00:00, mailer=relay, pri=8425
95, relay=[127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [
127.0.0.1]

/var/spool/clientmqueue contains many messages.

Also, I can't get Sendmail to accept new messages for the people who are
users on this system. Mails I send from Ie. this gmail account do not reach
my account on the mailserver.I don't understand this.

MX record is fine.
local-host-names contain all hostnames on the system.
virtusertable is OK.

???

Anyone help greatly appreciated!

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


Re: Need urgent help to get Sendmail running again

2006-06-26 Thread Andreas Widerøe Andersen


Why is the server trying to connect to localhost, anyway?  Did
you do special configuration in order to have Sendmail deliver
mail to 127.0.0.1 as part of your (former) configuration with
Spamassassin?  If so, did you undo these statements so that Sendmail
would now deliver normally?



Not quite sure actually, but the mails are generated from a php forum on
this server.

However, I got sendmail running and the server is receiving mails again. I
compiled sendmail one more time with some new DAEMON settings I didn't have
and that did it. Still, it crashes  every 30 minutes with this message:

(dmesg)
pid 12388 (sendmail), uid 0: exited on signal 11

(/var/log/messages):
Jun 26 23:10:15 malibu /kernel: pid 12487 (sendmail), uid 0: exited on
signal 11

I think it tries do queue or send mails every 30 minutes, but how can I see
a list of these jobs or do anything about it? Is there another way for me to
get more detailes on what this crash actually is?

(By the way, sendmail build was enabled in make.conf as far as I could
understand)

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


ipopd3 core dumps - can't log into pop3 server

2006-06-26 Thread Andreas Widerøe Andersen

Many mails from me here today. Sorry about that. Having more problems than
skills I guess...

I have upgraded to imap-uw-2004g_1,1 and now my users can't log into the
server using pop3.

Every time I try to log in from Ie. Eudora on my Windows box the ipop3 core
dumps on the server.

telnet my.domain.net 110
Trying 194.123.123.12...
Connected to my.domain.net.
Escape character is '^]'.
+OK POP3 my.domain.net 2004.89 server ready

-ERR Null command
user testuser
-ERR Unknown AUTHORIZATION state command

I haven't seend this AUTHORIZATION message before. I want to allow both
normal unencrypted password connections and let the user enable ssl if they
know how to.

Here are my inetd.conf mail details:
imaps   stream  tcp nowait  root/usr/local/libexec/imapd
imapd
pop3s   stream  tcp nowait  root/usr/local/libexec/ipop3d
ipop3d

pop3stream  tcp nowait  root/usr/local/libexec/ipop3d   ipop3d
imap4   stream  tcp nowait  root/usr/local/libexec/imapdimapd

This is what I have in my /etc/pam.conf file

# Mail services
imapauthrequiredpam_unix.so
imapaccount requiredpam_unix.so
imapsession requiredpam_unix.so
pop3authrequiredpam_unix.so
pop3account requiredpam_unix.so
pop3session requiredpam_unix.so

I have installed both cclient and imap-uw with the following directives:

portinstall -m SSLTYPE=unix imap-uw

(SSLTYPE=unix should be with ssl and plan text)

I have also installed the following ports related to mail:

openssl-0.9.8b_1SSL and crypto library
cyrus-sasl-2.1.22   RFC  SASL (Simple Authentication and Security Layer)
cyrus-sasl-saslauthd-2.1.22 SASL authentication server for cyrus-sasl2
squirrelmail-1.4.6_1 A webmail system which accesses mail over IMAP

telnet my.domain.net 110
Trying 194.123.123.12...
Connected to my.domain.net.
Escape character is '^]'.
+OK POP3 my.domain.net 2004.89 server ready

user testuser
-ERR Unknown AUTHORIZATION state command

Anyone out there who can give me some directions?

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


Help with installing php4 and upgrading mysql323 for Apache 1.36

2006-06-24 Thread Andreas Widerøe Andersen

Hi,
I'm having trouble figuring out what and how to install and upgrade some
programs/modules. This was very simple when I last did it, but I haven't
been around doing this since version 4.7 was new and now some things have
changed. Server is now 4.11 STABLE (or will be on monday).

I have the latest Apache-mod_ssl installed and I need to have the latest
mod_php4 for Apache aswell as upgrading mysql to the latest of the 323
version. (Perhaps I'll go for mysql 4.1, but I need to verify this with some
software running on my system first.)

What port/modul should I install to get php4 working under apache? I used to
install mod_php4, but from my /usr/ports tree this seems deprecated to me.
It's also important that I can make the php4 module work together with mysql
323.

Any help very much appreciated!

Thanks a lot.

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


Re: Help with installing php4 and upgrading mysql323 for Apache 1.36

2006-06-24 Thread Andreas Widerøe Andersen

On 6/24/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:


As 6.x is out, 4.11 etc will soon be no longer supported. You should
consider updating to 5.x at least if possible. I'm running 6.1 with no
problems.

mod_php has been deprecated as you found out. Use the php4 port instead
which has the functionality of the mod_php4 port.

Rob



Thanks Rob,
The server will be erased and installed with the latest version for FreeBSD
in a few months, but untill then I feel I need to stick to 4.X since there
are too much on the machine built under this branch. The server that will
replace this one will have the latest 6.X version for sure.

I'll try with the php4 port, but I think there are a lot of build options
there. What is the minimal I need in order to get php4 working together with
Apache 1.36 and Mysql?

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


Re: Trouble mounting Zip drive (solved!)

2005-07-06 Thread Andreas Widerøe Andersen



[snip]



Hi and thanks for all help!

Seems like I have found a sollution (thanks to this excellent tutorial 
http://freebsd.peon.net/tutorials/10/ and the help from the mailinglist 
members):


One thing: I still don't understand how I should know that the device is 
rda0 or rda0c or even da0 sometimes in the example below. If someone could 
explain I'd be happy :-)


# dd if=/dev/zero of=/dev/rda0 count=2
2+0 records in
2+0 records out
1024 bytes transferred in 0.040405 secs (25343 bytes/sec)

# disklabel -Brw da0 auto

# newfs /dev/rda0c
Warning: Block size restricts cylinders per group to 97.
/dev/rda0c: 196608 sectors in 48 cylinders of 1 tracks, 4096 sectors
96.0MB in 1 cyl groups (97 c/g, 194.00MB/g, 12288 i/g)
super-block backups (for fsck -b #) at:
 32

# mount /dev/da0c /zip

# df -h
FilesystemSize   Used  Avail Capacity  Mounted on
/dev/ad0s1a   126M35M81M30%/
/dev/ad0s1f   252M22K   232M 0%/tmp
/dev/ad0s1g   5.1G   760M   3.9G16%/usr
/dev/ad0s1e   252M   2.9M   229M 1%/var
/dev/ad1s1e   3.0G   405M   2.3G14%/backup
procfs4.0K   4.0K 0B   100%/proc
/dev/da0c  94M   2.0K87M 0%/zip

Best regards,
Andreas


---

Andreas Wideroe Andersen [EMAIL PROTECTED]
Mobile: (+47) 90 92 61 21
http://www.filmshooting.com

Norsk Smalfilm AS
http://www.smalfilm.no 


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


Trouble mounting Zip drive

2005-07-05 Thread Andreas Widerøe Andersen

Hi,
I'm having problems mounting a SCSI Iomega 100 Zip drive on my 4.11 RELEASE 
system:


- From boot, this is what I see:

da0 at ncr0 bus 0 target 5 lun 0
da0: IOMEGA ZIP 100 E.08 Removable Direct Access SCSI-2 device
da0: 3.300MB/s transfers
da0: 96MB (196608 512 byte sectors: 64H 32S/T 96C)

- In my /etc/fstab i have this line:

/dev/da0s4  /zipufs rw,noauto   0   0

I have mkdir a /zip directory

This is the problem:

$ mount /zip
mount: /dev/da0s4: Operation not permitted

I have tried many things now, but can't make things work.

Any suggestion to what I do wrong?

Thanks!
Andreas

---

Andreas Wideroe Andersen [EMAIL PROTECTED]
Mobile: (+47) 90 92 61 21
http://www.filmshooting.com

Norsk Smalfilm AS
http://www.smalfilm.no 


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


Re: Trouble mounting Zip drive

2005-07-05 Thread Andreas Widerøe Andersen

At 17:19 05.07.2005, [EMAIL PROTECTED] wrote:

On Tue, 05 Jul 2005 17:14:50 +0200
Andreas Widerøe Andersen [EMAIL PROTECTED] wrote:

 Hi,
 I'm having problems mounting a SCSI Iomega 100 Zip drive on my 4.11
 RELEASE  system:

 - From boot, this is what I see:

 da0 at ncr0 bus 0 target 5 lun 0
 da0: IOMEGA ZIP 100 E.08 Removable Direct Access SCSI-2 device
 da0: 3.300MB/s transfers
 da0: 96MB (196608 512 byte sectors: 64H 32S/T 96C)

 - In my /etc/fstab i have this line:

 /dev/da0s4  /zipufs rw,noauto   0
  0

 I have mkdir a /zip directory

 This is the problem:

 $ mount /zip
 mount: /dev/da0s4: Operation not permitted

did you try mounting it as root ?
(and what does /var/log/messages /var/log/dmesg say about it ?)


Uhh.. embarrasing :-O (yes, I was not root!

Well, still have a problem as root (I've had this problem from the start 
when I WAS logged in as root):


# mount /zip
mount: /dev/da0s4 on /zip: incorrect super block

/Andreas


---

Andreas Wideroe Andersen [EMAIL PROTECTED]
Mobile: (+47) 90 92 61 21
http://www.filmshooting.com

Norsk Smalfilm AS
http://www.smalfilm.no 


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


Trouble upgrading PHP

2004-12-27 Thread Andreas Widerøe Andersen
Hi,
I hope someone can help me here.
Today I upgraded Apache to the latest version (apache+mod_ssl-1.3.33+2.8.22 
- which works fine) and PHP to 4.3.10 (which doesn't). I'm running a few 
sites on my server that relies on the Apache/PHP and mySQL.

Now, only static content seems to be working.
I belive it is because the options-screen that used to pop up when 
installing from Ports is now gone. I probably haven't got support for Ie. 
mySQL and others that I need.

I know I need these:
- zlib compression support Unavailable
- XML support Unavailable
- MySQL support Unavailable
Is the options screen gone or how can I make it appear? Are there instead 
other ways of adding what I need from a ports-install?

Thanks,
Andreas
---
Norsk Smalfilm
Andreas Widerøe Andersen [EMAIL PROTECTED]
http://www.smalfilm.no
Tel:(+47) 38 17 99 16
Fax:(+47) 38 02 33 84
Mob:(+47) 90 92 61 21 

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


Re: urgent help

2004-12-27 Thread Andreas Widerøe Andersen
At 09:35 27.12.2004, you wrote:
 PLEASE REPLY TO [EMAIL PROTECTED]
 upgraded from 4.6 = 4.10 rel
 network programs are craching the new system: netstat, ping, the qmail tcp
 server all of them...
 sshd is running but when accessing from outside it panics too...  what is
 it?
 can i turn something off in the kernel?!
Did you make world in addition to recompiling the Kernel? Sounds like 
your system is out of sync.

Here's a note about how I did it a while back:
http://home.eunet.no/~awand/freebsd-4.6_installasjon.txt (it's in 
Norwegian, but all commands and order should be understandable.

/Andreas

---
Norsk Smalfilm
Andreas Widerøe Andersen [EMAIL PROTECTED]
http://www.smalfilm.no
Tel:(+47) 38 17 99 16
Fax:(+47) 38 02 33 84
Mob:(+47) 90 92 61 21  

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


Recover lost ttyps

2004-10-18 Thread Andreas Widerøe Andersen
Hi,
Is there a simple way (as root) to recover lost ttyps?
Example: I'm rebuilding some ports and while this is done the ADSL line is 
disconnected. A few seconds later I'm back online, but the ttyp0 is lost 
and I'm now logged in as root on ttyp1.

---
Andreas Wideroe Andersen [EMAIL PROTECTED]
Mobile: (+47) 90 92 61 21
http://www.filmshooting.com  

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


Re: Recover lost ttyps

2004-10-18 Thread Andreas Widerøe Andersen
At 11:49 18.10.2004, Karel J. Bosschaart wrote:
On Mon, Oct 18, 2004 at 11:30:02AM +0200, Andreas Widerøe Andersen wrote:
 Hi,
 Is there a simple way (as root) to recover lost ttyps?
Not that I know, but I would be interested to know if it is possible. Does
the process (port build for example) still run? When it happens to me, the
processes in the ttyp usually are killed, except when run with 'nohup'.
 Example: I'm rebuilding some ports and while this is done the ADSL line is
 disconnected. A few seconds later I'm back online, but the ttyp0 is lost
 and I'm now logged in as root on ttyp1.
I use 'screen' (it's in ports: misc/screen) nowadays to work around the
problems when a connection is dropped and I'm very happy with it:
http://www.gnu.org/software/screen/ .
I'm using it right now to do a buildworld in a KDE session; if KDE or
X would crash, the buildworld does not stop and I can simply reconnect :-).
Karel.

Thanks,
Yes, the processes still run and when finished the port is successfully 
installed, but then the session disconnects. Windows Terminal Server have 
this nice function where you can recover lost sessions. I was hoping 
FreeBSD also had this, allthough I've never heard about it before and I've 
been using FreeBSD for 5 years now.

I know about screen, but you don't always expect a connection to be broken...
Cheers,
Andreas
---
Andreas Wideroe Andersen [EMAIL PROTECTED]
Mobile: (+47) 90 92 61 21
http://www.filmshooting.com 

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


Trouble rebuilding sendmail

2004-10-11 Thread Andreas Widerøe Andersen
I just upgrade src with cvsup and want to rebuild sendmail. For some reason 
it stops and I would very much like some help from you about what I can do now.

System: FreeBSD server 4.8-RC FreeBSD 4.8-RC #0: Sat Mar 15 17:08:42 CET 
2003 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/OCTOPUS  i386
Old sendmail: 8.12.8 (the one running now)
Also running:
Spamd
Spamass-milter
Saslauthd

Here's my problem (see bottom for error):
/Andreas
server# make clean
rm -f sm_os.h sendmail alias.o arpadate.o bf.o collect.o conf.o control.o 
convtime.o daemon.o deliver.o domain.o envelope.o err.o headers.o macro.o 
main.o map.o mci.o milter.o mime.o parseaddr.o queue.o ratectrl.o readcf.o 
recipient.o savemail.o sasl.o sfsasl.o shmticklib.o sm_resolve.o srvrsmtp.o 
stab.o stats.o sysexits.o timers.o tls.o trace.o udb.o usersmtp.o util.o 
version.o mailq.1.gz newaliases.1.gz aliases.5.gz sendmail.8.gz 
mailq.1.cat.gz newaliases.1.cat.gz aliases.5.cat.gz sendmail.8.cat.gz
octopus# make depend
ln -sf 
/usr/src/usr.sbin/sendmail/../../contrib/sendmail/include/sm/os/sm_os_freebsd.h 
sm_os.h
octopus# make
cc -O -pipe  -I/usr/src/usr.sbin/sendmail/../../contrib/sendmail/src 
-I/usr/src/usr.sbin/sendmail/../../contrib/sendmail/include -I. -DNEWDB 
-DNIS -DMILTER -DTCPWRAPPERS -DMAP_REGEX -DDNSMAP -DNETINET6 -DSTARTTLS 
-D_FFR_TLS_1 -I/usr/local/include -DSASL=2 -D_FFR_SMTP_SSL-c 
/usr/src/usr.sbin/sendmail/../../contrib/sendmail/src/alias.c
cc -O -pipe  -I/usr/src/usr.sbin/sendmail/../../contrib/sendmail/src 
-I/usr/src/usr.sbin/sendmail/../../contrib/sendmail/include -I. -DNEWDB 
-DNIS -DMILTER -DTCPWRAPPERS -DMAP_REGEX -DDNSMAP -DNETINET6 -DSTARTTLS 
-D_FFR_TLS_1 -I/usr/local/include -DSASL=2 -D_FFR_SMTP_SSL-c 
/usr/src/usr.sbin/sendmail/../../contrib/sendmail/src/arpadate.c
cc -O -pipe  -I/usr/src/usr.sbin/sendmail/../../contrib/sendmail/src 
-I/usr/src/usr.sbin/sendmail/../../contrib/sendmail/include -I. -DNEWDB 
-DNIS -DMILTER -DTCPWRAPPERS -DMAP_REGEX -DDNSMAP -DNETINET6 -DSTARTTLS 
-D_FFR_TLS_1 -I/usr/local/include -DSASL=2 -D_FFR_SMTP_SSL-c 
/usr/src/usr.sbin/sendmail/../../contrib/sendmail/src/bf.c
cc -O -pipe  -I/usr/src/usr.sbin/sendmail/../../contrib/sendmail/src 
-I/usr/src/usr.sbin/sendmail/../../contrib/sendmail/include -I. -DNEWDB 
-DNIS -DMILTER -DTCPWRAPPERS -DMAP_REGEX -DDNSMAP -DNETINET6 -DSTARTTLS 
-D_FFR_TLS_1 -I/usr/local/include -DSASL=2 -D_FFR_SMTP_SSL-c 
/usr/src/usr.sbin/sendmail/../../contrib/sendmail/src/collect.c
cc -O -pipe  -I/usr/src/usr.sbin/sendmail/../../contrib/sendmail/src 
-I/usr/src/usr.sbin/sendmail/../../contrib/sendmail/include -I. -DNEWDB 
-DNIS -DMILTER -DTCPWRAPPERS -DMAP_REGEX -DDNSMAP -DNETINET6 -DSTARTTLS 
-D_FFR_TLS_1 -I/usr/local/include -DSASL=2 -D_FFR_SMTP_SSL-c 
/usr/src/usr.sbin/sendmail/../../contrib/sendmail/src/conf.c
cc -O -pipe  -I/usr/src/usr.sbin/sendmail/../../contrib/sendmail/src 
-I/usr/src/usr.sbin/sendmail/../../contrib/sendmail/include -I. -DNEWDB 
-DNIS -DMILTER -DTCPWRAPPERS -DMAP_REGEX -DDNSMAP -DNETINET6 -DSTARTTLS 
-D_FFR_TLS_1 -I/usr/local/include -DSASL=2 -D_FFR_SMTP_SSL-c 
/usr/src/usr.sbin/sendmail/../../contrib/sendmail/src/control.c
cc -O -pipe  -I/usr/src/usr.sbin/sendmail/../../contrib/sendmail/src 
-I/usr/src/usr.sbin/sendmail/../../contrib/sendmail/include -I. -DNEWDB 
-DNIS -DMILTER -DTCPWRAPPERS -DMAP_REGEX -DDNSMAP -DNETINET6 -DSTARTTLS 
-D_FFR_TLS_1 -I/usr/local/include -DSASL=2 -D_FFR_SMTP_SSL-c 
/usr/src/usr.sbin/sendmail/../../contrib/sendmail/src/convtime.c
cc -O -pipe  -I/usr/src/usr.sbin/sendmail/../../contrib/sendmail/src 
-I/usr/src/usr.sbin/sendmail/../../contrib/sendmail/include -I. -DNEWDB 
-DNIS -DMILTER -DTCPWRAPPERS -DMAP_REGEX -DDNSMAP -DNETINET6 -DSTARTTLS 
-D_FFR_TLS_1 -I/usr/local/include -DSASL=2 -D_FFR_SMTP_SSL-c 
/usr/src/usr.sbin/sendmail/../../contrib/sendmail/src/daemon.c
cc -O -pipe  -I/usr/src/usr.sbin/sendmail/../../contrib/sendmail/src 
-I/usr/src/usr.sbin/sendmail/../../contrib/sendmail/include -I. -DNEWDB 
-DNIS -DMILTER -DTCPWRAPPERS -DMAP_REGEX -DDNSMAP -DNETINET6 -DSTARTTLS 
-D_FFR_TLS_1 -I/usr/local/include -DSASL=2 -D_FFR_SMTP_SSL-c 
/usr/src/usr.sbin/sendmail/../../contrib/sendmail/src/deliver.c
cc -O -pipe  -I/usr/src/usr.sbin/sendmail/../../contrib/sendmail/src 
-I/usr/src/usr.sbin/sendmail/../../contrib/sendmail/include -I. -DNEWDB 
-DNIS -DMILTER -DTCPWRAPPERS -DMAP_REGEX -DDNSMAP -DNETINET6 -DSTARTTLS 
-D_FFR_TLS_1 -I/usr/local/include -DSASL=2 -D_FFR_SMTP_SSL-c 
/usr/src/usr.sbin/sendmail/../../contrib/sendmail/src/domain.c
cc -O -pipe  -I/usr/src/usr.sbin/sendmail/../../contrib/sendmail/src 
-I/usr/src/usr.sbin/sendmail/../../contrib/sendmail/include -I. -DNEWDB 
-DNIS -DMILTER -DTCPWRAPPERS -DMAP_REGEX -DDNSMAP -DNETINET6 -DSTARTTLS 
-D_FFR_TLS_1 -I/usr/local/include -DSASL=2 -D_FFR_SMTP_SSL-c 
/usr/src/usr.sbin/sendmail/../../contrib/sendmail/src/envelope.c
cc -O -pipe  -I/usr/src/usr.sbin/sendmail/../../contrib/sendmail/src 

Re: Trouble rebuilding sendmail

2004-10-11 Thread Andreas Widerøe Andersen
At 15:11 11.10.2004, Christer Solskogen wrote:
Andreas Widerøe Andersen wrote:
I just upgrade src with cvsup and want to rebuild sendmail. For some 
reason it stops and I would very much like some help from you about what 
I can do now.
System: FreeBSD server 4.8-RC FreeBSD 4.8-RC #0: Sat Mar 15 17:08:42 CET 
2003 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/OCTOPUS  i386
Old sendmail: 8.12.8 (the one running now)
Also running:
Spamd
Spamass-milter
Saslauthd
Here's my problem (see bottom for error):
Maybe a little stupid, but do you have sendmail installed from ports also?
Or, do you use gcc base or ports?
No, it was installed together with FreeBSD.
However, I just fixed the problem. I rebuilt the kernel and did a make 
build/install world. Now everything works and my sendmail is latest version.

Thanks!
Andreas

---
Andreas Wideroe Andersen [EMAIL PROTECTED]
Mobile: (+47) 90 92 61 21
http://www.filmshooting.com 

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


Need help with Saslauthd and Sendmail

2004-10-08 Thread Andreas Widerøe Andersen
I'm using this guide 
http://www.puresimplicity.net/~hemi/freebsd/sendmail.html to install a 
secure mail server. The imap-uw part is working fine, but the sendmail part 
isn't.

==
My system:
FreeBSD 4.7 STABLE
Sendmail 8.12.10
Saslauthd 2.1.19
I just updated all ports before installing what's described in the guide above.
I'm also using Spamassassin to filter out spam.
==
My Sendmail.conf:
# cat /usr/local/lib/sasl2/Sendmail.conf
pwcheck_method: saslauthd
==
My /etc/rc.conf file looks like this:
# -- sysinstall generated deltas -- # Sun Sep 16 17:49:22 2001
# Created: Sun Sep 16 17:49:22 2001
# Enable network daemons for user convenience.
# Please make all changes to this file, not to /etc/defaults/rc.conf.
# This file now contains just the overrides from /etc/defaults/rc.conf.
defaultrouter=xxx.xxx.xxx.xxx
font8x14=iso-8x14
font8x16=iso-8x16
font8x8=iso-8x8
hostname=server.hostname.net
ifconfig_xl0=inet xxx.xxx.xxx.xxx netmaskxxx.xxx.xxx.xxx
#ifconfig_xl0=inet xxx.xxx.xxx.xxx netmask xxx.xxx.xxx.xxx media
100baseTX mediaopt full-duplex
kern_securelevel_enable=NO
keymap=norwegian.iso
moused_enable=NO
nfs_reserved_port_only=NO
#sendmail_enable=YES
sshd_program=/usr/local/sbin/sshd
sshd_enable=YES
usbd_enable=NO
portmap_enable=NO
lpd_enable=NO
# sasl_pwcheck_enable=YES
# sasl_pwcheck_program=/usr/local/sbin/pwcheck
saslauthd_runpath=/var/state/saslauthd   # Working directory
saslauthd_program=/usr/local/sbin/saslauthd   # Location of saslauthd
sasl_saslauthd_enable=YES
==
The bottom of my /etc/make.conf:
# Setting SENDMAIL_SET_USER_ID will install the sendmail binary as a
# set-user-ID root binary instead of a set-group-ID smmsp binary and will
# prevent the installation of /etc/mail/submit.cf.
# This is a deprecated mode of operation.  See etc/mail/README for more
# information.
#
#SENDMAIL_SET_USER_ID=
#
# The permissions to use on alias and map databases generated using
# /etc/mail/Makefile.  Defaults to 0640.
#
#SENDMAIL_MAP_PERMS=
#SENDMAIL_CFLAGS=-I/usr/local/include/sasl1 -DSASL
#SENDMAIL_LDFLAGS=-L/usr/local/lib
#SENDMAIL_LDADD=-lsasl
# SASL (cyrus-sasl v2) sendmail build flags...
SENDMAIL_CFLAGS=-I/usr/local/include -DSASL=2
SENDMAIL_LDFLAGS=-L/usr/local/lib
SENDMAIL_LDADD=-lsasl2
# Adding to enable alternate port (smtps) for sendmail...
SENDMAIL_CFLAGS+= -D_FFR_SMTP_SSL
Sendmail has been rebuilt/restarted according to the guide.
==
# ls -la /etc/mail/certs
total 5
drwxr-xr-x  2 root  wheel   512 Oct  6 14:51 .
drwxr-xr-x  4 root  wheel   512 Oct  8 00:21 ..
-rw---  1 root  wheel  1460 Oct  6 14:51 mycert.pem
-rw---  1 root  wheel   672 Oct  6 14:51 mykey.pem
==
My sendmail.mc file (FQDN.mc):
divert(-1)
#
# Copyright (c) 1983 Eric P. Allman
# [snip]
divert(0)
VERSIONID(`$FreeBSD: src/etc/sendmail/freebsd.mc,v 1.10.2.18 2003/04/24 
16:57:30 gshapiro Exp $')
OSTYPE(freebsd4)
DOMAIN(generic)

FEATURE(access_db, `hash -o -TTMPF /etc/mail/access')
FEATURE(blacklist_recipients)
FEATURE(local_lmtp)
FEATURE(mailertable, `hash -o /etc/mail/mailertable')
FEATURE(virtusertable, `hash -o /etc/mail/virtusertable')
INPUT_MAIL_FILTER(`spamassassin', `S=local:/var/run/spamass-milter.sock, 
F=, T=C:15m;S:4m;R:4m;E:10m')

# [snip]
# define(`confAUTH_OPTIONS', `A')dnl
define(`confAUTH_MECHANISMS',`PLAIN LOGIN')dnl
TRUST_AUTH_MECH(`PLAIN LOGIN')dnl
define(`CERT_DIR', `/etc/mail/certs')dnl
define(`confCACERT_PATH', `CERT_DIR')dnl
define(`confCACERT', `CERT_DIR/mycert.pem')dnl
define(`confSERVER_CERT', `CERT_DIR/mycert.pem')dnl
define(`confSERVER_KEY', `CERT_DIR/mykey.pem')dnl
define(`confCLIENT_CERT', `CERT_DIR/mycert.pem')dnl
define(`confCLIENT_KEY', `CERT_DIR/mykey.pem')dnl
DAEMON_OPTIONS(`Port=smtp, Name=MTA')dnl
DAEMON_OPTIONS(`Port=smtps, Name=TLSMTA, M=s')dnl
# define(`confDEF_AUTH_INFO', `/etc/mail/auth-info')dnl
define(`confBIND_OPTS', `WorkAroundBroken')
define(`confNO_RCPT_ACTION', `add-to-undisclosed')
define(`confPRIVACY_FLAGS', `authwarnings,noexpn,novrfy')
MAILER(local)
MAILER(smtp)
==
If I telnet to my mailserver on port 25 the mailserver gives this back:
ehlo localhost
250-server.hostname.net Hello server.hostname.net [xxx.xxx.xxx.xxx], pleased
to meet you
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-8BITMIME
250-SIZE
250-DSN
250-ETRN
250-AUTH PLAIN LOGIN
250-STARTTLS
250-DELIVERBY
250 HELP
==
Anyway, I've been looking into the saslauthd and I just saw an error
message in my logfile (/var/log/messages):
Oct  7 23:45:20 

Re: Need help with Saslauthd and Sendmail

2004-10-08 Thread Andreas Widerøe Andersen
At 13:01 08.10.2004, Matthew Seaman wrote:
On Fri, Oct 08, 2004 at 12:30:51PM +0200, Andreas Widerøe Andersen wrote:
Wow.  Excellent problem report.
 I try to start saslauthd manually by doing a
 /usr/local/etc/rc.d/saslauthd.sh start, but nothing happens.
Have you put:
saslauthd_enable=YES
into /etc/rc.conf?
Yes, but now I see they are slightly different. What I have is this:
sasl_saslauthd_enable=YES
Would your suggestion be better?
/Andreas
---
Andreas Wideroe Andersen [EMAIL PROTECTED]
Mobile: (+47) 90 92 61 21
http://www.filmshooting.com 

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


Re: Need help with Saslauthd and Sendmail

2004-10-08 Thread Andreas Widerøe Andersen
At 14:43 08.10.2004, Matthew Seaman wrote:
On Fri, Oct 08, 2004 at 01:14:10PM +0200, Andreas Widerøe Andersen wrote:
 At 13:01 08.10.2004, Matthew Seaman wrote:
 On Fri, Oct 08, 2004 at 12:30:51PM +0200, Andreas Widerøe Andersen wrote:
 
 Wow.  Excellent problem report.
 
  I try to start saslauthd manually by doing a
  /usr/local/etc/rc.d/saslauthd.sh start, but nothing happens.
 
 Have you put:
 
 saslauthd_enable=YES
 
 into /etc/rc.conf?

 Yes, but now I see they are slightly different. What I have is this:

 sasl_saslauthd_enable=YES

 Would your suggestion be better?
Put it this way: it works on my system.
Cheers,
Matthew

Youuhooo!!! It worked!
Thanks Matthew!!!
For the record: /etc/rc.conf should contain saslauthd_enable=YES and NOT 
this: sasl_saslauthd_enable=YES.

When you do a ps -aux | grep saslauthd after rebooting you should see this 
(or many of these):

# ps -aux | grep saslauthd
root 173  0.0  0.1  1080  704  ??  Is4:38PM   0:00.01 
/usr/local/sbin/saslauthd -a pam -m /var/state/saslauthd

/Andreas
---
Andreas Wideroe Andersen [EMAIL PROTECTED]
Mobile: (+47) 90 92 61 21
http://www.filmshooting.com 

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


Re: Mail auth and FreeBSD/Sendmail

2004-10-06 Thread Andreas Widerøe Andersen
At 14:22 05.10.2004, Ed Budd wrote:
Andreas Widerøe Andersen wrote:
Hi all,
I'm running FreeBSD 4.7 Stable on one of my servers and Sendmail 8.12.10. 
I'm trying to get mail auth to work so that my users can send mail (smtp 
port 25) through this server no matter which net they are connected to. I 
have installed cyrus-sasl-1.5.28_3 and followed the description given on 
this page 
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/smtp-auth.html. 
Everything seems to work and all tests give the expected results.
I have also looked at this page 
http://www.sendmail.org/~ca/email/auth.html and done the initial test:
#telnet localhost 25
Trying ::1...
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 my.server.com ESMTP Sendmail 8.12.10/8.12.10; Tue, 5 Oct 2004 
13:31:13 +0200 (CEST)
ehlo localhost
250-my.server.com Hello localhost [127.0.0.1], pleased to meet you
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-8BITMIME
250-SIZE
250-DSN
250-ETRN
250-AUTH DIGEST-MD5 CRAM-MD5 LOGIN
250-DELIVERBY
250 HELP
When I'm testing sending mail through this server (as smtp server) I use 
Eudora 6.1 from my WinXP PC. I always get relaying denied and it doesn't 
seem to check username/password.
Here's what my logfile and Eudora log says:
Oct  5 13:35:18 myserver sendmail[59394]: i95BZIow059394: 
ruleset=check_rcpt, arg1=[EMAIL PROTECTED], 
relay=my.ip.address.domain.com [x.x.x.x], reject=550 5.7.1 
[EMAIL PROTECTED]... Relaying denied. Proper authentication required.
I would be very grateful for any help here. I'm stuck and I don't know 
what to check next.
Try adding 'PLAIN' to the list of allowed authentications in your sendmail 
*.mc file, rebuild, and restart sendmail. Then test to see that it's 
advertised like you did above...

Hope that helps,
EB

I have now followed the instructions on this page 
(http://www.puresimplicity.net/~hemi/freebsd/sendmail.html) exactly and the 
ssl connection to my pop/imap server works fine, but still I get the same 
error below when sending mail:

Oct  6 15:06:07 server sendmail[97165]: i96D66fM097165: 
from=[EMAIL PROTECTED], size=0, class=0, nrcpts=0, proto=ESMTP, 
daemon=MTA, relay=my.ip.hostname.com [80.202.145.187]
Oct  6 15:06:16 server sendmail[97173]: STARTTLS=server, 
relay=my.ip.host.com [my.ip], version=TLSv1/SSLv3, verify=NO, 
cipher=EDH-DSS-DES-CBC3-SHA, bits=168/168
Oct  6 15:06:17 server sendmail[97173]: i96D6GfM097173: ruleset=check_rcpt, 
arg1=[EMAIL PROTECTED], relay=my.ip.hostname.com [my.ip], reject=550 5.7.1 
[EMAIL PROTECTED]... Relaying denied. Proper authentication

When I issue an ehlo localhost on port 25 of the smtp server I get this:
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-8BITMIME
250-SIZE
250-DSN
250-ETRN
250-AUTH PLAIN LOGIN
250-STARTTLS
250-DELIVERBY
250 HELP
Now I'm really lost...
Any help?
Thanks!
Andreas
---
Andreas Wideroe Andersen [EMAIL PROTECTED]
Mobile: (+47) 90 92 61 21
http://www.filmshooting.com 

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


Re: Mail auth and FreeBSD/Sendmail

2004-10-06 Thread Andreas Widerøe Andersen
At 16:23 06.10.2004, Remko Lodder wrote:
When I issue an ehlo localhost on port 25 of the smtp server I get this:
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-8BITMIME
250-SIZE
250-DSN
250-ETRN
250-AUTH PLAIN LOGIN
250-STARTTLS
250-DELIVERBY
250 HELP
Now I'm really lost...
Hi Andreas,
Not sure whether this helps but here we go:
Within Postfix i had to specify that
i needed broken_sasl support for clients
like outlook.
This gave me the following ehlo output:
250-AUTH LOGIN PLAIN
250-AUTH=LOGIN PLAIN
(stripped the rest). Perhaps you are able to get
something like that as well and then retry testing.
Hth,
Cheers!
Any help?
Thanks!
Andreas

Hmm.. I increased the LogLevel of sendmail to 25 and this is were it seems 
to fail:

Oct  6 16:31:57 server sendmail[99094]: i96EVuIK099094: -- AUTH LOGIN
Oct  6 16:31:57 server sendmail[99094]: i96EVuIK099094: --- 334 VXNlcm5hbWU6
Oct  6 16:31:57 server sendmail[99094]: i96EVuIK099094: --- 334 UGFzc3dvcmQ6
Oct  6 16:31:57 server sendmail[99094]: i96EVuIK099094: --- 535 5.7.0 
authentication failed
Oct  6 16:31:57 server sendmail[99094]: i96EVuIK099094: AUTH failure 
(LOGIN): generic failure (-1) SASL(-1): generic failure: checkpass failed
Oct  6 16:31:57 server sendmail[99094]: i96EVuIK099094: -- RSET
Oct  6 16:31:57 server sendmail[99094]: i96EVuIK099094: --- 250 2.0.0 Reset 
state

Login through pop/imap works fine though..
/Andreas
---
Andreas Wideroe Andersen [EMAIL PROTECTED]
Mobile: (+47) 90 92 61 21
http://www.filmshooting.com  

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


Mail auth and FreeBSD/Sendmail

2004-10-05 Thread Andreas Widerøe Andersen
Hi all,
I'm running FreeBSD 4.7 Stable on one of my servers and Sendmail 8.12.10. 
I'm trying to get mail auth to work so that my users can send mail (smtp 
port 25) through this server no matter which net they are connected to. I 
have installed cyrus-sasl-1.5.28_3 and followed the description given on 
this page 
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/smtp-auth.html. 
Everything seems to work and all tests give the expected results.

I have also looked at this page http://www.sendmail.org/~ca/email/auth.html 
and done the initial test:

#telnet localhost 25
Trying ::1...
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 my.server.com ESMTP Sendmail 8.12.10/8.12.10; Tue, 5 Oct 2004 13:31:13 
+0200 (CEST)
ehlo localhost
250-my.server.com Hello localhost [127.0.0.1], pleased to meet you
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-8BITMIME
250-SIZE
250-DSN
250-ETRN
250-AUTH DIGEST-MD5 CRAM-MD5 LOGIN
250-DELIVERBY
250 HELP

When I'm testing sending mail through this server (as smtp server) I use 
Eudora 6.1 from my WinXP PC. I always get relaying denied and it doesn't 
seem to check username/password.

Here's what my logfile and Eudora log says:
Oct  5 13:35:18 myserver sendmail[59394]: i95BZIow059394: 
ruleset=check_rcpt, arg1=[EMAIL PROTECTED], relay=my.ip.address.domain.com 
[x.x.x.x], reject=550 5.7.1 [EMAIL PROTECTED]... Relaying denied. Proper 
authentication required.

I would be very grateful for any help here. I'm stuck and I don't know what 
to check next.

Thanks alot!
Andreas
---
Andreas Wideroe Andersen [EMAIL PROTECTED]
Mobile: (+47) 90 92 61 21
http://www.filmshooting.com  

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


Re: Mail auth and FreeBSD/Sendmail

2004-10-05 Thread Andreas Widerøe Andersen
Thanks! However, could you please give me some more specific directions? 
Today my sendmail.mc file looks like this:

divert(0)
VERSIONID(`$FreeBSD: src/etc/sendmail/freebsd.mc,v 1.10.2.18 2003/04/24 
16:57:30 gshapiro Exp $')
OSTYPE(freebsd4)
DOMAIN(generic)

FEATURE(access_db, `hash -o -TTMPF /etc/mail/access')
FEATURE(blacklist_recipients)
FEATURE(local_lmtp)
FEATURE(mailertable, `hash -o /etc/mail/mailertable')
FEATURE(virtusertable, `hash -o /etc/mail/virtusertable')
INPUT_MAIL_FILTER(`spamassassin', `S=local:/var/run/spamass-milter.sock, 
F=, T=C:15m;S:4m;R:4m;E:10m')

dnl set SASL options
TRUST_AUTH_MECH(`GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN')dnl
define(`confAUTH_MECHANISMS', `GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN')dnl
define(`confDEF_AUTH_INFO', `/etc/mail/auth-info')dnl
define(`confBIND_OPTS', `WorkAroundBroken')
define(`confNO_RCPT_ACTION', `add-to-undisclosed')
define(`confPRIVACY_FLAGS', `authwarnings,noexpn,novrfy')
MAILER(local)
MAILER(smtp)
Should I just replace the TRUST/SASL lines with:
TRUST_AUTH_MECH(`LOGIN PLAIN')dnl
define(`confAUTH_MECHANISMS', `LOGIN PLAIN')dnl
Don't want to try it at the moment without knowing more since it is a live 
system.

Thanks for your help!
Andreas
---
At 14:22 05.10.2004, you wrote:
Andreas Widerøe Andersen wrote:
Hi all,
I'm running FreeBSD 4.7 Stable on one of my servers and Sendmail 8.12.10. 
I'm trying to get mail auth to work so that my users can send mail (smtp 
port 25) through this server no matter which net they are connected to. I 
have installed cyrus-sasl-1.5.28_3 and followed the description given on 
this page 
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/smtp-auth.html. 
Everything seems to work and all tests give the expected results.
I have also looked at this page 
http://www.sendmail.org/~ca/email/auth.html and done the initial test:
#telnet localhost 25
Trying ::1...
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 my.server.com ESMTP Sendmail 8.12.10/8.12.10; Tue, 5 Oct 2004 
13:31:13 +0200 (CEST)
ehlo localhost
250-my.server.com Hello localhost [127.0.0.1], pleased to meet you
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-8BITMIME
250-SIZE
250-DSN
250-ETRN
250-AUTH DIGEST-MD5 CRAM-MD5 LOGIN
250-DELIVERBY
250 HELP
When I'm testing sending mail through this server (as smtp server) I use 
Eudora 6.1 from my WinXP PC. I always get relaying denied and it doesn't 
seem to check username/password.
Here's what my logfile and Eudora log says:
Oct  5 13:35:18 myserver sendmail[59394]: i95BZIow059394: 
ruleset=check_rcpt, arg1=[EMAIL PROTECTED], 
relay=my.ip.address.domain.com [x.x.x.x], reject=550 5.7.1 
[EMAIL PROTECTED]... Relaying denied. Proper authentication required.
I would be very grateful for any help here. I'm stuck and I don't know 
what to check next.
Try adding 'PLAIN' to the list of allowed authentications in your sendmail 
*.mc file, rebuild, and restart sendmail. Then test to see that it's 
advertised like you did above...

Hope that helps,
EB
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]
---
Andreas Wideroe Andersen [EMAIL PROTECTED]
Mobile: (+47) 90 92 61 21
http://www.filmshooting.com 

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


mbuf clusters exhausted

2003-08-20 Thread Andreas Widerøe Andersen
Hi,
I recently installed the latest Spamassassin and Spamass-milter on my 4.7 
STABLE server (Celeron 800Mhz/512MB Ram). The server stops responding for a 
few minutes every day and I get error messages in my logs every day:

From dmesg:

All mbuf clusters exhausted, please see tuning(7).
All mbuf clusters exhausted, please see tuning(7).
All mbuf clusters exhausted, please see tuning(7).
[Many more!]
#netstat -m
171/2704/10240 mbufs in use (current/peak/max):
171 mbufs allocated to data
169/2560/2560 mbuf clusters in use (current/peak/max)
5796 Kbytes allocated to network (75% of mb_map in use)
7809 requests for memory denied
0 requests for memory delayed
0 calls to protocol drain routines
Load avarages are normally quite low:

#uptime
8:49AM  up 148 days, 14:05, 1 user, load averages: 0.00, 0.02, 0.00
#top
35 processes:  1 running, 34 sleeping
CPU states: % user, % nice, % system, % interrupt, % idle
Mem: 89M Active, 301M Inact, 80M Wired, 16M Cache, 61M Buf, 15M Free
Swap: 2048M Total, 6500K Used, 2042M Free
I have a custom kernel, but the mbuf values are defaults (not touched or 
specified) and I haven't added anything to loader.conf - atleast not yet.

What can I do to get rid of these problems?

Thanks for any help!
Andreas
---
Andreas Widerøe Andersen [EMAIL PROTECTED]
Pragma AS
http://www.pragma.no 

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


Re: Online Content Management Tool - question

2003-06-25 Thread Andreas Widerøe Andersen
At 08:06 25.06.2003 +0700, Roger Merritt wrote:
At 07:33 AM 6/25/03, you wrote:


other than zope - are there any good onlin content management tools out there
that allow people to update webpages and cgi code easily?
I'm just in the process of installing one called Pagetool 
(http://www.pagetool.org/) which looks good. Based on PHP. I also liked 
the looks of MkDoc (http://www.mkdoc.com/), but couldn't get my server to 
resolve the domain name I tried to set up (a DNS problem, not, apparently, 
a problem with MkDoc). MkDoc is based on Perl, I think.

Zope looked to me like overkill for my needs, and I don't really want a 
blog site.


I'm experimenting with Typo3: http://www.typo3.org.

/Andreas

---
Andreas Widerøe Andersen [EMAIL PROTECTED]
Pragma AS
http://www.pragma.no 

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


spamass-milter questions

2003-06-25 Thread Andreas Widerøe Andersen
Hi all,
I have two questions releated to spamass-milter on my FreeBSD box:
1. How do I get rid of these errors?

Jun 25 13:54:15 server sendmail[52687]: h5PBs8Xv052687: Milter 
(spamassassin): local socket name /var/run/spamass-milter.sock unsafe
Jun 25 13:54:15 server sendmail[52687]: h5PBs8Xv052687: Milter 
(spamassassin): to error state

spamass-milter is started by this line in my sendmail.cf (actually .mc 
before compile) file:

INPUT_MAIL_FILTER(`spamassassin', `S=local:/var/run/spamass-milter.sock, 
F=, T=C:15m;S:4m;R:4m;E:10m')

2. How can I automatically delete messages that gets the X-Spam: Yes flag 
set? I want to do this for messages I forward to other server etc. Ie. 
virtusertable: [EMAIL PROTECTED]   [EMAIL PROTECTED]

Thanks!

---
Andreas Widerøe Andersen [EMAIL PROTECTED]
Pragma AS
http://www.pragma.no 

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


Do I have an open relay?

2003-06-19 Thread Andreas Widerøe Andersen
Hi,
I'm a bit nervous here. Recently I've started getting 20-25 mails to my 
Postmaster account on my FreeBSD 4.8RC server running Sendmail 
8.12.8/8.12.8 each day with a message to Postmaster that the mail could not 
be delivered.

In the daily run output from the server I see messages like these:

Mail in local queue:
/var/spool/mqueue (15 requests)
-Q-ID- --Size-- -Q-Time- 
Sender/Recipient---
h5IGWCj5047460 4477 Wed Jun 18 18:44 MAILER-DAEMON
 (Deferred: Connection refused by mobilemice.com.)
[EMAIL PROTECTED]
h5HJ1xj4020111 4251 Tue Jun 17 21:03 MAILER-DAEMON
 (Deferred: Connection refused by distanteye.com.)
[EMAIL PROTECTED]
h5HFHEj3015655 3298 Tue Jun 17 17:17 MAILER-DAEMON
 (host map: lookup (triplepipe.com): deferred)
[EMAIL PROTECTED]

I have no relations with these hosts.

In the maillog from the server I see this:

Jun 19 14:09:19 server sendmail[71128]: h5G21ij4070939: 
to=[EMAIL PROTECTED], delay=3+10:06:00, xdelay=00:00:00, 
mailer=esmtp, pri=15062899, relay=distanteye.com., dsn=4.0.0, 
stat=Deferred: Connection refused by distanteye.com.
Jun 19 14:09:19 server sendmail[71128]: h5FLiJj3065159: 
to=[EMAIL PROTECTED], delay=3+14:25:00, xdelay=00:00:00, 
mailer=esmtp, pri=15962899, relay=distanteye.com., dsn=4.0.0, 
stat=Deferred: Connection refused by distanteye.com.
Jun 19 14:10:57 server sendmail[71128]: h5FLgVj3065158: 
[EMAIL PROTECTED],[EMAIL PROTECTED],[EMAIL PROTECTED],[EMAIL PROTECTED],[EMAIL PROTECTED], delay=3+14:28:25, 
xdelay=00:01:38, mailer=esmtp, pri=16261875, relay=mailgw.c2i.net., 
dsn=4.0.0, stat=Deferred: 450 Unable to find distanteye.com
Jun 19 14:10:57 server sendmail[71128]: h5F0VUj4040115: 
to=[EMAIL PROTECTED], delay=4+11:37:52, xdelay=00:00:00, 
mailer=esmtp, pri=19742831, relay=mobilemice.com., dsn=4.0.0, 
stat=Deferred: Connection refused by mobilemice.com.
Jun 19 14:10:57 server sendmail[71128]: h5EKGnj3034414: 
to=[EMAIL PROTECTED], delay=4+15:54:08, xdelay=00:00:00, 
mailer=esmtp, pri=20642831, relay=mobilemice.com., dsn=4.0.0, 
stat=Deferred: Connection refused by mobilemice.com.

The mailq (/var/log/mqueue) contains 30 messages, both dfh* and qfh*.

I've manually configured my .mc file which looks like this (I'm running 
Procmail and Spamassassin):

divert(0)
VERSIONID(`$FreeBSD: src/etc/sendmail/freebsd.mc,v 1.10.2.17 2002/11/14 
03:21:18 keramida Exp $')
OSTYPE(freebsd4)
DOMAIN(generic)

FEATURE(access_db, `hash -o -TTMPF /etc/mail/access')
FEATURE(blacklist_recipients)
FEATURE(local_lmtp)
FEATURE(mailertable, `hash -o /etc/mail/mailertable')
FEATURE(virtusertable, `hash -o /etc/mail/virtusertable')
dnl Uncomment to allow relaying based on your MX records.
dnl NOTE: This can allow sites to use your server as a backup MX without
dnl   your permission.
dnl FEATURE(relay_based_on_MX)
dnl DNS based black hole lists
dnl 
dnl DNS based black hole lists come and go on a regular basis
dnl so this file will not serve as a database of the available servers.
dnl For that, visit
dnl http://directory.google.com/Top/Computers/Internet/Abuse/Spam/Blacklists/
dnl Uncomment to activate Realtime Blackhole List
dnl information available at http://www.mail-abuse.com/
dnl NOTE: This is a subscription service as of July 31, 2001
dnl FEATURE(dnsbl)
dnl Alternatively, you can provide your own server and rejection message:
dnl FEATURE(dnsbl, `blackholes.mail-abuse.org', `550 Mail from  
${client_addr}  rejected, see http://mail-abuse.org/cgi-bin/lookup?; 
${client_add
r}')

dnl Dialup users should uncomment and define this appropriately
dnl define(`SMART_HOST', `your.isp.mail.server')
dnl Uncomment the first line to change the location of the default
dnl /etc/mail/local-host-names and comment out the second line.
dnl define(`confCW_FILE', `-o /etc/mail/sendmail.cw')
define(`confCW_FILE', `-o /etc/mail/local-host-names')
dnl Uncomment both of the following lines to listen on IPv6 as well as IPv4
dnl DAEMON_OPTIONS(`Name=IPv4, Family=inet')
dnl DAEMON_OPTIONS(`Name=IPv6, Family=inet6')
define(`confBIND_OPTS', `WorkAroundBroken')
define(`confMAX_MIME_HEADER_LENGTH', `256/128')
define(`confNO_RCPT_ACTION', `add-to-undisclosed')
define(`confPRIVACY_FLAGS', `authwarnings,noexpn,novrfy')
FEATURE(local_procmail)
MAILER(local)
MAILER(smtp)
If I try to telnet to my server from somewhere I get relaying denied so I 
think I've got it right, but somehow I have a feeling someone is getting 
through somehow. I'm running Apache, MySQL, PHP and other webserver 
related apps on the same machine.

Thanks for any help!
Andreas
---
Andreas Widerøe Andersen [EMAIL PROTECTED]
Pragma AS
http://www.pragma.no 

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd

IMAP stealing mails from POP3 server (Squirrelmail)

2003-06-12 Thread Andreas Widerøe Andersen


Hi,
I'm running a FreeBSD 4.7 STABLE server with qpopper 4.0.4, Squirrelmail 
1.2.11 and imap-uw-2002_1 together with other things such as Apache and 
Proftpd. For outgoing mail I'm using Sendmail and normal FreeBSD mail (not 
maildir).

I'm mainly using POP3 for fetching my emails, but when I'm out travelling 
I'd like to be using Squirrelmail. Therefore I installed IMAP-UW and 
Squirrelmail a while back. Everything works perfect except for one thing:

When I'm logged into Squirrelmail and a new mail arrives. Squirrelmail 
shows it and I can do what I want with it. However, when I try to download 
it later with my POP3 account it's not there... but it's in Squirrelmail! 
My guess is that IMAP steals it from my POP3 server. The first server to 
open an email gets it. Is this correct?

How can I use both Squirrelmail with IMAP (which it requires) and a POP3 
server together and can this be fixed with my configuration?

Thanks!
Andreas
---
Andreas Widerøe Andersen [EMAIL PROTECTED]
Pragma AS
http://www.pragma.no 

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


IPFIREWALL_FORWARD help

2003-03-31 Thread Andreas Widerøe Andersen
Dear list readers,
I'm currently setting up a transparent proxy and I've run into some 
problems. We're going to use IPFW to route https traffic from the big bad 
internet into a https enabled webmailserver on a closed network behind a 
firewall. This network is not using NAT, so I simply need to reroute 
traffic, atleast that's what I think.

I've compiled IPFIREWALL, IPFIRWALL_VERBOSE, IPFIREWALL_VERBOSE_LIMIT* and 
IPFIREWALL_FORWARD into the kernel of the 4.8 RC system which seems to be 
working fine.

In my /etc/rc.conf file I've set firewall_enable=YES and 
firewall_type=CLOSED. I only want to have the ports we need to use open. 
I'm planning to put all my rules in a file that's loaded during boot: 
firewall_type=/path/to/my.rules later. Should I use firewall_type or 
firewall_script for this? What's the difference?

I've been searching for information on how to apply my rules for 
forwarding, but haven't found too much yet. Would someone be kind and show 
me a few examples on how I can add these pseudo rules written below?

The rules I need are the following:

myhost=ip
mycomputer=myip
allow all (?) from any 443 to myhost 443 (allow incoming https to be 
forwarded to internal https server)
allow tcp from mycomputer 22 to myhost 22 (allow me to ssh into the machine)
- Do I need more? DNS?

The server will function simply as a router I guess with no other 
particullar services running.

Any help is greatly appreciated. Thanks in advance!

Regards,
Andreas


---
Andreas Widerøe Andersen [EMAIL PROTECTED]
Pragma AS
http://www.pragma.no 

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


Re: Sendmail questions

2003-03-25 Thread Andreas Widerøe Andersen
At 02:09 25.03.2003 +0200, you wrote:
On 2003-03-24 15:14, Andreas Wider?e Andersen [EMAIL PROTECTED] wrote:
 I've got two questions:

 1. I've been getting this error all day on both of my FreeBSD
 servers (different physic location and version - 4.7 STABLE and 4.8
 RC): ... did not issue MAIL/EXPN/VRFY/ETRN during connection to
 MTA. I'm seing this in my /var/log/maillog file and since the
 problems occured around 04.30 this morning I haven't received any
 mails. Can anyone please explain to me what's going on? Both servers
 have been delivering mail for a long problem-free time. I'm running
 Sendmail 8.12.7 (patched) and 8.12.8.
What's the deal with the two different version numbers?  Are you
running two different Sendmail versions on the same machine?
No, they are on 2 different servers.

 2. When the mail server isn't sending out mail or relaying, all mail
 sent from localhost end up in here: /var/spool/clientmqueue. How can
 I manually send these mails off later?
It looks like one of the sendmail processes that should runn on your
system for mail to work somehow dies.
What does this show?

# ps xauww | grep sendmail


root 484  0.0  0.3  2784 1660  ??  Ss6:07PM   0:03.47 sendmail: 
accepting connections (sendmail)
smmsp495  0.0  0.3  2656 1552  ??  Is6:08PM   0:00.05 sendmail: 
Queue [EMAIL PROTECTED]:30:00 for /var/spool/clientmqueue (sendmail)

I got the problem solved.
What solved the problem for me was to remove all the dnsbl
blacklistings, recompile the cf file and restart my Sendmail. Now it
works fine again. I will let things calm down before I start adding
those dnsbls again.
I wasn't the only one getting this problem, and all of us got it fixed by 
removing dnsbl features.

/Andreas



---
Andreas Widerøe Andersen [EMAIL PROTECTED]
Pragma AS
http://www.pragma.no 

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


Re: Open Source

2003-03-25 Thread Andreas Widerøe Andersen
At 03:10 25.03.2003 -0500, Don Juan wrote:
Hey. I was wondering if FreeBSD Linux is open source (source code)
FreeBSD is not Linux, but an alternative preferred by many.

I want to see how it is build up and stuff.
If it is Open source, do you think you can tell me how to get it???=)
Install FreeBSD with full source. You can see all source under /usr/src.

/Andreas

---
Andreas Widerøe Andersen [EMAIL PROTECTED]
Pragma AS
http://www.pragma.no 

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


Sendmail questions

2003-03-24 Thread Andreas Widerøe Andersen
I've got two questions:

1. I've been getting this error all day on both of my FreeBSD servers 
(different physic location and version - 4.7 STABLE and 4.8 RC): ... did 
not issue MAIL/EXPN/VRFY/ETRN during connection to MTA. I'm seing this in 
my /var/log/maillog file and since the problems occured around 04.30 this 
morning I haven't received any mails. Can anyone please explain to me 
what's going on? Both servers have been delivering mail for a long 
problem-free time. I'm running Sendmail 8.12.7 (patched) and 8.12.8.

2. When the mail server isn't sending out mail or relaying, all mail sent 
from localhost end up in here: /var/spool/clientmqueue. How can I manually 
send these mails off later?

Thanks!
Andreas
---
Andreas Widerøe Andersen [EMAIL PROTECTED]
Pragma AS
http://www.pragma.no 

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


Re: Help! sshd failing after upgrade

2003-03-21 Thread Andreas Widerøe Andersen
At 09:16 21.03.2003 -0500, Adam wrote:
On Fri, 2003-03-21 at 04:22, Andreas Widerøe Andersen wrote:
 Dear list readers,
 Two days ago I cvsup'ed the latest src, compiled a new kernel and issued a
 build/installworld. My system was running 4.7 STABLE and is now 4.8 RC. I
 have one problem that I can't fingure out.

 After upgrading my sshd stopped working with the following message under
 boottime (also if I try to manyally start it from /usr/local/etc/rc.d/):

 # ./sshd.sh start
 /usr/libexec/ld-elf.so.1: /usr/local/sbin/sshd: Undefined symbol
 OpenSSL_add_all_algorithms

 I can't ssh to my box anymore.. and this is a big problem since this is a
 surveillance, backup, mail and www server. I have looked in /etc/ssh, but
 not found any reference to this undefined symbol.
I don't have a solution for you on this one. However, if you find a
solution (and possibly even the cause), please post it back to the list,
or email me personally. I am planning on upgrading to 4.8 soon as well,
and I don't want any 'surprises' like you have encountered.
--
Adam [EMAIL PROTECTED]
Well, I didn't exactly find a solution, but more like a bypass. I installed 
the /usr/ports/security/openssh port and did what was written in 
pkg-message. Now it's working fine again.

/Andreas



---
Andreas Widerøe Andersen [EMAIL PROTECTED]
Pragma AS
http://www.pragma.no 

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


Apache mod_ssl how to?

2003-03-20 Thread Andreas Widerøe Andersen


Hi,
I recently installed the apache-13-modssl port on my FreeBSD 4.8 RC system. 
I'm trying to set up a https virtual host without luck.

I get this from my httpd-error.log:

Ops, no RSA or DSA server certificate found?!

I understand there's a missing certificate, but I can't seem to find a 
website or info about how to create one and do this with a full description 
of the process.

Can someone in here please direct my to a place where I can find this info?

Thanks!
/Andreas
---
Andreas Widerøe Andersen [EMAIL PROTECTED]
Pragma AS
http://www.pragma.no 

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


Re: A couple of questions related to the sendmail patch, etc.

2003-03-05 Thread Andreas Widerøe Andersen
At 12:27 05.03.2003 +0200, you wrote:
On 2003-03-04 22:38, taxman [EMAIL PROTECTED] wrote:
 On Tuesday 04 March 2003 01:08 pm, Giorgos Keramidas wrote:
  On 2003-03-04 10:02, Phillip Smith [EMAIL PROTECTED] wrote:
  : A couple of quick questions...
  :
  : I've downloaded the 8.11.6 patch from sendmail.org, and used the
  : instructions they provided
  : [patch -p0  /PATH/TO/sendmail.8.11.6.security.cr.patch], which then
  : prompts me for 'which file to patch.' I'm not clear on which file I
  : _need_ to patch? Or where it would be.
 
  You should run the patch command with /usr/src/contrib/sendmail as
  your current working directory.

 I don't run sendmail at all, but I would like to learn how to apply
 the patch.  doing:
 patch -p0  /home/tim/sendmail.8.12.security.cr.patch
 in the above directory still gives the File to patch: prompt
 What else needs to be done to apply the patch?
Hmmm, sorry for the confusion.  I didn't read the patch carefully.
The correct way of applying it for 8.11.x is:
# cd /usr/src/contrib/sendmail/src
# patch -p1  /PATH/TO/sendmail.8.11.6.security.cr.patch
I'm running the patch now, but it looks strange to me..
Is this patch suppose to take a long time (minutes) without any output on 
the screen?

/Andreas

---
Andreas Widerøe Andersen [EMAIL PROTECTED]
Pragma AS
http://www.pragma.no  

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


Q: Upgrading Sendmail

2003-03-04 Thread Andreas Widerøe Andersen
Hi all, I got a quick question:

How do I upgrade Sendmail on my FreeBSD 4.7 STABLE box? What I mean, since 
Sendmail comes with the system, will it be upgraded through a make world 
or do I have to run it from ports? I've got 8.12.6 and the latest in ports 
is 8.12.8.

Thanks a bunch!
/Andreas
---
Andreas Widerøe Andersen [EMAIL PROTECTED]
Pragma AS
http://www.pragma.no 

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


proto.m4 file (Sendmail on FreeBSD)

2003-02-26 Thread Andreas Widerøe Andersen
I got Sendmail 8.12.6/8.12.7 on my FreeBSD 4.7 STABLE system and I've 
recently been working with it to stop spam coming through to my email 
users. I've added several FEATURES in the freebsd.mc file and compiled a 
new sendmail.cf file which works pretty good. However, I'm seeing more and 
more of lines in my maillog like the line below:

Feb 26 09:13:00 myserver sendmail[52405]: h1Q8CxZw052405: 
[EMAIL PROTECTED]... User unknown
Feb 26 09:13:00 myserver sendmail[52405]: h1Q8CxZw052405: from=, 
size=3411, class=0, nrcpts=0, proto=ESMTP, daemon=MTA, relay=mxo1.vol.cz 
[195.250.128.76]

The spammer is always using an empty from field and the spammer is 
obviously trying lots of different combinations just to see if it will 
match. I read on the sendmail.org site that there is a workaround to 
prevent spammers do this in 8.12.6.

My question is, where should I put this in in my proto.m4 file? The file is 
rather large and I really don't know where.

Index: proto.m4
===
RCS file: /cvs/cf/m4/proto.m4,v
retrieving revision 8.649.2.12
retrieving revision 8.649.2.13
diff -u -r8.649.2.12 -r8.649.2.13
--- proto.m43 Dec 2002 16:48:37 -   8.649.2.12
+++ proto.m44 Dec 2002 00:12:18 -   8.649.2.13
@@ -1761,6 +1761,9 @@
 dnl workspace: {client_name} $| {client_addr}
 R$+ $| $+  $: $D  $1  ? + Connect  $2 
 dnl workspace: result-of-lookup {client_addr}
+dnl OR $| $+ if client_name is empty
+R   $| $+  $: $A  $1  ? + Connect empty 
client_name
+dnl workspace: result-of-lookup {client_addr}
 R? $+  $: $A  $1  ? + Connect no: 
another lookup
 dnl workspace: result-of-lookup (|{client_addr})
 R? $*  $: OK   found nothing

Also, there are 2 proto.m4 files:

/usr/share/sendmail/cf/m4/proto.m4
/usr/src/contrib/sendmail/cf/m4/proto.m4
Which one should I edit  use?

When I'm compiling up a new sendmail.cf file I do this:

cp /etc/mail/sendmail.cf /etc/mail/sendmail.cf.orig
cd /usr/src/etc/sendmail
cp freebsd.mc freebsd.mc.orig
[edit freebsd.mc]
make freebsd.cf
make freebsd.cf install
cd /usr/obj/usr/src/etc/sendmail/
cp freebsd.cf /etc/mail/sendmail.cf
killall -1 sendmail
Thanks!
/Andreas
---
Andreas Widerøe Andersen [EMAIL PROTECTED]
Pragma AS
http://www.pragma.no 

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


Testtool for Sendmail

2003-02-25 Thread Andreas Widerøe Andersen


Hi all,
I'm looking for a FreeBSD tool that will automatically test my smtp server 
for relaying. I'm looking for something like the webpage described here: 
http://www.freebsddiary.org/sendmail.php (Testing the relay).

Any tools or website-tools appreciated.

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


Re: Where can i find a startup log

2003-02-19 Thread Andreas Widerøe Andersen
At 15:53 19.02.2003 +0100, you wrote:

Hi list,

I hope this isn't a FAQ - i have been using FreeBSD for some years now.
My question: Where can i find a log of all the startup messages that flash 
by so fast that i can't read them? Not the kernel messages, but daemons 
that fail to start and such.


Type: dmesg or do a # more /var/log/messages

/Andreas

---
Andreas Widerøe Andersen [EMAIL PROTECTED]
Pragma AS

http://www.pragma.no 


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


AMD Duron/ Socket A - FreeBSD 4.7

2003-02-17 Thread Andreas Widerøe Andersen
Hi,
I need to purchase a CHEAP server for a client and I was thinking about 
building him one using an AMD processor and a Socket A mainboard with most 
stuff onboard. Normally I'm rather reluctant to use new hardware for 
FreeBSD installations therefore I'm hoping someone could comment on the 
following spec:

2x WD Harddisk 20.0GB IDE 7200RPM UDMA-100 3.5 , WD200BB
APACER Memory 512MB SDRAM PC-133 Original 168Pin CL2, 512MB PC-133
MICROSTAR Mainboard Socket-A VIA KLE133 MicroATX Audio VGA LAN UDMA100, 
MS6378XL
AMD CPU Duron 1.2GHz Socket A 200FSB Tray , AMD DURON 1.2
Chieftec Case 19 1U 200W ATX 1xPCI Riser Card Black, UNC-110S-B 1

Thanks!
Andreas



---
Andreas Widerøe Andersen [EMAIL PROTECTED]
Pragma AS

http://www.pragma.no 


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


X server for Windows

2003-01-31 Thread Andreas Widerøe Andersen
Hi,
I need to connect to my FreeBSD box from a Windows PC using some kind of X 
server for Windows. I was wondering if someone could be so kind and give me 
a few recommendations?

I only need a simple server, no print or stuff - just the plain (vnc-like) 
thing.

Thanks!
/Andreas


---
Andreas Widerøe Andersen [EMAIL PROTECTED]
Pragma AS

http://www.pragma.no 


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


Re: Analog build fails

2003-01-30 Thread Andreas Widerøe Andersen
At 15:53 29.01.2003 +0100, you wrote:

I can't get Analog (actually /usr/ports/graphics/gd) to build from ports:

bash-2.05b# make install clean
===  Extracting for analog-5.24,1
 Checksum OK for analog-5.24.tar.gz.
===   analog-5.24,1 depends on shared library: gd.2 - not found
===Verifying install for gd.2 in /usr/ports/graphics/gd
===  Building for gd-1.8.4_6
cc -O -pipe  -DHAVE_LIBPNG -DHAVE_LIBJPEG -DHAVE_LIBFREETYPE -I. 
`/usr/local/bin/freetype-config --cflags` -I/usr/local/include -c gdttf.c
gdttf.c:14: unterminated `#else' conditional
*** Error code 1

Stop in /usr/ports/graphics/gd/work/gd-1.8.4.
*** Error code 1

Stop in /usr/ports/graphics/gd.
*** Error code 1

Stop in /usr/ports/www/analog.



I got gd-2.0.1_3 installed.

Any help is appreciated. Thanks!


FYI:

Got it working by first cleaning for gd-1.8 before installing, then 
cleaning for Analog before installing.

/Andreas



---
Andreas Widerøe Andersen [EMAIL PROTECTED]
Pragma AS

http://www.pragma.no 


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


Analog build fails

2003-01-29 Thread Andreas Widerøe Andersen
I can't get Analog (actually /usr/ports/graphics/gd) to build from ports:

bash-2.05b# make install clean
===  Extracting for analog-5.24,1
 Checksum OK for analog-5.24.tar.gz.
===   analog-5.24,1 depends on shared library: gd.2 - not found
===Verifying install for gd.2 in /usr/ports/graphics/gd
===  Building for gd-1.8.4_6
cc -O -pipe  -DHAVE_LIBPNG -DHAVE_LIBJPEG -DHAVE_LIBFREETYPE -I. 
`/usr/local/bin/freetype-config --cflags` -I/usr/local/include -c gdttf.c
gdttf.c:14: unterminated `#else' conditional
*** Error code 1

Stop in /usr/ports/graphics/gd/work/gd-1.8.4.
*** Error code 1

Stop in /usr/ports/graphics/gd.
*** Error code 1

Stop in /usr/ports/www/analog.



I got gd-2.0.1_3 installed.

Any help is appreciated. Thanks!

/Andreas


---
Andreas Widerøe Andersen [EMAIL PROTECTED]
Pragma AS

http://www.pragma.no  


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


Daily output to root

2003-01-21 Thread Andreas Widerøe Andersen
Hi,
On one of my FreeBSD boxes the daily (nightly) output (security, check 
Etc.) stopped after a system upgrade a while back. I'd like to get the 
output mails back. Today I receive one mail from this server with the 
following content:

No output from the 24 files processed

How can I restore the daily mails from my man Charlie Root?

Thanks,
Andreas

--
Andreas Widerøe Andersen [EMAIL PROTECTED]
Pragma AS

http://www.pragma.no


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


Re: Daily output to root

2003-01-21 Thread Andreas Widerøe Andersen
Andreas Widerøe Andersen wrote:


Hi,
On one of my FreeBSD boxes the daily (nightly) output (security, check 
Etc.) stopped after a system upgrade a while back. I'd like to get the 
output mails back. Today I receive one mail from this server with the 
following content:

No output from the 24 files processed

How can I restore the daily mails from my man Charlie Root?

Thanks,
Andreas


Forgot to add I currently run FreeBSD 4.7 STABLE.

--
Andreas Widerøe Andersen [EMAIL PROTECTED]
Pragma AS

http://www.pragma.no


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



Help! Errors in /var/log/messages after upgrade

2003-01-21 Thread Andreas Widerøe Andersen
After I upgraded to FreeBSD 4.7 STABLE yesterday I receive some errors 
in the /var/log/messages file. These errors occour only when people try 
to send mail via webforms on websites hosted on the server. Here is an 
example:

Jan 21 13:40:12 server sendmail[44046]: h0LCeCp6044046: SYSERR(www): 
collect: Cannot write ./dfh0LCeCp6044046 (bfcommit, uid=80, gid=25): 
Permission denied
Jan 21 13:40:12 server sendmail[44046]: h0LCeCp6044046: SYSERR(www): 
queueup: cannot create queue temp file ./tfh0LCeCp6044046, uid=80: 
Permission denied

Can someone please tell me what to do to get rid of this and make web 
forms work again? Thanks a million!!

Andreas

--
Andreas Widerøe Andersen [EMAIL PROTECTED]
Pragma AS

http://www.pragma.no


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


Re: Help! Errors in /var/log/messages after upgrade

2003-01-21 Thread Andreas Widerøe Andersen
Mark wrote:


- Original Message -
From: Andreas Widerøe Andersen [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, January 21, 2003 1:44 PM
Subject: Help! Errors in /var/log/messages after upgrade




After I upgraded to FreeBSD 4.7 STABLE yesterday I receive some errors
in the /var/log/messages file. These errors occour only when people
try to send mail via webforms on websites hosted on the server. Here
is an example:

Jan 21 13:40:12 server sendmail[44046]: h0LCeCp6044046: SYSERR(www):
collect: Cannot write ./dfh0LCeCp6044046 (bfcommit, uid=80, gid=25):
Permission denied Jan 21 13:40:12 server sendmail[44046]:
h0LCeCp6044046: SYSERR(www): queueup: cannot create queue temp file
./tfh0LCeCp6044046, uid=80: Permission denied

Can someone please tell me what to do to get rid of this and make web
forms work again? Thanks a million!!

Andreas




Hi Andreas,

I had the same problem myself, when I installed FreeBSD 4.7R on a new
server.

I was finally able to solve it by queueing mail from the webdaemon (from
CGI scripts and such) into its own queue (that is, running messages off
forms with -odq -oQ/var/spool/webqueue (and setting such as default in
php.ini), and setting access rights for /var/spool/webqueue owned by the
nobody user (Apache runs as nobody) as follows:

drwxr-xr-x2 nobody  daemon512 Jan 21 13:41 webqueue

(would likely be user www in your case) I say solve because this does
indeed make the permission errors go away, and things worked again; though I
feel a more elegant solution may exist, I have not found it yet.



Is Apache trying to put a temporary file into /var/spool/mqueue without 
having the correct permissions to do so?

I've noticed a new directory under /var/spool which is named 
/clientmqueue. What is this for?

Also, which Sendmail version was included in FreeBSD 4.5 and which is 
included in 4.7?

/Andreas

--
Andreas Widerøe Andersen [EMAIL PROTECTED]
Pragma AS

http://www.pragma.no


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


Re: Help! Errors in /var/log/messages after upgrade

2003-01-21 Thread Andreas Widerøe Andersen
Andreas Widerøe Andersen wrote:


After I upgraded to FreeBSD 4.7 STABLE yesterday I receive some errors
in the /var/log/messages file. These errors occour only when people
try to send mail via webforms on websites hosted on the server. Here
is an example:

Jan 21 13:40:12 server sendmail[44046]: h0LCeCp6044046: SYSERR(www):
collect: Cannot write ./dfh0LCeCp6044046 (bfcommit, uid=80, gid=25):
Permission denied Jan 21 13:40:12 server sendmail[44046]:
h0LCeCp6044046: SYSERR(www): queueup: cannot create queue temp file
./tfh0LCeCp6044046, uid=80: Permission denied

Can someone please tell me what to do to get rid of this and make web
forms work again? Thanks a million!!


Another way (bypass) is to chmod mqueue to 777 - which work. However, 
this is probably not a good idea, or?

/Andreas

--
Andreas Widerøe Andersen [EMAIL PROTECTED]
Pragma AS

http://www.pragma.no


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


Re: Help! Errors in /var/log/messages after upgrade

2003-01-21 Thread Andreas Widerøe Andersen
Kevin D. Kinsey, DaleCo, S.P. wrote:


- Original Message -
From: Andreas Widerøe Andersen [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, January 21, 2003 7:37 AM
Subject: Re: Help! Errors in /var/log/messages after upgrade


Mark wrote:



- Original Message -
From: Andreas Widerøe Andersen [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, January 21, 2003 1:44 PM
Subject: Help! Errors in /var/log/messages after upgrade





After I upgraded to FreeBSD 4.7 STABLE yesterday I receive some


errors


in the /var/log/messages file. These errors occour only when people
try to send mail via webforms on websites hosted on the server.


Here is an example:


Jan 21 13:40:12 server sendmail[44046]: h0LCeCp6044046:

SYSERR(www):



collect: Cannot write ./dfh0LCeCp6044046 (bfcommit, uid=80,
gid=25):
Permission denied Jan 21 13:40:12 server sendmail[44046]:
h0LCeCp6044046: SYSERR(www): queueup: cannot create queue temp file
./tfh0LCeCp6044046, uid=80: Permission denied



I found the sollution:

/etc/mail/submit.cf was missing.

I copied it # cp /usr/share/sendmail/cf/cf/submit.cf /etc/mail/submit.cf

and the problem disappeared.

/Andreas





--
Andreas Widerøe Andersen [EMAIL PROTECTED]
Pragma AS

http://www.pragma.no


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



PHP 4.3 port?

2003-01-07 Thread Andreas Widerøe Andersen
Anyone know when the mod_php4 (4.3.0) port will be out for FreeBSD? 
PHP.net released PHP 4.3.0 on Dec. 27th.

Cheers!
/Andreas

---
Andreas Widerøe Andersen [EMAIL PROTECTED]
Pragma AS

http://www.pragma.no


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


Re: Apache Wildcard Aliasing

2003-01-07 Thread Andreas Widerøe Andersen
Rus Foster wrote:


Hi All,
 I'm trying to work out if there is a way that I can get apache to handel
wildcard subdomains. Bascially what I would like is that if I have a user
joe with the subdomain joe.fsck.me.uk that apache will automatically
direct http://joe.fsck.me.uk and http://www.joe.fsck.me.uk to
/home/joe/public_html. Is this possible or will I have to setup everyone
manually?



If my memory serves me well:

VirtualHost *
ServerAdmin [EMAIL PROTECTED]
DocumentRoot /usr/local/www/virtual/domain.com/data
Directory /usr/local/www/virtual/domain.com/data
AllowOverride All
Options Indexes Includes
/Directory
ServerName www.domain.com
ServerAlias *.domain.com
/VirtualHost


/Andreas

--
Andreas Widerøe Andersen [EMAIL PROTECTED]
Pragma AS

http://www.pragma.no


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



Installing ImageMagick -DWITHOUT...

2003-01-06 Thread Andreas Widerøe Andersen
Hi,
I want to install ImageMagick without X and Ghostscript and other things 
I don't need.

I do it from ports and issue this command:

# make -DWITHOUT_X11 install clean

This takes me directly to the Ghostscript driver configuration screen. I 
don't want Ghostscript since I don't print from this server.

1. Can I specify more without-options, Ie. make -DWITHOUT_X11 
-DWITHOUT_GS install clean?

2. What is the without syntax for Ghostscript here?

3. What is the general FreeBSD exclude without command when installing 
from ports and where is it placed? I've seen several, Ie. --without-gui, 
-DWHITOUT and so on.

Thanks for any info!
/Andreas

--
Andreas Widerøe Andersen [EMAIL PROTECTED]
Pragma AS

http://www.pragma.no


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