Bug#1106865: /etc/exim4/conf.d/transport/30_exim4-config_mail_spool: set current_directory in mail_spool transport

s schaarsc at gmx.de
Fri May 30 17:30:04 BST 2025


Package: exim4-config
Version: 4.98.2-1
Severity: wishlist
File: /etc/exim4/conf.d/transport/30_exim4-config_mail_spool

Dear Maintainer,

I'd like to suggest to add "current_directory = /" to 30_exim4-config_mail_spool.

Background:
 - https://github.com/Exim/exim/wiki/Q0423: check_local_user sets work-dir to $HOME
 - if $HOME is not accessible, mail_spool fails with "Permission denied: failed to chdir to /home/..."
 - in my opinion there is no need to chdir to /home/, if the mail is going to be delivered to /var/mail/

Notes:
 - 30_exim4-config_maildir_home has a hint about this "issue". 
 - there is no hint in 30_exim4-config_mail_spool.


-- Package-specific info:
Exim version 4.98.2 #2 built 29-Mar-2025 12:22:55



More information about the Pkg-exim4-maintainers mailing list