Re: [exim] Same Name, Different accounts?

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Dave Lugo
Fecha:  
A: exim-users
Asunto: Re: [exim] Same Name, Different accounts?
On Fri, 22 Apr 2005, Blair Cummings wrote:
>
> Help! :)
>
> I'm running Exim 3.36 with SpamAssassin 3.0.2 and ClamAV. (Not that all
> of that matters)
>
> I'm migrating several customers off of a NT box over to my Debian server.
> The problem that I'm having is most of my customers us the email address
> of INFO@???.
>
> I've tried to mess with my /etc/alias file but no luck. Is there something
> I can do in my exim.conf file to set up INFO as an alias by domain to it's
> correct user?
>
> Any help on this would be great!
>



This is what I use for per-domain aliases. I'm sure there are
other examples in the archives:


some macros at the top to make things easier to read:

CFG_DIR = /var/exim/userprefs
RCPT_DOM = ${lc:$domain}
RCPT_LOC = ${lc:${extract{1}{+}{$local_part}}}
RCPT_NC_LOC = ${lc:$local_part}


and then:

system_aliases:
  driver = redirect
  domains = +accepted_here_domains
  allow_fail
  allow_defer
  local_part_suffix = +*
  local_part_suffix_optional
  data = ${lookup{RCPT_NC_LOC}                          \
              lsearch*                                                  \
                {${if exists{CFG_DIR/RCPT_DOM/.DEFAULT/aliases} \
                  {CFG_DIR/RCPT_DOM/.DEFAULT/aliases}           \
                  {CFG_DIR/.DEFAULT/aliases}}} }
        file_transport = address_file
        pipe_transport = address_pipe



It first looks for an aliases file for the recipient domain; if none is
found it falls back to using a global aliases file.


-- 
--------------------------------------------------------
Dave Lugo   dlugo@???    LC Unit #260   TINLC
Have you hugged your firewall today?   No spam, thanks.
--------------------------------------------------------
Are you the police?  . . . .  No ma'am, we're sysadmins.