Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

qmail forwards... 1

Status
Not open for further replies.

BIS

Technical User
Jun 1, 2001
1,893
NL
Hallo All,
Hopefully someone can clear up my mind as I am getting a tiny bit confused here.

I am simply trying to set up what was once aliases on my old sendmail system.
For example, test1, test2, and test3 were all aliased to the user test_main. There was no such thing as user test1, test2 etc., only user test_main.
Now on qmail I understand I have to do this with forwards.
I also read that I need .qmail files in the users home directory. Do I then need to create every test1, test2 etc. user?
I hope somebody can help me get a clearer picture in my head. In the meantime I guess I am off to
 
So this means that the user 'sales' has to exist?

What is then the procedure for setting up sales@example.com which would go to test1@example.com, test2@example.com etc. ?

In the old way (sendmail and /etc/aliases) I could just create an alias like:

sales: test, test2

Is this not possible?

In the meantime, I think that this will help me out:


has anybody got any experience with this?
 
No, you do NOT create a user named sales.
The .qmail-sales file and its instructions are sufficient to handle the delivery. You add the .qmail-sales file with the domain's defaults and its internal instructions handle the delivery.

You do not need additional software to process this.

Dave.

Surfinbox.com Business Internet Services - National Dialup, DSL, T-1 and more.
 
Ok, I think I am beginning to see the light. I really appreciate your help.
As I undertstand it, if I want to 'alias' test1@example.com to test_main@example.com I would create a file .qmail-test1 that contains &test_main@example.com - correct?
This would mean that I need to create seperate .qmail-test1, .qmail-test2 etc files that all have the same contents &test_main@example.com ?

 
He he - indeed they do.
May I trouble you some more? With this setup, I would need to create one heck of a lot of .qmail files which is not really a problem just sort of messy.
Is there no way to create a group, as in for example in the old /etc/aliases I could have a line like:

mangement: bob, bill, dick, chuck

Or do I really need to create (in this example) 4 seperate .qmail files?
 
Um, well, I believe that you can have more than one forwarding instruction in the .qmail file... If you check out the lifewithqmail website you should be able to verify my thinking.

If you need to have one alias redistribute to multiple recipients, that's doable via the above bit.

If you need to have many aliases do the distribution, then you need multiple .qmail files.

There is also the .qmail-default file which may also be a useful rule if the whole domain is aliases - which is rare.

Surfinbox.com Business Internet Services - National Dialup, DSL, T-1 and more.
 
Allright, think I got it.
Many thanks for your help, really appreciate it.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top