Re: Fwd: smtpd.conf configuration error (accept)

2018-07-05 Thread Teno Deuter
in that case why should the empty file check, right from the beginning, cause any problem? You just add an extra verification in your existing tasks. If the file is empty do nothing and if the file isn't empty continue with your regular checking! On Thu, Jul 5, 2018 at 2:01 PM, Gilles Chehade

Re: Fwd: smtpd.conf configuration error (accept)

2018-07-05 Thread Teno Deuter
how does it work right now if I update the files at runtime and I make a syntax error? How will I take notice of this error? On Thu, Jul 5, 2018 at 10:51 AM, Gilles Chehade wrote: > On Thu, Jul 05, 2018 at 10:07:32AM +0200, Teno Deuter wrote: >> wouldn't be more reasonable to check if the file

Re: Fwd: smtpd.conf configuration error (accept)

2018-07-05 Thread Gilles Chehade
On Thu, Jul 05, 2018 at 01:22:50PM +0200, Teno Deuter wrote: > how does it work right now if I update the files at runtime and I make > a syntax error? How will I take notice of this error? > it depends what kind of error. files are not reloaded by smtpd when you edit them, they are loaded at

Re: Fwd: smtpd.conf configuration error (accept)

2018-07-05 Thread Gilles Chehade
On Thu, Jul 05, 2018 at 10:07:32AM +0200, Teno Deuter wrote: > wouldn't be more reasonable to check if the file is of 0KB and just > skip the rest of the tests? The way you do it right now sounds quite > good to me. You just introduce the empty check before anything else. > > Thank you > im not

Re: Fwd: smtpd.conf configuration error (accept)

2018-07-05 Thread Teno Deuter
wouldn't be more reasonable to check if the file is of 0KB and just skip the rest of the tests? The way you do it right now sounds quite good to me. You just introduce the empty check before anything else. Thank you On Thu, Jul 5, 2018 at 9:18 AM, Gilles Chehade wrote: > On Wed, Jul 04, 2018 at

Re: Fwd: smtpd.conf configuration error (accept)

2018-07-05 Thread Gilles Chehade
On Wed, Jul 04, 2018 at 07:43:59PM +0200, Teno Deuter wrote: > yep, that was the case! Actually the syntax was correct. From the > beginning. The problem was the empty blacklist file! > > Thank you for your help > The issue is that to determine if table blacklistRecipients is usable as a

Re: Fwd: smtpd.conf configuration error (accept)

2018-07-04 Thread Teno Deuter
yep, that was the case! Actually the syntax was correct. From the beginning. The problem was the empty blacklist file! Thank you for your help On Wed, Jul 4, 2018 at 3:36 PM, Reio Remma wrote: > It seems empty equals broken. You need actual content in the file. > > Reio > > > On 04.07.2018

Re: Fwd: smtpd.conf configuration error (accept) [SOLVED]

2018-07-04 Thread Teno Deuter
On Wed, Jul 4, 2018 at 7:43 PM, Teno Deuter wrote: > yep, that was the case! Actually the syntax was correct. From the > beginning. The problem was the empty blacklist file! > > Thank you for your help > > > On Wed, Jul 4, 2018 at 3:36 PM, Reio Remma wrote: >> It seems empty equals broken. You

Re: Fwd: smtpd.conf configuration error (accept)

2018-07-04 Thread Reio Remma
It seems empty equals broken. You need actual content in the file. Reio On 04.07.2018 12:25, Teno Deuter wrote: unfortunately, in my case, the blacklist file is empty! :( could have something to do with the permissions? Here is my current status: -rw-r--r-- 1 root wheel On Wed, Jul 4,

Re: Fwd: smtpd.conf configuration error (accept)

2018-07-04 Thread Teno Deuter
unfortunately, in my case, the blacklist file is empty! :( could have something to do with the permissions? Here is my current status: -rw-r--r-- 1 root wheel On Wed, Jul 4, 2018 at 11:00 AM, Reio Remma wrote: > On 04.07.2018 11:35, Teno Deuter wrote: >> >> here is what I have changed: >> >>

Re: Fwd: smtpd.conf configuration error (accept)

2018-07-04 Thread Reio Remma
On 04.07.2018 11:35, Teno Deuter wrote: here is what I have changed: accept from any \ for domain recipient ! \ virtual \ deliver to maildir "/var/mail/%{user.username}/Inbox" and I still get the error: invalid use of table "blacklistRecipients" as RECIPIENT

Re: Fwd: smtpd.conf configuration error (accept)

2018-07-04 Thread Teno Deuter
here is what I have changed: accept from any \ for domain recipient ! \ virtual \ deliver to maildir "/var/mail/%{user.username}/Inbox" and I still get the error: invalid use of table "blacklistRecipients" as RECIPIENT parameter Thank you On Wed, Jul 4, 2018 at 1:33

Re: Fwd: smtpd.conf configuration error (accept)

2018-07-03 Thread Reio Remma
On 04.07.2018 2:18, Teno Deuter wrote: here is the full 'accept' part I was trying to define in order to receive email from the outside: accept from any \ recipient ! \ for domain virtual \ deliver to maildir "/var/mail/%{user.username}/Inbox" so now I

Re: Fwd: smtpd.conf configuration error (accept)

2018-07-03 Thread Teno Deuter
here is the full 'accept' part I was trying to define in order to receive email from the outside: accept from any \ recipient ! \ for domain virtual \ deliver to maildir "/var/mail/%{user.username}/Inbox" so now I have 2 issues: 1. the 'blacklistRecipients

Re: Fwd: smtpd.conf configuration error (accept)

2018-07-03 Thread Reio Remma
You need the domain match as well. accept from any for domain example.org recipient ! alias deliver to mbox That works on my test system. Reio On 04.07.2018 1:20, Teno Deuter wrote: just tried and gives a syntax error :( On Tue, Jul 3, 2018 at 11:59 PM, Reio Remma wrote: Did you try it

Re: Fwd: smtpd.conf configuration error (accept)

2018-07-03 Thread Reio Remma
Did you try it with: accept from any*for* recipient ! Reio On 03.07.2018 21:04, Teno Deuter wrote: Thank you for your prompt reply but unfortunately this wasn't the problem :( I renamed to 'blacklistRecipients' and still get the same error message! On Tue, Jul 3, 2018 at 7:57 PM, Reio

Re: Fwd: smtpd.conf configuration error (accept)

2018-07-03 Thread Teno Deuter
Thank you for your prompt reply but unfortunately this wasn't the problem :( I renamed to 'blacklistRecipients' and still get the same error message! On Tue, Jul 3, 2018 at 7:57 PM, Reio Remma wrote: > Hello! > > I'm not sure you can have a dash (-) in a table name. Apart from that, if > I'm