LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-14-2013, 05:10 AM   #1
contertulio
LQ Newbie
 
Registered: Feb 2013
Posts: 5

Rep: Reputation: Disabled
Postfix Multiple testing in message header


Dear friends, I need to know if there is any form of Postfix concatenate these two terms so they reject those messages that meet both

conditions simultaneously. I am using in 'header_check'
 
Old 03-14-2013, 07:10 AM   #2
vishesh
Member
 
Registered: Feb 2008
Distribution: Fedora,RHEL,Ubuntu
Posts: 661

Rep: Reputation: 66
I think

IF

ENDIF

control works in postfix . Give it a try , in that case multiple IF condition will serve the purpose .

Thanks
 
Old 03-14-2013, 07:58 AM   #3
contertulio
LQ Newbie
 
Registered: Feb 2013
Posts: 5

Original Poster
Rep: Reputation: Disabled
This terms not works because I need to compare the word "from" and "to" in the same condition.
 
Old 03-14-2013, 08:58 AM   #4
vishesh
Member
 
Registered: Feb 2008
Distribution: Fedora,RHEL,Ubuntu
Posts: 661

Rep: Reputation: 66
In that case you should go for postfix firewall postfwd http://postfwd.org/

Thanks
 
Old 03-14-2013, 11:04 AM   #5
contertulio
LQ Newbie
 
Registered: Feb 2013
Posts: 5

Original Poster
Rep: Reputation: Disabled
Could you focus with what parameters should I have to play to make a post on my relay server domain according to sender and recipient domain at a time?
 
Old 03-14-2013, 12:11 PM   #6
vishesh
Member
 
Registered: Feb 2008
Distribution: Fedora,RHEL,Ubuntu
Posts: 661

Rep: Reputation: 66
in postfwd conf file , parameters should look like following

++++++++++++++++++
id=RULE-01 ; sender_domain=linuxmantra.com ; recipient_domain=test.com ; action=REJECT not allowed
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++

You can specify mail headers like FROM , TO as well

Thanks
 
1 members found this post helpful.
Old 03-14-2013, 01:14 PM   #7
contertulio
LQ Newbie
 
Registered: Feb 2013
Posts: 5

Original Poster
Rep: Reputation: Disabled
Ive tried to install postfwd but when I run '/etc/init.d/postfwd-script.sh start' this is the output:

Base class package "Net::Server::Multiplex" is empty.
(Perhaps you need to 'use' the module which defines that package first,
or make that module available in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5).
at /usr/local/postfwd/sbin/postfwd2 line 385
BEGIN failed--compilation aborted at /usr/local/postfwd/sbin/postfwd2 line 385.

What is happening??
 
Old 03-15-2013, 01:07 AM   #8
vishesh
Member
 
Registered: Feb 2008
Distribution: Fedora,RHEL,Ubuntu
Posts: 661

Rep: Reputation: 66
perl -MCPAN -e shell
cpan> install Net::Server::Multiplex

This will install require module from net

Thanks
 
1 members found this post helpful.
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Postfix header checking script subcon42 Linux - Server 6 08-30-2010 08:00 AM
postfix X-extra-header-information: paul_mat Linux - Software 1 05-16-2006 04:10 PM
postfix header check sirjosi Linux - Security 6 12-02-2003 07:09 PM
modify the telnet header message? doris Linux - Security 1 06-09-2002 01:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 02:14 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration