Hi,
Frist,
add to main.cf :
Code:
smtpd_sender_login_maps = regexp:/etc/postfix/login_maps.regexp
smtpd_sender_restrictions = reject_authenticated_sender_login_mismatch, ...
where
... are the rest of options for smtpd_sender_restrictions
Second:
Create the file /etc/postfix/login_maps.regexp and add inside:
and.. reload postfix
Now if an authenticated user try to change MAIL FROM:, will get:
Code:
connect from xxx[xxx]
Dec 28 17:46:35 server postfix/smtpd[2238]: NOQUEUE: reject: RCPT from xxx[66.66.66.66]: 553 5.7.1 <info@domain.com>: Sender address rejected: not owned by user admin@otherdomain.com; from=<info@domain.com> to=<webmaster@example.com> proto=ESMTP helo=<xxxt>
Cheers
Recent comments
11 hours 44 min ago
16 hours 43 min ago
18 hours 10 min ago
19 hours 3 min ago
20 hours 46 min ago
1 day 1 hour ago
1 day 2 hours ago
1 day 4 hours ago
1 day 17 hours ago
1 day 18 hours ago