LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 04-28-2011, 07:02 AM   #1
matt_heys
LQ Newbie
 
Registered: Jan 2008
Posts: 20

Rep: Reputation: 0
Exim4 virtual aliases configuration help


Hello all, I want to set-up virtual aliases in a specific way.

I want localpart@domainpart.com to be handled like this.

/etc/valiases/domainpart.com/localpart

where localpart is a file with the final destination email in it.

I want to do it this way to make it easier for when I manage this with a custom PHP page I am going to write, deleting an entry will just be a case of deleting the file, not finding a corresponding line out of a file and removing the file.

My main goal is to create a onetime email address generator that I can use to sign up to stuff on the internet, then when spam starts coming to that address I can just delete it.

This is what I had come up with so far, but it doesn't seem to be working when I test using sendmail, I must admit I don't know what all the options are and I've cobbled bits from different examples on the internet.

Code:
  virtual_aliases:
    driver = redirect
    allow_defer
    allow_fail
    require_files = "/etc/valiases/$domain/$local_part"
    data = ${lookup{*}lsearch{/etc/valiases/$domain//$local_part}}
    file_transport = address_file
    group = mail
    pipe_transport = virtual_address_pipe
But this is my exim log

Code:
2011-04-28 07:45:43 1QFPfD-0006Zl-69 <= root@spambegone.co.uk U=root P=local S=363
2011-04-28 07:45:43 1QFPfD-0006Zl-69 ** test@spambegone.co.uk: Unknown user
2011-04-28 07:45:43 1QFPfD-0006Zn-R5 <= <> R=1QFPfD-0006Zl-69 U=exim P=local S=1174
2011-04-28 07:45:44 1QFPfD-0006Zn-R5 User 0 set for local_delivery transport is on the never_users list
2011-04-28 07:45:44 1QFPfD-0006Zn-R5 == root@spambegone.co.uk R=localuser T=local_delivery defer (-29): User 0 set for local_delivery transport is on the never_users list
2011-04-28 07:45:44 1QFPfD-0006Zl-69 Completed
 
Old 04-28-2011, 10:05 AM   #2
matt_heys
LQ Newbie
 
Registered: Jan 2008
Posts: 20

Original Poster
Rep: Reputation: 0
Solved

Ahh, fixed it, not sure which one of the several things I did was the actual cure but it is working now.

Code:
I changed the format of the text inside the file to.
localpart:  to@emailaddress.com

and
data = ${lookup{$local_part}lsearch{/etc/valiases/$domain/$local_part}}

instead of just.
to@emailaddress.com

Code:
My pipe transport didn't exist so had to fix that.
Code:
And hadn't added my domain to the local domains list.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Virtual Postfix, mysql, and Virtual Aliases kipphudson Linux - Server 4 10-15-2010 11:36 PM
exim4 configuration ash4stuff Linux - Server 1 09-18-2008 02:30 AM
exim4 and aliases uid0sd Linux - Software 0 05-05-2008 09:53 AM
Exim4 virtual users with openwebmail haeppy Linux - Software 0 09-15-2005 06:54 AM
Exim4 Configuration dun_noe Debian 2 01-22-2005 12:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 02:06 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration