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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
01-02-2009, 06:09 AM
|
#1
|
Member
Registered: Sep 2004
Posts: 223
Rep:
|
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
|
|
|
01-06-2009, 03:26 AM
|
#2
|
Member
Registered: Feb 2008
Location: JHB South Africa
Distribution: Centos, Kubuntu, Cross LFS, OpenSolaris
Posts: 806
Rep:
|
i do not know how you are passing the message to assp but the condition is
Code:
condition = ${if >={$message_size}{1000K} {1}}
|
|
|
01-06-2009, 04:22 AM
|
#3
|
Member
Registered: Sep 2004
Posts: 223
Original Poster
Rep:
|
Quote:
Originally Posted by datopdog
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.
|
|
|
01-06-2009, 06:13 AM
|
#4
|
Member
Registered: Feb 2008
Location: JHB South Africa
Distribution: Centos, Kubuntu, Cross LFS, OpenSolaris
Posts: 806
Rep:
|
The condition is correct but it all depends on where in the config file this condition is being executed.
|
|
|
01-06-2009, 06:29 AM
|
#5
|
Member
Registered: Feb 2008
Location: JHB South Africa
Distribution: Centos, Kubuntu, Cross LFS, OpenSolaris
Posts: 806
Rep:
|
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.
|
|
|
01-06-2009, 01:20 PM
|
#6
|
Member
Registered: Sep 2004
Posts: 223
Original Poster
Rep:
|
Quote:
Originally Posted by datopdog
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 .
|
|
|
02-06-2009, 03:04 AM
|
#7
|
Member
Registered: Sep 2004
Posts: 223
Original Poster
Rep:
|
Quote:
Originally Posted by datopdog
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.
|
|
|
All times are GMT -5. The time now is 03:47 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|