[exim] aliases and transport help

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Dermot Paikkos
Date:  
À: exim-users
Sujet: [exim] aliases and transport help
Hi

Exim version 4.50 with maildir support.

I am trying to set-up a mail system using Exim/pop3 but am having
trouble figuring out how to make set up the /etc/aliases.

For the pop3 auth all the users will be added to /etc/passwd and so
might be considered local users.

I thought that I could use:

======= aliases ====
mailer-daemon: postmaster
postmaster: root
#     mortals
joe:                joe
jbloggs:            joe
joe.bloggs:            joe
=====================


==== passwd =========
joe:x:1001:1001:Joe,,,:/home/joe:/bin/false
=======================

When I do exim -d+route -bt joe.bloggs@???

internal_search_find: file="/etc/aliases"
type=lsearch key="joe.bloggs"
file lookup required for joe.bloggs
in /etc/aliases
lookup yielded: joe
expanded: joe
file is not a filter file
parse_forward_list: joe
extract item: joe
system_aliases router generated joe@???

So my aliases router returns an address without the server part
(fine) and then sends it off to the primary MX to resolve.

What I had hoped for was for it to return joe and use $home (or
similar) for the maildrop.

Below is my system_aliases router and address_file transport.

Can anyone suggest how I set things up so 1) I get joe.bloggs to
resolve to joe and 2) return /home/joe/Maildir/ to the address_file
(or directory_file) transport.

TIA.
Dp.


system_aliases:
driver = redirect
allow_fail
allow_defer
data = ${lookup{$local_part}lsearch{/etc/aliases}}
user = 102
group = mail
file_transport = address_file


address_file:
driver = appendfile
delivery_date_add
envelope_to_add
return_path_add
maildir_format
directory = /home/$local_part/Maildir/
# file = /var/spool/mail/${local_part}