allow all users to use a certain e-mail address - postfix sender login maps
by vincix from LinuxQuestions.org on (#57M05)
Hi,
I'm using the following two postfix directives:
Code:smtpd_sender_restrictions = reject_authenticated_sender_login_mismatch
smtpd_sender_login_maps = pcre:/etc/postfix/misc/sender_login_maps.pcreI'm able to restrict all accounts to their corresponding e-mail address, like this:
Code:/^(.*)$/ ${1}So myuser@domain.com can send an e-mail using the MAIL FROM: myuser@domain.com.
But what I'm looking for is having a general e-mail address that all accounts can use, such as "noreply@domain.com".
The problem is that I cannot set any regex (I think) on the right side, where the users are.
Is there any way I can achieve this without having to install mysql or something to that effect that would do that?
Moreover, if I wanted to allow both scenarios - all accounts can use their corresponding e-mail addresses + the noreply@domain.com address - how would I go about doing this?
Thanks!


I'm using the following two postfix directives:
Code:smtpd_sender_restrictions = reject_authenticated_sender_login_mismatch
smtpd_sender_login_maps = pcre:/etc/postfix/misc/sender_login_maps.pcreI'm able to restrict all accounts to their corresponding e-mail address, like this:
Code:/^(.*)$/ ${1}So myuser@domain.com can send an e-mail using the MAIL FROM: myuser@domain.com.
But what I'm looking for is having a general e-mail address that all accounts can use, such as "noreply@domain.com".
The problem is that I cannot set any regex (I think) on the right side, where the users are.
Is there any way I can achieve this without having to install mysql or something to that effect that would do that?
Moreover, if I wanted to allow both scenarios - all accounts can use their corresponding e-mail addresses + the noreply@domain.com address - how would I go about doing this?
Thanks!