How to configure sendmail

Olivier Nicole Olivier.Nicole at
Fri Nov 6 07:30:59 UTC 2009


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

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

- user1 on has the same username as on; I
  want that mail sent to user1 is delivered to user1 at;

- user2 on has no corresponding user on, 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 at y.z should be
  delivered accordingly, eventually using a mail relay.

I tried using masquerade in, user1 is then rewritten as, but the alias for user2 is not parsed and user2 is
also rewritten as user2 at

How can I solve my problem?


More information about the freebsd-questions mailing list