View previous topic :: View next topic |
Author |
Message |
reejajose n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/gallery/Loony Toons/Looney_Toons_-_Tweety.gif)
Joined: 07 Nov 2007 Posts: 11 Location: India
|
Posted: Thu Nov 29, 2007 6:54 am Post subject: mail forwarding with qmail |
|
|
Hi all,
I installed both vpopmail and qmail on my gentoo apache server.
And created domains using vpopmail. Now I want mail forwarding feature using .qmail.
Basically I am a java programmer. I read man dot-qmail and man qmail-local but it confuses me a lot.
My requirement is as below ,
I have a domain in vpopmail and its up and can see using browser (for eg: http://example.com)
If I send mail to any of email account on this domain, then it should forward to my gmail account.
If anybody knows the solution please help me.
Thank you,
Reeja. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
di1bert l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/1322078658465db3da4a87f.gif)
Joined: 16 May 2002 Posts: 963 Location: Oslo, Norway
|
Posted: Thu Nov 29, 2007 10:09 am Post subject: |
|
|
Personally Qmail scares me
I did do a quick Google and found this
It's in portage...
HTH
-m |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
reejajose n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/gallery/Loony Toons/Looney_Toons_-_Tweety.gif)
Joined: 07 Nov 2007 Posts: 11 Location: India
|
Posted: Thu Nov 29, 2007 12:26 pm Post subject: how to create a .qmail file |
|
|
Thanks dilbert,
Do you know how to create a .qmail file in virtual domain.
I reffered following man pages but couldn't find out correct information.
i)http://www.ezmlm.org/man/man5/dot-qmail.5.html
ii)http://www.qmail.org/man/man8/qmail-local.html
Shall I move my post to portage forums for getting correct answer
Can you please provide the links
Thanks
Reeja |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Anarcho Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/1030393113423afb9086043.jpg)
Joined: 06 Jun 2004 Posts: 2970 Location: Germany
|
Posted: Fri Nov 30, 2007 12:42 pm Post subject: Re: how to create a .qmail file |
|
|
reejajose wrote: | Do you know how to create a .qmail file in virtual domain. |
Each virtual domain should have a corresponding directory, e.g.
/var/vpopmail/domains/example.com
There should be already a .qmail file. _________________ ...it's only Rock'n'Roll, but I like it! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
newtonian Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/gallery/The Matrix/movie_the_matrix_agent_smith.gif)
Joined: 19 Jan 2005 Posts: 465 Location: Hokkaido Japan
|
Posted: Mon Jul 07, 2008 12:47 pm Post subject: add a .qmail file to the user directory |
|
|
Hi-
If you'd like to setup forwarding for an individual user you can do this:
Code: | echo "&myusername@anotherdomain.com" > /var/vpopmail/domains/mydomain.com/myusername/.qmail |
if the user would like his/her email to go to 2 different external addresses you can do this:
Code: | echo "&myusername@yetanotherdomain.com" >> /var/vpopmail/domains/mydomain.com/myusername/.qmail |
if the user would like his/her email to go to 3 different external addresses you can do this after doing steps 1 and 2 above
Code: | echo "&myusername@differentdomain.com" >> /var/vpopmail/domains/mydomain.com/myusername/.qmail |
If you want to do this coding with Java. You can use the Java File class to read the file and edit it as necessary.
Cheers, |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|