Re: Why isn't there a simple way to add a catchall alias to OpenSMTP ?

2022-04-17 Thread Beau Ford
On Sun, 17 Apr 2022, Reio Remma wrote: ... and the same is true if I remove the space between the commas: action "tones" mbox virtual { "to...@domain.com" = user1,user2 } Did you try the exact example Gilles gave? With quoted { u...@domain.com = "user1, user2"} ? I just tried that ..

Re: Why isn't there a simple way to add a catchall alias to OpenSMTP ?

2022-04-17 Thread Reio Remma
On 17.04.2022 21:39, Beau Ford wrote: On Sat, 16 Apr 2022, gil...@poolp.org wrote: Hope the example above helps someone in the future. If future readers wonder how I handle multiple recipients for a single alias, I just cc: the second or third recipient in .procmailrc ... so the normal alias

Re: Why isn't there a simple way to add a catchall alias to OpenSMTP ?

2022-04-17 Thread Beau Ford
On Sat, 16 Apr 2022, gil...@poolp.org wrote: Hope the example above helps someone in the future. If future readers wonder how I handle multiple recipients for a single alias, I just cc: the second or third recipient in .procmailrc ... so the normal alias syntax of: user joe,billy,bob ...

Re: Why isn't there a simple way to add a catchall alias to OpenSMTP ?

2022-04-16 Thread gilles
April 16, 2022 2:50 AM, "Beau Ford" wrote: > Gilles, > > Thank you for the time and energy you have spent on this. I appreciate it. > You're welcome :-) > On Fri, 15 Apr 2022, gil...@poolp.org wrote: > >> Sorry but on a second thought, this is wrong for several reasons. >> >> The main one

Re: Why isn't there a simple way to add a catchall alias to OpenSMTP ?

2022-04-15 Thread Beau Ford
Gilles, Thank you for the time and energy you have spent on this. I appreciate it. On Fri, 15 Apr 2022, gil...@poolp.org wrote: Sorry but on a second thought, this is wrong for several reasons. The main one is that aliases transforms recipient addresses BEFORE they are matched to a

Re: Why isn't there a simple way to add a catchall alias to OpenSMTP ?

2022-04-15 Thread Edgar Pettijohn
On 4/14/22 14:00, Beau Ford wrote: On Thu, 14 Apr 2022, Beau Ford wrote: 1) Am I still using my aliases that are defined in: table aliases file:/usr/local/etc/mail/aliases action "local_mail" mbox alias ... or are those superceded now by the catchall ? It turns out I am *not* using m

Re: Why isn't there a simple way to add a catchall alias to OpenSMTP ?

2022-04-15 Thread gilles
Sorry but on a second thought, this is wrong for several reasons. The main one is that aliases transforms recipient addresses BEFORE they are matched to a local user, so imagine you have something like: root: gilles @: gilles If I send mail to e...@poolp.org and there's a local user eri

Re: Why isn't there a simple way to add a catchall alias to OpenSMTP ?

2022-04-14 Thread gilles
Forget about the whole fallback idea, it can't work because an envelope can only successfully match a single rule for _very_ good reasons that are not related to the implementation itself but to how SMTP works more generally. The ruleset does a first-match evaluation and once it found a rule that m

Re: Why isn't there a simple way to add a catchall alias to OpenSMTP ?

2022-04-14 Thread Beau Ford
On Thu, 14 Apr 2022, Thomas Bohl wrote:     match from any for domain "domain.com" action "local_mail"     match from any for domain "domain.com" action "catchall" match for local action "local_mail" match from any for domain "domain.com" action "catchall" Tried this - thank you - but i

Re: Why isn't there a simple way to add a catchall alias to OpenSMTP ?

2022-04-14 Thread Thomas Bohl
    match from any for domain "domain.com" action "local_mail"     match from any for domain "domain.com" action "catchall" match for local action "local_mail" match from any for domain "domain.com" action "catchall" I hope I understood you correctly. If not, merge the tables.

Re: Why isn't there a simple way to add a catchall alias to OpenSMTP ?

2022-04-14 Thread Beau Ford
On Thu, 14 Apr 2022, Beau Ford wrote: 1) Am I still using my aliases that are defined in: table aliases file:/usr/local/etc/mail/aliases action "local_mail" mbox alias ... or are those superceded now by the catchall ? It turns out I am *not* using my aliases anymore and that my rules,

Re: Why isn't there a simple way to add a catchall alias to OpenSMTP ?

2022-04-14 Thread Beau Ford
On Thu, 14 Apr 2022, gil...@poolp.org wrote: I'm not active these days, but waking up because this thread is getting out of hands :-) Thank you very much - this worked, but I have a follow-up clarification below ... My goal is to add exactly one catchall rule and keep my config sim

Re: Why isn't there a simple way to add a catchall alias to OpenSMTP ?

2022-04-14 Thread gilles
I'm not active these days, but waking up because this thread is getting out of hands :-) Reponses inlined: April 14, 2022 7:20 AM, "Beau Ford" wrote: > On Mon, 11 Apr 2022, Reio Remma wrote: > >>> Am I misremembering or is that a possibility - to implement the '@' >> >>> catchall directly in

Re: Why isn't there a simple way to add a catchall alias to OpenSMTP ?

2022-04-14 Thread Reio Remma
On 14.04.2022 08:44, Beau Ford wrote: Reio, On Thu, 14 Apr 2022, Reio Remma wrote: ... and that line bombs out my configuration ... here is my entire configuration *including* these two additional lines.  This config works great if I remove the two new lines: How exactly? What's the error?

Re: Why isn't there a simple way to add a catchall alias to OpenSMTP ?

2022-04-13 Thread Beau Ford
Reio, On Thu, 14 Apr 2022, Reio Remma wrote: ... and that line bombs out my configuration ... here is my entire configuration *including* these two additional lines.  This config works great if I remove the two new lines: How exactly? What's the error? Performing sanity check on smtpd co

Re: Why isn't there a simple way to add a catchall alias to OpenSMTP ?

2022-04-13 Thread Reio Remma
On 14.04.2022 08:20, Beau Ford wrote: On Mon, 11 Apr 2022, Reio Remma wrote: Am I misremembering or is that a possibility - to implement the '@' catchall directly inside smtpd.conf without reference to lookup tables or virtusers (or aliases) ? There's this format for inline tables: table

Re: Why isn't there a simple way to add a catchall alias to OpenSMTP ?

2022-04-13 Thread Beau Ford
On Mon, 11 Apr 2022, Reio Remma wrote: Am I misremembering or is that a possibility - to implement the '@' catchall directly inside smtpd.conf without reference to lookup tables or virtusers (or aliases) ? There's this format for inline tables: table "barbaz" { foo = bar, baz = qux }

Re: Why isn't there a simple way to add a catchall alias to OpenSMTP ?

2022-04-11 Thread Stefan Bagdohn
Here is what I do, but maybe slightly different purpose: Listen on internal network, accept every mail and rewrite the recipient to LOCALUSERNAME (match and action bbb). The LOCALUSERNAME has a .forward file with the desired MYUSER@MYDOMAIN address, which is then processed by match and action aa

Re: Why isn't there a simple way to add a catchall alias to OpenSMTP ?

2022-04-11 Thread edgar
Sent via the Samsung Galaxy A10e, an AT&T 4G LTE smartphone Original message From: Beau Ford Date: 4/11/22 10:06 AM (GMT-06:00) To: misc@opensmtpd.org Subject: Re: Why isn't there a simple way to add a catchall alias to OpenSMTP ? Josey,On Mon, 11 Apr 2022, Jo

Re: Why isn't there a simple way to add a catchall alias to OpenSMTP ?

2022-04-11 Thread Reio Remma
On 11.04.2022 18:05, Beau Ford wrote: I feel like I saw an example once where the '@' catchall address was implemented neither in aliases nor in virtusers - there was actually a 2-3 line configuration *directly inside* smtpd.conf that implemented the '@' catchall. Am I misremembering or is th

Re: Why isn't there a simple way to add a catchall alias to OpenSMTP ?

2022-04-11 Thread Beau Ford
Josey, On Mon, 11 Apr 2022, Josey Smith wrote: Might not be what you want, but this two part guide includes a simple catchall inbox in part two: https://prefetch.eu/blog/2020/email-server/ and https://prefetch.eu/blog/2020/email-server-extras/ Thanks - I will look at these. It also does

Re: Why isn't there a simple way to add a catchall alias to OpenSMTP ?

2022-04-11 Thread Reio Remma
On 11.04.2022 10:53, Josey Smith wrote: Might not be what you want, but this two part guide includes a simple catchall inbox in part two: https://prefetch.eu/blog/2020/email-server/ and https://prefetch.eu/blog/2020/email-server-extras/ It also does use a @ in the aliases file. Does this only wo

Re: Why isn't there a simple way to add a catchall alias to OpenSMTP ?

2022-04-11 Thread Josey Smith
Might not be what you want, but this two part guide includes a simple catchall inbox in part two: https://prefetch.eu/blog/2020/email-server/ and https://prefetch.eu/blog/2020/email-server-extras/ It also does use a @ in the aliases file. Does this only work with virtual users? Josey On 4/11/22

Re: Why isn't there a simple way to add a catchall alias to OpenSMTP ?

2022-04-10 Thread Beau Ford
Thomas, On Mon, 11 Apr 2022, Thomas Bohl wrote: Instead of being cranky you should have posted your "very simple, very readable smtpd.conf file". I'm not sure that is on-topic since my config file has no virtusertable, no reference to virtuals, etc. So you'd be rewriting a new config

Re: Why isn't there a simple way to add a catchall alias to OpenSMTP ?

2022-04-10 Thread Thomas Bohl
Instead of being cranky you should have posted your "very simple, very readable smtpd.conf file". This is what a catchall email address looks like and this is a very simple and reasonable to expect this to function. An alias file has never accepted an @. It is therefore not at all reasonable

Why isn't there a simple way to add a catchall alias to OpenSMTP ?

2022-04-10 Thread Beau Ford
I thought this would be very simple ... I would add a line like this to my aliases file: @ username ... and all email addressed to a nonexistent username would, instead, be received by "username". This is what a catchall email address looks like and this is a very simple and reas