Page 1 of 1

[SOLVED] What happen if I edit /etc/resolv.conf ? (spam assassin issue)

Posted: 2018/05/15 22:19:10
by peopleinside
Hi,
I am having an issue with SpamAssasin

Code: Select all

" 0.0 URIBL_BLOCKED          ADMINISTRATOR NOTICE: The query to URIBL was blocked.
                             See
                             http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block
                              for more information."
I tried to do the SSH command:

Code: Select all

host -t TXT 2.0.0.127.multi.uribl.com
the results was that the first IP present on the resolv.conf file is blocked -> Query refused.

The content of my resolv.conf is:

Code: Select all

# Generated by NetworkManager
search it
nameserver [IP1]
nameserver [IP2]
if I try to edit this file into:

Code: Select all

# Generated by NetworkManager
search it
nameserver 127.0.0.1
nameserver [IP1]
nameserver [IP2]
can happen something of wrong? Like VPS not reachable by SSH or I can try to do this?
Will be able to reverse the change again or the edit of this file can create network issue?

Thanks.

Re: What happen if I edit /etc/resolv.conf ?

Posted: 2018/05/18 20:01:00
by jimj
peopleinside wrote: can happen something of wrong? Like VPS not reachable by SSH or I can try to do this?
Will be able to reverse the change again or the edit of this file can create network issue?
I don't know anything about SpamAssassin, so I don't really understand what your SA problem is. However NetworkManager (assuming it's running) will eventually overwrite any change you make to resolv.conf. Editing resolv.conf affects DNS resolution, so if you bork resolve.conf then anything that depends on DNS resolution will also be borked.

Re: What happen if I edit /etc/resolv.conf ?

Posted: 2018/05/18 22:14:08
by peopleinside
Thanks I found the solution is edit file local.cf of spam assassin than set
dns_server 127.0.0.1

Re: What happen if I edit /etc/resolv.conf ?

Posted: 2018/05/19 12:13:53
by scottro
Thanks for coming back and letting us know. I'll mark this as solved. (If you don't mind, what were the changes you made to local.cf, it may help others in the future.)

Re: [SOLVED] What happen if I edit /etc/resolv.conf ? (spam assassin issue)

Posted: 2018/05/19 12:44:46
by peopleinside
Hi, thank you for the reply. I am happy to give the solution.
I found it on this official documentation under Using paragrapher.

The content to add is:
NOTE: If something like NetworkManager is reverting your changes in /etc/resolv.conf or you don't have permission to update the /etc/resolv.conf, you may specify a DNS server in the local.cf:

Code: Select all

dns_server 127.0.0.1
so SpamAssasin will use the VPS or dedicated server IP instead a public DNS who can had exhausted free URIBL requests.

Re: [SOLVED] What happen if I edit /etc/resolv.conf ? (spam assassin issue)

Posted: 2018/05/20 12:15:26
by scottro
Thanks. This may help others in the future.