[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: exim4: system_aliases für root und root@localhost



Hallo Felix,

in meiner /var/lib/exim4/config.autogenerated bzw.
/etc/exim4/update-exim4.conf.conf (ebenfalls exim aus testing) steht:

   grep -C2 "^[[:space:]]*primary_hostname" /var/lib/exim4/config.autogenerated

   .ifdef MAIN_HARDCODE_PRIMARY_HOSTNAME
   primary_hostname = MAIN_HARDCODE_PRIMARY_HOSTNAME
   .endif

MAIN_HARDCODE_PRIMARY_HOSTNAME ist aber bei mir nicht definiert, so
dass beim Start von exim "primary_hostname =" gilt und damit ein
Algorithmus durchlaufen wird gemäß exim-Dokumentation "Chapter 14 -
Main configuration"
http://www.exim.org/exim-html-current/doc/html/spec_html/ch-main_configuration.html
--------------------------------------------------
primary_hostname         Use:main       Type:string     Default:see below

This specifies the name of the current host. It is used in the default
EHLO or HELO command for outgoing SMTP messages (changeable via the
helo_data option in the smtp transport), and as the default for
qualify_domain. The value is also used by default in some SMTP
response messages from an Exim server. This can be changed dynamically
by settingsmtp_active_hostname.

If primary_hostname is not set, Exim calls uname() to find the host
name. If this fails, Exim panics and dies. If the name returned by
uname() contains only one component, Exim passes it to gethostbyname()
(or getipnodebyname() when available) in order to obtain the fully
qualified version. The variable $primary_hostname contains the host
name, whether set explicitly by this option, or defaulted.
--------------------------------------------------

Auf server1 kann durch diesen Algorithmus scheinbar nicht der FQDN
ermittelt werden.
Bitte vergleiche /etc/hosts von beiden Servern und die
DNS-Namensauflösung (A bzw AAAA und PTR) für beide Server.

Gruß
Matthias

Am 29. August 2014 08:06 schrieb Felix Hagemann <felix.hagemann@gmail.com>:
> Hallo Matthias,
>
>
> 2014-08-28 21:55 GMT+02:00 Matthias Böttcher:
>> zeige mal bitte noch die Ausgabe von
>>
>>    exim -bP primary_hostname +local_domains
>>    uname -n
>>    hostname -f
>
> -----
> server1:~# uname -n
> server1
> server1:~# hostname -f
> server1.company.int
> server1:~# exim -bP primary_hostname +local_domains
> primary_hostname = server1
> domainlist local_domains = @:localhost
> server1:~#
> -----
> server2:~# uname -n
> server2
> server2:~# hostname -f
> server2.company.int
> server2:~# exim -bP primary_hostname +local_domains
> primary_hostname = server2.company.int
> domainlist local_domains = @:localhost
> server2:~#
> -----
>
> Ok, primary_hostname unterscheidet sich. Die Frage ist jetzt, wie
> kommt server1 zu diesem primary_hostname, wo doch die Konfiguration
> identisch ist?
>
> Felix
>
>
> --
> Zum AUSTRAGEN schicken Sie eine Mail an debian-user-german-REQUEST@lists.debian.org
> mit dem Subject "unsubscribe". Probleme? Mail an listmaster@lists.debian.org (engl)
> Archive: [🔎] CAOcPne_OjFo1R9uGes8SCvW5z432Vvp3pzj5HE_QRdpn_YP_qg@mail.gmail.com">https://lists.debian.org/[🔎] CAOcPne_OjFo1R9uGes8SCvW5z432Vvp3pzj5HE_QRdpn_YP_qg@mail.gmail.com


Reply to: