Article 57M05 allow all users to use a certain e-mail address - postfix sender login maps

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!latest?d=yIl2AUoC8zA latest?i=ISCe1W6CZmM:USURJejwcE0:F7zBnMy latest?i=ISCe1W6CZmM:USURJejwcE0:V_sGLiP latest?d=qj6IDK7rITs latest?i=ISCe1W6CZmM:USURJejwcE0:gIN9vFwISCe1W6CZmM
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments