Server : titanic_mail.com
Local domain : disco.com
Remote domain : gmail.com or ureka.com
IP : Remote IP : 209.85.231.83 or 82.98.86.164
A/c : test123@disco.com
A/c : testremote@ureka.com
1. Forwarding e-mail to another host :
a. Go to /var/qmail/control directory.
b. Put entries in /var/qmail/control/rcpthosts like: disco.com
c. Now go to /var/qmail/control/smtproutes and put
disco.com:gmail.com or disco.com :ureka.com //will forward to remote server.
d. Or disco.com : 209.85.231.83 or disco.com : 209.85.231.83:1027 //Port mentioned.
2. Users and alias users :-
Qmail uses a different method of handling users and aliases than do other SMTP servers, such as sendmail. In sendmail, all system aliases are defined in the /etc/aliases file. In Qmail, these aliases are defined in "dot-qmail" files, which are found in the /var/qmail/alias directory for system-wide aliases or in the user's home directory for user-specific aliases.
So, here are the steps :
a. cd /var/qmail/alias
touch .qmail-test123
b. Put the following line in that hidden file.
&testremote@ureka.com or @test@disco.com like this. Just for e-mail forwarding.
c. To forward e-mail to local users, you could inject the e-mail directly into a mailbox file or a maildir directory. Inside .qmail-test, type this line:
/var/qmail/mailnames/disco.com/test/ //for mailbox
By : singlehop.com

Responses
0 Respones to "How to configure alias, forwarder, virtual domain etc with Qmail?"
Post a Comment
»Thank you for reading this article
If you have questions or comments, please leave a comment
»You can click on the Subscribe by email to subscribe comments of this post
»You can register directly link pictures, mp3, video on the comment form.
»You may use some HTML tags such
»Please post comments polite and typing accented Vietnamese if possible
»Thank the good faith comment