Re: Example of smtpd-filters

2023-10-21 Thread Omar Polo
On 2023/10/20 21:52:41 +0200, Sagar Acharya wrote: > I'm simply unable to start. > > I have to know where to get the mail from, format of text, which process to > give the return to, in what format, i.e. are there any standard return values > for accept or reject mail. I'd like to stress the

Re: Example of smtpd-filters

2023-10-20 Thread Tassilo Philipp
You basically write a script that processes incoming lines on stdin, and writes back to stdout. The protocol is described in smtpd-filters(7). This basic idea in lua would be something like: for line in io.lines() do if line == 'in' then io.write('out') end end Now handle the

Re: Example of smtpd-filters

2023-10-20 Thread Sagar Acharya
I'm simply unable to start. I have to know where to get the mail from, format of text, which process to give the return to, in what format, i.e. are there any standard return values for accept or reject mail. Thanking you Sagar Acharya https://humaaraartha.in/selfdost/selfdost.html 20 Oct

Re: Example of smtpd-filters

2023-10-20 Thread Tassilo Philipp
Post your script that you got so far, explain where you get stuck/confused, and someone will probably be happy to help. On Fri, Oct 20, 2023 at 02:05:13PM +0200, Sagar Acharya wrote: Can you please help me with a sample script for accepting or rejecting mail in lua. Say there is