Re: [exim] Mail server does not recognize me

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Nigel Wade
Dátum:  
Címzett: exim-users
Tárgy: Re: [exim] Mail server does not recognize me
Haines Brown wrote:
>> The main problem is your hosts file.
>
> Are you saying the hosts file on the two machines should be identical?


Well, as in most things, that depends...
But certainly they should not have different entries with the same IP
number. It looked to me as though you had configured each machines hosts
file with its own hostname, but each set to the IP of the router. That
is not correct.

> I tried having this on both machines:
>
> 127.0.0.1    localhost.localdomain localhost
> 192.168.1.2     teufel.hartford-hwp.com teufel
> 192.168.1.3     langhans.hartford-hwp.com langhans
> 192.168.1.1     router.hartford-hwp.com router

>
> I didn't know what name to give the router. Is "router" right?


You can call it whatever you want. It's a private IP and the hostname
won't be visible to anything outside your network.

As to the entries for the other machines, where do they derive their IP
numbers from? Are they hardcoded or do they get the values from a DHCP
server? If the latter, does it supply dynamic DNS entries for them?

>
> # ifconfig -a on my desktop shows that its IP address has changed to
> inet addr:192.168.1.4. I've no idea what could have caused
> this. Should I just modify the two hosts files above accordingly, or
> find out why teufel is no longer at 192.168.1.2? I tried adding
>
> 192.168.1.4 teufel...
>
> to both files, but it did not help.


I think you need to determine how your network is configured.

>
>> The most likely problem is that your laptop is not getting assigned a
>> sensible hostname, and the mail domain which Exim is appending to the
>> sender is not one which your hosting service is configured to relay for.
>> I don't know how Debian configures the hostname, you'd need to look into
>> that yourself. But getting the /etc/hosts correct is the first step.
>
> Debian didn't configure the hostname, I did. That is, when installing
> the system I assigned the hostname, but I know from experience that I
> can change the hostname at will simply by editing the /etc/hostname
> file and rebooting (actually, it can be a bit more complicated than
> this, but even this works). I assume the hostname file is static and
> simply contains the name that I write to it.


Possibly, I don't know Debian.

You would also need to know how Debian has configured your Exim. Debian
doesn't do this in the normal way, and this will determine what Exim is
telling your SMTP server about your mail domain.

-- 
Nigel Wade, System Administrator, Space Plasma Physics Group,
             University of Leicester, Leicester, LE1 7RH, UK
E-mail :    nmw@???
Phone :     +44 (0)116 2523548, Fax : +44 (0)116 2523555