Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: exim: users

using name of host in spamd_address

 

 

exim users RSS feed   Index | Next | Previous | View Threaded


marcin at mejor

Apr 4, 2012, 7:24 AM

Post #1 of 4 (268 views)
Permalink
using name of host in spamd_address

Hello!
I'd like to use hostname instead numeric ip in spamd_address variable.
I've added host to /etc/hosts file:
$ grep sa /etc/hosts
127.0.0.1 sa
$ ping sa
PING sa (127.0.0.1) 56(84) bytes of data.
64 bytes from meteor.mejor.pl (127.0.0.1): icmp_req=1 ttl=60 time=0.000 ms
64 bytes from meteor.mejor.pl (127.0.0.1): icmp_req=2 ttl=60 time=0.000 ms
^C

In exim.conf, in main section i've got:
spamd_address = sa 783
With such configuration exim-4,77 throws to log:
2012-04-04 16:20:59 1SFR4t-0003rv-M8 spam acl condition: warning - spamd
connection to sa, port 783 failed: Network is unreachable

I didn't have such problem with configuring connection to sql server,
hostname works.
Is it possible to use hostname in spamd_address or i'm doing it in wrong
way?

Thanks,
Marcin

--
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/


marcin at mejor

May 31, 2012, 7:54 AM

Post #2 of 4 (198 views)
Permalink
Re: using name of host in spamd_address [In reply to]

W dniu 04.04.2012 16:24, Marcin Mirosław pisze:
> Hello!
> I'd like to use hostname instead numeric ip in spamd_address variable.
> I've added host to /etc/hosts file:
> $ grep sa /etc/hosts
> 127.0.0.1 sa
> $ ping sa
> PING sa (127.0.0.1) 56(84) bytes of data.
> 64 bytes from meteor.mejor.pl (127.0.0.1): icmp_req=1 ttl=60 time=0.000 ms
> 64 bytes from meteor.mejor.pl (127.0.0.1): icmp_req=2 ttl=60 time=0.000 ms
> ^C
>
> In exim.conf, in main section i've got:
> spamd_address = sa 783
> With such configuration exim-4,77 throws to log:
> 2012-04-04 16:20:59 1SFR4t-0003rv-M8 spam acl condition: warning - spamd
> connection to sa, port 783 failed: Network is unreachable
>
> I didn't have such problem with configuring connection to sql server,
> hostname works.
> Is it possible to use hostname in spamd_address or i'm doing it in wrong
> way?

Hi!
I've found bugs about it[1][2]. They are marked as fixed in 4.77 but it
looks for me they aren't fixed. I still can't use hostname in
spamd_address. Could it be those bugs are fixed partially (i mean was
added expansion of spamd_address only)
Regards,
Marcin

[1] - http://bugs.exim.org/show_bug.cgi?id=434
[2] - http://bugs.exim.org/show_bug.cgi?id=433

--
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/


jgh at wizmail

May 31, 2012, 3:25 PM

Post #3 of 4 (200 views)
Permalink
Re: using name of host in spamd_address [In reply to]

On 2012-05-31 15:54, Marcin Mirosław wrote:
>> I'd like to use hostname instead numeric ip in spamd_address variable.

> I've found bugs about it[1][2]. They are marked as fixed in 4.77 but it
> looks for me they aren't fixed. I still can't use hostname in
> spamd_address. Could it be those bugs are fixed partially (i mean was
> added expansion of spamd_address only)

That's how I read the current state of play. I suggest opening a new
"feature request" bug specifically for name support. In the meantime,
can you use a dnsdb lookup?
--
Jeremy


--
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/


marcin at mejor

Jun 4, 2012, 3:48 AM

Post #4 of 4 (195 views)
Permalink
Re: using name of host in spamd_address [In reply to]

W dniu 01.06.2012 00:25, Jeremy Harris pisze:
> On 2012-05-31 15:54, Marcin Mirosław wrote:
>>> I'd like to use hostname instead numeric ip in spamd_address variable.
>
>> I've found bugs about it[1][2]. They are marked as fixed in 4.77 but it
>> looks for me they aren't fixed. I still can't use hostname in
>> spamd_address. Could it be those bugs are fixed partially (i mean was
>> added expansion of spamd_address only)
>
> That's how I read the current state of play. I suggest opening a new
> "feature request" bug specifically for name support. In the meantime,
> can you use a dnsdb lookup?

I've filled bug 1259. I'm calling $spam_score about 5 times, docs says:
"The spam condition caches its results unless expansion in spamd_address
was used." I'd like to spare some cpu cycles.
Thanks,
Marcin

--
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/

exim users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.