Re: sendmail config

2013-04-12 Thread Philip Guenther
On Thu, Apr 11, 2013 at 10:57 PM, Tony Berth tonybe...@googlemail.com wrote:
 I'm running a 386 5.2 OpenBSD box with sendmail and would like to strip
 following headers from the outgoing e-mails:

 *Received:* from x.x.x.x
  (SquirrelMail authenticated user user)
  by new.host.name with HTTP;
  Thu, 11 Apr 2013 14:31:59 +0300
 [from the above I would like to strip the IP address of the webclient, the
 MUA as well as the logged-in user]

 *References:* e253a79261e44ce227bbc166a9adaf84.squir...@new.host.name
  a369eabe7962808743d2de3a4134d0c9.squir...@new.host.name
  32410656f1b0057d8966ea544f68f1dd.squir...@new.host.name
  db43aa23cdc95bb7218fa33c8aa18efa.squir...@new.host.name
 [from the above I would like to strip the history of the refes]

 *User-Agent:* SquirrelMail/1.4.22
 [from the above I would like to remove the MUA]

There's no way to do that inside sendmail itself.

What problem are you trying solve by making those changes?

(Changing References is particularly rude: Hi, I want to make it
harder for people to follow email conversations and make my users look
like idiots!)


Philip Guenther



Re: sendmail config

2013-04-12 Thread Tony Berth
I want to display the IP of the mail server only, as client IPs isn't a
relevant info for the 'outside world'. The same applies to the 'User-Agent'
field.

Concerning the 'References', It was just an idea but still I want to have
that option regardless how I could ever use it.

Thanks

Tony


On Fri, Apr 12, 2013 at 9:21 AM, Philip Guenther guent...@gmail.com wrote:

 On Thu, Apr 11, 2013 at 10:57 PM, Tony Berth tonybe...@googlemail.com
 wrote:
  I'm running a 386 5.2 OpenBSD box with sendmail and would like to strip
  following headers from the outgoing e-mails:
 
  *Received:* from x.x.x.x
   (SquirrelMail authenticated user user)
   by new.host.name with HTTP;
   Thu, 11 Apr 2013 14:31:59 +0300
  [from the above I would like to strip the IP address of the webclient,
 the
  MUA as well as the logged-in user]
 
  *References:* e253a79261e44ce227bbc166a9adaf84.squir...@new.host.name
   a369eabe7962808743d2de3a4134d0c9.squir...@new.host.name
   32410656f1b0057d8966ea544f68f1dd.squir...@new.host.name
   db43aa23cdc95bb7218fa33c8aa18efa.squir...@new.host.name
  [from the above I would like to strip the history of the refes]
 
  *User-Agent:* SquirrelMail/1.4.22
  [from the above I would like to remove the MUA]

 There's no way to do that inside sendmail itself.

 What problem are you trying solve by making those changes?

 (Changing References is particularly rude: Hi, I want to make it
 harder for people to follow email conversations and make my users look
 like idiots!)


 Philip Guenther



Re: OpenBSD Foundation benefit Auction / Absolute OpenBSD 2nd Ed.

2013-04-12 Thread Claudiu Tanaselia
I was curious to see how the price evolved, but got this message while
accessing the above-mentioned link:

This listing (200913454300) has been removed, or this item is not
available.

Shouldn't the auction be available for another 2 days or so?


On Mon, Apr 8, 2013 at 4:13 PM, Michael W. Lucas
mwlu...@michaelwlucas.comwrote:

 On Mon, Apr 08, 2013 at 12:05:37AM -0600, Theo de Raadt wrote:
   (Personally, I'd like to see the devs sign whatever part of the book
   they worked on. Preferably in red ink. With notations like Wrong!
   pf.conf(5) and newaliases(8) together clearly imply otherwise or I'm
   redoing this for 5.4, ignore this chapter.)
 
  If that is what the lucky winner wishes, I am going to need to set
  aside at least an hour...

 Do it at the pub. The yeasty aroma will add verisimilitude.

 ==ml

 --
 Michael W. Lucas  -  mwlu...@michaelwlucas.com, Twitter @mwlauthor
 http://www.MichaelWLucas.com/, http://blather.MichaelWLucas.com/
 Latest book: Absolute OpenBSD 2/e - http://www.nostarch.com/openbsd2e
 coupon code ILUVMICHAEL gets you 30% off  helps me.



Re: sendmail config

2013-04-12 Thread Ted Unangst
On Fri, Apr 12, 2013 at 09:27, Tony Berth wrote:
 I want to display the IP of the mail server only, as client IPs isn't a
 relevant info for the 'outside world'. The same applies to the 'User-Agent'
 field.

Wouldn't a more reasonable approach be to fix the squirrel mail config to do 
what you want?



Re: sendmail config

2013-04-12 Thread Tony Berth
good point indeed. I tried with conf.pl but didn't have any effect. For
example, I turned version info off but still, sendmail propagates the
complete info.

Thanks

Tony


On Fri, Apr 12, 2013 at 9:36 AM, Ted Unangst t...@tedunangst.com wrote:

 On Fri, Apr 12, 2013 at 09:27, Tony Berth wrote:
  I want to display the IP of the mail server only, as client IPs isn't a
  relevant info for the 'outside world'. The same applies to the
 'User-Agent'
  field.

 Wouldn't a more reasonable approach be to fix the squirrel mail config to
 do what you want?



Re: OpenBSD Foundation benefit Auction / Absolute OpenBSD 2nd Ed.

2013-04-12 Thread patrick keshishian
it is there. current high bid US $1,035.00

On Thu, Apr 11, 2013 at 11:31 PM, Claudiu Tanaselia
claudiu.tanase...@icia.ro wrote:
 I was curious to see how the price evolved, but got this message while
 accessing the above-mentioned link:

 This listing (200913454300) has been removed, or this item is not
 available.

 Shouldn't the auction be available for another 2 days or so?


 On Mon, Apr 8, 2013 at 4:13 PM, Michael W. Lucas
 mwlu...@michaelwlucas.comwrote:

 On Mon, Apr 08, 2013 at 12:05:37AM -0600, Theo de Raadt wrote:
   (Personally, I'd like to see the devs sign whatever part of the book
   they worked on. Preferably in red ink. With notations like Wrong!
   pf.conf(5) and newaliases(8) together clearly imply otherwise or I'm
   redoing this for 5.4, ignore this chapter.)
 
  If that is what the lucky winner wishes, I am going to need to set
  aside at least an hour...

 Do it at the pub. The yeasty aroma will add verisimilitude.

 ==ml

 --
 Michael W. Lucas  -  mwlu...@michaelwlucas.com, Twitter @mwlauthor
 http://www.MichaelWLucas.com/, http://blather.MichaelWLucas.com/
 Latest book: Absolute OpenBSD 2/e - http://www.nostarch.com/openbsd2e
 coupon code ILUVMICHAEL gets you 30% off  helps me.



Re: OpenBSD Foundation benefit Auction / Absolute OpenBSD 2nd Ed.

2013-04-12 Thread Claudiu Tanaselia
Heh, what do you know, it's there. Probably an eBay glitch of some sorts.


On Fri, Apr 12, 2013 at 9:59 AM, patrick keshishian pkesh...@gmail.comwrote:

 it is there. current high bid US $1,035.00

 On Thu, Apr 11, 2013 at 11:31 PM, Claudiu Tanaselia
 claudiu.tanase...@icia.ro wrote:
  I was curious to see how the price evolved, but got this message while
  accessing the above-mentioned link:
 
  This listing (200913454300) has been removed, or this item is not
  available.
 
  Shouldn't the auction be available for another 2 days or so?
 
 
  On Mon, Apr 8, 2013 at 4:13 PM, Michael W. Lucas
  mwlu...@michaelwlucas.comwrote:
 
  On Mon, Apr 08, 2013 at 12:05:37AM -0600, Theo de Raadt wrote:
(Personally, I'd like to see the devs sign whatever part of the book
they worked on. Preferably in red ink. With notations like Wrong!
pf.conf(5) and newaliases(8) together clearly imply otherwise or
 I'm
redoing this for 5.4, ignore this chapter.)
  
   If that is what the lucky winner wishes, I am going to need to set
   aside at least an hour...
 
  Do it at the pub. The yeasty aroma will add verisimilitude.
 
  ==ml
 
  --
  Michael W. Lucas  -  mwlu...@michaelwlucas.com, Twitter @mwlauthor
  http://www.MichaelWLucas.com/, http://blather.MichaelWLucas.com/
  Latest book: Absolute OpenBSD 2/e - http://www.nostarch.com/openbsd2e
  coupon code ILUVMICHAEL gets you 30% off  helps me.



Re: OpenBSD Foundation benefit Auction / Absolute OpenBSD 2nd Ed.

2013-04-12 Thread Zé Loff
On 12/04/2013, at 07:31, Claudiu Tanaselia claudiu.tanase...@icia.ro wrote:

 I was curious to see how the price evolved, but got this message while
 accessing the above-mentioned link:
 
 This listing (200913454300) has been removed, or this item is not
 available.
 
 Shouldn't the auction be available for another 2 days or so?

Make sure you check on ebay.com. I've seen the same happen while looking for 
ebay.de listings on ebay.com, or ebay.co.uk. 



order site down?

2013-04-12 Thread Stefan Olsson
Hello,

https://https.openbsd.org/cgi-bin/order times out for me, is the order site
down?

Kind Regards



Re: sendmail config

2013-04-12 Thread James Griffin
Fri 12.Apr'13 at  9:27:14 +0300 Tony Berth
 I want to display the IP of the mail server only, as client IPs isn't a
 relevant info for the 'outside world'. The same applies to the 'User-Agent'
 field.
 
 Concerning the 'References', It was just an idea but still I want to have
 that option regardless how I could ever use it.
 
 Thanks
 
 Tony

That information is added by the MUA: References:, User-Agent:, etc. The
MTA only adds relevant information about the client, during the smtp
transaction. All MTA's do that. There's not really any benefit in trying
to hide it. Your domain information can be obtained by others means anyway
if people want it, thus it's a pointless task.

Configure your MUA to exclude bits if you really need to. It's not a MTA
issue.

-- 
James Griffin:  jmz at kontrol.kode5.net 
jmzgriffin at gmail.com

A4B9 E875 A18C 6E11 F46D  B788 BEE6 1251 1D31 DC38



Re: sendmail config

2013-04-12 Thread Alexei Malinin
On 04/12/13 09:57, Tony Berth wrote:
 Dear group,

 I'm running a 386 5.2 OpenBSD box with sendmail and would like to strip
 following headers from the outgoing e-mails:

 *Received:* from x.x.x.x
  (SquirrelMail authenticated user user)
  by new.host.name with HTTP;
  Thu, 11 Apr 2013 14:31:59 +0300
 [from the above I would like to strip the IP address of the webclient, the
 MUA as well as the logged-in user]

 *References:* e253a79261e44ce227bbc166a9adaf84.squir...@new.host.name
  a369eabe7962808743d2de3a4134d0c9.squir...@new.host.name
  32410656f1b0057d8966ea544f68f1dd.squir...@new.host.name
  db43aa23cdc95bb7218fa33c8aa18efa.squir...@new.host.name
 [from the above I would like to strip the history of the refes]

 *User-Agent:* SquirrelMail/1.4.22
 [from the above I would like to remove the MUA]

 Thanks

 Tony

This is possible with the checkcompat() function - see the O'Reilly book
Sendmail, 4th Edition, Appendix C, The checkcompat() Function.
I successfully use this approach for removing various headers.


--
Alexei Malinin



Re: up/down in pdksh-history with set -o vi

2013-04-12 Thread Christian Weisgerber
Ted Unangst t...@tedunangst.com wrote:

 On the other hand, strictly speaking, vi doesn't support arrow keys.
 vim in compatible mode or the stock vi on hpux (shudder) will just dump
 control characters in your file for example.

Traditional vi does support arrow keys in command mode, just not
in insert mode.

(If you look at the termcap entries for some old terminals, you'll
find that many used ^H for both cursor left and erase.  The only
way to support both is to separate cursor movements and text entry
into different modes.)

-- 
Christian naddy Weisgerber  na...@mips.inka.de



Re: sendmail config

2013-04-12 Thread Andrey Mitroshin
You need to utilize sendmail's milter interface to write an application to 
strip out these headers.

On Thu, Apr 11, 2013 at 11:21:14PM -0700, Philip Guenther wrote:
 On Thu, Apr 11, 2013 at 10:57 PM, Tony Berth tonybe...@googlemail.com wrote:
  I'm running a 386 5.2 OpenBSD box with sendmail and would like to strip
  following headers from the outgoing e-mails:
 
  *Received:* from x.x.x.x
   (SquirrelMail authenticated user user)
   by new.host.name with HTTP;
   Thu, 11 Apr 2013 14:31:59 +0300
  [from the above I would like to strip the IP address of the webclient, the
  MUA as well as the logged-in user]
 
  *References:* e253a79261e44ce227bbc166a9adaf84.squir...@new.host.name
   a369eabe7962808743d2de3a4134d0c9.squir...@new.host.name
   32410656f1b0057d8966ea544f68f1dd.squir...@new.host.name
   db43aa23cdc95bb7218fa33c8aa18efa.squir...@new.host.name
  [from the above I would like to strip the history of the refes]
 
  *User-Agent:* SquirrelMail/1.4.22
  [from the above I would like to remove the MUA]
 
 There's no way to do that inside sendmail itself.
 
 What problem are you trying solve by making those changes?
 
 (Changing References is particularly rude: Hi, I want to make it
 harder for people to follow email conversations and make my users look
 like idiots!)
 
 
 Philip Guenther



php e kerberos

2013-04-12 Thread Friedrich Locke
Hi folks,

i am running OBSD 5.2 and i would like to try to connect to a kerberos
server using php.

In the following link http://www.php.net/manual/en/book.kadm5.php in the
requirement section it is stated :

No external libraries are needed to build this extension.

OBSD, apache and php are workiong ok, but i cannot issue call any of the
functions stated in the example section.

This is what i got from /var/www/log/error_log

[Fri Apr 12 12:55:59 2013] [error] PHP Fatal error:  Call to undefined
function kadm5_init_with_password() in /var/www/users/sioux/k.php on line 2

Why PHP from OBSD ports does not include support for kerberos?

Thanks in advance.



ospfd loopback advertisment failure (adjacency fail?)

2013-04-12 Thread Kostas Zorbadelos
Hello all,

I have a very simple setup. Server with a loopback interface, connected
to a Cisco router via em3 interface. em3 is in the same area the
neighboring Cisco interface is and the purpose is to inject a simple /32
route to the loopback interface address in the area.
Relevant configs:

Cisco
--
interface GigabitEthernet3/19
 description P2P openbsd
 ip address 83.235.72.245 255.255.255.252
 no ip proxy-arp
 ip ospf network point-to-point
 ip ospf dead-interval minimal hello-multiplier 3
 load-interval 30
end

OpenBSD
-
root@openbsd ~ # uname -a 
OpenBSD openbsd 5.3 GENERIC.MP#40 amd64


router-id 83.235.72.246
fib-update no
# areas
area 0.1.0.5 {
interface em3 {
router-priority 0
router-dead-time minimal
fast-hello-interval msec 333
}

interface lo1 {
passive
router-priority 0
}
}


cisco#show ip ospf neighbor 
Neighbor ID Pri   State   Dead Time   Address
Interface
...
83.235.72.246 0   FULL/  -984 msec83.235.72.246
GigabitEthernet3/19
...

cisco#show ip ospf interface GigabitEthernet3/19
GigabitEthernet3/19 is up, line protocol is up (connected)
  Internet Address 83.235.72.245/30, Area 0.1.0.5, Attached via Network
  Statement
  Process ID 1822, Router ID 79.128.220.7, Network Type POINT_TO_POINT,
  Cost: 1
  Topology-MTIDCostDisabledShutdown  Topology Name
0   1 no  noBase
  Transmit Delay is 1 sec, State POINT_TO_POINT
  Timer intervals configured, Hello 333 msec, Dead 1, Wait 1, Retransmit
  5
oob-resync timeout 40
Hello due in 264 msec
  Supports Link-local Signaling (LLS)
  Cisco NSF helper support enabled
  IETF NSF helper support enabled
  Can be protected by per-prefix Loop-Free FastReroute
  Can be used for per-prefix Loop-Free FastReroute repair paths
  Index 8/12, flood queue length 0
  Next 0x0(0)/0x0(0)
  Last flood scan length is 1, maximum is 51
  Last flood scan time is 0 msec, maximum is 4 msec
  Neighbor Count is 1, Adjacent neighbor count is 1 
Adjacent with neighbor 83.235.72.246
  Suppress hello for 0 neighbor(s)

root@openbsd ~ # ospfctl show interfaces   
Interface   AddressState  HelloTimer Linkstate  Uptimenc
ac
lo1 212.205.212.205/32 LOOP   -  unknown00:00:52   0
0
em3 83.235.72.246/30   OTHER  00:00:00   active 00:00:52   1
1

root@openbsd ~ # ospfctl show interfaces em3

Interface em3, line protocol is UP
  Internet address 83.235.72.246/30, Area 0.1.0.5
  Linkstate active
  Router ID 83.235.72.246, network type BROADCAST, cost: 10
  Transmit delay is 1 sec(s), state OTHER, priority 0
  Designated Router (ID) 79.128.220.7, interface address 83.235.72.245
  Backup Designated Router (ID) 0.0.0.0, interface address 0.0.0.0
  Timer intervals configured, hello 333 msec, dead 1, wait 1, retransmit
  5
Hello timer due in 00:00:00+248msec
Uptime 00:00:58
  Neighbor count is 1, adjacent neighbor count is 1

root@openbsd ~ # ospfctl s n  
ID  Pri StateDeadTime Address Iface
Uptime
79.128.220.71   LOAD/DR  00:00:00 83.235.72.245   em3   -

I think most probably the problem is in the network type (BROADCAST vs
P2P in Cisco). Is there some way to declare em3 as point-to-point in
ospfd or do I just need to remove 

 ip ospf network point-to-point

from the cisco interface config?
(Unfortunately I cannot remove the Cisco configuration during the
weekend to just test).

Having said all that I have a working quagga configuration but I can
declare there that the ethernet interface is point-to-point.

Thanks in advance,

Kostas

-- 
Kostas Zorbadelos   
twitter:@kzorbadeloshttp://gr.linkedin.com/in/kzorba 

()  www.asciiribbon.org - against HTML e-mail  proprietary attachments
/\