Index: [thread] [date] [author] [stats]
  From: markus schnalke <meillo@marmaro.de>
  To  : <masqmail@marmaro.de>
  Date: Tue, 26 May 2009 19:15:20 +0200

Re: [masqmail] Mail forwarding

[2009-05-26 14:50] Grzegorz Adamiak <gadamiak@docucollab.com>
> 
> I need advice on MasqMail configuration. I run a server machine (Ubuntu 
> 9.04 Server) and need to achieve the following:
> 
> 1. Handle only local mail (no relay from other machines) from system 
> services.

Set `listen addresses' in masqmail.conf to only localhost:

	listen addresses="localhost:25"

Or if all mail will be sent by using the local `sendmail' command, and
you don't need to listen on a local port, then you don't need to run
Masqmail as a daemon.


> This is the mail to root, postmaster etc. which I redirect to a 
> specified local 'administrator' user in 'alias file'. My alias file is a	01X 
> standard /etc/aliases:
> 
> 	postmaster: root
> 	root: administrator

Looks alright.


> 2. Archive a copy of any mail -- both to local and external recipients 
> -- to an external account.
> 
> I use 'log user = archive@my.domain' for that and it puts every copy in 
> the account's 'Sent' folder.

So, this issue is already solved?


> 3. Forward *a copy* of every mail for my local 'administrator' user to 
> an external account. I want to store it both in local mbox (on the 
> server) and on remote account. How to do that?

add a line to /etc/aliases:

	administrator: \administrator, admin@example.org

this sends all mail to administrator to himself and to the remote
address. Note the backslash to prevent recursion, which would result
in ignoring this item.


meillo

signature.asc

Index: [thread] [date] [author] [stats]