Re: [exim] Uid in spool header (-H) files

Top Page
Delete this message
Reply to this message
Author: Cronfy
Date:  
To: exim-users
Subject: Re: [exim] Uid in spool header (-H) files
Hello.

> > > In exim 4.54 there was "mailnull 26 6" - exim user that was configured to be used
> > > by exim. But exim 4.66 stores "root 0 0" instead.
> > So, is there anything wrong with my header files that have "root 0 0" record
> > in second line or it is fine?
> If the message was submitted by root, then it is fine. If the message
> came over TCP/IP then it is unusual, because the Exim daemon is not
> normally run as root. What is the output from
> exim -bP exim_user


# /usr/local/exim/sbin/exim -C /usr/local/etc/exim/configure-mail-new -bP exim_user
exim_user = mailnull

> ? What user is your exim daemon running as?


# ps -axwwo user,rgroup,pid,command | grep new
mailnull mail    3251 /usr/local/exim/sbin/exim -bd -C /usr/local/etc/exim/configure-mail-new -oP /var/run/exim-new.pid (exim-4.66-0)


This process is listening on port 225:

# sockstat -l -4 -p 225
USER     COMMAND    PID   FD PROTO  LOCAL ADDRESS         FOREIGN ADDRESS
mailnull exim-4.66- 3251  3  tcp4   192.168.0.254:225     *:*
mailnull exim-4.66- 3251  4  tcp4   80.93.56.173:225      *:*
mailnull exim-4.66- 3251  5  tcp4   80.93.58.56:225       *:*


Log record about receiving test message:

2007-03-12 16:03:02 1HQkB4-0001dR-FF <= o.petrachev@??? H=peterweb.spb.ru (slava.pht) [81.222.2.34] P=esmtpa A=sasl_digest_md5:inside_149 S=769 id=200703121611.33086.o.petrachev@???

And the message's header:

# head -3 /var/spool/mqueue-exim/input/4/1HQkB4-0001dR-FF-H
1HQkB4-0001dR-FF-H
root 0 0
<o.petrachev@???>

--
Cronfy.