LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-02-2009, 06:09 AM   #1
graziano1968
Member
 
Registered: Sep 2004
Posts: 223

Rep: Reputation: 30
exim question (for exim gurus)


Hello

at the top of my exim.conf I am using this

local_interfaces = 127.0.0.1
daemon_smtp_ports = 125

to pass all the email to an antispam proxy (ASSP).

It pass all the email to port 125 .
I would pass to port 125 ONLY email which have 1 or more attachments bigger than 1 MB . Is it possible using an "if" condition ? How ?


Thank you
 
Old 01-06-2009, 03:26 AM   #2
datopdog
Member
 
Registered: Feb 2008
Location: JHB South Africa
Distribution: Centos, Kubuntu, Cross LFS, OpenSolaris
Posts: 806

Rep: Reputation: 41
i do not know how you are passing the message to assp but the condition is
Code:
condition  = ${if >={$message_size}{1000K} {1}}
 
Old 01-06-2009, 04:22 AM   #3
graziano1968
Member
 
Registered: Sep 2004
Posts: 223

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by datopdog View Post
i do not know how you are passing the message to assp but the condition is
Code:
condition  = ${if >={$message_size}{1000K} {1}}
Thank you . I'm trying this now ...


Code:
condition  = ${if <={$message_size}{1000K} 
{

local_interfaces = 127.0.0.1
daemon_smtp_ports = 125

}
}
however messages bigger than 1000K are still passing to port 125 (ASSP)

Last edited by graziano1968; 01-06-2009 at 04:24 AM.
 
Old 01-06-2009, 06:13 AM   #4
datopdog
Member
 
Registered: Feb 2008
Location: JHB South Africa
Distribution: Centos, Kubuntu, Cross LFS, OpenSolaris
Posts: 806

Rep: Reputation: 41
The condition is correct but it all depends on where in the config file this condition is being executed.
 
Old 01-06-2009, 06:29 AM   #5
datopdog
Member
 
Registered: Feb 2008
Location: JHB South Africa
Distribution: Centos, Kubuntu, Cross LFS, OpenSolaris
Posts: 806

Rep: Reputation: 41
I have just checked, what you are trying to do is NOT achievable, ASSP is the one accepting the mail on port 25 not exim, it is ASSP that passes the scanned mail to exim.

If exim was listening to port 25 then passing the mail to ASSP your scenario could work.
 
Old 01-06-2009, 01:20 PM   #6
graziano1968
Member
 
Registered: Sep 2004
Posts: 223

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by datopdog View Post
I have just checked, what you are trying to do is NOT achievable, ASSP is the one accepting the mail on port 25 not exim, it is ASSP that passes the scanned mail to exim.

If exim was listening to port 25 then passing the mail to ASSP your scenario could work.
on cPanel servers , using

local_interfaces = 127.0.0.1
daemon_smtp_ports = 125

at the very top of exim.conf , ASSP works great. No other configuration is possible with cpanel servers.

Now , what I am trying to do , is to pass all attachments greater than 1 MB to exim (without passing to ASSP) and all other email to ASSP .

I put the condition above in the first lines of exim.conf .
 
Old 02-06-2009, 03:04 AM   #7
graziano1968
Member
 
Registered: Sep 2004
Posts: 223

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by datopdog View Post
I have just checked, what you are trying to do is NOT achievable, ASSP is the one accepting the mail on port 25 not exim, it is ASSP that passes the scanned mail to exim.

If exim was listening to port 25 then passing the mail to ASSP your scenario could work.
Currently I have


email ---> port 25 (ASSP) ---> exim port 125


I would have this


email ---> port 25 (EXIM) ... then

if email greater than 1000KB --> EXIM
if email less than 1000kB --> ASSP > EXIM

Any way to reach this goal ?

Last edited by graziano1968; 02-06-2009 at 03:05 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Etch + exim4 + sa-exim: sa-exim is not loading Thalagyrt Debian 0 04-18-2007 10:12 AM
Exim configuration question chuckee Linux - Software 0 11-12-2006 10:21 PM
exim configuration question greg.hellings Linux - Software 0 11-05-2004 04:15 PM
exim is failed !!! error:package exim is not installed apache Linux - Software 0 06-24-2004 05:55 AM
Exim question. hostonlinux Debian 1 10-17-2003 10:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:47 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