/etc/exim4/passwd.client permission problem

Kernels & Hardware, configuring network, installing services

/etc/exim4/passwd.client permission problem

Postby Haines » 2019-11-02 17:36

I can't get exim to authenticate outgoing mail.

Here from paniclog:

> 2019-11-02 13:35:01 1iQxIi-0003e8-5y failed to expand "<;
> ${if exists{/etc/exim4/passwd.client}
> {${lookup{$host}nwildlsearch{/etc/exim4/passwd.client}
> {$host_address}}}{} }" while checking a list: failed to
> open /etc/exim4/passwd.client for linear search: Permission
> denied (euid=101 egid=104)

The /etc/exim4/passwd.client file exists;

$ ls -la /etc/eximr4 | grep passwd.client
-rw-r----- 1 root saned 653 Oct 29 12:17 passwd.client

Originally it has 600 permission, but I changed to 610

I don't understand the euid and egid values. I get this:

> $ ps -o pid,euid,ruid,suid,egid,rgid,sgid,cmd
> PID EUID RUID SUID EGID RGID SGID CMD
> 5041 1000 1000 1000 1000 1000 1000 bash
> 5051 1000 1000 1000 1000 1000 1000 ps -o ...

$ /usr/sbin/exim -bh 32.210.114.254
...
>>> host in hosts_connection_nolog? no (option unset)
>>> host in host_lookup? yes (matched "*")
>>> looking up host name for 32.210.114.254
>>> IP address lookup using gethostbyaddr()
>>> IP address lookup failed: h_errno=1
LOG: no host name found for IP address 32.210.114.254
>>> host in host_reject_connection? no (option unset)
>>> host in sender_unqualified_hosts? no (option unset)
>>> host in recipient_unqualified_hosts? no (option unset)
>>> host in helo_verify_hosts? no (option unset)
>>> host in helo_try_verify_hosts? no (option unset)
>>> host in helo_accept_junk_hosts? no (option unset)
220 engels.histomat.net ESMTP Exim 4.92 Fri, 01 Nov 2019 10:21:46 -0400

This led me in a circle lookup failed because my address blocked by spamhaus,
but spamaus says the problem is that exim does not have SMTP AUTH enabld.
This file exists:

$ ls -la | grep authinfo
-rw------- 1 haines haines 3188 Nov 2 13:35 .authinfo

I try:

> # host 32.210.114.254
> Host 254.114.210.32.in-addr.arpa. not found: 3(NXDOMAIN)
>
> PTR record is configured incorrectly. Resolution: Contact ISP
> support or a person in charge of configuring DNS servers in order
> to configure the record according to current DNS infrastructure.

I get feeling my outgoing message does not get to my ISP at all.
Haines
 
Posts: 5
Joined: 2014-07-29 01:57

Re: /etc/exim4/passwd.client permission problem

Postby dilberts_left_nut » 2019-11-02 23:29

Haines wrote:$ ls -la /etc/eximr4 | grep passwd.client
-rw-r----- 1 root saned 653 Oct 29 12:17 passwd.client
This must be readable by your exim process.
AdrianTM wrote:There's no hacker in my grandma...
User avatar
dilberts_left_nut
 
Posts: 5020
Joined: 2009-10-05 07:54
Location: enzed

Re: /etc/exim4/passwd.client permission problem

Postby Haines » 2019-11-06 19:52

> Re: /etc/exim4/passwd.client permission problem
>
> Unread postby dilberts_left_nut » 2019-11-02 18:29
>
> Haines wrote:
> $ ls -la /etc/eximr4 | grep passwd.client
> -rw-r----- 1 root saned 653 Oct 29 12:17 passwd.client
>
> This must be readable by your exim process.[/quote]

Yes, that was the problem I reported. The passwd.client file ownership and permissions
must be such as to make it readable by exim, but this is not the case. I don't know why
the file is in saned group, but that is also the situation on a different system that has a
working SMTP authentication. When I change the permission so that user can write,
e-mail can then be sent, but that is a hack, an incorrecrt work-around. I'm trying to find
out why it is needed.
Haines
 
Posts: 5
Joined: 2014-07-29 01:57


Return to System configuration

Who is online

Users browsing this forum: Pakos and 17 guests

fashionable