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

Re: [OT?] What's wrong with my exim4 configuration?



On Sun, 10 Nov 2013, Chris Davies wrote:

Chris: thanks for helping me out.

Itay <debian@itayf.fastmail.fm> wrote:
I am struggling to configure exim4 on my home desktop to send system
notifications to my public email address [...]

[I replaced smtp's port with NNN. Also, assume 'machine' is output of
command 'hostname', while 'machine.homenetwork' is output of 'hostname
-f']

IP address or host name of the outgoing smarthost
=> "mail.messagingengine.com::NNN".

Should be a single colon, not double. For example, mail.example.net:587

OK. I Changed that.

If you're using 486 (SMTP/SSL) you may need to tweak the TLS entries in
the configuration file.

Using 465 and ssl.

4. Insert in /etc/exim4/passwd.client the following line:
smtp.mail.provider:myemail@fastmail.fm:ClearTextPassWord

Your login account for smtp.mail.provider is "myemail@fastmail.fm", yes?

It's a pseudo, as is ClearTextPassWord.
The file has my real login account for smtp.mail.provider.

5. Test message:
# /usr/sbin/exim4 -i root
This is a test message.
^D

Throw a -v (Verbose) in there, too.

echo test message | exim4 -v root

This hanged and I had to kill it. I tried several times.
An example of output [changed real email to pseudo 'myemail@fastmail.fm']:

$ echo This is a test message. | /usr/sbin/exim4 -v -i root
LOG: MAIN
  <= myemail@fastmail.fm U=itayf P=local S=327
~ (556)$ delivering 1VfZGa-0004AC-BY
R: smarthost for root@fastmail.fm
T: remote_smtp_smarthost for root@fastmail.fm
Connecting to mail.messagingengine.com [66.111.4.52]:25 ... failed: Connection refused
LOG: MAIN
  mail.messagingengine.com [66.111.4.52] Connection refused
Connecting to mail.messagingengine.com [66.111.4.51]:25 ... failed: Connection refused
LOG: MAIN
  mail.messagingengine.com [66.111.4.51] Connection refused
Connecting to 465 [0.0.1.209]:25 ... failed: Invalid argument
LOG: MAIN
  465 [0.0.1.209] Invalid argument
LOG: MAIN
== root@fastmail.fm R=smarthost T=remote_smtp_smarthost defer (22): Invalid argument

[hanging... killed]

Relevant part from /var/log/exim4:
2013-11-10 11:00:50 1VfQsq-0003B3-7m <= myemail@fastmail.fm U=itayf P=local S=327
2013-11-10 11:00:50 1VfQsq-0003B3-7m == root@fastmail.fm R=smarthost T=remote_smtp_smarthost defer (-53): retry time not reached for any host

You've stripped out some relevant preceding messages. Something already
in there has stopped the queue run for your target host. Use this instead:

exim4 -qf -v

$ sudo exim4 -v -qff # changed real email to pseudo 'myemail@fastmail.fm'

LOG: queue_run MAIN
  Start queue run: pid=15258 -qff
delivering 1Vf1nB-0000dQ-Pz (queue run pid 15258)
R: system_aliases for root@machine.homenetwork
R: smarthost for myemail@fastmail.fm
T: remote_smtp_smarthost for @fastmail.fm
Connecting to mail.messagingengine.com [66.111.4.52]:25 ... failed: Connection refused
LOG: MAIN
  mail.messagingengine.com [66.111.4.52] Connection refused
Connecting to mail.messagingengine.com [66.111.4.51]:25 ... failed: Connection refused
LOG: MAIN
  mail.messagingengine.com [66.111.4.51] Connection refused
Connecting to 465 [0.0.1.209]:25 ... failed: Invalid argument
LOG: MAIN
  465 [0.0.1.209] Invalid argument
LOG: MAIN
  == root@fastmail.fm <root@machine.homenetwork> R=smarthost T=remote_smtp_smarthost defer (22): Invalid argument
LOG: MAIN
  == myemail@fastmail.fm <root@machine.homenetwork> R=smarthost T=remote_smtp_smarthost defer (22): Invalid argument
delivering 1VfQsq-0003B3-7m (queue run pid 15258)
R: smarthost for root@fastmail.fm
T: remote_smtp_smarthost for root@fastmail.fm
Connecting to mail.messagingengine.com [66.111.4.51]:25 ... failed: Connection refused
LOG: MAIN
  mail.messagingengine.com [66.111.4.51] Connection refused
Connecting to mail.messagingengine.com [66.111.4.52]:25 ... failed: Connection refused
LOG: MAIN
  mail.messagingengine.com [66.111.4.52] Connection refused
Connecting to 465 [0.0.1.209]:25 ... failed: Invalid argument
LOG: MAIN
  465 [0.0.1.209] Invalid argument
LOG: MAIN
  == root@fastmail.fm R=smarthost T=remote_smtp_smarthost defer (22): Invalid argument
delivering 1VfNjL-000250-SG (queue run pid 15258)
R: smarthost for root@fastmail.fm
T: remote_smtp_smarthost for root@fastmail.fm
Connecting to mail.messagingengine.com [66.111.4.52]:25 ... failed: Connection refused
LOG: MAIN
  mail.messagingengine.com [66.111.4.52] Connection refused
Connecting to mail.messagingengine.com [66.111.4.51]:25 ... failed: Connection refused
LOG: MAIN
  mail.messagingengine.com [66.111.4.51] Connection refused
Connecting to 465 [0.0.1.209]:25 ... failed: Invalid argument
LOG: MAIN
  465 [0.0.1.209] Invalid argument
LOG: MAIN
  == root@fastmail.fm R=smarthost T=remote_smtp_smarthost defer (22): Invalid argument
delivering 1VfPwb-0002iA-NI (queue run pid 15258)
R: smarthost for myemail@fastmail.fm
T: remote_smtp_smarthost for myemail@fastmail.fm
Connecting to mail.messagingengine.com [66.111.4.51]:25 ... failed: Connection refused
LOG: MAIN
  mail.messagingengine.com [66.111.4.51] Connection refused
Connecting to mail.messagingengine.com [66.111.4.52]:25 ... failed: Connection refused
LOG: MAIN
  mail.messagingengine.com [66.111.4.52] Connection refused
Connecting to 465 [0.0.1.209]:25 ... failed: Invalid argument
LOG: MAIN
  465 [0.0.1.209] Invalid argument
LOG: MAIN
  == myemail@fastmail.fm R=smarthost T=remote_smtp_smarthost defer (22): Invalid argument
LOG: queue_run MAIN
  End queue run: pid=15258 -qff


Chris





Reply to: