Ivan Stepaniuk a écrit : > Hi everybody, I have a postfix+sasl+mysql setup. Could someone point out > how to reject mails when both FROM and TO addresses are @mydomain.tld, > and of course only when the sender is not sasl authenticated? >
if you are talking about envelope addresses (MAIL FROM and RCPT TO), then use a policy service or a milter. postfix access checks act on a single parameter (no combination of fields). if you are talking about header addresses (From:, To:, Cc:), then you'll need a milter or a proxy_filter. (postfix header checks act on a single header at a time) > I don't have a "smtpd_sender_login_maps" map, and some users would want > to send mail with various different FROM domains. > Thanks >