OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Subject: Question about root/virtual/canonical
From: Luis Melendez Aganzo (cc0luismuco.es)
Date: Fri Mar 03 2000 - 02:24:45 CST


Hello all.
After some testing I have just completely installed Postfix in all
our mail machines. It works very well. Now I have a question: in some
of our machines, I have a .forward for root that redirects mail to
rootothermachine. That othermachine collects mail for root's of several
machines and saves them in per-machine folders for some automated processing.
If I put 'root rootlocalhost' in virtual, as advised in the documentation,
Postfix adds the header 'Delivered-To: rootlocalhost.$mydomain'
When the mail is forwarded to othermachine, it tries to deliver
locally but then sees that header, thinks it is a mail forwarding loop
and bounces it.

One solution is to put in virtual: root rootothermachine
but I have the same virtual maps in several machines and I'd prefer not
to make local changes.

Other solution is to put in canonical: root rootthismachine
This works well, and has the advantage that all mails go with
addresses 'rootmachine', and I think this is convenient in the case
of root.

So, is there any drawback with this approach? If not, why the documentation
advises to use virtual instead for root?

Regards.

-- 
+-----------------------------------^---------------------------------------+
| Luis Melendez                     ^  email: luismuco.es                  |
| Centro de Calculo Cientifico      ^  Tlf: 34-(9)57-211019                 |
| Area de Sistemas y Comunicaciones ^  Fax: 34-(9)57-218116                 |
| Universidad de Cordoba (SPAIN)    ^  http://www.uco.es                    |
+-----------------------------------^---------------------------------------+