Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Exim4 as a smarthost : Unrouteable address

223 views
Skip to first unread message

rudu

unread,
Aug 7, 2019, 9:40:05 AM8/7/19
to
Hi all,

Until recently my machines running debian testing used to send me
e-mails as reports from cron tasks or from LAMP applications.
This is not working anymore.
I did of course a dpkg-reconfigure exim4-config to get this
/etc/exim4/update-exim4.conf.conf file :
[...]
# This is a Debian specific file

dc_eximconfig_configtype='satellite'
dc_other_hostnames='*'
dc_local_interfaces='127.0.0.1;192.168.0.20'
dc_readhost='example.org'
dc_relay_domains='*'
dc_minimaldns='false'
dc_relay_nets='192.168.0.0/24'
dc_smarthost='mail.myprovider.fr::465'
CFILEMODE='644'
dc_use_split_config='false'
dc_hide_mailname='true'
dc_mailname_in_oh='true'
dc_localdelivery='mail_spool'

But here is an attempt to actually send a mail :

~$ echo 'Hello there !!' | mail my....@domain.org -s Test13 -v
LOG: MAIN
  <= je...@example.org U=jean P=local S=453
jean@poste1:~$ delivering 1hvLI6-0001yn-GI
R: system_aliases for my....@domain.org
LOG: MAIN
  ** my....@domain.org: Unrouteable address
LOG: MAIN
  <= <> R=1hvLI6-0001yn-GI U=Debian-exim P=local S=1668
delivering 1hvLI6-0001yp-Kr
R: system_aliases for je...@example.org
R: hub_user for je...@example.org
R: system_aliases for je...@example.org
R: hub_user_smarthost for je...@example.org
T: remote_smtp_smarthost for je...@example.org
LOG: MAIN
  Completed
LOG: retry_defer MAIN
  == je...@example.org R=hub_user_smarthost T=remote_smtp_smarthost
defer (-53): retry time not reached for any host for 'example.org'

I keep getting this "Unrouteable address" whatever address I try to
write to, addresses who do receive mails via thunderbird.
Thunderbird is also successfully using the smtp server credentials I
feed exim4 with ...

I must be missing something obvious here but I'm completely in the dark.

Thanks for any help,
Rudu

Dan Purgert

unread,
Aug 7, 2019, 11:40:04 AM8/7/19
to
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

rudu wrote:
> Hi all,
>
> Until recently my machines running debian testing used to send me
> e-mails as reports from cron tasks or from LAMP applications.
> This is not working anymore.
> I did of course a dpkg-reconfigure exim4-config to get this
> /etc/exim4/update-exim4.conf.conf file :
> [...]
> # This is a Debian specific file
>
> dc_eximconfig_configtype='satellite'
> dc_other_hostnames='*'

Not sure if it makes a difference or not; but my exim satellite configs
have this entry (dc_other_hostnames) set to the local system's name.

[...]
> dc_smarthost='mail.myprovider.fr::465'

This is another problem I noticed. My satellite configs simply state
dc_smarthost='mail.djph.net'; without any port configurations.

Here's what I get in a log when sending from a test VM:

2019-08-07 11:25:40 1hvNoq-0007iY-NR <= d...@ironhide.djph.net U=dan
P=local S=471
2019-08-07 11:25:40 1hvNoq-0007iY-NR => d...@djph.net
<d...@ironhide.djph.net> R=smarthost T=remote_smtp_smarthost
H=mail.djph.net [192.168.10.55]
X=TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256 CV=yes DN="CN=djph.net" C="250
2.0.0 Ok: queued as D20325FB0E"
2019-08-07 11:25:40 1hvNoq-0007iY-NR Completed


-----BEGIN PGP SIGNATURE-----

iQEzBAEBCAAdFiEEBcqaUD8uEzVNxUrujhHd8xJ5ooEFAl1K7gsACgkQjhHd8xJ5
ooHvmgf/TD5v/YZmqyy4swp8feYF2SieOMrUQasUIehqm5jJkt8ksFjV/Um3ML36
47Yj1HsANxJQM6eWiMO8/4v3d/vPx0P+Rza3YRN8507iSXUGQa33K5W91WtlV7k7
k/DXJMt/wgVfnoa4bNYMnaUuGuguJ8tXMwh03Jb0Ro/hA0VS62zcyhYxCmRqLjvM
xZplAplJfQg/Sp8/zLB59QQi95EkIBprEBxsZScN2z1HBI4bWfeA7kwA+zBsPuEB
Gxuf6dRUpYOEhy8PAfeJBHruRwgUVzOTeNE8yl+F8Nip8GPXUHyFArm/he75qi7C
6P1v/pyf3qMLpvPY6wPysLArqBrXhw==
=4iwV
-----END PGP SIGNATURE-----

--
|_|O|_|
|_|_|O| Github: https://github.com/dpurgert
|O|O|O| PGP: 05CA 9A50 3F2E 1335 4DC5 4AEE 8E11 DDF3 1279 A281

rudu

unread,
Aug 7, 2019, 12:40:04 PM8/7/19
to
Thank you Dan for your input.

Le 07/08/2019 à 17:28, Dan Purgert a écrit :
> rudu wrote:
>> Hi all,
>>
>> Until recently my machines running debian testing used to send me
>> e-mails as reports from cron tasks or from LAMP applications.
>> This is not working anymore.
>> I did of course a dpkg-reconfigure exim4-config to get this
>> /etc/exim4/update-exim4.conf.conf file :
>> [...]
>> # This is a Debian specific file
>>
>> dc_eximconfig_configtype='satellite'
>> dc_other_hostnames='*'
> Not sure if it makes a difference or not; but my exim satellite configs
> have this entry (dc_other_hostnames) set to the local system's name.
>
> [...]
>> dc_smarthost='mail.myprovider.fr::465'
> This is another problem I noticed. My satellite configs simply state
> dc_smarthost='mail.djph.net'; without any port configurations.
As you suggested, I changed both parameters and this is what I get :


$ echo 'Hello there !!' | mail my....@domain.org -s Test13 -v
LOG: MAIN
  <= je...@example.org U=jean P=local S=453
jean@poste1:~$ delivering 1hvOe8-000392-5m
R: smarthost for my....@domain.org
T: remote_smtp_smarthost for my....@domain.org
Connecting to mail.myprovider.fr [91.217.154.228]:25 ... connected
  SMTP<< 220 mx0.myprovider.fr ESMTP Postfix (Debian/GNU)
  SMTP>> EHLO example.org
  SMTP<< 250-mx0.myprovider.fr
         250-PIPELINING
         250-SIZE 18442404
         250-VRFY
         250-ETRN
         250-AUTH PLAIN LOGIN
         250-AUTH=PLAIN LOGIN
         250-ENHANCEDSTATUSCODES
         250-8BITMIME
         250-DSN
         250 SMTPUTF8
  SMTP>> MAIL FROM:<je...@example.org> SIZE=1490
  SMTP>> RCPT TO:<my....@domain.org>
  SMTP>> DATA
  SMTP<< 250 2.1.0 Ok
  SMTP<< 554 5.7.1 Service unavailable; Client host [109.12.75.40]
blocked using lk55tga7gkjpcy432ojwxtvvim.zen.dq.spamhaus.net;
https://www.spamhaus.org/query/ip/109.12.75.40
  SMTP<< 554 5.5.1 Error: no valid recipients
  SMTP>> QUIT
  SMTP(close)>>
LOG: MAIN
  ** my....@domain.org R=smarthost T=remote_smtp_smarthost
H=mail.myprovider.fr [91.217.154.228]: SMTP error from remote mail
server after RCPT TO:<my....@domain.org>: 554 5.7.1 Service
unavailable; Client host [109.12.75.40] blocked using
lk55tga7gkjpcy432ojwxtvvim.zen.dq.spamhaus.net;
https://www.spamhaus.org/query/ip/109.12.75.40
LOG: MAIN
  <= <> R=1hvOe8-000392-5m U=Debian-exim P=local S=2163
delivering 1hvOe8-000395-GS
R: system_aliases for je...@example.org
R: hub_user for je...@example.org
R: system_aliases for je...@example.org
R: hub_user_smarthost for je...@example.org
T: remote_smtp_smarthost for je...@example.org
LOG: MAIN
  Completed
Connecting to mail.myprovider.fr [91.217.154.228]:25 ... connected
  SMTP<< 220 mx0.myprovider.fr ESMTP Postfix (Debian/GNU)
  SMTP>> EHLO example.org
  SMTP<< 250-mx0.myprovider.fr
         250-PIPELINING
         250-SIZE 18442404
         250-VRFY
         250-ETRN
         250-AUTH PLAIN LOGIN
         250-AUTH=PLAIN LOGIN
         250-ENHANCEDSTATUSCODES
         250-8BITMIME
         250-DSN
         250 SMTPUTF8
  SMTP>> MAIL FROM:<> SIZE=3243
  SMTP>> RCPT TO:<je...@example.org>
  SMTP>> DATA
  SMTP<< 250 2.1.0 Ok
  SMTP<< 554 5.7.1 Service unavailable; Client host [109.12.75.40]
blocked using lk55tga7gkjpcy432ojwxtvvim.zen.dq.spamhaus.net;
https://www.spamhaus.org/query/ip/109.12.75.40
  SMTP<< 554 5.5.1 Error: no valid recipients
  SMTP>> QUIT
  SMTP(close)>>
LOG: MAIN
  ** je...@example.org R=hub_user_smarthost T=remote_smtp_smarthost
H=mail.myprovider.fr [91.217.154.228]: SMTP error from remote mail
server after RCPT TO:<je...@example.org>: 554 5.7.1 Service unavailable;
Client host [109.12.75.40] blocked using
lk55tga7gkjpcy432ojwxtvvim.zen.dq.spamhaus.net;
https://www.spamhaus.org/query/ip/109.12.75.40
LOG: MAIN
  Frozen (delivery error message)

I understand that I've been rejected as a spammer.
My provider insist on using port 465 though and maybe I didn't tell
exim4 to use ssl/tls ??
Where should I look ?

Thanks
Rudu

Joe

unread,
Aug 7, 2019, 1:50:04 PM8/7/19
to
Here's one of many how-tos:

https://somoit.net/linux/linux-exim-authenticated-and-tls-mail-through-smarthost

I have done it in the past for a client, but too long ago to remember
anything.

--
Joe

rudu

unread,
Aug 8, 2019, 5:00:04 AM8/8/19
to
Thank you Joe.
> Here's one of many how-tos:
>
> https://somoit.net/linux/linux-exim-authenticated-and-tls-mail-through-smarthost
>
> I have done it in the past for a client, but too long ago to remember
> anything.
Thanks to this link, I tried to use port 587, and changed a few things
to finally get it working \o/ !
For the record, here's my final /etc/exim4/update-exim4.conf.conf file :
[...]
# This is a Debian specific file

dc_eximconfig_configtype='satellite'
dc_other_hostnames=''
dc_local_interfaces='127.0.0.1;192.168.0.20'
dc_readhost='example.org'
dc_relay_domains='*.fr'
dc_minimaldns='false'
dc_relay_nets=''
dc_smarthost='mail.myprovider.fr::587'
CFILEMODE='644'
dc_use_split_config='false'
dc_hide_mailname='true'
dc_mailname_in_oh='true'
dc_localdelivery='mail_spool'

Many thanks to all
Have a good day
Rudu
0 new messages