Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 6 Nov 2009 14:30:56 +0700 (ICT)
From:      Olivier Nicole <Olivier.Nicole@cs.ait.ac.th>
To:        questions@freebsd.org
Subject:   How to configure sendmail
Message-ID:  <200911060730.nA67Uu2O037135@banyan.cs.ait.ac.th>

next in thread | raw e-mail | index | archive | help
Hi,

I have this stupide little configuration that I cannot manage to get
working.

I have one machine a.domain.net that I want to be able to deliver
system mail (like cron and so on) with the following rules:

- user1 on a.domain.net has the same username as on domain.net; I
  want that mail sent to user1 is delivered to user1@domain.net;

- user2 on a.domain.net has no corresponding user on domain.net, but
  it has an alias defined; I want to mail sent to user2 is delivered
  to the alias.

- of course, mail addressed to a full address x@y.z should be
  delivered accordingly, eventually using a mail relay.

I tried using masquerade in submit.mc, user1 is then rewritten as
user1.domain.net, but the alias for user2 is not parsed and user2 is
also rewritten as user2@domain.net.

How can I solve my problem?

TIA,
Olivier



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200911060730.nA67Uu2O037135>