Re: git portable branch: Failed to parse smarthost

2019-08-06 Thread Herbert J. Skuhra
On Mon, Aug 05, 2019 at 07:14:17PM +0200, Harald Dunkel wrote:
> Hi folks,
> 
> trying the new smtpd with openssl support on Debian I get the
> following error:
> 
> Aug  5 18:56:26 mailhost smtpd[712]: warn: Failed to parse smarthost 
> smtp://someh...@mail.somehost.de
> 
> Mail is not forwarded, of course.
> 
> 
> The config file says
> 
> :
> table localnet { 10.0.0.0/24, 2001:db8:1f24:b803::/64 }
> table secrets file:/etc/secrets
> :
> action "relay_somehost"   relay host smtp://someh...@mail.somehost.de 
> auth  mail-from "@example.de"
   
Not sure, but have you tried smtp+tls instead of smtp?

The man page says:

The label corresponds to an entry in a credentials table, as documented
in table(5). It is used with the “smtp+tls” and “smtps” protocols for
authentication. Server certificates for those protocols are verified by
default.

-- 
Herbert



Re: Browsable mailing list?

2018-08-30 Thread Herbert J. Skuhra
On Thu, Aug 30, 2018 at 07:49:05AM -0500, Edgar Pettijohn wrote:
> 
> 
> Sent from my Verizon Smartphone
> On Aug 30, 2018 7:42 AM, Damiano Venturin wrote:
> >
> > Hello,
> >
> > I'm looking at the mailing list page on the website but I can't see a link
> pointing to a browsable mailinglist archive. Is there any archive?
> 
> I like
> 
> mark.info

It's incomplete. Last entry from 12/2015. Try:

https://www.mail-archive.com/misc@opensmtpd.org/

-- 
Herbert

-- 
You received this mail because you are subscribed to misc@opensmtpd.org
To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org



Re: Problem with relay

2017-07-16 Thread Herbert J. Skuhra
Nicolas Repentin skrev:
> 
> Hi
> Anyone ?

Your question was answered three days ago!

- smtp.orange.fr does not support SSL/TLS on port 587
Use nc/telnet to check yourself
- Use smtps on port 465

--
Herbert

-- 
You received this mail because you are subscribed to misc@opensmtpd.org
To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org



Re: arm as sshd server , www server and wifi router

2017-05-22 Thread Herbert J. Skuhra
Tuyosi T skrev:
> 
> hi all .
> openbsd's arm made a very big steps on raspberry pi 3 at snapshots .
> this has overwhelming power over for example rasbian and arch's arm , bery
> impressive .
> 
> i memorize at
> http://openbsd-akita.blogspot.jp/2017/03/openbsd-61-on-raspberry-pi-3.html
> and
> http://openbsd-akita.blogspot.jp/2017/05/arm-server.html
> 
> this is only memo , so there must be some mistakes .
> 
> it is sufficient as a personal use , very convinient .
> 
> i hope risc-v will come to openbsd  in the  future .

Can you stop posting to wrong mailing list!? Thanks!

--
Herbert

-- 
You received this mail because you are subscribed to misc@opensmtpd.org
To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org



Re: libasr

2015-10-12 Thread Herbert J. Skuhra
On Sun, Oct 11, 2015 at 07:39:26PM +, G B wrote:
> I'm again attempting to build OpenSMTPD on the latest OpenIndiana release 
> since
> it has a newer toolchain.  I've downloaded the newest libasr from June, 2015
> and configure and make completed without any errors.  However, during "gmake
> install" it stopped with:
> 
> libtool: install: chmod 644 /usr/local/lib/libaasr.a
> libtool: install: ranlib /usr/local/lib/libasr.a
> gmake install-exec-hook
> gmake[3]: Entering directory `/tmp/libasr-1.0.2/src'
> manpage=`echo asr_run.3.out | sed 's/\.out$//'`; \
> if test "man" = "man"; then
>   /usr/bin/cat ${manpage} | nawk -f ../mk/mdoc2man.awk > 
> asr_run.3.out;
> \
> else \
>   /usr/bin/cat ${manpage} > asr_run.3.out; \
> fi
> nawk: you can only delete array[element] at source line 110 in function
> splitwor
> ds
>   context is
>delete dest >>>
> <<<   while (length(l) > 0) {
> nawk: syntax error at source line 110 in function splitwords
> nawk: illegal statement at source line 110 in function splitwords
> missing )
> gmake[3]: *** [asr_run.3.out] Error 2
> gmake[3]: Leaving directory `/tmp/libasr-1.0.2/src'
> gmake[2]: *** [install-exec-am] Error 2
> gmake[2]: Leaving directory `/tmp/libasr-1.0.2/src'
> gmake[1]: *** [install-am] Error 2
> gmake[1]: Leaving directory `/tmp/libasr-1.0.2/src'
> gmake: *** [install-recursive] Error 1

Try a different implementation of AWK (e.g. GNU awk):

% gmake clean
% AWK=/path/to/bin/gawk ./configure ...
% gmake 
# gmake install

-- 
Herbert

-- 
You received this mail because you are subscribed to misc@opensmtpd.org
To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org



Re: SSL/TLS

2015-07-28 Thread Herbert J. Skuhra
On Tue, Jul 28, 2015 at 09:05:24PM +0900, tuyosi wrote:
 
 
 On 2015e9407f28f% 20:50, Denis Fondras wrote:
 are there open relay when ' accept from local for any relay' is replaced .
 
 Nope !
 from local means that only the machine running OpenSMTPd or any
 *authenticated* client can relay.
 
 Moreover, if no rule is matching then OpenSMTPd rejects the mail (default
 setting = secure setting)
 
 kind advice .
 
 surely   i can send mail from x...@aoiyuma.mydns.jp to y...@gmail.com 
 .
 
 
 strangely  i cannot send mail from Y@gmailto
 x...@aoiyuma.mydns.jp .
 -
 
 Delivery to the following recipient failed permanently:
 
  tuy...@aoiyuma.mydns.jp
 
 Technical details of permanent failure:
 Google tried to deliver your message, but it was rejected by the server for 
 the recipient domain aoiyuma.mydns.jp by mail.aoiyuma.mydns.jp. 
 [157.7.208.141].
 
 The error that the other server returned was:
 530 5.5.1 Invalid command: Must issue an AUTH command first

You have:

listen on em0 port 25  tls pki mail.aoiyuma.mydns.jp auth

From smtpd.conf(5):

If the auth parameter is used, then a client may only start an SMTP transaction
after a successful authentication. Any remote sender that passed SMTPAUTH is
treated as if it was the server's local user that was sending the mail. This
means that filter rules using from local will be matched. If auth-optional is
specified, then SMTPAUTH is not required to establish an SMTP transaction. This
is only useful to let a listener accept incoming mail from untrusted senders
and outgoing mail from authenticated users in situations where it is not
possible to listen on the submission port.

And I think you want smtps on port 465 not tls!

-- 
Herbert

--
You received this mail because you are subscribed to misc@opensmtpd.org
To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org



Receiving broken e-mails?

2015-07-25 Thread Herbert J. Skuhra
Hi,

anyone else who is running OpenSMTPD on FreeBSD receive broken
e-mails? In tcpdump/wireshark the message looks ok, but in the trace log
the lines are broken. Receiving the same message with Postfix works!

Btw. OpenSMTPD portable from git does not compile for a while unless I
add #define HAVE_ERR_H 1 to config.h.

Thanks.

-- 
Herbert

-- 
You received this mail because you are subscribed to misc@opensmtpd.org
To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org



Re: Emails not forwarding to external addresses

2015-07-09 Thread Herbert J. Skuhra
On Thu, Jul 09, 2015 at 01:38:50PM +0100, Tom Keene wrote:
 Hi,
 
 Apologies for the delayed response - I haven't had a chance to look at
 this again until now.
 I ended up copying the arch wiki:
 https://wiki.archlinux.org/index.php/OpenSMTPD
 
 But I still get the same error (configs/debug below). All works fine
 when the vusers file contains the following:
 t...@tomkeene.com  tom
 
 Yet when it contains:
 t...@tomkeene.com  tom, tomu...@gmail.com
 
 Or:
 t...@tomkeene.com  tomu...@gmail.com
 
 Then I get smtp-in: Failed command on session 463efaea408f3a7d: RCPT
 TO:t...@tomkeene.com = 550 Invalid recipient In the debug output.
 Any ideas why this simple setup might not be working?
 
 Tom
 
 CONFIG
 pki domain.tld certificate  /etc/smtpd/tls/smtpd.crt
 pki domain.tld key/etc/smtpd/tls/smtpd.key
 table vdoms /etc/smtpd/vdoms
 table vusers /etc/smtpd/vusers
 listen on eth0 hostname domain.tld
 accept from any for domain vdoms virtual vusers deliver to maildir
 /home/tom/mails
 accept from source { localhost 109.237.26.21/24 } for any relay

I think the above line is the problem. It should work if you add
216.119.104.83!

-- 
Herbert

-- 
You received this mail because you are subscribed to misc@opensmtpd.org
To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org



Re: spezify a relay

2015-07-06 Thread Herbert J. Skuhra
On Sun, Jul 05, 2015 at 09:01:52PM +0200, Wolfgang Helbig wrote:
 Hi
 
 Ib
 Ib

Works for me also on OpenBSD 5.7 with shipped OpenSMTPD (5.4.4).

-- 
Herbert

-- 
You received this mail because you are subscribed to misc@opensmtpd.org
To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org



Re: spezify a relay

2015-07-05 Thread Herbert J. Skuhra
On Sun, Jul 05, 2015 at 07:01:27AM +0200, Wolfgang Helbig wrote:
 Hi Gilles,
 
 it seems to me, the mta ignores the relay phrase:
 
 here the smtpd.conf
 $ cat /etc/mail/smtpd.conf
 #   $OpenBSD: smtpd.conf,v 1.7 2014/03/12 18:21:34 tedu Exp $
 
 # This is the smtpd server system-wide configuration file.
 # See smtpd.conf(5) for more information.
 
 # To accept external mail, replace with: listen on all
 #
 listen on lo0
 
 table creds db:/etc/mail/creds.db
 table aliases db:/etc/mail/aliases.db
 
 # Uncomment the following to accept external mail for domain example.org
 #
 # accept from any for domain example.org alias aliases deliver to mbox
 accept for local alias aliases deliver to mbox
 accept from local for any relay

I think your message matches this rule, doesn't it? So what happens if
you remove it? 

 # accept for any relay via secure+auth://hel...@smtp.kabelbw.de:25  auth 
 creds
 accept for any relay via tls+auth://hel...@smtp.kabelbw.de \
 auth creds as helbig.wolfg...@kabelbw.de

smtp.kabelbw.de does not support tls. 

-- 
Herbert

-- 
You received this mail because you are subscribed to misc@opensmtpd.org
To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org



Re: spezify a relay

2015-07-05 Thread Herbert J. Skuhra
On Sun, Jul 05, 2015 at 10:47:28AM +0200, Wolfgang Helbig wrote:
 Hi Herbert,
 
 I just want to tell the mta to route all outgoing mail to the mta of 
 my internet service provider. The first example in the man page 
 smtpd.conf(5) seems to address this. But this works only for secured
 channels, which my ISP does not provide. So I tried to change smtpd
 to allow for insecure authorization. But this didnb
 find out why, I switched back to the unchanged smtpd and tried the
 example from the man page. I expected to see in the logs how my mta
 tries to connect to the ISPb
 to the MX of the target domain. The b
 from the example seems to be ignored by smtpd. The -vd-logs with and
 without the b

Well, the below config works for me on FreeBSD with OpenSMTPD from git:

listen on localhost

table aliases file:/usr/local/opensmtpd/etc/aliases
table secrets db:/usr/local/opensmtpd/etc/secrets.db

accept for local alias aliases deliver to mbox
accept for any relay via tls+auth://gm...@smtp.gmail.com:587 \
auth secrets as x...@gmail.com

Please post your current smtpd.conf.

Before sending another test message, clear the queue and restart smtpd again.

Please post full debug log.

Can you test with a smtp server that actually supports smtp auth and tls?

-- 
Herbert

-- 
You received this mail because you are subscribed to misc@opensmtpd.org
To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org



Re: spezify a relay

2015-07-03 Thread Herbert J. Skuhra
Hmm, I am still trying to figure out what went wrong with the quoting.
The e-mail looks fine in my Sent folder.

-- 
Herbert

-- 
You received this mail because you are subscribed to misc@opensmtpd.org
To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org



Re: [OpenSMTPD] portable snapshot opensmtpd-201506020910p1 available

2015-06-04 Thread Herbert J. Skuhra
On Thu, Jun 04, 2015 at 02:50:04PM +0200, Herbert J. Skuhra wrote:
 On Tue, Jun 02, 2015 at 09:16:38PM +0200, Herbert J. Skuhra wrote:
  
  stat(/usr/local/opensmtpd/libexec/opensmtpd/table-db,0x7fffbb78) 
  ERR#2 'No such file or directory'
  fatal: table_create: backend db does not exist
  write(2,fatal: table_create: backend db...,49) = 49 (0x31)
 
 To resolve this I had to add
 
 #define HAVE_DB_API 1
 
 to config.h.

Maybe?

diff --git a/configure.ac b/configure.ac
index bff2c7a..6c09bc9 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2582,6 +2582,7 @@ LIBS=$save_LIBS
 
 AM_CONDITIONAL([HAVE_DB_API], [test $use_db_api = 1])
 
+AM_COND_IF([HAVE_DB_API], [AC_DEFINE([HAVE_DB_API], [1], [Define to 1 if 
HAVE_DB_API])])
 
 # Search for asr (based on zlib checks)
 dnl asr is required

-- 
You received this mail because you are subscribed to misc@opensmtpd.org
To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org



Re: [OpenSMTPD] portable snapshot opensmtpd-201506020910p1 available

2015-06-04 Thread Herbert J. Skuhra
On Tue, Jun 02, 2015 at 09:16:38PM +0200, Herbert J. Skuhra wrote:
 On Tue, Jun 02, 2015 at 08:23:56PM +0200, Gilles Chehade wrote:
  On Tue, Jun 02, 2015 at 12:05:55PM +0200, Herbert J. Skuhra wrote:
   On Tue, Jun 02, 2015 at 09:10:43AM +0200, gilles chehade wrote:
A new opensmtpd portable snapshot is available at:


http://www.opensmtpd.org/archives/opensmtpd-201506020910p1.tar.gz
   
   Hmm, on FreeBSD 10.1-STABLE (r283665) I get
   
   fatal: table_create: backend db does not exist
   
   although I ran configure with '--enable-table-db'.
   
  
  can you check if it just didn't install in the wrong place ?
 
 stat(/usr/local/opensmtpd/libexec/opensmtpd/table-db,0x7fffbb78) ERR#2 
 'No such file or directory'
 fatal: table_create: backend db does not exist
 write(2,fatal: table_create: backend db...,49) = 49 (0x31)

opensmtpd-201505241924p1 same failure
opensmtpd-201505121836p1 OK. table-db does not exist

I've built opensmtpd on Fedora 22 and Manjaro and there is also no
table-db.

-- 
Herbert

-- 
You received this mail because you are subscribed to misc@opensmtpd.org
To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org



Re: [OpenSMTPD] portable snapshot opensmtpd-201506020910p1 available

2015-06-04 Thread Herbert J. Skuhra
On Tue, Jun 02, 2015 at 09:16:38PM +0200, Herbert J. Skuhra wrote:
 On Tue, Jun 02, 2015 at 08:23:56PM +0200, Gilles Chehade wrote:
  On Tue, Jun 02, 2015 at 12:05:55PM +0200, Herbert J. Skuhra wrote:
   On Tue, Jun 02, 2015 at 09:10:43AM +0200, gilles chehade wrote:
A new opensmtpd portable snapshot is available at:


http://www.opensmtpd.org/archives/opensmtpd-201506020910p1.tar.gz
   
   Hmm, on FreeBSD 10.1-STABLE (r283665) I get
   
   fatal: table_create: backend db does not exist
   
   although I ran configure with '--enable-table-db'.
   
  
  can you check if it just didn't install in the wrong place ?
 
 stat(/usr/local/opensmtpd/libexec/opensmtpd/table-db,0x7fffbb78) ERR#2 
 'No such file or directory'
 fatal: table_create: backend db does not exist
 write(2,fatal: table_create: backend db...,49) = 49 (0x31)

To resolve this I had to add

#define HAVE_DB_API 1

to config.h.

-- 
Herbert

-- 
You received this mail because you are subscribed to misc@opensmtpd.org
To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org



Re: [OpenSMTPD] portable snapshot opensmtpd-201506020910p1 available

2015-06-02 Thread Herbert J. Skuhra
On Tue, Jun 02, 2015 at 08:23:56PM +0200, Gilles Chehade wrote:
 On Tue, Jun 02, 2015 at 12:05:55PM +0200, Herbert J. Skuhra wrote:
  On Tue, Jun 02, 2015 at 09:10:43AM +0200, gilles chehade wrote:
   A new opensmtpd portable snapshot is available at:
   
   http://www.opensmtpd.org/archives/opensmtpd-201506020910p1.tar.gz
  
  Hmm, on FreeBSD 10.1-STABLE (r283665) I get
  
  fatal: table_create: backend db does not exist
  
  although I ran configure with '--enable-table-db'.
  
 
 can you check if it just didn't install in the wrong place ?

stat(/usr/local/opensmtpd/libexec/opensmtpd/table-db,0x7fffbb78) ERR#2 
'No such file or directory'
fatal: table_create: backend db does not exist
write(2,fatal: table_create: backend db...,49) = 49 (0x31)

# cd opensmtpd-201506020910p1
# find . -name *table**
./smtpd/smtpd-table_getpwnam.o
./smtpd/smtpd-table.o
./smtpd/table.5
./smtpd/table_api.c
./smtpd/makemap-table_db.o
./smtpd/makemap-table_static.o
./smtpd/table_proc.c
./smtpd/makemap-table_getpwnam.o
./smtpd/makemap-table.o
./smtpd/makemap-table_proc.o
./smtpd/table_db.c
./smtpd/table.c
./smtpd/table_static.c
./smtpd/smtpd-table_proc.o
./smtpd/smtpd-table_db.o
./smtpd/table_getpwnam.c
./smtpd/smtpd-table_static.o
# find /usr/local/opensmtpd -name *table*  
/usr/local/opensmtpd/share/man/man5/table.5

-- 
Herbert

-- 
You received this mail because you are subscribed to misc@opensmtpd.org
To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org



Re: [OpenSMTPD] portable snapshot opensmtpd-201506020910p1 available

2015-06-02 Thread Herbert J. Skuhra
On Tue, Jun 02, 2015 at 09:10:43AM +0200, gilles chehade wrote:
 A new opensmtpd portable snapshot is available at:
 
 http://www.opensmtpd.org/archives/opensmtpd-201506020910p1.tar.gz

Hmm, on FreeBSD 10.1-STABLE (r283665) I get

fatal: table_create: backend db does not exist

although I ran configure with '--enable-table-db'.

-- 
Herbert

-- 
You received this mail because you are subscribed to misc@opensmtpd.org
To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org



Invalid domain name in EHLO/HELO

2015-05-23 Thread Herbert J. Skuhra
Hi,

how can I receive mails from a server that is sending an invalid domain
name in EHLO/HELO command?

smtpd[16165]: smtp-in: Failed command on session 6a0f577547bb0d7c: EHLO spce. 
= 501 5.5.4 Invalid command arguments: Invalid domain name
smtpd[16165]: smtp-in: Failed command on session 6a0f577547bb0d7c: HELO spce. 
= 501 5.5.4 Invalid command arguments: Invalid domain name

My postfix server accept such mails (if reject_invalid_helo_hostname and 
reject_non_fqdn_helo_hostname is off).

Thanks.

-- 
Herbert

-- 
You received this mail because you are subscribed to misc@opensmtpd.org
To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org



Re: Invalid domain name in EHLO/HELO

2015-05-23 Thread Herbert J. Skuhra
On Sat, May 23, 2015 at 06:22:45PM +0200, Joerg Jung wrote:
 
 
  Am 23.05.2015 um 18:15 schrieb Herbert J. Skuhra herb...@oslo.ath.cx:
  
  Hi,
  
  how can I receive mails from a server that is sending an invalid domain
  name in EHLO/HELO command?
  
  smtpd[16165]: smtp-in: Failed command on session 6a0f577547bb0d7c: EHLO 
  spce. = 501 5.5.4 Invalid command arguments: Invalid domain name
  smtpd[16165]: smtp-in: Failed command on session 6a0f577547bb0d7c: HELO 
  spce. = 501 5.5.4 Invalid command arguments: Invalid domain name
  
  My postfix server accept such mails (if reject_invalid_helo_hostname and 
  reject_non_fqdn_helo_hostname is off).
 
 Which smtpd version have you running?

I am running OpenSMTPD 5.4.5p1 on FreeBSD.

 AFAIK, the associated code changed recently.
 So, try upgrading?

You are right. The git version accepts such mails.

Thanks.

-- 
Herbert

-- 
You received this mail because you are subscribed to misc@opensmtpd.org
To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org



Re: [OpenSMTPD] libasr snapshot libasr-201504301551 available

2015-05-02 Thread Herbert J. Skuhra
On Thu, Apr 30, 2015 at 03:53:44PM +0200, gilles chehade wrote:
 A new libasr snapshot is available at:
 
 http://www.opensmtpd.org/archives/libasr-201504301551.tar.gz
 
 Checksum:
 
   SHA256 (libasr-201504301551.tar.gz) =
   dde2be19fb63a98acc6d5ede44021b31e5dfcb4ec5690ef896feb938b730dd2c
 
 A summary of the content of this snapshot is available below.
 
 Please test and let us know if it breaks something!

Hi,

on FreeBSD 10.1-STABLE running 'make install' I get:

make  install-exec-hook
manpage=`echo asr_run.3.out | sed 's/\.out$//'`;  if test cat = man; then   
${manpage} | nawk -f ../mk/mdoc2man.awk  asr_run.3.out;  else   ${manpage}  
asr_run.3.out;  fi
asr_run.3: not found
*** Error code 127

Running 'make install' again:

make  install-exec-hook
.././install-sh -c -d /usr/local/opensmtpd/share/man/cat3
/usr/bin/install -c -m 644 asr_run.3.out
/usr/local/opensmtpd/share/man/cat3/asr_run.3
rm  asr_run.3.out
 .././install-sh -c -d '/usr/local/opensmtpd/include'
 /usr/bin/install -c -m 644 asr.h '/usr/local/opensmtpd/include'

-- 
Herbert

-- 
You received this mail because you are subscribed to misc@opensmtpd.org
To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org



Re: Can you debug these error messages

2015-03-18 Thread Herbert J. Skuhra
On Wed, Mar 18, 2015 at 11:56:46PM +0100, Ulrich Grassberger wrote:
 Hello,
 
 smtpd.conf and # smtpd -dv 2smtps.txt are attached. The server cannot 
 speak tls. But why does smtps not work?

Because the server does not support smtps!? Check with openssl/gnutls-cli!
Then try again with mail-ssl.versatel.de.

-- 
Herbert

-- 
You received this mail because you are subscribed to misc@opensmtpd.org
To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org



Another build error on FreeBSD

2015-02-07 Thread Herbert J. Skuhra
Hei,

latest sources from git do not build on FreeBSD:

bsd-misc.c:145:38: error: expected ';' after do/while statement
TIMESPEC_TO_TIMEVAL(time2wait, req)
^
;
bsd-misc.c:163:37: error: expected ';' after do/while statement
TIMEVAL_TO_TIMESPEC(tremain, rem)
  ^
  ;
2 errors generated.
*** Error code 1

This happens with clang 3.4.1 and gcc 4.8.4.

Hmm, bsd-misc.c in the 201502012312p1 snapshot and in git are the
same and the former builds (well, after defining HOST_NAME_MAX).

-- 
Herbert

-- 
You received this mail because you are subscribed to misc@opensmtpd.org
To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org



Re: [OpenSMTPD] portable snapshot opensmtpd-201502012312p1 available

2015-02-04 Thread Herbert J. Skuhra
On Sun, Feb 01, 2015 at 11:06:00PM +0100, gilles chehade wrote:
 A new opensmtpd portable snapshot is available at:
 
 http://www.opensmtpd.org/archives/opensmtpd-201502012312p1.tar.gz
 
 Checksum:
 
   SHA256 (opensmtpd-201502012312p1.tar.gz) =
   e35b30861ac65c280b6c705bda9dad0f82eb846a1064e46bb18b4a3a1c78c2df
 
 A summary of the content of this snapshot is available below.
 
 Please test and let us know if it breaks something!
 
 If this snapshot doesn't work, please also test with a previous one,
 to help us spot where the issue is coming from. You can access all
 previous snapshots here:
 
 http://www.opensmtpd.org/archives/
 
 The OpenSMTPD team ;-)

Build fails on FreeBSD because HOST_NAME_MAX is undefined:

In file included from ../../smtpd/aliases.c:41:
../../smtpd/smtpd.h:141:16: error: use of undeclared identifier 'HOST_NAME_MAX'
char hostname[HOST_NAME_MAX+1];
[...]


--- openbsd-compat/defines.h.orig   2015-02-05 07:05:17.356087970 +0100
+++ openbsd-compat/defines.h2015-02-05 07:07:29.819078737 +0100
@@ -79,6 +79,10 @@
 # define MAXHOSTNAMELEN  64
 #endif
 
+#ifndef HOST_NAME_MAX
+# define HOST_NAME_MAX 255
+#endif
+
 #ifndef LOGIN_NAME_MAX
 # define LOGIN_NAME_MAX 9
 #endif

-- 
Herbert

-- 
You received this mail because you are subscribed to misc@opensmtpd.org
To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org



Re: opensmtpd: procmail: not found [FALSE ALERT - STILL UNRESOLVED]

2015-01-28 Thread Herbert J. Skuhra
On Tue, Jan 27, 2015 at 10:56:50PM +, openda...@hushmail.com wrote:
 On 27. januar 2015 at 3:58 PM, Herbert J. Skuhra herb...@oslo.ath.cx 
 wrote:
 
  Please show output of 'smtpd -dv'
 
 It's quite big so I put it here instead:
 
 https://gist.github.com/anonymous/bf9b0a7e935d6e961c05
 
  and (user's) procmailrc.
 
 I don't have one actually. I'm using this approach:
 
 https://calomel.org/opensmtpd.html

This is still your config, right?


listen on 127.0.0.1 port 25

table aliases db:/etc/mail/aliases.db

accept for local deliver to mda /usr/local/bin/procmail -f -
accept from any for domain mydomain.com deliver to mda 
/usr/local/bin/procmail -f -

accept from local for any relay


I've missed the table aliases... line.

Remove the 'table aliases...' line, put your aliases in 
/usr/local/etc/mail/aliases and run newaliases.
Or add 'alias aliases' to your accept line.

2. There are only test mails in your queue, right? Please remove them and
try sending new e-mails while running 'smtpd -dv'.

3. If you still get the error procmail: not found add a new user and
send him a test e-mail.

-- 
Herbert

-- 
You received this mail because you are subscribed to misc@opensmtpd.org
To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org



Re: opensmtpd: procmail: not found

2015-01-27 Thread Herbert J. Skuhra
On Mon, Jan 26, 2015 at 11:54:09PM +, openda...@hushmail.com wrote:
 Hello,
 
 On 26. januar 2015 at 8:18 PM, Herbert J. Skuhra herb...@oslo.ath.cx 
 wrote:
 
 To understand why you get this error run:
 
 % whereis procmail | xargs -t ls -l
 
 Indeed, similar to the command parv gave me earlier:
 
 # whereis procmail | xargs -t -n1 ls -l
 ls -l procmail:
 ls: procmail:: No such file or directory

Got it?

 ls -l /usr/local/bin/procmail
 -rwsr-sr-x  1 root  mail  98224 Oct  3 04:19 /usr/local/bin/procmail
 ls -l /usr/local/man/man1/procmail.1.gz
 -rw-r--r--  1 root  wheel  10793 Oct  3 04:19 /usr/local/man/man1/procmail.1 
 .gz
 
 Do you have a .forward file in $HOME with the content |procmail?
 
 No, I do not. I just copied my smtpd.conf from OpenBSD where it was all 
 working fine.
 
 I have no idea what's going on here. Why is procmail acting up?
 
 Thanks.

I guess the error does not come from your smtpd.conf, otherwise the log
would show:

Jan 26 14:05:20 mybox smtpd[23304]: delivery: TempFail for
cf077883a36bcae2: from=od@mybox, to=od@mybox, user=od,   
method=mda, delay=1h5m20s, stat=Error (/usr/local/bin/procmail: not found)

and not:

Jan 26 14:05:20 mybox smtpd[23304]: delivery: TempFail for
cf077883a36bcae2: from=od@mybox, to=od@mybox, user=od,
method=mda, delay=1h5m20s, stat=Error (procmail: not found)

At least that's what's happening on my system (FreeBSD 10.1-STABLE).

So obviously something else is calling 'procmail' and /usr/local/bin missing in 
$PATH!

Maybe 'smtpd -dv' shows more information?

-- 
Herbert

-- 
You received this mail because you are subscribed to misc@opensmtpd.org
To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org



Re: opensmtpd: procmail: not found

2015-01-27 Thread Herbert J. Skuhra
On Tue, Jan 27, 2015 at 11:48:30AM +, openda...@hushmail.com wrote:
 Hello!
 
 On 27. januar 2015 at 11:21 AM, Edgar Pettijohn ed...@pettijohn-web.com 
 wrote:
 
  Maybe 'smtpd -dv' shows more information?
  # smtpd -dv
  fatal: control socket already listening
 
  Thanks!
 
  O.D.
 
 
 Remember to service smtpd stop first, before this test.
 
 Ah yes! Now we got some action:
 
 # smtpd -dv
 debug: init ssl-tree
 info: OpenSMTPD 5.4.2p1 starting
 debug: bounce warning after 4h
 debug: using fs queue backend
 debug: using ramqueue scheduler backend
 debug: using ram stat backend
 info: startup [debug mode]
 mfa: building simple chains...
 debug: queue: done loading queue into scheduler
 mfa: building complex chains...
 mfa: done building complex chains
 mfa: done building default chain
 libevent 2.0.22-stable (kqueue)
 debug: parent_send_config_ruleset: reloading
 debug: parent_send_config_mfa: reloading
 debug: parent_send_config: configuring smtp
 debug: mfa ready
 debug: smtp: listen on 127.0.0.1 port 25 flags 0x0 pki 
 debug: smtp: will accept at most 29120 clients
 debug: smtpd: scanning offline queue...
 debug: smtpd: offline scanning done
 debug: scheduler: evp:b757c52fd160fb0d scheduled (mda)
 mda: new user f72ba568b9efd05b for getpwnam:root
 debug: lka: userinfo getpwnam:root
 debug: mda: new session f72ba569c103cbc9 for user getpwnam:root evpid b7 
 57c52fd160fb0d
 debug: mda: no more envelope for getpwnam:root
 debug: mda: got message fd 4 for session f72ba569c103cbc9 evpid b757c52fd160 
 fb0d
 debug: mda: querying mda fd for session f72ba569c103cbc9 evpid b757c52fd160f 
 b0d
 debug: smtpd: forking mda for session f72ba569c103cbc9: /usr/local/bin/proc 
 mail -f - as root
 delivery: TempFail for b757c52fd160fb0d: from=, to=root@mybox, user=root 
 , method=mda, delay=4h50m5s, stat=Error (not allowed to deliver to: root)
 debug: mda: session f72ba569c103cbc9 done
 debug: mda: user root becomes runnable
 debug: mda: all done for user getpwnam:root
 debug: scheduler: evp:3ea50754ebc57df8 scheduled (mda)
 mda: new user f72ba56a06a86a79 for getpwnam:root
 debug: lka: userinfo getpwnam:root
 debug: mda: new session f72ba56b009d2ba4 for user getpwnam:root evpid 3e 
 a50754ebc57df8
 debug: mda: no more envelope for getpwnam:root
 debug: mda: got message fd 4 for session f72ba56b009d2ba4 evpid 3ea50754ebc5 
 7df8
 debug: mda: querying mda fd for session f72ba56b009d2ba4 evpid 3ea50754ebc57 
 df8
 debug: smtpd: forking mda for session f72ba56b009d2ba4: /usr/local/bin/proc 
 mail -f - as root
 delivery: TempFail for 3ea50754ebc57df8: from=, to=root@mybox, user=root 
 , method=mda, delay=4h50m5s, stat=Error (not allowed to deliver to: root)
 debug: mda: session f72ba56b009d2ba4 done
 debug: mda: user root becomes runnable
 debug: mda: all done for user getpwnam:root

1. Create an alias for root and run newaliases.

2. Show debug output for the error procmail: not found

-- 
Herbert 

-- 
You received this mail because you are subscribed to misc@opensmtpd.org
To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org



Re: opensmtpd: procmail: not found

2015-01-27 Thread Herbert J. Skuhra
On Tue, Jan 27, 2015 at 01:02:49PM +, openda...@hushmail.com wrote:
 On 27. januar 2015 at 12:49 PM, Herbert J. Skuhra herb...@oslo.ath.cx 
 wrote:
 
 1. Create an alias for root and run newaliases.
 
 I already have this (I've also run newaliases):
 
 # cat /etc/mail/aliases

Try /usr/local/etc/mail/aliases instead.

 2. Show debug output for the error procmail: not found
 
 How do I debug that error? Do you mean with `smtpd -dv`?

Yes. Fix the alias problem or send e-mail to a different user.

-- 
Herbert

-- 
You received this mail because you are subscribed to misc@opensmtpd.org
To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org



Re: opensmtpd: procmail: not found

2015-01-26 Thread Herbert J. Skuhra
On Mon, Jan 26, 2015 at 02:56:58PM +, openda...@hushmail.com wrote:
 Hi!
 
 On 26. januar 2015 at 2:02 PM, parv p...@pair.com wrote:
 
 Is procmail actually installed, for locate database could be old 
 and thus whereis would be lying? What is the output of ...
 
   # whereis procmail | xargs ls -l
 
 Awesome man! Looks like locate is clueless:
 
 # whereis procmail | xargs ls -l
 ls: procmail:: No such file or directory
 -rwsr-sr-x  1 root  mail   98224 Oct  3 04:19 /usr/local/bin/procmail
 -rw-r--r--  1 root  wheel  10793 Oct  3 04:19 
 /usr/local/man/man1/procmail.1.gz
 
 Just ran:
 
 # /usr/libexec/locate.updatedb
  WARNING
  Executing updatedb as root.  This WILL reveal all filenames
  on your machine to all login users, which is a security risk.
 
 But I'm still getting `ls: procmail:: No such file or directory`. Ideas?

To understand why you get this error run:

% whereis procmail | xargs -t ls -l

or 

% whereis procmail | xargs -t -n1 ls -l

Do you have a .forward file in $HOME with the content |procmail?

-- 
Herbert

-- 
You received this mail because you are subscribed to misc@opensmtpd.org
To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org



Re: Re. hello, and $ mail on dial-up

2015-01-11 Thread Herbert J. Skuhra
On Sat, Jan 10, 2015 at 08:53:49PM +0100, Ulrich Grassberger wrote:
 Hello,
 
 thanks for thy answer, Charles.
 
 I now have
 accept for any relay via tls+auth:la...@smtp.versatel.de \ auth 
 secrets as grasso...@versanet.de
 
 and get error logs like
 no valid route for connector  relay:smtp.versatel.de
 network error on destination MXs
 
 I can send mail using telnet and auth login. So it seems, that smtpd on 
 my computer and the relay cannot establish an encrypted connection. And 
 i did not find an option to tell smtpd to auth over a plain connection 
 -- what is what i would sooner do anyway.

Are you sure that smtp.versatel.de supports tls?

25/587 no STARTTLS
465 closed

Not recommended, but have you tried the relay without tls?

-- 
Herbert

-- 
You received this mail because you are subscribed to misc@opensmtpd.org
To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org



Re: Re. hello, and $ mail on dial-up

2015-01-11 Thread Herbert J. Skuhra
On Sun, Jan 11, 2015 at 02:05:22PM +0100, Herbert J. Skuhra wrote:
 On Sat, Jan 10, 2015 at 08:53:49PM +0100, Ulrich Grassberger wrote:
  Hello,
  
  thanks for thy answer, Charles.
  
  I now have
  accept for any relay via tls+auth:la...@smtp.versatel.de \ auth 
  secrets as grasso...@versanet.de
  
  and get error logs like
  no valid route for connector  relay:smtp.versatel.de
  network error on destination MXs
  
  I can send mail using telnet and auth login. So it seems, that smtpd on 
  my computer and the relay cannot establish an encrypted connection. And 
  i did not find an option to tell smtpd to auth over a plain connection 
  -- what is what i would sooner do anyway.
 
 Are you sure that smtp.versatel.de supports tls?
 
 25/587 no STARTTLS
 465 closed
 
 Not recommended, but have you tried the relay without tls?

Sorry, according to the man page this is not possible:

In addition, credentials for authenticated relaying may be provided when
using a secure schema.

So, you need a different relay!

-- 
Herbert

-- 
You received this mail because you are subscribed to misc@opensmtpd.org
To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org



Re: Hello! smtpd issues

2014-04-04 Thread Herbert J. Skuhra

Den 03.04.2014 22:00, skrev Brent Garner:

I'm trying to install OpenSMTPD on our server here so we can just send
things to it to see how it outputs. I was able to set this up on my 
local

machine but getting it on the server has been a little bit of a hassle
because its not connected to the normal repos. I had to install a RPM 
of
opensmtpd and it got on there. I tried to set it up but I keep getting 
this

error when trying to send a message:

 send-mail: error in offline directory setup

I was just curious if you would have any idea what I could do to fix 
this.


Check if /var/spool/smtpd and /var/spool/smtpd/offline exist and the 
permissions. On FreeBSD:


# cd /var/spool/smtpd
# ls -l |grep off
drwxrwxrwt2 rootwheel2 Dec 11 15:04 offline

--
Herbert


--
You received this mail because you are subscribed to misc@opensmtpd.org
To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org



Re: Beginner help

2014-02-18 Thread Herbert J. Skuhra
On Tue, 18 Feb 2014 13:04:24 +0100
Isak Andersson wrote:

 Hi Eriik and Jason!
 
 It sounds very much like it could be an issue with permissions. I have been
 trying to change the permissions around a little bit and making the owner
 the smtpd (which is the user that systemd starts it as) user (there is also
 an smtpq user which I guess does the sendning? q for queue?). I still get
 the same error and an additional warning that the certificate is not owned
 by uid 0. Here is the errors and permissions:
 
 ```
 [root@BrutusBjare isak]# systemctl restart smtpd
 Job for smtpd.service failed. See 'systemctl status smtpd.service' and
 'journalctl -xn' for details.
 [root@BrutusBjare isak]# journalctl -xn
 -- Logs begin at Fri 2013-03-29 01:07:20 UTC, end at Tue 2014-02-18
 12:03:16 UTC. --
 Feb 18 12:00:28 BrutusBjare systemd[1]: Unit smtpd.service entered failed
 state.
 Feb 18 12:02:17 BrutusBjare sshd[5738]: pam_unix(sshd:auth): authentication
 failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=ns215641.ovh.net
 user=root
 Feb 18 12:02:18 BrutusBjare sshd[5738]: Failed password for root from
 94.23.247.130 port 44229 ssh2
 Feb 18 12:02:18 BrutusBjare sshd[5738]: Received disconnect from
 94.23.247.130: 11: Bye Bye [preauth]
 Feb 18 12:03:16 BrutusBjare systemd[1]: Starting OpenSMTPD...
 -- Subject: Unit smtpd.service has begun with start-up
 -- Defined-By: systemd
 -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
 --
 -- Unit smtpd.service has begun starting up.
 Feb 18 12:03:16 BrutusBjare smtpd[5742]: warn:
 /etc/ssl/certs/puffinmail.crt: not owned by uid 0
 Feb 18 12:03:16 BrutusBjare smtpd[5742]: fatal: load_ssl_tree: failed to
 load certificate file
 Feb 18 12:03:16 BrutusBjare systemd[1]: smtpd.service: control process
 exited, code=exited status=1
 Feb 18 12:03:16 BrutusBjare systemd[1]: Failed to start OpenSMTPD.
 -- Subject: Unit smtpd.service has failed
 -- Defined-By: systemd
 -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
 -- Documentation:
 http://www.freedesktop.org/wiki/Software/systemd/catalog/be02cf6855d2428ba40df7e9d022f03d
 --
 -- Unit smtpd.service has failed.
 --
 -- The result is failed.
 Feb 18 12:03:16 BrutusBjare systemd[1]: Unit smtpd.service entered failed
 state.
 [root@BrutusBjare isak]# smtpd -n
 warn:  /etc/ssl/certs/puffinmail.crt: not owned by uid 0
 fatal: load_ssl_tree: failed to load certificate file
 [root@BrutusBjare isak]# ls -l /etc/ssl/certs/puffinmail.crt
 -rw-r--r-- 1 smtpd root 6335 Feb 18 02:02 /etc/ssl/certs/puffinmail.crt
 [root@BrutusBjare isak]# ls -l /etc/ssl/private/puffinmail.key
 -rw-r--r-- 1 smtpd root 12603 Feb 18 02:00 /etc/ssl/private/puffinmail.key
 [root@BrutusBjare isak]#

What happens if you change owner to root (crt and key file) and chmod
600 at least the key file?

-- 
Herbert

-- 
You received this mail because you are subscribed to misc@opensmtpd.org
To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org