[Pkg-exim4-users] Local delivery to accounts without home directories

Neil S. Briscoe neil.briscoe at censornet.com
Wed Jan 28 21:53:04 UTC 2009


Sebastian Tennant wrote:
> Quoth Robert Steinmetz AIA <rob at steinmetznet.com>:
>> Sebastian Tennant wrote:
>>> Quoth "Neil S. Briscoe" <neil.briscoe at censornet.com>:
>>>> If the user doesn't have a home directory, you have to give the poor 
>>>> mail system some clue as to where it should deliver things.
>>>>
>>>> Where did you have in mind?
>>> The usual location, i.e., the mbox file in the spool directory;
>>> /var/mail/<user> on a stock Debian box. 
>> There is a configuration option to deliver all mail to /var/spool/<user> 
>> if that is what you want.
> 
> I think that option is already in play, i.e., this is where mail is
> already being delivered, but I've just discovered that it only works if
> the user in question has a home directory.
> 

You will probably find that the router being used calls check_local_user 
a description of which can be found at 
http://exim.choma.hu/exim-html-4.62/doc/html/spec_html/ch15.html

>> I understood you wanted a conditional delivery, to use /var/spool only 
>> if there is no user home directory.
> 
> Yes, sorry.  I realise now that the wording of my original post was not
> at all clear in that respect.

So if you want to find what calls check_local_user first use

/usr/sbin/exim4 -bt user

which will output a list of routers called, ending in the router that is 
actually used.

Now you can check whether that router really does use check_local_user 
and if so, remove that check - if that is what you really want.  Or 
perhaps one of the other options will work for you.

Regards
Neil

-- 
Neil Briscoe
CensorNet Ltd - professional & affordable Web & E-mail filtering
neil.briscoe at censornet.com web: www.censornet.com
tel: 0845 230 9592 / fax: 0845 230 9591 / main office: 0845 230 9590
snail: The Old Post Office, Bristol Rd, Hambrook, Bristol BS16 1RY. UK.
MSN: nbriscoeuk at hotmail.co.uk

CensorNet Ltd is a registered company in England & Wales No. 05518629
VAT registration number 901-2048-78

Any views expressed in this email communication are those
of the individual sender, except where the sender specifically states
them to be the views of a member of CensorNet Ltd.  CensorNet Ltd does not
represent, warrant or guarantee that the integrity of this communication
has been maintained nor that the communication is free of errors or
interference.

------------------------------------------------------------------------------------
Scanned for viruses, spam and offensive content by CensorNet MailSafe

Try CensorNet free for 14 days. Provide Internet access on your terms.
Visit www.censornet.com for more information.




More information about the Pkg-exim4-users mailing list