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

General support questions
Post Reply
User avatar
peopleinside
Posts: 51
Joined: 2013/11/13 10:41:22

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

Post by peopleinside » 2018/05/15 22:19:10

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.

jimj
Posts: 72
Joined: 2014/10/01 05:34:57

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

Post by jimj » 2018/05/18 20:01:00

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.

User avatar
peopleinside
Posts: 51
Joined: 2013/11/13 10:41:22

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

Post by peopleinside » 2018/05/18 22:14:08

Thanks I found the solution is edit file local.cf of spam assassin than set
dns_server 127.0.0.1

scottro
Forum Moderator
Posts: 2378
Joined: 2007/09/03 21:18:09
Location: NYC
Contact:

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

Post by scottro » 2018/05/19 12:13:53

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.)
New users should check the FAQ and Read Me First pages

User avatar
peopleinside
Posts: 51
Joined: 2013/11/13 10:41:22

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

Post by peopleinside » 2018/05/19 12:44:46

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.

scottro
Forum Moderator
Posts: 2378
Joined: 2007/09/03 21:18:09
Location: NYC
Contact:

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

Post by scottro » 2018/05/20 12:15:26

Thanks. This may help others in the future.
New users should check the FAQ and Read Me First pages

Post Reply