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

Exim4 smarthost conf



Hi,

I'm at a lost here trying to configure exim4 on a laptop running bookworm as a smarthost relay to my email provider. I already made it working on my desktop machine (bookworm also) on the same local network though I had difficulties too at the time.
All I'm trying to do is to send myself a mail in a terminal.

To make it quick and with the help of the config files I found on my desktop, I did :

# dpkg-reconfigure exim4-config    # smtpauth.provider.fr::465
# vi /etc/exim4/passwd.client    # putting the credentials here
# vi /etc/exim4/exim4.conf.localmacros    # MAIN_TLS_ENABLE = 1
# /usr/share/doc/exim4/examples/exim-gencert    # generating exim.crt and exim.key files in /etc/exim4/
# update-exim4.conf
# systemctl restart exim4
$ echo "exim4 test" | mail -s "exim4 test" me@mydomain.com

Then tail /var/log/exim4/mainlog shows invariably :

2022-07-19 17:16:22 1oDoHK-0000ta-0W H=provider.fr [109.234.xxx.xxx]: Remote host closed connection in response to initial connection 2022-07-19 17:16:22 1oDoHK-0000ta-0W == me@mydomain.com R=smarthost T=remote_smtp_smarthost defer (-18) H=provider.fr [109.234.xxx.xxx]: Remote host closed connection in response to initial connection
2022-07-19 17:16:22 End queue run: pid=4692 -qff

I have a doubt concerning the generation of the TLS files, I didn't know what to answer to some questions (what domain name should I choose for my local network for example ?) and I may have not given the same answers at the time I got it working on my desktop.

So if this rings a bell for anybody, I would welcome any hint to track down what's wrong here.

TIA
Rudu


Reply to: