(no subject)

2010-11-17 Thread hasanhasanli Hasan
I have FreeBSD 7.3. How recover was deleted files in FreeBSD? Help me

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


Re: (no subject)

2010-11-17 Thread Polytropon
On Wed, 17 Nov 2010 10:42:17 +0300, hasanhasanli Hasan hasanhasa...@mail.ru 
wrote:
 I have FreeBSD 7.3. How recover was deleted files in FreeBSD? Help me

Due to the nature of the UFS file system, please note 
that recovering deleted files may be a VERY complicated
process, and there is no way to totally make sure it
will be successful.

Having such a problem myself (accidentally deleted a whole
subtree with video files), I would suggest you try the
famous The Sleuth Kit from ports (sysutils/sleuthkit).

After installing it, you'll find useful information in
/usr/local/share/doc/sleuthkit/ref_fs.txt which contains
a kind of recipe on how to recover files. It describes
in detail what you can try.

In any case, do NOT continue using the disk in question,
the risk that files to be recovered getting overwritten
is present. Make a copy of the partition in question
(using dd) and work with the copy only.

The recoverdisk program (/sbin/recoverdisk) comes with
the base system and should also be mentioned.

There are also commercial products (that often offer a
free trial version) that allow such kind of recovery.
Maybe you can try File Restore Professional and later
on purchase it (demo version at www.pcrecovery.com
available).

Good luck!



PS. Please use a *descriptive* subject line when posting
to this list. This makes sure your message isn't
overlooked or misidentified as spam.


-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: openssl version - how to verify

2010-11-17 Thread c0re
2010/11/16 Dennis Glatting d...@penx.com:
 On Tue, 2010-11-16 at 10:28 +0300, c0re wrote:
 Jerry, I'm not about that :) base openssl are OK. But I need proves
 that it has got no security problems - it's external IT auditors
 request.
 And I'm interested how I can know what patchlevel there on base
 openssl version and prove them (auditors) that freebsd base openssl
 are not vulnerable.


 Most operating systems have a variant of OpenSSL they patch from the
 security bug set without bumping the OpenSSL version identifier (they
 usually tack on an OS-specific identifier but the OpenSSL identifier
 becomes meaningless). For example Debian is a patched g,which you
 would conclude as old (in many respects it is old) and therefore
 security hole riddled.

 Debian 5.0.6:
        Tasha:# openssl version
        OpenSSL 0.9.8g 19 Oct 2007

 FreeBSD 8.1:
        btw openssl version
        OpenSSL 0.9.8n 24 Mar 2010

 That /does not/ mean those versions of OpenSSL have security holes.

 The fallacy with auditors is they look at version identifies to make
 conclusions. This is in error. You need to figure out what they are
 looking for. Do they have a specific issue? Bug? Test suite they want
 run?

 You /could/ install the most recent version of OpenSSL but there is no
 guarantee it will replace the running version and it /could/ break
 applications, if only introducing holes that previously didn't exist
 (data structure sizing, library binding, function argument sets, etc.)




 2010/11/15 Jerry freebsd.u...@seibercom.net:
  On Mon, 15 Nov 2010 18:40:27 +0300
  c0re nr1c...@gmail.com articulated:
 
  There are still too many broken ports with openssl from ports, I do
  not like debug it and really like to use base openssl, almost no
  difference.
 
  Might I suggest that if you are aware of ports that don't work
  correctly with the port's version of openssl that you file a PR against
  it. I have done so and succeeded in getting several patches issued to
  correct the problem. This problem will not go away by itself.
 
  --
  Jerry
  freebsd.u...@seibercom.net
 
  Disclaimer: off-list followups get on-list replies or get ignored.
  Please do not ignore the Reply-To header.
  __
 
  ___
  freebsd-questions@freebsd.org mailing list
  http://lists.freebsd.org/mailman/listinfo/freebsd-questions
  To unsubscribe, send any mail to 
  freebsd-questions-unsubscr...@freebsd.org
 
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org





I understood you.
They just look at openssl version and that's all.
I just install openssl from ports, hide /usr/bin/openssl temporary,
they get all they needs (there is openssl in /usr/local/bin/) and then
I deinstall openssl from ports and restore /usr/bin/openssl.
That's absurdity, but that's auditors... :)

Thanks all. It's hard to prove to auditors that base openssl are OK.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Building kdiff3 for kde 3.5

2010-11-17 Thread Maciej Milewski
On Wednesday 17 November 2010 08:37:51, d...@safeport.com wrote:
 Apparently only the version for kde4 is on the ports and I could not find a
 package for 3.5. Building the available source had some interesting results
 but ultimate did not work. What I finally did was google the 3.5 package
 name I had installed and found a copy at the University of Kent.
 
 There must be a better way to find older ports/packages. What should I have
 done?
From kdiff3 homepage looks that from version 0.9.93 kdiff3 works with KDE4. 
Earlier version worked with KDE3 only. In ports is version 0.9.95 and in 
Makefile it's line USE_KDE4 so it builds with KDE4. You can take earlier port 
version 0.9.92 manually from 
http://www.freebsd.org/cgi/cvsweb.cgi/ports/textproc/kdiff3/
or use ports-mgmt/portdowngrade

Regards,
Maciej Milewski
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


RE: Specifying Install Root on non interactive sysinstall

2010-11-17 Thread Ramblewski David

Many thanks for your answer, it helps me solving some issues.

David

-Message d'origine-
De : owner-freebsd-questi...@freebsd.org 
[mailto:owner-freebsd-questi...@freebsd.org] De la part de Devin Teske
Envoyé : mardi 9 novembre 2010 18:13
À : Ramblewski David
Cc : freebsd-questions@freebsd.org; freebsd-sysinst...@freebsd.org
Objet : Re: Specifying Install Root on non interactive sysinstall

On Tue, 2010-11-09 at 10:18 +0100, Ramblewski David wrote:
 Hi,

 I'm looking for a solution to jumpstart FreeBSD on an non interactive way.
 The solution provided by the Handbook recommend to use sysinstall program, 
 that's what I'm trying to do.

-sysinstall@ would have been a better choice for this question.
Cross-posting my reply.


 The servers are using PXE boot to mount an mfsbsd filesystem, everything 
 works as expected until now.
 I manually create the slice, labels and mount the partitions on /mnt 
 partition.

You might just want to try adding diskInteractive=YES to your
install.cfg file. That way, you don't have to manually
partition/slice/label your disk _before_ you load the config.

By setting diskInteractive, when installCommit is called, it will:
a. if `disk' is not set (e.g. disk=da0) throw up a menu to select which
disk you want to partition
b. throw you into the FDISK partition editor
c. throw you into diskabel
e. ask which boot code you want to install (if any) to the MBR

Just a suggestion.


 Then I manually launch sysinstall loadConfig  to install packages classes 
 but I didn't find the way to precise an Install Root for /mnt whereas it 
 works if I did it on a interactive way using the options menu.

Put this into your install.cfg:

# Required by distExtractAll (called indirectly by installCommit):
installRoot=/mnt




 Does anyone know how to solve this issue?

 Here is my install.cfg file:
 --
 # Turn on extra debugging.
 debug=YES

 # Ok, this ought to turn off ALL prompting, don't complain to me that you
 # lost a machine because you netbooted it on  the same subnet as this
 # box
 nonInteractive=YES
 noWarn=YES
 tryDHCP=YES

 # My host specific data
 hostname=polbsd
 domainname=priv.atos.fr

 
 # Which installation device to use
 nfs=10.28.222.1:/opt/local/jumpstart/tftpboot/BSD/NFS
 netDev=bge0
 mediaSetNFS
 

 
 # Select which distributions we want.
 dists= base SMP manpages ports

Hmmm. Must be an older release. The SMP kernel has gone missing in
FreeBSD-8.x.


 distSetCustom
 

 # OK, everything is set.  Do it!
 installCommit

 shutdown
 --


 Thanks,

 David

--
Cheers,
Devin Teske

- CONTACT INFORMATION -
Business Solutions Consultant II
FIS - fisglobal.com
510-735-5650 Mobile
510-621-2038 Office
510-621-2020 Office Fax
909-477-4578 Home/Fax
devin.te...@fisglobal.com

- LEGAL DISCLAIMER -
This message  contains confidential  and proprietary  information
of the sender,  and is intended only for the person(s) to whom it
is addressed. Any use, distribution, copying or disclosure by any
other person  is strictly prohibited.  If you have  received this
message in error,  please notify  the e-mail sender  immediately,
and delete the original message without making a copy.

- FUN STUFF -
-BEGIN GEEK CODE BLOCK-
Version 3.1
GAT/CS d(+) s: a- C++() UB$ P++() L++() !E--- W++ N? o? K- w O
M+ V- PS+ PE Y+ PGP- t(+) 5? X+(++) R++ tv(+) b+(++) DI+(++) D(+) G+++ e+ h
r++ y+
--END GEEK CODE BLOCK--
http://www.geekcode.com/

- END TRANSMISSION -

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



Ce message et les pièces jointes sont confidentiels et réservés à l'usage 
exclusif de ses destinataires. Il peut également être protégé par le secret 
professionnel. Si vous recevez ce message par erreur, merci d'en avertir 
immédiatement l'expéditeur et de le détruire. L'intégrité du message ne pouvant 
être assurée sur Internet, la responsabilité du groupe Atos Origin ne pourra 
être recherchée quant au contenu de ce message. Bien que les meilleurs efforts 
soient faits pour maintenir cette transmission exempte de tout virus, 
l'expéditeur ne donne aucune garantie à cet égard et sa responsabilité ne 
saurait être recherchée pour tout dommage résultant d'un virus transmis.

This e-mail and the documents attached are confidential and intended solely for 
the addressee; it may also be privileged. If you receive this e-mail in error, 
please notify the sender immediately and destroy it. As its integrity cannot be 
secured on the Internet, the Atos Origin group liability cannot be triggered 
for the message content. Although the sender endeavours to maintain a computer 
virus-free network, the sender does not warrant that this 

Re: ejabberd won't startup

2010-11-17 Thread t...@diogunix.com
update on the issue with Jails and Erlang 14B:


  Hi everybody dealing with ejabberd and/or erlang in a FreeBSD8-Jail !
  
  I've built the ejabberd port (with ODBC support / the Erlang MySQL
  driver) two days ago but can't get it to run.
  
  # ejabberdctl start
  
  spits out a huge bunch of Erlang error messages (unreadable for most
  humans), obviously saying that it can't connect properly to the
  loopback interface on Port 4369 (respectively connects but then
  immediately stops, causing a crash dump and not able to register it's
  node). Tcpdump shows 8 pakets captured when pointing to the lo0
  interface.
  
  The jail is an ordinary Jail with no special configuration (just 1 IP
  and a proper hostname, running Postfix/Dovecot with MySQL just fine).
  PF or it's ruleset too seems not to be the cause as Erlang's behaviour
  is the same even with a switched off PF. Restarting the Jail and
  triple-checking it's parameters did not help too.
  
  As the error can be reproduced solely with Erlang (without even
  starting ejabberd), the ejabberd.cfg file however does not seem to
  play any role.
  
  I was told, this actually was an Erlang issue and so I first went to
  the Erlang folks (erlang mailing list). At least until now, they
  unfortunately could not help me making a real step.
  
  So, I got stuck and now am in search for people successfully running
  ejabberd in a Jail. I have seen reports from the web on success and
  even I too had a test installation in a Jail running half a year ago
  (unfortunately did not note all details  before I wiped that testing
  machine).
  
  My suggestion is, it might have something to do with the file
  /usr/locaal/etc/ejabberd/inetrc
  (responsible for name resolution for Erlang)
  
  So, are there any Jail/ejabberd experts out there ?
  Or just people having it up and running ?
 
 Hello,
 
 I believe we are facing the same issue. Our setup is ejabberd-2.1.5 in
 a FreeBSD 7.3 amd64 jail and the workaround we found is running an
 older version of erlang (erlang-r13b04_3,1). You can find the old
 erlang port files in the FreeBSD CVS repository or here:
 
   http://noc.ntua.gr/~christia/erlang.tgz
 
 Regards,
 Panagiotis

I experienced the phenomenon with Erlang 14B:

# erl
Erlang R14B (erts-5.8.1) [source] [smp:4:4] [rq:4] [async-threads:0] [hipe] 
[kernel-poll:false]

Eshell V5.8.1

The error message then is:

 ejabberd Start:
 
 # ejabberdctl status
 {error_logger,{{2010,11,16},{9,56,20}},Protocol: ~p: register error: 
~p~n,
 [inet_tcp,{{badmatch,{error,epmd_close}},[{inet_tcp_dist,listen,1},

but the same pops up when just starting up an Erlang node without any 
ejabberd.

From the Erlang mailing list I learned:

epmd in R14B was changed to allow some messages (like name registrations)
only from 127/8. 

So, this might explain why there are those problems with the new Erlang in a 
Jail.

The most recent report of a working Erlang/ejabberd in a Jail I have found 
via Google is from around Janary 2010. 

So, if there is no newer positiv experience with Erlang 14B in a Jail it 
might be a good idea to provide a Port for ejabberd with an older Erlang.

But still I'm not sure whether or not it is possible to get Erlang 14B to 
run in a Jail.

Any further hints / ideas out there ?

Tom
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


NFS setup

2010-11-17 Thread n dhert
I try to set up NFS between two freebsd-8.1 systems.
Both were - at installation time - set up to act as NFS server and NFS
client
so both have in their /etc/rc.conf
nfs_client_enable=YES
nfs_server_enable=YES
rpcbind_enable=YES

all the services are running (checked on both systems):
# ps -jaxw | grep nfs
root 882 1   882   8820 Is??0:00.04 nfsd: master
(nfsd)
root 884   882   882   8820 S ??0:00.00 nfsd: server
(nfsd)
# ps -jaxw | grep mountd
root 880 1   880   8800 Is??0:00.00 /usr/sbin/mountd
-r
# ps -jaxw | grep rpcbind
root 747 1   747   7470 Ss??0:00.01
/usr/sbin/rpcbind
the NFS server (server.subdomain.topdomain) has
server# cat /etc/exports
/home -alldirs -ro client.subdomain.topdomain
server# showmount -e
Exports list on localhost:
/home   client.subdomain.topdomain
server# cat /etc/hosts
XXX.YYY.ZZZ.CCC client.subdomain.topdomain

the NFS client (client.subdomain.topdomain) has
client# cat /etc/hosts
XXX.YYY.ZZZ.SSS server.subdomain.topdomain
and has a mount-point /mnt with nothing mounted on it yet (empty dir)

client# mount server.subdomain.topdomain:/home /mnt
   (or client# mount XXX.YYY.ZZZ.SSS:/home /mnt)
hangs, and after trying for about a minute, responds
[tcp] server.subdomain.topdomain:/home: RPCPROG_NFS: RPC: Port mapper
failure - RPC: Timed out

what is missing to make this work?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Does MAC version of iTunes work on FreeBSD?

2010-11-17 Thread Bruce Cran
On Tue, 16 Nov 2010 14:26:21 -0500
Nathan Vidican nat...@vidican.com wrote:

 No. The Mac version of iTunes depends on the Cocoa application
 framework, which is a set of Objective C objects that, as far as I am
 aware of, has no compatible framework under FreeBSD.

The only vaguely compatible framework is GNUstep, which has at least
partial support for the Cocoa APIs. Apparently it would be best to start
with GNUstep and move an application to OS X though since there are so
many features from MacOS that aren't implemented. Note that this is
completely separate from binary compatibility: as far as I know
nobody's working on Mach-O compatbility on FreeBSD so applications
would need to be recompiled.

http://wiki.gnustep.org/index.php/Cocoa

-- 
Bruce Cran
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: /usr/ports/net-im/ejabberd

2010-11-17 Thread Mark Shroyer
On 11/15/2010 9:26 AM, t...@diogunix.com wrote:
 surprisingly, the port for /usr/ports/net-im/ejabberd too tries to build a 
 bunch of software usually not associated with ejabberd (such as a lot of 
 Java, X11, OpenMotif, GTK and don't know what else).
 
 After hours, the build of ejabberd then failed with:
 
 [snip]
 
 Stop in /usr/ports/net-im/ejabberd.
 
 I did not include any special compile options.
 
 Any hints out there ?

I don't know about this specific error, but to stop the port from
causing X11 and such to be built you can try setting

WITHOUT_X11=yes

in /etc/make.conf (unless you actually use X11 ports on this machine).

-- 
Mark Shroyer
http://markshroyer.com/contact/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


a question regarding proper printf(3) formating and alignment

2010-11-17 Thread Alexander Best
hi there,

i've looked at a lot of utilities in the bsd src tree and most of them seem to
be doing something like this:

Device  1M-blocks UsedAvail Capacity
/dev/label/swapfs 10239010239 0%
/dev/label/swap  81910 8191 0%
Total   18431018431 0%

as you can see the header simply gets written with a number of tabs in between
the keywords, but then the actual output aligns differently.

i'd like to learn of ways formatting the header so that it aligns properly,
whether the device name is 10 chars long or 1000. is there an example for this
somewhere in the src tree?

thanks in advance.

cheers.
alex

-- 
a13x
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Mutt Port broken ?

2010-11-17 Thread Leon Meßner
Salut,

On Sun, Nov 14, 2010 at 04:11:35PM +0100, t...@diogunix.com wrote:
 Hello everybody,
 
 just tried to build /usr/ports/mail/mutt but surprisingly got stuck with an 
 Error 1 though the ports collectionis updated and well maintained:
 
 m_err -lcrypto -lasn1 -lroken -lcrypt -lssl -lcrypto  -lintl -liconv -liconv 
 muttlib.o(.text+0x12f2): In function `mutt_mktemp':
 : warning: warning: mktemp() possibly used unsafely; consider using 
 mkstemp()
 /usr/lib/libhx509.so: undefined reference to `MD2_Init'
 /usr/lib/libhx509.so: undefined reference to `MD2_Final'
 /usr/lib/libhx509.so: undefined reference to `MD2_Update'
 *** Error code 1
 
 Stop in /usr/ports/mail/mutt/work/mutt-1.4.2.3.
 *** Error code 1
 
 Stop in /usr/ports/mail/mutt/work/mutt-1.4.2.3.
 *** Error code 1
 
 Stop in /usr/ports/mail/mutt/work/mutt-1.4.2.3.
 *** Error code 1
 
 Stop in /usr/ports/mail/mutt.
 
 Any ideas on what could be done ?

I'm nut sure but i remember that openssl dropped support for the MD2
Algo. Perhaps try with MD2 enabled.

hth,
leon
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


spamassassin config help

2010-11-17 Thread AN
I just setup a new mailserver on 8-stable using sendmail with Spamassassin 
and ClamAv.  Spam is being identified correctly, but it is being 
delivered to users inbox.  Would someone please suggest some good 
documentation to configure mail marked as spam to a different directory. 
Are there any scripts or tools to configure Spamassassin?  Where is the 
spamassassin config file?  Thanks in advance for any help.


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


Re: spamassassin config help

2010-11-17 Thread Bruce Cran
On Wed, 17 Nov 2010 15:42:51 + (UTC)
AN a...@neu.net wrote:

 I just setup a new mailserver on 8-stable using sendmail with
 Spamassassin and ClamAv.  Spam is being identified correctly, but it
 is being delivered to users inbox.  Would someone please suggest some
 good documentation to configure mail marked as spam to a different
 directory. Are there any scripts or tools to configure Spamassassin?
 Where is the spamassassin config file?  Thanks in advance for any
 help.

SpamAssassin just tags spam - you'd need to use procmail or something
like it to move mail into different directories depending on the
X-Spam-Level and/or X-Spam-Status headers.

The spamassassin config lives in /usr/local/etc/mail/spamassassin, and
the spamassassin site has lots of documentation.

See http://wiki.apache.org/spamassassin/DeletingAllMailsMarkedSpam for
more information about filtering spam into different directories.

-- 
Bruce Cran
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


ntpd on 8.1 cycles around select() with EBADF

2010-11-17 Thread Sergey Kandaurov
Hi.

This is the second time I noted it.

 2581 root 1 1180 11736K  3532K CPU66  60.7H 100.00% ntpd

# ntpq -p
localhost: timed out, nothing received
***Request timed out

` /etc/rc.d/ntpd restart` make it work. What can be the reason ?

  2581 ntpd CALL  select(0x420,0x7fffec20,0,0,0)
  2581 ntpd RET   select -1 errno 9 Bad file descriptor
  2581 ntpd CALL  stat(0x7fffe100,0x7fffe080)
  2581 ntpd NAMI  /usr/share/nls/C/libc.cat
  2581 ntpd RET   stat -1 errno 2 No such file or directory
  2581 ntpd CALL  stat(0x7fffe100,0x7fffe080)
  2581 ntpd NAMI  /usr/share/nls/libc/C
  2581 ntpd RET   stat -1 errno 2 No such file or directory
  2581 ntpd CALL  stat(0x7fffe100,0x7fffe080)
  2581 ntpd NAMI  /usr/local/share/nls/C/libc.cat
  2581 ntpd RET   stat -1 errno 2 No such file or directory
  2581 ntpd CALL  stat(0x7fffe100,0x7fffe080)
  2581 ntpd NAMI  /usr/local/share/nls/libc/C
  2581 ntpd RET   stat -1 errno 2 No such file or directory
  2581 ntpd CALL  clock_gettime(0xd,0x7fffd7e0)
  2581 ntpd RET   clock_gettime 0
  2581 ntpd CALL  getpid
  2581 ntpd RET   getpid 2581/0xa15
  2581 ntpd CALL  sendto(0x3,0x7fffd870,0x43,0,0,0)
  2581 ntpd GIO   fd 3 wrote 67 bytes
   99Nov 17 18:14:17 ntpd[2581]: select() error: Bad file descriptor
  2581 ntpd RET   sendto 67/0x43


-- 
wbr,
pluknet
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


adding/updationg a Port

2010-11-17 Thread Nicolas de Bari Embriz Garcia Rojas
Hi,  On November 6,  I submitted a New port:
http://www.FreeBSD.org/cgi/query-pr.cgi?pr=ports/151988 so far the
submissions seems to be on standby.

My question is, if for adding a port takes a 'couple of months' how
much does it take for updating current existing ports ?

regards.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: adding/updationg a Port

2010-11-17 Thread Odhiambo Washington
On Wed, Nov 17, 2010 at 6:47 PM, Nicolas de Bari Embriz Garcia Rojas 
nb...@dalmp.com wrote:

 Hi,  On November 6,  I submitted a New port:
 http://www.FreeBSD.org/cgi/query-pr.cgi?pr=ports/151988 so far the
 submissions seems to be on standby.

 My question is, if for adding a port takes a 'couple of months' how
 much does it take for updating current existing ports ?


November 6th to today is only 11 days, not even 1 month! :-)


-- 
Best regards,
Odhiambo WASHINGTON,
Nairobi,KE
+254733744121/+254722743223
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
Damn!!
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: spamassassin config help

2010-11-17 Thread matteo filippetto
2010/11/17 AN a...@neu.net:
 I just setup a new mailserver on 8-stable using sendmail with Spamassassin
 and ClamAv.  Spam is being identified correctly, but it is being delivered
 to users inbox.  Would someone please suggest some good documentation to
 configure mail marked as spam to a different directory. Are there any
 scripts or tools to configure Spamassassin?  Where is the spamassassin
 config file?  Thanks in advance for any help.


Hi,

MailScanner.conf has a section called

#
# What to do with spam
# 
#

that is well documented. You can find there what you need.

Best regards

-- 
Matteo Filippetto
http://op83.blogspot.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: adding/updationg a Port

2010-11-17 Thread Chip Camden
Quoth Nicolas de Bari Embriz Garcia Rojas on Wednesday, 17 November 2010:
 Hi,  On November 6,  I submitted a New port:
 http://www.FreeBSD.org/cgi/query-pr.cgi?pr=ports/151988 so far the
 submissions seems to be on standby.
 
 My question is, if for adding a port takes a 'couple of months' how
 much does it take for updating current existing ports ?
 
 regards.
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org

It depends on the nature and extent of the update.  I submitted an update
to a port that I maintain, and it was committed in under 21 minutes.
Conversely, I submitted a patch to one of the general port Makefiles, and that
took about 45 days.  Even though it was a very small patch, I presume the
committers were more cautious with a change that could affect a lot of
users.

-- 
Sterling (Chip) Camden| sterl...@camdensoftware.com | 2048D/3A978E4F
http://camdensoftware.com | http://chipstips.com| http://chipsquips.com


pgpFScTLi7rPh.pgp
Description: PGP signature


porting software to FreeBSD, what to do if Makefile lacks?

2010-11-17 Thread O. Hartmann

Hello.

I try to create a port of a software which does not have a Makefile and 
is build via a propriate csh script. Installation is done temporarely 
into some lib's and exe's subfolder withing the source folder, so I need 
to tell the top level Makefile of the port to use a specific build 
script instead implying having Makefile and a home-brewn install script, 
which takes the binaries and libs out of the temporary folders and 
install them at the proper places within the FreeBSD's tree. How can I 
perform these two tasks?


Please set my CC, I'm not subscribing this list. Thanks in advance,


Oliver
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Does MAC version of iTunes work on FreeBSD?

2010-11-17 Thread Chad Perrin
On Wed, Nov 17, 2010 at 03:10:24PM +, Bruce Cran wrote:
 On Tue, 16 Nov 2010 14:26:21 -0500
 Nathan Vidican nat...@vidican.com wrote:
 
  No. The Mac version of iTunes depends on the Cocoa application
  framework, which is a set of Objective C objects that, as far as I am
  aware of, has no compatible framework under FreeBSD.
 
 The only vaguely compatible framework is GNUstep, which has at least
 partial support for the Cocoa APIs. Apparently it would be best to start
 with GNUstep and move an application to OS X though since there are so
 many features from MacOS that aren't implemented. Note that this is
 completely separate from binary compatibility: as far as I know
 nobody's working on Mach-O compatbility on FreeBSD so applications
 would need to be recompiled.
 
 http://wiki.gnustep.org/index.php/Cocoa

There's also Cocotron:

http://www.cocotron.org/

I've never used it, though, so I have no idea what level of compatibility
it offers, and it appears to be mostly focused on MS Windows platforms
right now.

-- 
Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ]


pgpVDxcjzv1YT.pgp
Description: PGP signature


Re: a question regarding proper printf(3) formating and alignment

2010-11-17 Thread Dan Nelson
In the last episode (Nov 17), Alexander Best said:
 hi there,
 
 i've looked at a lot of utilities in the bsd src tree and most of them
 seem to be doing something like this:
 
 Device  1M-blocks UsedAvail Capacity
 /dev/label/swapfs 10239010239 0%
 /dev/label/swap  81910 8191 0%
 Total   18431018431 0%
 
 as you can see the header simply gets written with a number of tabs in
 between the keywords, but then the actual output aligns differently.
 
 i'd like to learn of ways formatting the header so that it aligns
 properly, whether the device name is 10 chars long or 1000.  is there an
 example for this somewhere in the src tree?

/bin/ls does this for the user, group, and size columns.  Note that this
only works if you batch up your output (or take two passes over your input
data).  I seem to remember /usr/bin/find doing this dynamically by expanding
columns as it saw values that were larger than the previous max, but
apparently not (I just tested it).

-- 
Dan Nelson
dnel...@allantgroup.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


procmail config help

2010-11-17 Thread AN
I am trying to configure sendmail with spamassassin to move mail marked as 
spam to a spam folder in the users home directory.  I have the following

installed:

p5-Mail-SpamAssassin-3.3.1 A highly efficient mail filter for identifying 
spam
razor-agents-2.84   A distributed, collaborative, spam detection and 
filtering
spamass-milter-0.3.1_10 Sendmail Milter (mail filter) plugin for 
SpamAssassin

p5-Mail-DKIM-0.38   Perl5 module to process and/or create DKIM email
procmail-3.22_6 A local mail delivery agent

I would like to setup this configuration for each individual instead of 
system wide.  I have the following procmail file in the user home 
directory:


#Uncomment the following lines and use tail -f procmail.log to debug
LOGFILE=/home/andy/procmail.log
VERBOSE=yes
LOGABSTRACT=all

# Feed redirected spam to sa-learn, and also store a copy in a folder 
called spam.
# This folder of false negatives could be useful if we needed to rebuild 
our Bayes

# database in the future.

:0
* ^To:.*s...@example.com

   {
   *  256000
   :0c: spamassassin.spamlock
   | sa-learn --spam

   :0: spamassassin.filelock
   spam
   }

# Send all other mail through SpamAssassin

:0fw: spamassassin.lock
*  256000
| spamassassin


:0: spamassassin.filelock2
* ^X-Spam-Level: \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*
#/dev/null
/home/andy/Mail/spam

Spam messages are still being delivered to the user inbox.

I tried to setup logging with the following:

LOGFILE=/home/andy/procmail.log
VERBOSE=yes
LOGABSTRACT=all

When I tried to send a test spam message nothing is written to the log 
file.

How can I get logging to work to try to debug the problem?

If anyone has a working procmail config file to share that would be 
appreciated.


Any help debugging this would be greatly appreciated.


TIA

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


Re: porting software to FreeBSD, what to do if Makefile lacks?

2010-11-17 Thread Rob Farmer
2010/11/17 O. Hartmann ohart...@zedat.fu-berlin.de:
 Hello.

 I try to create a port of a software which does not have a Makefile and is
 build via a propriate csh script. Installation is done temporarely into some
 lib's and exe's subfolder withing the source folder, so I need to tell the
 top level Makefile of the port to use a specific build script instead
 implying having Makefile and a home-brewn install script, which takes the
 binaries and libs out of the temporary folders and install them at the
 proper places within the FreeBSD's tree. How can I perform these two tasks?

You want to override the do-build target, something like:

do-build:
${CSH} ${WRKSRC}/build-script.csh
you can list additional commands as necessary

For the install, do the same with the do-install target. Unless your
install script is particularly long or complicated, it will probably
be best to put it right into the port's Makefile. Then you can use the
INSTALL macros to ensure permissions are set correctly, binaries are
stripped if the user doesn't specify WITH_DEBUG, etc.

If you haven't already, check out the Porter's Handbook - it will
familiarize you with important guidelines and covers a lot of common
problems:

http://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/

-- 
Rob Farmer
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: X resolution

2010-11-17 Thread Andrea Venturoli

On 11/17/10 01:15, Warren Block wrote:


It sounds like the EDID information isn't always working. Check your
video cable to see if a pin is bent over, or try a different one.


I guess it's working too much! :-D
How does X know 2048x1536 is a valid resolution otherwise?
Why would it override my settings?






I've got this in my xorg.conf:

Section Screen
Identifier SyncMaster
Device Card0
Monitor SyncMaster
SubSection Display
Viewport 0 0
Depth 32
Modes 1600x1200
EndSubSection
EndSection


32 is not a valid depth, according to xorg.conf(5).


Right: I changed that to 24 and this seemed to do the trick!

Still wondering... it must have been there for eons, yet it started 
misbehaving only a week ago...

Well, it works now! :-)




What is the monitor?


A Samsung SyncMaster 1200NF 
(http://www.neoseeker.com/Articles/Hardware/Reviews/samsung1200nf/).





Thanks a lot for your help!


 bye
av.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: a question regarding proper printf(3) formating and alignment

2010-11-17 Thread Alexander Best
On Wed Nov 17 10, Dan Nelson wrote:
 In the last episode (Nov 17), Alexander Best said:
  hi there,
  
  i've looked at a lot of utilities in the bsd src tree and most of them
  seem to be doing something like this:
  
  Device  1M-blocks UsedAvail Capacity
  /dev/label/swapfs 10239010239 0%
  /dev/label/swap  81910 8191 0%
  Total   18431018431 0%
  
  as you can see the header simply gets written with a number of tabs in
  between the keywords, but then the actual output aligns differently.
  
  i'd like to learn of ways formatting the header so that it aligns
  properly, whether the device name is 10 chars long or 1000.  is there an
  example for this somewhere in the src tree?
 
 /bin/ls does this for the user, group, and size columns.  Note that this
 only works if you batch up your output (or take two passes over your input
 data).  I seem to remember /usr/bin/find doing this dynamically by expanding
 columns as it saw values that were larger than the previous max, but
 apparently not (I just tested it).

thanks. so looking at the /bin/ls source is probably the first i should do.

cheers.
alex

 
 -- 
   Dan Nelson
   dnel...@allantgroup.com

-- 
a13x
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: procmail config help

2010-11-17 Thread Karl Vogel
 On Wed, 17 Nov 2010 19:59:10 + (UTC), 
 AN a...@neu.net said:

A If anyone has a working procmail config file to share that would be
A appreciated.

   When messing with procmail, start with the simplest setup that can
   possibly work.  Your logfile has to exist, or procmail will ignore it.
   If you already have a working .procmailrc file, here's a safe way to
   add tweaks:

   1. copy an existing mail message to /tmp/msg,
   2. cp $HOME/.procmailrc $HOME/.procnew and DON'T touch the original,
   3. run procmail -m $HOME/.procnew  /tmp/msg to test.

   Try the .procmailrc skeleton below.  The .whitelist and .blacklist files
   hold email addresses (one per line) that you want to pass or block,
   respectively.  Logfiles are stored in the user's ~/mail directory.

-- 
Karl Vogel  I don't speak for the USAF or my company

Why you might be the reincarnation of someone famous #11:
When your boss criticizes your sales projection figures, you hack off your ear.
--The Top Five List, t...@walrus.com

---
# $Revision: 1.60+6 $ $Date: 2010-07-08 15:19:01-04 $
#
# NAME:
#$HOME/.procmailrc
#
# DESCRIPTION:
#procmail handles local mail delivery.  Use this file to:
#- store your mail in a given folder,
#- forward or discard mail depending on the contents, or
#- run your mail through a program automatically.

# Search path.
PATH=/usr/local/bin:/bin:/usr/bin:$HOME/bin

# Default mail folder.
DEFAULT=/var/mail/andy

# Current directory while procmail is executing.
# All pathnames are relative to this directory.
MAILDIR=$HOME/mail

# File containing error messages or diagnostics.  If this
# file does not exist, said messages will be bounced
# back to the message sender.
LOGFILE=$MAILDIR/MAILLOG

# If yes, keep an abstract of the From and Subject lines of
# each delivered message, the folder it was delivered to,
# and the size of the message.  If no, skip this abstract.
LOGABSTRACT=yes

# If on, describe actions of procmail in detail.
#VERBOSE=on

# Number of seconds before procmail zaps a lockfile by force.
LOCKTIMEOUT=5

# Default shell and umask value.
SHELL=/bin/sh
UMASK=022

# Frequently-used variables.
WEEK=`/bin/date +%Yw%W`

#
# Rules section.
#
# RULE: Save a copy of all incoming headers in a file called
#   $HOME/mail/HEADERS.wNN
#   where  = year
#   NN = the week number starting on Monday.

:0 chw: $HOME/hdr.lck
| /bin/cat -  $HOME/mail/HEADERS.$WEEK;

#
# RULE: pass anything in the sender whitelist.

:0:
* ? formail -xFrom: -xFrom -xTo: -xReply-To: -xCc: \
 | fgrep -is -f $HOME/.whitelist
$DEFAULT

#
# RULE: kill anything in the sender blacklist.

:0:
* ? formail -xFrom: -xFrom -xTo: -xReply-To: -xCc: \
 | fgrep -is -f $HOME/.blacklist
spam-folder

#
# Keep everything else.

:0 :
$DEFAULT
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: a question regarding proper printf(3) formating and alignment

2010-11-17 Thread Karl Vogel
 In the last episode (Nov 17), Alexander Best said:

A i've looked at a lot of utilities in the bsd src tree and most of them
A seem to be doing something like this:

A Device  1M-blocks UsedAvail Capacity
A /dev/label/swapfs 10239010239 0%
A /dev/label/swap  81910 8191 0%
A Total   18431018431 0%

A i'd like to learn of ways formatting the header so that it aligns
A properly, whether the device name is 10 chars long or 1000.

   ports/textproc/align is a nifty perl script that'll do this for just
   about any type of column-based input.  If you just want to fix df and
   you know how long the longest device name is, try something like this:

 #!/bin/ksh
 #df: human-readable aligned output from df
 PATH=/bin:/usr/bin
 BLOCKSIZE=1m
 export PATH BLOCKSIZE

 scr='
   s/Available/Avail/
   s/Capacity/Cap/
   s/Mounted/Mount/
 '

 exec df ${1+$@} |
 sed -e $scr |
 awk '{printf %-18s %12s %8s %8s %4s  %s\n, $1,$2,$3,$4,$5,$6}'
 exit 1

   Comparison:

 me% /bin/df /rd* /stage
 Filesystem  1M-blocks   Used  Avail Capacity  Mounted on
 /dev/ad0s1f224821  55691 15114427%/rd01
 /dev/ad1s1g226611  34497 17398517%/rd02
 /dev/ad3s1a263974 198167  4468882%/rd03
 /dev/ad3s1g  3962174   3471 5%/stage

 me% ./df /rd* /stage
 Filesystem1M-blocks UsedAvail  Cap  Mount
 /dev/ad0s1f  22482155691   151144  27%  /rd01
 /dev/ad1s1g  22661134497   173985  17%  /rd02
 /dev/ad3s1a  263974   19816744688  82%  /rd03
 /dev/ad3s1g3962  174 3471   5%  /stage

 On Wed, 17 Nov 2010 13:55:21 -0600, 
 Dan Nelson dnel...@allantgroup.com happily babbled in reply:

D I seem to remember /usr/bin/find doing this dynamically by expanding
D columns as it saw values that were larger than the previous max, but
D apparently not (I just tested it).

   I believe you're thinking of file.

-- 
Karl Vogel  I don't speak for the USAF or my company

When a man says it's a silly, childish game,
it's probably something his wife can beat him at. --Epperson's law
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: a question regarding proper printf(3) formating and alignment

2010-11-17 Thread Dan Nelson
In the last episode (Nov 17), Karl Vogel said:
  In the last episode (Nov 17), Alexander Best said:
 
 A i've looked at a lot of utilities in the bsd src tree and most of them
 A seem to be doing something like this:
 
 A Device  1M-blocks UsedAvail Capacity
 A /dev/label/swapfs 10239010239 0%
 A /dev/label/swap  81910 8191 0%
 A Total   18431018431 0%
 
 A i'd like to learn of ways formatting the header so that it aligns
 A properly, whether the device name is 10 chars long or 1000.
 
ports/textproc/align is a nifty perl script that'll do this for just
about any type of column-based input.  If you just want to fix df and
you know how long the longest device name is, try something like this:

Bad example, since df also auto-sizes its columns :)

I think /usr/bin/rs can do column auto-balancing, but every time I try to
make it do what I want, I fail.

-- 
Dan Nelson
dnel...@allantgroup.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


firewall hardware running quasi FreeBSD

2010-11-17 Thread Gary Kline

Folks,

The weakest (and probably most costly power-wise) link among my
three computers is my '98 Kayak that runs pfSense.  I just found a 
computer that runs ATOM and has two NICS ... i need two because of
the way things were configured.  My Dell server and my AMD
homebrew that was build out of my prev'ly last new computer are 
vastly more efficient than my other hardware.  Altho the SSD chips 
are fairly new , I would rather put 8 or 16G of solid state memory
rather than have a spinning disk.  Maybe I'll buy both and disable
one or  the o ther.

Anybody know if I can buy this in COTS form  (cots == commercial,
off-the-shelf).  I would rather have the vendor do it right there
since they do it by the truckload.  Among the few things that hasn't
been robotized:)


-- 
 Gary Kline  kl...@thought.org  http://www.thought.org  Public Service Unix
Journey Toward the Dawn, E-Book:
  http://www.thought.org/#JTTD
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


first and last

2010-11-17 Thread Gary Kline
Okay guys, this is the only time I'll do this kind of blatent
self-promotion, but at this link, http://www.thought.org/#JTTD
is a link to the book that a bunch of this list has helped me 
with over the past several months.  Three or four of you ... and
one in particular. Yyou can read about it when I do my followup 
HTML file that has the LOC copyright info.  I'll post a list of 
ACK's then; for now I just want to get this going.  Since this is
the only piece of creative fiction that is pro-FreeBSD [ OPen
source], I will be much obliged for your help in getting Journey
yo ``go viral.'' :-)

You'll recogonize people in the script.  I wouldn't go as far as
saying that Seymour Cray is old man Gritzmacher; but there are
several others.

aGAin, first/last direct plug.  Feedback appreciated, only
offline.  

thanks to everybody,

gary



-- 
 Gary Kline  kl...@thought.org  http://www.thought.org  Public Service Unix
Journey Toward the Dawn, E-Book:
  http://www.thought.org/#JTTD
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: porting software to FreeBSD, what to do if Makefile lacks?

2010-11-17 Thread O. Hartmann

On 11/17/10 22:01, Rob Farmer wrote:

2010/11/17 O. Hartmannohart...@zedat.fu-berlin.de:

Hello.

I try to create a port of a software which does not have a Makefile and is
build via a propriate csh script. Installation is done temporarely into some
lib's and exe's subfolder withing the source folder, so I need to tell the
top level Makefile of the port to use a specific build script instead
implying having Makefile and a home-brewn install script, which takes the
binaries and libs out of the temporary folders and install them at the
proper places within the FreeBSD's tree. How can I perform these two tasks?


You want to override the do-build target, something like:

do-build:
${CSH} ${WRKSRC}/build-script.csh
you can list additional commands as necessary

For the install, do the same with the do-install target. Unless your
install script is particularly long or complicated, it will probably
be best to put it right into the port's Makefile. Then you can use the
INSTALL macros to ensure permissions are set correctly, binaries are
stripped if the user doesn't specify WITH_DEBUG, etc.

If you haven't already, check out the Porter's Handbook - it will
familiarize you with important guidelines and covers a lot of common
problems:

http://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/


Thanks.
I got it. But it seems that my first porting task run into some 
difficulties for the advanced porters, since there is no autotool 
environment.


By the way, the global environment variable ${CSH} seems to be 
noneexistent, instead ${SH} exists.


Regards,
Oliver
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: porting software to FreeBSD, what to do if Makefile lacks?

2010-11-17 Thread Rob Farmer
On Wed, Nov 17, 2010 at 16:58, O. Hartmann
ohart...@mail.zedat.fu-berlin.de wrote:
 Thanks.
 I got it. But it seems that my first porting task run into some difficulties
 for the advanced porters, since there is no autotool environment.

 By the way, the global environment variable ${CSH} seems to be noneexistent,
 instead ${SH} exists.

Interesting - I assumed it would be listed in bsd.commands.mk, but it
seems to not be. Most of the base system tools are. In any case, glad
to hear you got it working.

-- 
Rob Farmer
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: procmail config help

2010-11-17 Thread doug

On Wed, 17 Nov 2010, AN wrote:

I am trying to configure sendmail with spamassassin to move mail marked as 
spam to a spam folder in the users home directory.  I have the following

installed:

p5-Mail-SpamAssassin-3.3.1 A highly efficient mail filter for identifying 
spam
razor-agents-2.84   A distributed, collaborative, spam detection and 
filtering

spamass-milter-0.3.1_10 Sendmail Milter (mail filter) plugin for SpamAssassin
p5-Mail-DKIM-0.38   Perl5 module to process and/or create DKIM email
procmail-3.22_6 A local mail delivery agent

I would like to setup this configuration for each individual instead of 
system wide.  I have the following procmail file in the user home directory:


#Uncomment the following lines and use tail -f procmail.log to debug
LOGFILE=/home/andy/procmail.log
VERBOSE=yes
LOGABSTRACT=all

# Feed redirected spam to sa-learn, and also store a copy in a folder called 
spam.
# This folder of false negatives could be useful if we needed to rebuild our 
Bayes

# database in the future.

:0
* ^To:.*s...@example.com

  {
  *  256000
  :0c: spamassassin.spamlock
  | sa-learn --spam

  :0: spamassassin.filelock
  spam
  }

# Send all other mail through SpamAssassin

:0fw: spamassassin.lock
*  256000
| spamassassin


:0: spamassassin.filelock2
* ^X-Spam-Level: \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*
#/dev/null
/home/andy/Mail/spam

Spam messages are still being delivered to the user inbox.

I tried to setup logging with the following:

LOGFILE=/home/andy/procmail.log
VERBOSE=yes
LOGABSTRACT=all

When I tried to send a test spam message nothing is written to the log file.
How can I get logging to work to try to debug the problem?

If anyone has a working procmail config file to share that would be 
appreciated.


Any help debugging this would be greatly appreciated.

TIA


Do you have a shell statement in your procmailrc file? Anyway here is an example 
of what we use. It is a combination of bogofilter and spamassassin. If this does 
not help, make things simple, start with some of the examples in man procmailex.


SHELL=/bin/sh
# Directory for storing procmail configuration and log files
COMSAT=no
PATH=/bin:/usr/bin:/usr/local/bin/
FGREP=/usr/bin/fgrep
FROM=`formail -x From:`
MAILDIR=$HOME
PMDIR=$HOME/.procmail
LOGFILE=$PMDIR/`date +%Y%m`.log
DEFAULT=$HOME/mbox
##LOGABSTRACT=all
VERBOSE=no
SPAMDIR=spam`date +%m%y`

## whitelist
:0
 * ? (echo $FROM | $FGREP -iqf $PMDIR/whitelist)
 ${DEFAULT}

## filter mail through bogofilter, tagging it as spam and
## updating the word lists
:0fw
| bogofilter -e -p

# if bogofilter failed, return the mail to the queue, the MTA will
# retry to deliver it later
# 75 is the value for EX_TEMPFAIL in /usr/include/sysexits.h
:0e
{ EXITCODE=75 HOST }

# if bogofilter thinks it is spam, that's enough..
:0
* ^X-Bogosity: Yes
{
   LOG=bogofilter
   :0
   $SPAMDIR
}

# run spam assassin on it!
:0fw: spamassassin.lock
| spamassassin -L

# if spam assassin thinks it is spam but bogofilter doesn't,
# give preference to spam assassin and retrain BF
:0
* ^X-Spam-Status: Yes
* ^X-Bogosity: No
{
  # Retrain bogofilter
  :0c
  | bogofilter -Ns

  LOG=spamassassin
  :0
  $SPAMDIR
}

I edited this a bit to remove user specific information, so I may have 
introduced an error. This file will [should??] log if you make the appropriate 
changes.

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


strange behaviour on FreeBSD 7.1

2010-11-17 Thread Коньков Евгений
Hi.

Sometimes system goes to this situation: 0% idle and no processes take CPU time

#top -SIHP
last pid: 62813;  load averages:  4.17,  3.64,  2.16   up 28+06:44:02  20:41:41
155 processes: 7 running, 129 sleeping, 19 waiting
CPU: 99.3% user,  0.0% nice,  0.7% system,  0.0% interrupt,  0.0% idle
Mem: 177M Active, 27M Inact, 124M Wired, 13M Cache, 60M Buf, 148M Free
Swap: 2048M Total, 51M Used, 1997M Free, 2% Inuse

  PID USERNAME   PRI NICE   SIZERES STATETIME   WCPU COMMAND

#top
last pid: 62852;  load averages:  4.10,  3.67,  2.22   up 28+06:44:36  20:42:15
172 processes: 4 running, 168 sleeping
CPU: 99.6% user,  0.0% nice,  0.4% system,  0.0% interrupt,  0.0% idle
Mem: 203M Active, 27M Inact, 125M Wired, 13M Cache, 60M Buf, 121M Free
Swap: 2048M Total, 51M Used, 1997M Free, 2% Inuse

  PID USERNAMETHR PRI NICE   SIZERES STATETIME   WCPU COMMAND
62817 root 36  -80 29696K 23276K piperd   0:00  7.62% perl5.8.8
64644 root  1  440  3532K  1048K select  22:20  0.00% screen
 8862 root  1   80  9192K  2460K nanslp  17:18  0.00% verlihub
 8450 icecast   6   80  8812K  1116K nanslp   5:38  0.00% icecast
  698 root  1  440  3180K   872K select   4:21  0.00% syslogd
61307 root  1  960  6992K  2724K RUN  4:20  0.00% proftpd
61902 root  1  960  6992K  2608K RUN  3:51  0.00% proftpd
 8435 postfix   1   40  6192K   800K kqread   2:40  0.00% qmgr
 8464 root  1   40  3124K   960K kqread   1:34  0.00% dovecot
 8424 root  1   40  5168K   596K kqread   1:26  0.00% master
 8521 root  1  440 18808K  3164K select   1:17  0.00% httpd
 8467 vmail 1   40  4276K   796K kqread   0:48  0.00% dovecot-auth
 8541 root  1  450  5752K   448K select   0:34  0.00% sshd
 8595 root  1  440  3236K   300K select   0:27  0.00% inetd
51383 freeradius1  960 28568K 11408K RUN  0:27  0.00% radiusd
 8314 mysql10   40 47292K  6344K sbwait   0:25  0.00% mysqld
 8216 root  1  440  6992K   612K select   0:23  0.00% proftpd

1 usersLoad  4.07  3.69  2.26  17 ноя 20:42

Mem:KBREALVIRTUAL   VN PAGER   SWAP PAGER
Tot   Share  TotShareFree   in   out in   out
Act  205392   12432   63191640980  137912  count
All  278608   16052  278745257020  pages
Proc:Interrupts
  r   p   d   s   w   Csw  Trp  Sys  Int  Sof  Flt 95 cow2071 total
  4  39 128  5733  306 2386   65  31k  255 76 zfodsio1 irq3
  ozfod   sio0 irq4
 1.2%Sys   0.6%Intr 98.2%User  0.0%Nice  0.0%Idle%ozfod 7 ata0 irq14
|||||||||||   daefr58 rl0 rl4 17
=132 prcfr  2006 cpu0: time
87 dtbuf  186 totfr
Namei Name-cache   Dir-cache 35373 desvn2 react
   Callshits   %hits   % 10855 numvn  pdwak
11231009  90  8152 frevn  pdpgs
  intrn
Disks   ad1127712 wire
KB/t  11.33207692 act
tps   7 27820 inact
MB/s   0.08 13612 cache
%busy 0124300 free

uname -a
FreeBSD i.net.ua 7.1-RELEASE FreeBSD 7.1-RELEASE #0: Sat Jan  3
01:15:39 EET 2009 k...@i.net.ua:/usr/obj/usr/src/sys/KES_KERN_v7  i386


-- 
С уважением,
 Коньков  mailto:kes-...@yandex.ru

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