Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
mail forwarding with qmail
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
reejajose
n00b
n00b


Joined: 07 Nov 2007
Posts: 11
Location: India

PostPosted: Thu Nov 29, 2007 6:54 am    Post subject: mail forwarding with qmail Reply with quote

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
View user's profile Send private message
di1bert
l33t
l33t


Joined: 16 May 2002
Posts: 963
Location: Oslo, Norway

PostPosted: Thu Nov 29, 2007 10:09 am    Post subject: Reply with quote

Personally Qmail scares me :cry:

I did do a quick Google and found this
It's in portage...

HTH

-m
Back to top
View user's profile Send private message
reejajose
n00b
n00b


Joined: 07 Nov 2007
Posts: 11
Location: India

PostPosted: Thu Nov 29, 2007 12:26 pm    Post subject: how to create a .qmail file Reply with quote

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
View user's profile Send private message
Anarcho
Advocate
Advocate


Joined: 06 Jun 2004
Posts: 2970
Location: Germany

PostPosted: Fri Nov 30, 2007 12:42 pm    Post subject: Re: how to create a .qmail file Reply with quote

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
View user's profile Send private message
newtonian
Guru
Guru


Joined: 19 Jan 2005
Posts: 465
Location: Hokkaido Japan

PostPosted: Mon Jul 07, 2008 12:47 pm    Post subject: add a .qmail file to the user directory Reply with quote

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
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