Exim4 as a smarthost : Unrouteable address

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Exim4 as a smarthost : Unrouteable address

rudu-2
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 [hidden email] -s Test13 -v
LOG: MAIN
   <= [hidden email] U=jean P=local S=453
jean@poste1:~$ delivering 1hvLI6-0001yn-GI
R: system_aliases for [hidden email]
LOG: MAIN
   ** [hidden email]: Unrouteable address
LOG: MAIN
   <= <> R=1hvLI6-0001yn-GI U=Debian-exim P=local S=1668
delivering 1hvLI6-0001yp-Kr
R: system_aliases for [hidden email]
R: hub_user for [hidden email]
R: system_aliases for [hidden email]
R: hub_user_smarthost for [hidden email]
T: remote_smtp_smarthost for [hidden email]
LOG: MAIN
   Completed
LOG: retry_defer MAIN
   == [hidden email] 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


Reply | Threaded
Open this post in threaded view
|

Re: Exim4 as a smarthost : Unrouteable address

Dan Purgert
-----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 <= [hidden email] U=dan
P=local S=471
2019-08-07 11:25:40 1hvNoq-0007iY-NR => [hidden email]
<[hidden email]> 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

Reply | Threaded
Open this post in threaded view
|

Re: Exim4 as a smarthost : Unrouteable address

rudu-2
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 [hidden email] -s Test13 -v
LOG: MAIN
   <= [hidden email] U=jean P=local S=453
jean@poste1:~$ delivering 1hvOe8-000392-5m
R: smarthost for [hidden email]
T: remote_smtp_smarthost for [hidden email]
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:<[hidden email]> SIZE=1490
   SMTP>> RCPT TO:<[hidden email]>
   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
   ** [hidden email] R=smarthost T=remote_smtp_smarthost
H=mail.myprovider.fr [91.217.154.228]: SMTP error from remote mail
server after RCPT TO:<[hidden email]>: 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 [hidden email]
R: hub_user for [hidden email]
R: system_aliases for [hidden email]
R: hub_user_smarthost for [hidden email]
T: remote_smtp_smarthost for [hidden email]
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:<[hidden email]>
   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
   ** [hidden email] 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:<[hidden email]>: 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


Reply | Threaded
Open this post in threaded view
|

Re: Exim4 as a smarthost : Unrouteable address

Joe Rowan
On Wed, 7 Aug 2019 18:37:05 +0200
rudu <[hidden email]> wrote:

> 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 [hidden email] -s Test13 -v
> LOG: MAIN
>    <= [hidden email] U=jean P=local S=453
> jean@poste1:~$ delivering 1hvOe8-000392-5m
> R: smarthost for [hidden email]
> T: remote_smtp_smarthost for [hidden email]
> 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:<[hidden email]> SIZE=1490
>    SMTP>> RCPT TO:<[hidden email]>
>    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
>    ** [hidden email] R=smarthost T=remote_smtp_smarthost
> H=mail.myprovider.fr [91.217.154.228]: SMTP error from remote mail
> server after RCPT TO:<[hidden email]>: 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 [hidden email]
> R: hub_user for [hidden email]
> R: system_aliases for [hidden email]
> R: hub_user_smarthost for [hidden email]
> T: remote_smtp_smarthost for [hidden email]
> 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:<[hidden email]>
>    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
>    ** [hidden email] 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:<[hidden email]>: 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 ?
>

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

Reply | Threaded
Open this post in threaded view
|

Re: Exim4 as a smarthost : Unrouteable address

rudu-2
Thank you Joe.

Le 07/08/2019 à 19:45, Joe a écrit :

> On Wed, 7 Aug 2019 18:37:05 +0200
> rudu <[hidden email]> wrote:
>
>> 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 :
>>
>>
> 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