* Janaka Wickramasinghe <[email protected]>: > Hi All, > > I'm new to postfix, I've currently setup the postfix with SMTP AUTH and > it works very well, when I'm sending mails outside of my own domain. > > However, when I send a mail to my own domain it doesn't ask for the > authentication which is a problem because someone can send a mail using my > email address to another one in the same domain (company). > > Basically my requirement is to allow users to authenticate before > sending mails regardless of the domain. > > Please be kind enough to help me on this..
Create a table of users that must prove they may use an envelope sender: $ man 5 postconf | less +/smtpd_sender_login_maps Then enforce usage of this table in SMTP contexts. Look for: reject_sender_login_mismatch reject_authenticated_sender_login_mismatch reject_unauthenticated_sender_login_mismatch p...@rick -- The Book of Postfix <http://www.postfix-book.com> saslfinger (debugging SMTP AUTH): <http://postfix.state-of-mind.de/patrick.koetter/saslfinger/>
