Richard,

 

Here a two ways to accomplish this:

 

1)

 

Create files of the following form in /var/qmail/alias: 

 

-rw-r--r--  1 alias nofiles   22 Dec  2 16:33 .qmail-mailer-daemon

-rw-r--r--  1 alias nofiles   22 Dec  2 16:33 .qmail-postmaster

-rw-r--r--  1 alias nofiles   22 Dec  2 16:33 .qmail-root

 

Inside each file is the following instruction:

 

 <mailto:&[email protected]> &[email protected]

 

 

2)

 

You can also do the following:

 

1)       http://mydomain.nl/admin-toaster/ in a browser

2)       Go to qmailadmin

3)       Log into postmaster account for 'mydomain.nl'

4)       Go to 'New Forwards'

5)       Add forwards.

a.       Name: mailer-daemon, root or anonymous one at a time (domain should
be there already)

b.       Destination: postmaster

c.        Select 'Add'

 

Eric

 

 

Eric C. Broch

White Horse Technical Consulting

 

From: Richard Vinke [mailto:[email protected]] 
Sent: Thursday, January 15, 2009 11:24 AM
To: [email protected]
Subject: Re: [qmailtoaster] Redirect mail for root

 



Jake Vickers wrote: 

Richard Vinke wrote: 



Hello List, 

I installed QMT on a server with hostname "server6". I created a domain
'mydomain.nl' and added some users. 
Now I want to direct alle the 'root' mail, 'postmaster' mail etc to
'[email protected]'. 

I tried several things, but still no luck. 
How can I do this? 


Under /var/qmail/alias you will have a couple files. They're hidden: 
.qmail-postmaster 
.qmail-root 

Inside those files you will see what email address is defined for each
(aptly named). 
You can also define .qmail-anonymous and .qmail-mailer-daemon 

Thanks!
I changed all the files in /var/qmail/alias and added your two other files.
If I run logwatch, the user [email protected] gets the following mail:

Hi. This is the qmail-send program at server6.
I tried to deliver a bounce message to this address, but the bounce bounced!

<[email protected]
<http://server6/webmail/src/compose.php?send_to=root%40server6.server> 6>:
Sorry, I couldn't find any host named server6.server6. (#5.1.2)

--- Below this line is the original bounce.

Return-Path: <>
Received: (qmail 2760 invoked for bounce); 15 Jan 2009 18:17:58 -0000
Date: 15 Jan 2009 18:17:58 -0000
From: mailer-dae...@server6
To: [email protected]
<http://server6/webmail/src/compose.php?send_to=root%40server6.server> 6
Subject: failure notice

Hi. This is the qmail-send program at server6.
I'm afraid I wasn't able to deliver your message to the following addresses.
This is a permanent error; I've given up. Sorry it didn't work out.

<[email protected]
<http://server6/webmail/src/compose.php?send_to=root%40server6.server> 6>:
Sorry, I couldn't find any host named server6.server6. (#5.1.2)

--- Below this line is a copy of the message.

Return-Path: <[email protected]
<http://server6/webmail/src/compose.php?send_to=root%40server6.server> 6>
Received: (qmail 2757 invoked by uid 0); 15 Jan 2009 18:17:58 -0000
Date: 15 Jan 2009 18:17:57 -0000
Message-ID: <20090115181757.2728.qm...@server6>
To: [email protected]
<http://server6/webmail/src/compose.php?send_to=root%40server6.server> 6
From: [email protected]
<http://server6/webmail/src/compose.php?send_to=logwatch%40server6.server> 6
Subject: Logwatch for server6 (Linux)
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset="iso-8859-1"


################### Logwatch 7.3.6 (05/19/07) #################### 
Processing Initiated: Thu Jan 15 19:17:57 2009
Date Range Processed: yesterday
( 2009-Jan-14 )
Period is day.
Detail Level of Output: 0
Type of Output: unformatted
Logfiles for Host: server6
################################################################## 
........

So, no 'mydomain.nl' but a double 'server6'..... And this mail IS deliverd
to [email protected].
Do I have to change some files in /var/qmail/control?
 






Reply via email to