Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
exim with alias
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Rooney
Apprentice
Apprentice


Joined: 07 Aug 2003
Posts: 193
Location: Sheffield, UK

PostPosted: Sat Jan 29, 2005 7:22 pm    Post subject: exim with alias Reply with quote

how do i create alias for users currently im using exim+courier-imapd and maildir.

e.g. i have a user.

bob@domain.co.uk - where as this is a system user and i want the alias robert@domain.co.uk to go to the same maildir.
Back to top
View user's profile Send private message
servermonk
Apprentice
Apprentice


Joined: 07 Nov 2003
Posts: 182
Location: MI

PostPosted: Sat Jan 29, 2005 7:43 pm    Post subject: Reply with quote

I have a router setup in my conf that looks like this:

Code:
virtual:
  driver = redirect
  domains = dsearch;/etc/exim/valiases
  data = ${lookup{$local_part}lsearch*{/etc/exim/valiases/$domain}}
  group = mail
  file_transport = address_file
  pipe_transport = address_pipe


where /etc/exim/valiases/ contains files named whateverdomain.com that contain:

Code:
address: user


so in this case you would have a file there named "domain.co.uk" that contained:
Code:
bob: robert


hope that helps :)
_________________
Gentoo makes me wanna shoop.
Back to top
View user's profile Send private message
Rooney
Apprentice
Apprentice


Joined: 07 Aug 2003
Posts: 193
Location: Sheffield, UK

PostPosted: Sat Jan 29, 2005 7:58 pm    Post subject: Reply with quote

This is what i have done but i just doesent seem to work.

Code:

system_aliases:
  driver = redirect
  allow_fail
  allow_defer
  data = ${lookup{$local_part}lsearch{/etc/exim/aliases}}
  user = exim
  file_transport = address_file
  pipe_transport = address_pipe


and then completed the file /etc/exim/aliases with the relevant names e.g.

Code:
bob:        robert
Back to top
View user's profile Send private message
servermonk
Apprentice
Apprentice


Joined: 07 Nov 2003
Posts: 182
Location: MI

PostPosted: Sat Jan 29, 2005 8:26 pm    Post subject: Reply with quote

I have that system_aliases router as well but try adding the virtual router under it and see if that works better for you :)
_________________
Gentoo makes me wanna shoop.
Back to top
View user's profile Send private message
Rooney
Apprentice
Apprentice


Joined: 07 Aug 2003
Posts: 193
Location: Sheffield, UK

PostPosted: Sun Jan 30, 2005 3:06 pm    Post subject: Reply with quote

servermonk wrote:
I have that system_aliases router as well but try adding the virtual router under it and see if that works better for you :)


still no luck when i do this mail doesent appear at the system user never mind the aliases :) lol, any other ideas
Back to top
View user's profile Send private message
servermonk
Apprentice
Apprentice


Joined: 07 Nov 2003
Posts: 182
Location: MI

PostPosted: Sun Jan 30, 2005 3:41 pm    Post subject: Reply with quote

Can you post a snipit of the exim_main.log so I can see what's not working? I can also put a copy of my full exim.conf up for you if you like.
_________________
Gentoo makes me wanna shoop.
Back to top
View user's profile Send private message
servermonk
Apprentice
Apprentice


Joined: 07 Nov 2003
Posts: 182
Location: MI

PostPosted: Sun Jan 30, 2005 5:12 pm    Post subject: Reply with quote

well, here's my conf file anyway. I'm sure it could help a little ;)

http://genfu.org/files/exim.conf

Let me know if you have any questions about it. It's using maildir, clamAV, DNSRBLs and spamassassin.
_________________
Gentoo makes me wanna shoop.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum