OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Re: Problems with root aliasing

From: Andre Kerstens (kerstensscripps.edu)
Date: Mon Nov 10 2003 - 20:15:57 CST


That's it. I was using virtual_alias_maps in my main.cf instead of the
required virtual_maps for my version 1.1.
You've been a great help!

Thanks

Andre

Wietse Venema wrote:
> Andre Kerstens:
>
>>Hi Wietse,
>>
>>Thanks for your quick reply, but I have done exactly what the FAQ says:
>>specify a virtual table where root is put as rootlocalhost, but the
>>system doesn't seem to pick this up somehow.
>
>
> With Postfix 1.1 and earlier, this is specified with virtual_maps.
>
> With Postfix 2.0 and later, this is specified with virtual_alias_maps.
>
> The entry to be used:
>
> root rootlocalhost
>
> this assumes simple DBM or Berkeley DB files. If you must use
> LDAP or SQL then make it work first with files.
>
>
>>It still will send mails to
>>root as root$myorigin (and therefore to my relay which is what I don't
>>want). Is anything else missing in my config?
>
>
> Postfix will ALWAYS send mail from root as root$myorigin, which
> is not the problem because you are talking about the DESTINATION.
>
> Wietse
>
>>Thanks
>>
>>Andre
>>
>>
>>Wietse Venema wrote:
>>
>>>Andre Kerstens:
>>>
>>>
>>>>Hello,
>>>>
>>>>I have the following problem:
>>>>
>>>>When sending mail to rootlocalhost on the postfix server itself, the
>>>>mail is delivered locally and the user is converted to the aliased
>>>>address of root (which is me). This is correct behaviour I would say.
>>>>
>>>>When I send mail to root (without the localhost part) this does not
>>>>seem to work and the email is forwarded to my relay host without being
>>>>converted to my email address. Why doesn't postfix alias the root user
>>>>correctly when only the username
>>>>is used?
>>>
>>>
>>>Postfix attempts to treat a bare address (root) consistently.
>>>
>>>Postfix delivers mail FROM root as root$myorigin, therefore Postfix
>>>delivers mail TO root as root$myorigin as well.
>>>
>>>This also prevents mail from accidentally ending up in the mail
>>>spool of some little box and sitting there without eveer being
>>>read.
>>>
>>>See also the Postfix FAQ entry for sending mail as userdomain
>>>while delivering some users locally.
>>>
>>> Wietse
>>>
>>
>>--
>>------------------------------------------------
>>Andre Kerstens
>>Laboratory for Computational Cell Biology
>>Department of Cell Biology, CB167
>>The Scripps Research Institute
>>10550 N. Torrey Pines Road
>>La Jolla, CA 92037
>>
>>Phone +1 858 784 7098
>>Fax +1 858 784 7103
>>Email gdanuserscripps.edu
>>WWW http://cimbio.scripps.edu/groups/Danuser
>>
>>Administrative Assistant:
>>-------------------------
>>Miriam Berba
>>phone +1 858 784 2473
>>email mirberbascripps.edu
>>-------------------------------------------------
>>
>>
>>
>>
>
>
>

--
------------------------------------------------
Andre Kerstens
Laboratory for Computational Cell Biology
Department of Cell Biology, CB167
The Scripps Research Institute
10550 N. Torrey Pines Road
La Jolla, CA 92037

Phone +1 858 784 7098
Fax +1 858 784 7103
Email gdanuserscripps.edu
WWW http://cimbio.scripps.edu/groups/Danuser

Administrative Assistant:
-------------------------
Miriam Berba
phone +1 858 784 2473
email mirberbascripps.edu
-------------------------------------------------