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.
Reply
 
Thread Tools Display Modes
  #1  
Old 28th December 2011, 22:37
pititis pititis is offline
Senior Member
 
Join Date: Dec 2010
Location: Mnchen
Posts: 364
Thanks: 39
Thanked 90 Times in 68 Posts
 
Default Postfix -> How stop forged MAIL FROM: for authenticated users

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:

Code:
/^(.*)$/
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
Reply With Quote
Sponsored Links
Reply

Bookmarks

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 09:58
SquirrelMail login not working glenneh Installation/Configuration 13 9th April 2011 20:01
dovecot: lda: Fatal: Unknown user dpicella Installation/Configuration 1 22nd August 2010 02:59
CentoS doesn't send the emails vaio1 Installation/Configuration 18 5th November 2008 17:51
Problem with dcc-client installation (Postfix) swap-as Installation/Configuration 9 18th September 2008 20:47


All times are GMT +2. The time now is 10:26.


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