[pfx] Re: Not a very important problem - smtpd_sender_login_maps

2024-01-11 Thread Matus UHLAR - fantomas via Postfix-users

On 11.01.24 14:08, natan via Postfix-users wrote:

I know it may seem quite strange, but I need it for my MX ...

I need a mapping every single email to the same one in pcre for 
sender_login_maps.cf for

reject_sender_login_mismatch
...
smtpd_sender_login_maps = pcre:/etc/postfix/sender_login_maps.cf
...

Yes, I can use an existing map - I have such a map for outgoing e-mails
But I need a thisĀ  "wildcard" for my MX that only works for incoming mail
something like .*@.* -> *.@.*


By "incoming mail" do you mean mail from unauthenticated machines on 
internet?


Why do you want allow them send e-mail as any user?
Because that's what such wildcard would to.


I just don't want stupid bots to try to play...


Perhaps try explaining your problem more deeply?

--
Matus UHLAR - fantomas, uh...@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
Linux - It's now safe to turn on your computer.
Linux - Teraz mozete pocitac bez obav zapnut.
___
Postfix-users mailing list -- postfix-users@postfix.org
To unsubscribe send an email to postfix-users-le...@postfix.org


[pfx] Re: Not a very important problem - smtpd_sender_login_maps

2024-01-11 Thread Viktor Dukhovni via Postfix-users
On Thu, Jan 11, 2024 at 02:08:28PM +0100, natan via Postfix-users wrote:

> I need a mapping every single email to the same one in pcre for
> sender_login_maps.cf for
>
> reject_sender_login_mismatch
> ...
> smtpd_sender_login_maps = pcre:/etc/postfix/sender_login_maps.cf
> ...
> 
> Yes, I can use an existing map - I have such a map for outgoing e-mails
> But I need a thisĀ  "wildcard" for my MX that only works for incoming mail
> something like .*@.* -> *.@.*
> 
> I just don't want stupid bots to try to play...

It is not clear to me what question, if any, you're asking.

With Postfix >= 3.7, a PCRE identity mapping requires no additional
table files:

smtpd_sender_login_maps = pcre:{{/(.*)/ $${1}}}

with earlier releases the requisite file consists of:

/(.*)/  ${1}

-- 
Viktor.
___
Postfix-users mailing list -- postfix-users@postfix.org
To unsubscribe send an email to postfix-users-le...@postfix.org