Index: [thread] [date] [author] [stats]
  From: Grzegorz Adamiak <gadamiak@docucollab.com>
  To  : <masqmail@marmaro.de>
  Date: Wed, 27 May 2009 11:30:04 +0200

Re: [masqmail] Mail forwarding

--- markus schnalke [2009-05-26 19:15]:
> Set `listen_addresses' in masqmail.conf to only localhost:
> 
> 	listen_addresses="localhost:25"

I got it this way.

> 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.

I guess this is the case. There are no active users on the machine, 
except my administrative accounts, who would send mail.

What's the difference when running a daemon or not?

>> 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?

Works for me. However, it seems to flood the smarthost when delivery 
fails. Shouldn't it sit in the queue instead just like a regular mail?

> 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.

That worked great! Thanks!

I got another configuration related issue. My server hosts web 
application, which happens to send mail to application users (who are 
not the server users). The server is in the same domain as the external 
mail server — the recipients' addresses username@my.domain are treated 
as local, because the server's FQDN is server.my.domain. I want the mail 
to users to go outside. How to handle that?

I can't list not local users with 'not_local_addresses', because I don't 
manage those users and the list would have to be maintained. However, I 
do know a closed list of local mail recipients. I thought about removing 
FQDN from 'local_hosts' list, and then adding local recipients from 
'alias_file' to 'local_addresses' list. What do you think?

-- Grzegorz


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