Koozali.org: home of the SME Server

Obsolete Releases => SME Server 7.x => Topic started by: filloweb on February 25, 2010, 03:05:32 PM

Title: admin-backup@domain REDIRECT
Post by: filloweb on February 25, 2010, 03:05:32 PM
Hi all.

I'm looking for an how-to that explain the right way to redirect ONLY the backup mail to another user.

Could you help me ?!?!

Thanks a lot.
filloweb
Title: Re: admin-backup@domain REDIRECT
Post by: CharlieBrady on February 25, 2010, 03:08:56 PM
echo '&user@domain.name' > ~admin/.qmail-backup
Title: Re: admin-backup@domain REDIRECT
Post by: filloweb on February 25, 2010, 03:13:53 PM
Sorry but I don't understand this command...

Could you quickly explain me this command ?

Thanks a lot.
filloweb
Title: Re: admin-backup@domain REDIRECT
Post by: cactus on February 25, 2010, 06:48:49 PM
echo '&user@domain.name' > ~admin/.qmail-backup
If you execute above command it will add the e-mailadress to the account as a forward, be sure to replace the address with the desired address, see also: http://qmail.3va.net/man/man5/dot-qmail.html
Title: Re: admin-backup@domain REDIRECT
Post by: piran on February 25, 2010, 06:53:10 PM
What is the command to undo or remove that action?
Title: Re: admin-backup@domain REDIRECT
Post by: cactus on February 25, 2010, 06:55:18 PM
What is the command to undo or remove that action?
Open the file in a text editor and remove the line.
Title: Re: admin-backup@domain REDIRECT
Post by: piran on February 25, 2010, 06:57:37 PM
Noted, wiki snippet fodder?
Title: Re: admin-backup@domain REDIRECT
Post by: CharlieBrady on February 25, 2010, 07:07:45 PM
Open the file in a text editor and remove the line.

No, delete the file.
Title: Re: admin-backup@domain REDIRECT
Post by: cactus on February 25, 2010, 07:14:50 PM
No, delete the file.
Even if other lines might be in there? I know your suggested command replaces all the content, but there could be more lines added or am I wrong here?
Title: Re: admin-backup@domain REDIRECT
Post by: Stefano on February 25, 2010, 07:50:23 PM
Even if other lines might be in there? I know your suggested command replaces all the content, but there could be more lines added or am I wrong here?

if you replace the content with Charlie's command, there will be only one line :)

OT: cactus.. we have almost the same number of post ;-)