RE: Unable to setup my OpenSMTPd (version 6.6.4p1)

2020-04-15 Thread Jacky
Hi,

According to the help by Martijn and Pete, I have successfully start the 
OpenSMTP server with the modification to smtpd.conf advice by them.

Note that the option "rcpt-to" within the "match options action name" statement 
is valid within 6.6.4 release.

Thank you very much.



Jacky


-Original Message-
From: Martijn van Duren [mailto:opensm...@list.imperialat.at] 
Sent: Wednesday, April 15, 2020 6:57 PM
To: z...@gmx.net; Jacky; misc@opensmtpd.org
Subject: Re: Unable to setup my OpenSMTPd (version 6.6.4p1)

On 4/15/20 11:21 AM, Pete wrote:
> Hey,
> 
>> match from any for rcpt-to  action action_relay
> shouldn't that be:
> match from any for domain mydoain.com rcpt-to  action 
> action_relay
> 
> 
Turns out you're right. I got my versions mixed up. For completeness:
The for rcpt-to  was added by gilles on 2019/11/26.
The 6.6.4 release was released on February 24th, but this was only
a bugfix release.

So the syntax will be valid for the next release.

martijn@


  




Re: Unable to setup my OpenSMTPd (version 6.6.4p1)

2020-04-15 Thread Martijn van Duren
On 4/15/20 11:21 AM, Pete wrote:
> Hey,
> 
>> match from any for rcpt-to  action action_relay
> shouldn't that be:
> match from any for domain mydoain.com rcpt-to  action 
> action_relay
> 
> 
Turns out you're right. I got my versions mixed up. For completeness:
The for rcpt-to  was added by gilles on 2019/11/26.
The 6.6.4 release was released on February 24th, but this was only
a bugfix release.

So the syntax will be valid for the next release.

martijn@



Re: Unable to setup my OpenSMTPd (version 6.6.4p1)

2020-04-15 Thread Pete
Hey,

> match from any for rcpt-to  action action_relay
shouldn't that be:
match from any for domain mydoain.com rcpt-to  action 
action_relay




Re: Unable to setup my OpenSMTPd (version 6.6.4p1)

2020-04-15 Thread Martijn van Duren
On 4/15/20 5:50 AM, Jacky wrote:
> Hi,
> 
>  
> 
> I was unable to setup my Opensmtpd (version 6.6.4p1). At the end of this 
> message, there are content of the recipient table and smtpd.conf. When 
> opensmtpd start, I get the following error message :-
> 
>  
> 
>  /etc/opensmtpd/smtpd.conf:38: syntax error
> 
>  
> 
> Line 38 of smtpd.conf stand for the "match from ..." line. Can anybody please 
> advice what's wrong with my configuration file.
> 
>  
> 
> Thank you very much.
> 
>  
> 
>  
> 
> Jacky
> 
>  
> 
>  
> 
> #
> 
> #
> 
> #   /etc/opensmtpd/recipienttable
> 
> #
> 
> #
> 
>  
> 
> r...@mydomain.com
> 
> t...@mydomain.com
> 
>  
> 
>  
> 
> #
> 
> #
> 
> #   /etc/opensmtpd/smtpd.conf
> 
> #
> 
> #
> 
>  
> 
> pki server01 cert "/etc/opensmtpd/cert/mydomain.com/fullchain.cer"
> 
> pki server01 key "/etc/opensmtpd/cert/mydomain.com/mydomain.com.key"
> 
> pki server01 dhe auto
> 
>  
> 
> table table_recipient file:/etc/opensmtpd/recipienttable
> 
>  
> 
> listen on 192.168.0.2 port 25 tls pki server01 hostname mydomain.com
> 
> listen on 192.168.0.2 port 587 tls-require pki server01 hostname mydomain.com
> 
>  
> 
> action action_relay relay host smtp://127.0.0.1:10025
> 
> match from any for rcpt-to  action action_relay
> 
>  
> 
>  
> 

Your config file is not complete (it's far from 38 lines).
If I strip your config of tls and adjust the paths it works for me.

Could you send over your entire config? If you're not comfortable to do
it publicly feel free to do so in a personal mail.

martijn@