Redirect without local account

This is a discussion on Redirect without local account within the alt.comp.mail.qmail forums, part of the Mail Servers and Related category; Hi, I'd like to like to redirect mails for all users @ one domain let's say testdomain.net (mx ...


Go Back   Usenet Forums > Mail Servers and Related > alt.comp.mail.qmail

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-13-2008
antigg@tlen.pl
 
Posts: n/a
Default Redirect without local account

Hi,

I'd like to like to redirect mails for all users @ one domain let's
say testdomain.net (mx record (testdomain.net . 8888 IN MX
mypostdomain.net)) specify my mail server with installed qmail:
mypostdomain.net) to different one mail account @ different domain
(user@destination.net). How can I set up it with qmail?
Reply With Quote
  #2 (permalink)  
Old 03-13-2008
Dave Sill
 
Posts: n/a
Default Re: Redirect without local account

antigg@tlen.pl writes:

> I'd like to like to redirect mails for all users @ one domain let's
> say testdomain.net (mx record (testdomain.net . 8888 IN MX
> mypostdomain.net)) specify my mail server with installed qmail:
> mypostdomain.net) to different one mail account @ different domain
> (user@destination.net). How can I set up it with qmail?


You want *@testdomain.net redirected to user@destination.net?

On mypostdomain.net you'd create a virtualhosts entry for testdomain,
e.g.:

echo "testdomain.net:alias-testdomain" >>/var/qmail/control/virtualdomains

Next, create a catch-all .qmail file to do the redirection:

echo "&user@destination.net" >/var/qmail/alias/.qmail-testdomain-default

Add testdomain to rcpthosts:

echo testdomain.net >>/var/qmail/control/rcpthosts

And send qmail-send a HUP signal, e.g.:

qmailctl hup

--
Dave Sill Oak Ridge National Lab, Workstation Support
Author, The qmail Handbook <http://web.infoave.net/~dsill>
<http://lifewithqmail.org/>: Almost everything you always wanted to know.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 07:09 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0