build error: conflicting types for 'snprintf' on OS X

2015-08-11 Thread Jiří Navrátil
so far I used only OpenBSD version

today, I’m trying to compile OpenSMTPD cloned from git on OS X

Darwin Kernel Version 14.4.0: Thu May 28 11:35:04 PDT 2015; 
root:xnu-2782.30.5~1/RELEASE_X86_64 x86_64

instructions from README.md

during make, I ended with

Making all in openbsd-compat
gcc -DHAVE_CONFIG_H -I. -I..  -I../smtpd -I../openbsd-compat -I/opt/local 
-I/opt/local   -g -O2  -Qunused-arguments -Wunknown-warning-option -Wall 
-Wpointer-arith -Wuninitialized -Wsign-compare -Wformat-security 
-Wsizeof-pointer-memaccess -Wno-pointer-sign -Wno-unused-result 
-fno-strict-aliasing -fno-builtin-memset  -c -o arc4random.o arc4random.c
In file included from arc4random.c:27:
In file included from ./includes.h:77:
./openbsd-compat.h:152:5: warning: incompatible redeclaration of library 
function 'snprintf' [-Wincompatible-library-redeclaration]
int snprintf(char *, size_t, SNPRINTF_CONST char *, ...);
   ^
./openbsd-compat.h:152:5: note: 'snprintf' is a builtin with type 'int (char *, 
unsigned long, const char *, ...)'
1 warning generated.
gcc -DHAVE_CONFIG_H -I. -I..  -I../smtpd -I../openbsd-compat -I/opt/local 
-I/opt/local   -g -O2  -Qunused-arguments -Wunknown-warning-option -Wall 
-Wpointer-arith -Wuninitialized -Wsign-compare -Wformat-security 
-Wsizeof-pointer-memaccess -Wno-pointer-sign -Wno-unused-result 
-fno-strict-aliasing -fno-builtin-memset  -c -o base64.o base64.c
In file included from base64.c:47:
In file included from ./includes.h:77:
./openbsd-compat.h:152:5: warning: incompatible redeclaration of library 
function 'snprintf' [-Wincompatible-library-redeclaration]
int snprintf(char *, size_t, SNPRINTF_CONST char *, ...);
   ^
./openbsd-compat.h:152:5: note: 'snprintf' is a builtin with type 'int (char *, 
unsigned long, const char *, ...)'
In file included from base64.c:58:
/usr/include/stdio.h:421:6: error: conflicting types for 'snprintf'
int  snprintf(char * __restrict, size_t, const char * __restrict, ...) 
__printflike(3, 4);
^
./openbsd-compat.h:152:5: note: previous declaration is here
int snprintf(char *, size_t, SNPRINTF_CONST char *, ...);
   ^
1 warning and 1 error generated.
make[2]: *** [base64.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2


--
Jiri Navratil

smime.p7s
Description: S/MIME cryptographic signature


Re: using SPF or DKIM instead of greylisting?

2014-05-30 Thread Jiří Navrátil
V 30. května 2014 at 11:38:43, Gilles Chehade (gil...@poolp.org) napsáno:
 What is your anti SPAM strategy please? Are available SPF and DKIM 
 configurations examples for OpenSMTPD? 
 
 Thak you for your recommendations. 
 

I only use greylisting and fopr big hosts like gmail and yahoo, I have a 
script that queries their SPF records to whitelist the MX servers that 
they advertise. 


Thank you for quick reply.

That looks as reasonable way for me. Could you share your script, please?

Jiri Navratil

configuration example for SMTP account accessible from iOS (iPhone, iPad)?

2014-02-23 Thread Jiří Navrátil
Hello,

I need to setup SMTP server accessible from my iOS devices. Could you help me 
with some sample configuration? I will use stable OpenSMTP version on OpenBSD 
5.3.

Thank you.

Best regards,
Jiri

--
Jiri Navratil