Re: FAQ Suggestions

2016-02-16 Thread Steve Conrad
>This works for me. I can not say what is broken in your setup without seeing 
>your config.


Here's the config I used that broke local delivery. 
Most likely I've overlooked something simple,

but it's not jumping out at me. 

Simply changing my hostname to pseudonymous.splazo.co

made it all work fine.


//Things look reasonably well configured in /etc/mail:


 # cd /etc/mail
 # grep frisco.splazo.co *
 aliases:steve:  st...@frisco.splazo.co
 Binary file aliases.db matches
 domains:frisco.splazo.co
 passwd:st...@frisco.splazo.co:$2b::
 smtpd.conf:pki frisco.splazo.co certificate "/etc/ssl/frisco.splazo.co.crt"
 smtpd.conf:pki frisco.splazo.co key "/etc/ssl/private/frisco.splazo.co.key"
 smtpd.conf:listen on egress port 25 filter sub tlspkifrisco.splazo.co
 smtpd.conf:listen on egress port 587 filter all tls-require pki 
frisco.splazo.co auth 
 virtuals:ab...@frisco.splazo.co st...@frisco.splazo.co
 virtuals:postmas...@frisco.splazo.cost...@frisco.splazo.co
 virtuals:webmas...@frisco.splazo.co st...@frisco.splazo.co
 virtuals:st...@frisco.splazo.co   vmail

Aliases seem to be setup ok:
 # grep -e root: aliases
 root: steve
 # grep -e steve: aliases
 steve:  st...@frisco.splazo.co


Here's what I'm running:
 # hostname; uname -a; smtpd -h 
  
frisco.splazo.co

 OpenBSD frisco.splazo.co 5.9 GENERIC#1743 amd64
  
 version: OpenSMTPD master  


Here are a couple of examples of it not working:

    // have the same problem with telnet

 $ telnet localhost 25
 Trying 127.0.0.1...
 Connected to localhost.
 Escape character is '^]'. 
 220 frisco.splazo.co ESMTP OpenSMTPD
 helo lap.top
 250 frisco.splazo.co Hello lap.top [127.0.0.1], pleased to meet you
 mail from: 
 250 2.0.0: Ok
 rcpt to: 
 550 Invalid recipient


 // and with /usr/bin/mail
 $ mail root
 Subject: test

 well?
 .
 EOT
 $ send-mail: command failed: 550 Invalid recipient



If the service is free, you're the product.

Re: FAQ Suggestions

2016-02-16 Thread Steve Conrad

Here's the config I used that broke local delivery. 
Most likely I've overlooked something simple,

but it's not jumping out at me. 

Simply changing my hostname to pseudonymous.splazo.co

made it all work fine.


//Things look reasonably well configured in /etc/mail:


 # cd /etc/mail
 # grep frisco.splazo.co *
 aliases:steve:  st...@frisco.splazo.co
 Binary file aliases.db matches
 domains:frisco.splazo.co
 passwd:st...@frisco.splazo.co:$2b::
 smtpd.conf:pki frisco.splazo.co certificate "/etc/ssl/frisco.splazo.co.crt"
 smtpd.conf:pki frisco.splazo.co key "/etc/ssl/private/frisco.splazo.co.key"
 smtpd.conf:listen on egress port 25 filter sub tls pkifrisco.splazo.co
 smtpd.conf:listen on egress port 587 filter all tls-require pki 
frisco.splazo.co auth 
 virtuals:ab...@frisco.splazo.co st...@frisco.splazo.co
 virtuals:postmas...@frisco.splazo.cost...@frisco.splazo.co
 virtuals:webmas...@frisco.splazo.co st...@frisco.splazo.co
 virtuals:st...@frisco.splazo.co   vmail

Aliases seem to be setup ok:
 # grep -e root: aliases
 root: steve
 # grep -e steve: aliases
 steve:  st...@frisco.splazo.co


Here's what I'm running:
 # hostname; uname -a; smtpd -h 
  
frisco.splazo.co

 OpenBSD frisco.splazo.co 5.9 GENERIC#1743 amd64
  
 version: OpenSMTPD master  


Here are a couple of examples of it not working:

    // have the same problem with telnet

 $ telnet localhost 25
 Trying 127.0.0.1...
 Connected to localhost.
 Escape character is '^]'. 
 220 frisco.splazo.co ESMTP OpenSMTPD
 helo lap.top
 250 frisco.splazo.co Hello lap.top [127.0.0.1], pleased to meet you
 mail from: 
 250 2.0.0: Ok
 rcpt to: 
 550 Invalid recipient


 // and with /usr/bin/mail
 $ mail root
 Subject: test

 well?
 .
 EOT
 $ send-mail: command failed: 550 Invalid recipient





If the service is free, you're the product.

Re: [OpenSMTPD] opensmtpd-extra master snapshot opensmtpd-extras-201602042118 available

2016-02-05 Thread Steve Conrad
> Where and why does it faIl?

Seems to be a libasr issue, although I had just successfully  installed a fresh 
pull from github
I notice libasr didn't appear in configure's summary below. Should it?

// make fails here:
...
...
compare -Wformat-security -Wsizeof-pointer-memaccess -Wno-pointer-sign
-Wno-unused-result -fno-strict-aliasing -fno-builtin-memset
-D_BSD_SOURCE -fPIE -c -o event_asr_run.o event_asr_run.c
event_asr_run.c:25:19: fatal error: event.h: No such file or directory
compilation terminated.
Makefile:374: recipe for target 'event_asr_run.o' failed
make[2]: *** [event_asr_run.o] Error 1




// Here's the system I tried it on
steve@teeter:~/Downloads/OpenSMTPD-extras-master$ uname -a
Linux teeter 4.2.0-27-lowlatency #32-Ubuntu SMP PREEMPT Fri Jan 22
05:55:23 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

// ./configure's successful conclusion
OpenSMTPD-extras have been configured with the following options:
User binaries: /usr/local/bin
System binaries: /usr/local/sbin
Configuration files: /usr/local/etc
Manual pages: /usr/local/share/man/catX
Privilege separation chroot path: /var/empty
Package libexecdir: ${exec_prefix}/libexec/opensmtpd
Manpage format: cat

Host: x86_64-unknown-linux-gnu
Compiler: gcc
Compiler flags: -g -O2 -fPIC -DPIC -Wall -Wpointer-arith
-Wuninitialized -Wsign-compare -Wformat-security
-Wsizeof-pointer-memaccess -Wno-pointer-sign -Wno-unused-result
-fno-strict-aliasing -fno-builtin-memset -D_BSD_SOURCE -fPIE
Preprocessor flags:
Linker flags: -pie
Libraries: -levent -lcrypto -lssl

//OpenSMTPD version (Ubuntu's build)
version: OPENSMTPD 5.4.2p1




If the service is free, you're the product.

Re: [OpenSMTPD] opensmtpd-extra master snapshot opensmtpd-extras-201602042118 available

2016-02-05 Thread Steve Conrad

>You zapped the important lines here, see:
>
>https://www.mail-archive.com/>misc@opensmtpd.org/msg02607.html

 Thanks. It worked fine with:
AUTOCONF_VERSION=2.69
AUTOMAKE_VERSION=1.15

I'd updated the first but neglected the second





If the service is free, you're the product.

Re: [OpenSMTPD] opensmtpd-extra master snapshot opensmtpd-extras-201602042118 available

2016-02-04 Thread Steve Conrad
Wouldn't build for me on OpenBSD 5.9
Basically, bootstrap fails to populate the tree with the many versions of 
Makefile.in, so configure fails.

I also tried it on Linux (UbuntuStudio 15.10) where it would configure but not 
build. Not too concerned with how well my auduo production lapton runs a mail 
server, though.

The most recent version I could build was cloned from the git repo on January 
31.

// bootstrap complains about C object in subdir but not in
configure.ac rather often
// Also fails to create most of the Makefile.ins
$ ./bootstrap
...
extras/wip/filters/filter-clamav/Makefile.am: C objects in subdir but
`AM_PROG_CC_C_O' not in `configure.ac'
extras/wip/filters/filter-clamav/Makefile.am: installing `./compile'
... // 29 similar lines
... // omitted
...
openbsd-compat/Makefile.am: C objects in subdir but `AM_PROG_CC_C_O'
not in `configure.ac'
configure.ac:28: installing `./config.guess'
configure.ac:28: installing `./config.sub'

// configure complains of missing Makefile.in
$ ./configure
...
configure: creating ./config.status
config.status: error: cannot find input file: `Makefile.in'

// OpenBSD has a few versions of Makefile.in
$ find . -name Makefile.in
./extras/stable/Makefile.in
./extras/wip/filters/Makefile.in
./extras/wip/Makefile.in
./extras/Makefile.in

// Whereas Linux (UbuntuStudio 15.10)
// has a whole lot more, using the same tarball
steve@teeter:~/opensmtpd-extras-201602042118$ find . -name Makefile.in
./Makefile.in
./extras/Makefile.in
./extras/stable/Makefile.in
./extras/wip/schedulers/scheduler-stub/Makefile.in
./extras/wip/schedulers/Makefile.in
./extras/wip/schedulers/scheduler-python/Makefile.in
./extras/wip/schedulers/scheduler-ram/Makefile.in
./extras/wip/filters/filter-monkey/Makefile.in
./extras/wip/filters/filter-spamassassin/Makefile.in
./extras/wip/filters/filter-regex/Makefile.in
./extras/wip/filters/Makefile.in
./extras/wip/filters/filter-trace/Makefile.in
./extras/wip/filters/filter-dkim-signer/Makefile.in
./extras/wip/filters/filter-clamav/Makefile.in
./extras/wip/filters/filter-void/Makefile.in
./extras/wip/filters/filter-python/Makefile.in
./extras/wip/filters/filter-perl/Makefile.in
./extras/wip/filters/filter-pause/Makefile.in
./extras/wip/filters/filter-dnsbl/Makefile.in
./extras/wip/filters/filter-stub/Makefile.in
./extras/wip/filters/filter-lua/Makefile.in
./extras/wip/Makefile.in
./extras/wip/queues/queue-python/Makefile.in
./extras/wip/queues/Makefile.in
./extras/wip/queues/queue-null/Makefile.in
./extras/wip/queues/queue-ram/Makefile.in
./extras/wip/queues/queue-stub/Makefile.in
./extras/wip/tools/Makefile.in
./extras/wip/tools/tool-stats/Makefile.in
./extras/wip/tables/table-postgres/Makefile.in
./extras/wip/tables/table-stub/Makefile.in
./extras/wip/tables/Makefile.in
./extras/wip/tables/table-redis/Makefile.in
./extras/wip/tables/table-ldap/Makefile.in
./extras/wip/tables/table-sqlite/Makefile.in
./extras/wip/tables/table-python/Makefile.in
./extras/wip/tables/table-mysql/Makefile.in
./extras/wip/tables/table-passwd/Makefile.in
./extras/wip/tables/table-socketmap/Makefile.in
./openbsd-compat/Makefile.in


// Clobber the whole tree with Linux Makefile.in
$ tar zxvf ../Makefiles.tar.gz
// Configures OK
$ ./configure
...
...
...
OpenSMTPD-extras have been configured with the following options:
User binaries: /usr/local/bin
System binaries: /usr/local/sbin
Configuration files: /usr/local/etc
Manual pages: /usr/local/share/man/catX
Privilege separation chroot path: /var/empty
Package libexecdir: ${exec_prefix}/libexec/smtpd
Manpage format: cat

Host: x86_64-unknown-openbsd5.9
Compiler: gcc
Compiler flags: -g -O2 -fPIC -DPIC -Wall -Wpointer-arith
-Wuninitialized -Wsign-compare -Wformat-security -Wno-pointer-sign
-fno-strict-aliasing -fno-builtin-memset -fPIE
Preprocessor flags: -I/usr/include
Linker flags: -L/usr/lib -pie
Libraries: -levent -lcrypto -lssl


// Unsurprisingly, it won't compile though
$ make
...
...
...
*** Error 1 in . (Makefile:359 './Makefile.in': @for dep in
./m4/libtool.m4 ./m4/ltoptions.m4 ./m4/ltsugar.m4 ./m4/ltversion.m4
./m4/lt~obso...)
*** Error 1 in openbsd-compat (Makefile:340 './Makefile.in')
*** Error 1 in . (Makefile:435 'all-recursive')
*** Error 1 in /home/steve/opensmtpd-extras-201602042118 (Makefile:342 'all')


On February 4, 2016 12:25:11 PM PST, j...@poolp.org wrote:
>A new opensmtpd-extras snapshot is available at:
>
> http://www.opensmtpd.org/archives/opensmtpd-extras-201602042118.tar.gz
>
>Checksum:
>
>SHA256 (opensmtpd-extras-201602042118.tar.gz) =
>59480e4bc0c75ca554a0a833b51764e4b7de6acf9f1ebcd2e7f176c144da3b32
>
>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 ;-)
>
>
>Summary of changes since last snapshot 

Re: Spot of bother with send to lmtp

2016-02-03 Thread Steve Conrad
To clarify, I'm running the OpenBSD snapshot, which gives me 
opensmtpd-extras-201601122027

The port is not blocked until I start smtpd, so the filters must be blocking 
the port:

# netstat -a |grep smtp
# ps ax |grep smtpd
# smtpd -f /etc/mail/smtpd.conf.vmail
# netstat -a |grep smtp 
# ps ax |grep smtpd 


The log file now shows smtpd complaining about a blocked port:

Feb 3 13:30:55 frisco smtpd[9904]: info: OpenSMTPD master starting
Feb 3 13:30:55 frisco smtpd[13480]: fatal: smtpd: bind: Address already in use
Feb 3 13:30:55 frisco smtpd[11018]: warn: lost child: pony express exited 
abnormally
Feb 3 13:30:55 frisco smtpd[26800]: warn: lka -> pony: pipe closed
Feb 3 13:30:55 frisco smtpd[6696]: info: queue handler exiting
Feb 3 13:30:55 frisco smtpd[12051]: warn: control -> pony: pipe closed
Feb 3 13:30:55 frisco smtpd[10800]: info: scheduler handler exiting
Feb 3 13:30:55 frisco smtpd[16739]: warn: ca -> control: pipe closed
Feb 3 13:30:55 frisco smtpd[11018]: warn: parent terminating

The version of smtpd in the OpenBSD snapshot declines to share its version 
number:

# smtpd -h
version: OpenSMTPD master

So is the January 12 version of opensmtpd-extras too old for my purposes?

Refreshing to see a project where the documentation surges ahead of the release
rather than lagging behind.


On February 3, 2016 12:32:22 AM PST, Joerg Jung <m...@umaxx.net> wrote:
>
>> On 03 Feb 2016, at 01:29, Steve Conrad <st...@crocutus.com> wrote:
>> 
>> Not to come off as utterly hopeless, but still having only limited
>success with this set up.
>> 
>> I can get smtpd and dovecot working mostly as expected but only by
>dispensing with all the filters.
>> 
>> As is from the faq, smtpd bails with:
>> 
>> smtpd: bind: address already in use
>
>So there is already something running on your listen port, netstat and
>ps might help.
>
>> In order to get it going, I had to change the listen directives,
>replacing 'all' with 'egress' as well as expunging all the bits about
>filters.
>> 
>> In fact, I had to comment out the filter declarations themselves at
>the start of smtpd.conf
>> 
>> I had a go at uncommenting the filters one at a time, and thought I
>was making tremendous progress only to discover that somewhere down the
>list, smtpd has fallen outside the control of smtpctl, such that it
>wasn't actually rereading the config. 
>> 
>> Tracking it down with ps and properly killing it revealed that smtpd
>was once again failing to bind to the desired ports.
>
>Sounds like you killed not everything :)
>
>> Not entirely sure what to make of this
>> 
>> I notice clamd is much slower to start than I'd have expected.
>> 
>> Currently running the snapshot I grabbed this morning. And apart from
>the filters, everything works fine.
>
>Snapshot of OpenBSD or snapshot of OpenSMTPD? 
>Which package of opensmtpd-extras? 
>
>You need the latest snapshot tarball or latest -current
>opensmtpd-extras package for it as well.
>Otherwise filters will not work, because path for loading them has
>changed recently.
>
>If you need hints what is going wrong start with debug/verbose mode,
>e.g.: smtpd -dv
>
>> On February 2, 2016 5:18:41 AM PST, Joerg Jung <m...@umaxx.net>
>wrote:
>> 
>> Am 02.02.2016 um 05:36 schrieb Steve Conrad <st...@crocutus.com
><mailto:st...@crocutus.com>>:
>> 
>>> Having a spot of bother setting up some virtual domains using the
>excellent faq at https://opensmtpd.org/faq/example1.html
><https://opensmtpd.org/faq/example1.html> a guide. 
>>> 
>>> Despite my best efforts to follow the guide, smtpd complains of two
>syntax errors in the config file and declines to start.
>>> 
>>> The offending lines are the ones involving sending to lmtp, one of
>which is listed below:
>>> 
>>> accept from any for domain  virtual  deliver to
>lmtp "/var/dovecot/lmtp" rcpt-to
>>> 
>>> If this is any different from the example, it's not jumping out at
>me. Has the syntax for 'lmtp ... rcpt-to' changed recently?
>>> 
>>> Running OpenBSD 5.8 amd64 on a digital ocean droplet. Thanks in
>advance. This has been surprisingly easy going for learning a new MTA.
>>> If the service is free, you're the product.
>> 
>> Yes, rcpt-to keyword was recently added. 
>> You either need to install a snapshot or wait for 5.9.
>> 
>> 
>> 
>> If the service is free, you're the product.



If the service is free, you're the product.

Re: Spot of bother with send to lmtp

2016-02-03 Thread Steve Conrad
Got it sorted now. 
Thanks for the help.

Upgrade to latest opensmtpd-extras
Change 'listen on all' to 'listen on egress'
Otherwise 'listen on lo0' is in the way


If the service is free, you're the product.

Re: Spot of bother with send to lmtp

2016-02-02 Thread Steve Conrad
Thanks for sorting that out for me.

On February 2, 2016 5:18:41 AM PST, Joerg Jung <m...@umaxx.net> wrote:
>
>> Am 02.02.2016 um 05:36 schrieb Steve Conrad <st...@crocutus.com>:
>> 
>> Having a spot of bother setting up some virtual domains using the
>excellent faq at https://opensmtpd.org/faq/example1.html a guide. 
>> 
>> Despite my best efforts to follow the guide, smtpd complains of two
>syntax errors in the config file and declines to start.
>> 
>> The offending lines are the ones involving sending to lmtp, one of
>which is listed below:
>> 
>> accept from any for domain  virtual  deliver to
>lmtp "/var/dovecot/lmtp" rcpt-to
>> 
>> If this is any different from the example, it's not jumping out at
>me. Has the syntax for 'lmtp ... rcpt-to' changed recently?
>> 
>> Running OpenBSD 5.8 amd64 on a digital ocean droplet. Thanks in
>advance. This has been surprisingly easy going for learning a new MTA.
>> If the service is free, you're the product.
>
>Yes, rcpt-to keyword was recently added. 
>You either need to install a snapshot or wait for 5.9.



If the service is free, you're the product.

Spot of bother with send to lmtp

2016-02-01 Thread Steve Conrad
Having a spot of bother setting up some virtual domains using the  excellent 
faq at https://opensmtpd.org/faq/example1.html a guide. 

Despite my best efforts to follow the guide, smtpd complains of two syntax 
errors in the config file and declines to start.

The offending lines are the ones involving sending to lmtp, one of which is 
listed below:

accept from any for domain  virtual  deliver to lmtp 
"/var/dovecot/lmtp" rcpt-to

If this is any different from the example, it's not jumping out at me. Has the 
syntax for 'lmtp ... rcpt-to' changed recently?

Running OpenBSD 5.8 amd64 on a digital ocean droplet. Thanks in advance. This 
has been surprisingly easy going for learning a new MTA.
If the service is free, you're the product.