OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
From: Eric Charikane (charikane_at_ecrin.asso.fr)
Date: Tue Feb 04 2003 - 04:21:02 CST

  • Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

    Hello list,

    Le lundi, 3 fév 2003, à 11:45 Europe/Paris, Freek Dijkstra a écrit :

    > Hi,

    > First of all, I ran into trouble trying to use Maildirs. The local
    > program
    > gave me the following problem:
    >
    > postfix/local[1001]: warning: valid_hostname: misplaced delimiter:
    > dagobert.local.
    > postfix/local[1001]: fatal: unable to use my own hostname
    >
    > The obvious culprit is the ridiculous hostname MacOSX (I'm using
    > 10.2.3)
    > gives to my host: "dagobert.local." (the dagobert is what I entered in
    > the
    > preferences, ".local." is added by the system).
    >
    > This is the same problem that was previously discussed on the list. [1]
    > However, that discussion was about the program "postalias", which made
    > the
    > call to get_hostname(). Apparently, the "local" program does so, too.
    > I've experienced that it only makes this call when using Maildirs
    > (folder
    > with files as the mailbox), not when using a file as a mailbox.
    >

    Well, this is a new problem with MacOSX automatic hostname, because now
    (many thanks to those of you who made the change) there 's no more
    problem running postalias (I'm now running postfix V 2.02).

    demonstration :

    -- 
    here a part of my /etc/hostconfig
    

    Mon Feb 03 ecbox 10:48:58 > cat /etc/hostconfig ## # /etc/hostconfig ## # This file is maintained by the system control panels ##

    # Network configuration HOSTNAME=-AUTOMATIC- # HOSTNAME=-NO- ROUTER=-AUTOMATIC- -- -- here is my apple hostname

    Mon Feb 03 ecbox 17:27:25 > echo $HOSTNAME ecbox.local.

    -- and here is postalias result

    Mon Feb 03 ecbox 17:31:42 > sudo postalias /etc/postfix/aliases Mon Feb 03 ecbox 17:31:47 > --

    > I expect it is due to the fact that local needs the hostname to make a > unique name for a file to put into a Maildir upon delivery. Indeed, > setting > myhostname in main.cf does NOT help, as was discussed earlier by > > > I was able to fix it by altering the /etc/hostconfig file, and change > the > line with "HOSTNAME=-AUTOMATIC-" to: > HOSTNAME=dagobert.macfreek.nl > > (any valid hostname will do). > > > I STRONGLY suggest that the file README-INSTALL.OSX is altered to > include a > note telling users to set a valid hostname in /etc/hostconfig > > > This was suggested earlier, but not changed. Please, please, do so > now! It > would have saved me quite a few hours! >

    As Freek and Wietse suggest we could first warn MacOSX users in file README-Install.OSX. Here is a suggestion :

    -- MacOSX automatic hostname (the one with "something.local.", try /bin/hostname) could cause postfix to run into trouble and you should get error message like : > warning: valid_hostname: misplaced delimiter: > fatal: unable to use my own hostname If this occurs one solution is to desable the MacOSX automatic hostname and set it manualy. This can be done like this : - edit /etc/hostconfig - change "HOSTNAME=-AUTOMATIC-" to HOSTNAME="your.hostname" - save an reboot But, be carefull that the name like "something.local." may be usefull for example for program using Rendezvous and this could cause those programs not to run as they should. --

    Well sorry for my english not so good ! This could be a first stepand should be rewrite, a second one could be a script (Freek ?) or finding what's wrong with local and MacOSX ?

    Regards, Eric