Re: Catch-all that pipes to script

2022-06-27 Thread Matus UHLAR - fantomas
On Jun 25 2022 at 6:05 PM Jaroslaw Rafa wrote: Because with such a complicated thing as configuring a MTA (yes, it *is* complicated) you should never rely on recipes. You should rely on reading thoroughly the MTA documentation I'm not sure what *exactly* do you mean by a "catch-all" and what d

Re: Catch-all that pipes to script

2022-06-26 Thread Jaroslaw Rafa
Dnia 26.06.2022 o godz. 13:09:24 Wietse Venema pisze: > > Can't this be even simpler? Does it really need to define a dedicated > > transport and entry in master.cf? > > Can't l...@example.com be just an alias that pipes mail to the "mailbot" > > script directly? > > Then, the address could be rea

Re: Catch-all that pipes to script

2022-06-26 Thread Wietse Venema
Jaroslaw Rafa: > Dnia 25.06.2022 o godz. 21:30:35 Viktor Dukhovni pisze: > > But you don't need a catchall for the problem at hand. Why not just > > > > main.cf: > > mailbot_destination_recipient_limit = 1 > > > > virtual: > > l...@example.com luc@hidden.invalid > >

Re: Catch-all that pipes to script

2022-06-26 Thread Jaroslaw Rafa
Dnia 25.06.2022 o godz. 21:30:35 Viktor Dukhovni pisze: > But you don't need a catchall for the problem at hand. Why not just > > main.cf: > mailbot_destination_recipient_limit = 1 > > virtual: > l...@example.com luc@hidden.invalid > > transport: > hidden

Re: Catch-all that pipes to script

2022-06-25 Thread Viktor Dukhovni
On Sat, Jun 25, 2022 at 10:16:59PM -0300, Luc GMail wrote: > On Sun, Jun 26, 2022 at 2022-06-26 0:37:16, Viktor Dukhovni wrote: > > > A "catch all" handles mail for all names at a domain, > > even ones you never shared with anyone > > Not all names. Only those that have no clear destination, i.e.

Re: Catch-all that pipes to script

2022-06-25 Thread Luc GMail
On Sun, Jun 26, 2022 at 2022-06-26 0:37:16, Viktor Dukhovni wrote: > A "catch all" handles mail for all names at a domain, > even ones you never shared with anyone Not all names. Only those that have no clear destination, i.e. no known user account or virtual mailbox. How do I achieve exactly tha

Re: Catch-all that pipes to script

2022-06-25 Thread Viktor Dukhovni
On Sat, Jun 25, 2022 at 09:16:57PM -0300, Luc GMail wrote: > On Jun 25 2022 at 6:05 PM Jaroslaw Rafa wrote: > > > Because with such a complicated thing as configuring > > a MTA (yes, it *is* complicated) you should never rely > > on recipes. You should rely on reading thoroughly > > the MTA docum

Re: Catch-all that pipes to script

2022-06-25 Thread Luc GMail
On Jun 25 2022 at 6:05 PM Jaroslaw Rafa wrote: > Because with such a complicated thing as configuring > a MTA (yes, it *is* complicated) you should never rely > on recipes. You should rely on reading thoroughly > the MTA documentation > I'm not sure what *exactly* do you mean by a "catch-all" > a

Re: Catch-all that pipes to script

2022-06-25 Thread Jaroslaw Rafa
Dnia 25.06.2022 o godz. 12:43:05 Luc GMail pisze: > It's amazing how many MTA installation recipes > shared on the Internet fail when I try them myself. Because with such a complicated thing as configuring a MTA (yes, it *is* complicated) you should never rely on recipes. You should rely on readin

Re: Catch-all that pipes to script

2022-06-25 Thread Matus UHLAR - fantomas
Matus UHLAR - fantomas wrote: you can do this in recipients .forward, .procmailrc or .mailfilter, is there any reason you want to do this in postfix configuration file? On 25.06.22 12:43, Luc GMail wrote: I am not sure about .forward. I don't know how it works. http://www.postfix.org/local.8

Re: Catch-all that pipes to script

2022-06-25 Thread Luc GMail
On Jun 24, 2022, 10:40 PM nick wrote: > Hi Luc. > I think you need some whitespace at the start of the second line - e.g. > "echo ' flags=R user=...' >> master.cf". Otherwise Postfix isn't going > to know that this is a continuation of the first line? Yes, I fixed that lack of space (two spaces)

Re: Catch-all that pipes to script

2022-06-25 Thread Matus UHLAR - fantomas
On 24.06.22 20:17, Luc GMail wrote: Hi. I am trying to achieve this, to have a catch-all receiver that will pipe all mail through a script. I've been searching and trying possible solutions, and the one I've found that seems closest to doing the job is this one: you can do this in recipients .f

Re: Catch-all that pipes to script

2022-06-24 Thread Wietse Venema
Luc GMail: > echo 'mailbot unix - n n - 50 pipe' >> master.cf > echo 'flags=R user=dropbox argv=/etc/postfix/script.sh -o SENDER=${sender} echo ' flags Wietse

Re: Catch-all that pipes to script

2022-06-24 Thread Nick Tait
On 25/06/22 11:17, Luc GMail wrote: echo 'mailbot unix - n n - 50 pipe' >> master.cf echo 'flags=R user=dropbox argv=/etc/postfix/script.sh -o SENDER=${sender} -m USER=${user} EXTENSION=${extension}' >> master.cf Hi Luc. I think you need some whitespace

Catch-all that pipes to script

2022-06-24 Thread Luc GMail
Hi. I am trying to achieve this, to have a catch-all receiver that will pipe all mail through a script. I've been searching and trying possible solutions, and the one I've found that seems closest to doing the job is this one: 8< useradd -m -s /bin/false mailbot &