Article 50KPB associate no-reply@domain.com with authenticated users in postfix through login_maps

associate no-reply@domain.com with authenticated users in postfix through login_maps

by
vincix
from LinuxQuestions.org on (#50KPB)
Hi,

I'm trying to allow access to only some authenticated users to send e-mails using no-reply@domain.com, while allowing them to also use their corresponding e-mail addresses.
Such as:
whatever@domain.com should be allowed to send e-mails both using no-reply@domain.com and whatever@domain.com.

The other authenticated users should use their own e-mail addresses.

So I got it to work for only one e-mail address, but the second one doesn't seem to work, and I'm guessing simply because no-reply@domain.com matches the first user.

In main.cf I've got:
Code:smtpd_sender_login_maps = pcre:/etc/postfix/sender_login_maps.pcreCode:cat /etc/postfix/sender_login_maps.pcre
/no-reply@domain.com/ whatever@domain.com
/no-reply@domain.com/ user@domain.com
/^(.*)/ ${1}Any ideas? Maybe If I could use two files, and if doesn't match the first one, then it goes on to the second?latest?d=yIl2AUoC8zA latest?i=Lpg6aAA6Fus:23DsEbOhiyw:F7zBnMy latest?i=Lpg6aAA6Fus:23DsEbOhiyw:V_sGLiP latest?d=qj6IDK7rITs latest?i=Lpg6aAA6Fus:23DsEbOhiyw:gIN9vFwLpg6aAA6Fus
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