Add new comment

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Submitted by Stefanos Spanoudakis (not registered) on Fri, 2009-04-10 20:00.

If you need to match all the senders from your domain and not just specific ones do the following:

in the file /etc/postfix/disclaimer_addresses add your domains like:

example.com

sub.example.com

 

and then change the following line at /etc/postfix/disclaimer script:

original: from_address=`grep -m 1 "From:" in.$$ | cut -d "<" -f 2 | cut -d ">" -f 1`

after the change: from_address=`grep -m 1 "From:" in.$$ | cut -d "<" -f 2 | cut -d ">" -f 1 | cut -d "@" -f 2`

Please do not use the comment function to ask for help! If you need help, please use our forum.
Comments will be published after administrator approval.

Reply

*
*
The content of this field is kept private and will not be shown publicly.


*

  • Images can be added to this post.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <img> <div>
  • Lines and paragraphs break automatically.