Exim acl_check_conn condition

Problems/questions regarding the MailCleaner configuration

Moderators: FlorianB, Pascal, bourgeois, mentor

PKej
Posts: 6
Joined: Tue Dec 08, 2015 9:20 am
How did you hear about Mailcleaner: web magazine

Exim acl_check_conn condition

Postby PKej » Tue Dec 08, 2015 9:44 am

Hello, I found very effective putting 10s delay before accepting SMTP connection. I know, it's nothing new. But I need exclude IP address of my internal mail server since I don't want SMTP delay when relaying mails.

In exim_stage1.conf_template I have acl_check_conn like this:

Code: Select all

accept hosts = <; __SMTP_CONN_ACCESS__; 127.0.0.1
       delay = 10s

How can I add this condition in acl_check_conn? I am totally lost in condition syntax of exim config. :(

Code: Select all

if (sender_IP == mail_server_IP) then
  delay = 0s
else
  delay = 10s
end if


EDIT:

Tried this, but it must have some fatal error because MTA didn't accept any SMTP connection after applying.

Code: Select all

condition = ${if eq {$sender_address}{192.168.1.12} {delay = 0s}{delay = 10s}}

Return to “Configuration”

Who is online

Users browsing this forum: No registered users and 6 guests