Re: Spot of bother with send to lmtp

2016-02-04 Thread Joerg Jung
On Wed, Feb 03, 2016 at 06:52:31PM -0800, Steve Conrad wrote:
> 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

Yes, I fixed that in the guide examples, thanks for noticing!

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



Re: Spot of bother with send to lmtp

2016-02-03 Thread Joerg Jung

> On 03 Feb 2016, at 01:29, Steve Conrad  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  wrote:
> 
> Am 02.02.2016 um 05:36 schrieb 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.
> 
> 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.



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  wrote:
>
>> On 03 Feb 2016, at 01:29, Steve Conrad  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 
>wrote:
>> 
>> Am 02.02.2016 um 05:36 schrieb 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.
>> 
>> 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  wrote:
>
>> Am 02.02.2016 um 05:36 schrieb 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.
>
>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.