sendsyslog error 55

2017-08-11 Thread Tony Boston
Hello @misc,

I have an issue with syslog here.

Aug 12 07:49:03 srv01 last message repeated 2 times
Aug 12 07:49:03 srv01 sendsyslog: dropped 2 messages, error 55
Aug 12 07:49:03 srv01 sendsyslog: dropped 2 messages, error 55
Aug 12 07:49:03 srv01 sendsyslog: dropped 1 message, error 55
Aug 12 07:49:03 srv01 sendsyslog: dropped 2 messages, error 55
Aug 12 07:49:03 srv01 sendsyslog: dropped 1 message, error 55

I was searching the web for any help on that one but I all I could find
was other users having the same problem but not clue how to fix it.

I have two questions here.

1. how can I figure out what is generating all those messages and fix it
(thats what logs are for)
2. Is there a built in function to somehow get warned about those errors
right away or would one just check syslog on a regular basis

Thanks

--
Tony



signature.asc
Description: OpenPGP digital signature


Accessing battery model/serial information

2017-08-11 Thread Carlos Cardenas
Howdy.

On devices with the appropriate ACPI tables (and hw), battery
information is reported during boot:

https://github.com/openbsd/src/blob/master/sys/dev/acpi/acpibat.c#L84
which shows up like this on my toughbook:

Aug 11 21:22:48 ndnd /bsd: acpibat0 at acpi0: BAT1 model "CF-VZSU71"
serial 00775 type LION oem "Panasonic"

When acpibat_getbix
(https://github.com/openbsd/src/blob/master/sys/dev/acpi/acpibat.c#L320)
is called (initially in acpibat_attach and periodically in
acpibat_notify), the main acpibat_softc struct is re-populated with
this information but it's not available in either a log message, APM
event, or in a sysctl node.

I realize that not all hardware propagates this info accurately
(https://github.com/openbsd/src/blob/master/sys/dev/acpi/acpibat.c#L466)
and that not every machine has a user removable battery but in the event
that it does, what's the best way to report/query this information?

I don't mind submitting a patch, I just want to get folks
guidance/preference on the approach.

+--+
Carlos



Recommendation for Host AP USB wifi interface

2017-08-11 Thread Carlos Cardenas
Howdy.

>From the FAQ (https://www.openbsd.org/faq/faq6.html#Wireless), there's
a listing of interfaces that support Host AP mode.  Going through each
interface, there seems to be a lot of caveats such as USB devices not
supporting Host AP mode (e.g. athn(4)...https://man.openbsd.org/athn).

Is there a recommended USB wifi device that can perform in Host AP mode
with decent performance?

+--+
Carlos



x40 users?

2017-08-11 Thread Ted Unangst
anyone using an x40? what have you set machdep.apmhalt to?



verification/verificação/verificación

2017-08-11 Thread postmaster
Your Webmail account has reached Limit quota for sending mail and may be 
disabled, to verify reply with the word YES

Sua conta de correio da Web atingiu Limite de cota para enviar e-mail e pode 
ser desabilitada, para verificar a resposta com a palavra Sim


Su cuenta de correo Web ha alcanzado Límite de cuota para enviar correo y puede 
estar deshabilitada, para verificar la respuesta con la palabra Sí

Webmaster Postmaster 
Administrator 



Re: expr / (( )) different behavior

2017-08-11 Thread Ingo Schwarze
Hi,

Alessandro DE LAURENZIS wrote on Fri, Aug 11, 2017 at 01:14:48PM +0200:
> On Fri 11/08/2017 13:07, Janne Johansson wrote:

>> 0 is parsed as octal in places, so 09 would be bogus if octal.

> Thanks for the clarification; does that mean expr(1) can treat 10-base 
> numbers only? No info in man page on this matter...

POSIX restricts expr(1) to handle decimal integers only and has some
complicated wording about which strings will be treated as integers
and which won't.  I consider that too cumbersome to explain it in
the manual, in particular since it will rarely matter in practice.

But being specific about the number base adds precision and clarity
without harming readability.

OK?
  Ingo


Index: expr.1
===
RCS file: /cvs/src/bin/expr/expr.1,v
retrieving revision 1.23
diff -u -p -r1.23 expr.1
--- expr.1  16 Jan 2015 15:30:10 -  1.23
+++ expr.1  11 Aug 2017 16:45:29 -
@@ -39,16 +39,17 @@ Returns the evaluation of
 if neither expression evaluates to an empty string or zero;
 otherwise, returns zero.
 .It Ar expr1 Li "{=, >, >=, <, <=, !=}" Ar expr2
-Returns the results of integer comparison if both arguments are integers;
-otherwise, returns the results of string comparison using the locale-specific
-collation sequence.
+Returns the results of integer comparison if both arguments are
+decimal integers; otherwise, returns the results of string comparison
+using the locale-specific collation sequence.
 The result of each comparison is 1 if the specified relation is true,
 or 0 if the relation is false.
 .It Ar expr1 Li "{+, -}" Ar expr2
-Returns the results of addition or subtraction of integer-valued arguments.
+Returns the results of addition or subtraction of decimal integer-valued
+arguments.
 .It Ar expr1 Li "{*, /, %}" Ar expr2
 Returns the results of multiplication, integer division, or remainder of
-integer-valued arguments.
+decimal integer-valued arguments.
 .It Ar expr1 Li \&: Ar expr2
 The
 .Ql \&:



Re: gmail and hotmail blocking mail sent from my IP

2017-08-11 Thread Allan Streib
Rui Ribeiro  writes:

> There were even customized ports of Qmail in the past that had options
> that could be easily be enabled to downright refuse email from emails
> hosts not matching A/PTR or HELO...not exactly good citizenship

Well it's like anything else, a couple of bad neighbors ruin things for
everyone.

Same reason my /etc/hosts file has 15,000 lines of known mal/ad-ware
domains.

Allan



Re: authpf error: failed to create table (Device busy)

2017-08-11 Thread Gabriel Nieto
Hello ,
I think  this patch can fix the problem.

diff -u -p pfctl.c.orig  pfctl.c
--- pfctl.c.origThu Aug 10 09:44:35 2017
+++ pfctl.c Thu Aug 10 09:50:57 2017
@@ -1,4 +1,5 @@
-/* $OpenBSD: pfctl.c,v 1.339 2017/03/27 17:38:09 benno Exp $ */
+/* pfctl.c,v 1.339FIX 2017/08/10 19:01:01 Gabriel Nieto
gabnie...@gmail.com */
+/*  $OpenBSD: pfctl.c,v 1.339 2017/03/27 17:38:09 benno Exp $ */
 
/*
  * Copyright (c) 2001 Daniel Hartmeier
@@ -1489,12 +1490,11 @@ pfctl_rules(int dev, char *filename, int opts, int
opt
sizeof(pf.anchor->path)) >= sizeof(pf.anchor->path))
errx(1, "pfctl_add_rule: strlcpy");
 
-   if ((p = strrchr(anchorname, '/')) != NULL) {
+   if ((p = strrchr(anchorname, '/')) != NULL)
if (strlen(p) == 1)
errx(1, "pfctl_add_rule: bad anchor name %s",
anchorname);
-   } else
-   p = anchorname;
+   p = anchorname;
 
if (strlcpy(pf.anchor->name, p,
sizeof(pf.anchor->name)) >= sizeof(pf.anchor->name))
 
Gabriel.




--
View this message in context: 
http://openbsd-archive.7691.n7.nabble.com/authpf-error-failed-to-create-table-Device-busy-tp321195p324748.html
Sent from the openbsd user - misc mailing list archive at Nabble.com.



Re: gmail and hotmail blocking mail sent from my IP

2017-08-11 Thread Rui Ribeiro
There were even customized ports of Qmail in the past that had options that
could be easily be enabled to downright refuse email from emails hosts not
matching A/PTR or HELO...not exactly good citizenship

Cheers

On 11 August 2017 at 10:49, Craig Skinner  wrote:

> On Thu, 10 Aug 2017 17:18:45 Stuart Henderson wrote:
> > You can't expect to reliably deliver email unless you have a PTR
> > record and an A/ record (at least within the same domain, though
> > in some cases the full hostname needs to match).
>
> Yes - matching DNS PTR/A records, and HELO hostname generally seem to be
> ranked higher for delivery than the SPF/DMARC/DKIM/etc optional extras.
>
> Cheers,
> --
> Craig Skinner | http://twitter.com/Craig_Skinner | http://linkd.in/yGqkv7
>
>


-- 
Regards,

--
Rui Ribeiro
Senior Linux Architect and Network Administrator
ISCTE-IUL
https://www.linkedin.com/pub/rui-ribeiro/16/ab8/434


Re: expr / (( )) different behavior

2017-08-11 Thread Janne Johansson
2017-08-11 13:14 GMT+02:00 Alessandro DE LAURENZIS :

> Hi Janne,
> On Fri 11/08/2017 13:07, Janne Johansson wrote:
>
>> 0 is parsed as octal in places, so 09 would be bogus if octal.
>>
> [...]
>
> Thanks for the clarification; does that mean expr(1) can treat 10-base
> numbers only? No info in man page on this matter...
>

Well, I think the default would be for simple math stuff to only use base
10.
Then stuff like $(()) should perhaps say it accepts hex,octal or whatever
outside of that.
$ echo $(( 09 + 1))
ksh:  09 + 1: bad number `09'
$ echo $(( 08 + 1))
ksh:  08 + 1: bad number `08'
$ echo $(( 07 + 1))
8

I have used the "skip leading zeros" at times with expr in order to handle
possibly empty environment vars with stuff like:
sleep $(expr 0$MIGHT_HAVE_VALUE + 1) so that an unset env-var will not make
expr treat it like $(expr + 1) which would
be an error.

-- 
May the most significant bit of your life be positive.


Re: expr / (( )) different behavior

2017-08-11 Thread Alessandro DE LAURENZIS

Hi Janne,

On Fri 11/08/2017 13:07, Janne Johansson wrote:

0 is parsed as octal in places, so 09 would be bogus if octal.

[...]

Thanks for the clarification; does that mean expr(1) can treat 10-base 
numbers only? No info in man page on this matter...


--
Alessandro DE LAURENZIS
[mailto:jus...@atlantide.t28.net]
LinkedIn: http://it.linkedin.com/in/delaurenzis



Re: expr / (( )) different behavior

2017-08-11 Thread Janne Johansson
0 is parsed as octal in places, so 09 would be bogus if octal.


2017-08-11 12:56 GMT+02:00 Alessandro DE LAURENZIS :

> Dear misc@ readers,
>
> I was doing a little exercise with integer arithmetics and noticed the
> following:
>
> [snip]
> $ echo $(expr -09 % 3)
> 0
> [snip]
>
> [snip]
> $ echo $((-09 % 3))
> sh: -09 % 3: bad number `09'
> [snip]
>
> bash seems to behave same way; just wondering if this inconsistency is
> expected...
>
> --
> Alessandro DE LAURENZIS
> [mailto:jus...@atlantide.t28.net]
> LinkedIn: http://it.linkedin.com/in/delaurenzis
>
>


-- 
May the most significant bit of your life be positive.


expr / (( )) different behavior

2017-08-11 Thread Alessandro DE LAURENZIS

Dear misc@ readers,

I was doing a little exercise with integer arithmetics and noticed the 
following:


[snip]
$ echo $(expr -09 % 3)
0
[snip]

[snip]
$ echo $((-09 % 3))
sh: -09 % 3: bad number `09'
[snip]

bash seems to behave same way; just wondering if this inconsistency is 
expected...


--
Alessandro DE LAURENZIS
[mailto:jus...@atlantide.t28.net]
LinkedIn: http://it.linkedin.com/in/delaurenzis



Re: maildrop-postfix question

2017-08-11 Thread Craig Skinner
Hi Markus,

On Thu, 10 Aug 2017 17:06:17 +0200 Markus Rosjat wrote:
> I try to get maildrop to work with postfix so I installed the 
> maildrop-postfix package and did the config in the main.cf

Postfix has a built in maildrop program called local(8), which aliases,
forwards, delimits and delivers to mboxes or maildirs in various places:
http://www.postfix.org/local.8.html


But it is better to pass mail via LMTP to the IMAP daemon for storage,
via either local chrooted UNIX sockets, or TCP to other machines:
https://en.wikipedia.org/wiki/Local_Mail_Transfer_Protocol
https://wiki2.dovecot.org/HowTo/PostfixDovecotLMTP
http://www.postfix.org/lmtp.8.html

Cheers,
-- 
Craig Skinner | http://twitter.com/Craig_Skinner | http://linkd.in/yGqkv7



Re: gmail and hotmail blocking mail sent from my IP

2017-08-11 Thread Craig Skinner
On Thu, 10 Aug 2017 17:18:45 Stuart Henderson wrote:
> You can't expect to reliably deliver email unless you have a PTR
> record and an A/ record (at least within the same domain, though
> in some cases the full hostname needs to match).

Yes - matching DNS PTR/A records, and HELO hostname generally seem to be
ranked higher for delivery than the SPF/DMARC/DKIM/etc optional extras.

Cheers,
-- 
Craig Skinner | http://twitter.com/Craig_Skinner | http://linkd.in/yGqkv7