RE: [exim] user Debian-exim

Pàgina inicial
Delete this message
Reply to this message
Autor: Alex
Data:  
A: 'Christian Recktenwald'
CC: exim-users
Assumpte: RE: [exim] user Debian-exim
I want to save the mail data in files owned by "mail" so "courier" can read
it.

Maildir and its childs directories are chmod 0775 and exim4 says that:

2005-12-06 18:51:21 1Ejgx9-0003oJ-LV ==
/home/virtual/domain.com/users/webmaster/Maildir/ <webmaster@???>
R=virtual_user T=address_directory defer (13): Permission denied: failed to
open tmp/1133891481.H898685P14672.idf (10 tries)

That users doesn't not exists in the system, they are virtual users.

If I set Maildir and its childs to 0777 exim4 cand write the files but
"courier" can't read them because they are readable only by exim.

-rw------- 1 Debian-exim Debian-exim 266 2005-12-06 17:27
1133886426.H883172P14302.idf:2,

I have:

mail_spool:    
  debug_print = "T: appendfile for $local_part@$domain"    
  driver = appendfile
  delivery_date_add    
  envelope_to_add              
  return_path_add   
  group = mail 
  mode = 0660
  mode_fail_narrower = false
  directory = /home/virtual/$domain/users/$local_part/Maildir
  maildir_format


-----Mensaje original-----
De: Christian Recktenwald [mailto:satalk-dist@citecs.de]
Enviado el: martes, 06 de diciembre de 2005 18:40
Para: Alex
CC: exim-users@???; Christian Recktenwald
Asunto: Re: [exim] user Debian-exim

On Tue, Dec 06, 2005 at 05:55:32PM +0100, Alex wrote:
> Hi,
>
> I'm setting up exim4 in Debian and I'm using /home/virtual/user/Maildir/

to
> handle the mail. That directory is owned by "mail" and I can't get exim to
> run as "mail" even if I put "user = mail" in the config.
>
> Do I need to recompile to make it run as "mail"?


As I understand you want exim to create files owned by mail.
Exim has not to run as user mail.
The "user = mail" setting is recognized only if exim can't
figure out what /other/ uid to use.
My guess about what you really want is:
- contents of /home/virtual/user/Maildir should belong to
the corresponding user
so:
- for exim to deliver Maildir and it's subdirs must be writable
- so set group "mail" to them and and make them group writable
- add "group = mail" and "mode = 0660" to your transport
- be careful to have the 'others' executable bit set
on the whole /home/virtual/user/Maildir path
- watch /var/log/exim4/mainlog while testing ;-)

-- 
Christian Recktenwald      :                         :
citecs GmbH                : satalk-dist@???   :
Unternehmensberatung fuer  : voice +49 711 601 2090  : Boeblinger Strasse
189
EDV und Telekommunikation  : fax   +49 711 601 2092  : D-70199 Stuttgart