Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Tips/Tricks/Mods

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Thread Tools Display Modes
Old 28th December 2011, 23:37
pititis pititis is offline
Senior Member
Join Date: Dec 2010
Location: München
Posts: 364
Thanks: 39
Thanked 89 Times in 68 Posts
Default Postfix -> How stop forged MAIL FROM: for authenticated users



add to main.cf :

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


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:

connect from xxx[xxx]
Dec 28 17:46:35 server postfix/smtpd[2238]: NOQUEUE: reject: RCPT from xxx[]: 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>
Reply With Quote
Sponsored Links


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How cai remove amavis from postfix ? gabrix Server Operation 16 2nd October 2012 10:58
SquirrelMail login not working glenneh Installation/Configuration 13 9th April 2011 21:01
dovecot: lda: Fatal: Unknown user dpicella Installation/Configuration 1 22nd August 2010 03:59
CentoS doesn't send the emails vaio1 Installation/Configuration 18 5th November 2008 18:51
Problem with dcc-client installation (Postfix) swap-as Installation/Configuration 9 18th September 2008 21:47

All times are GMT +2. The time now is 04:37.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.