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