Il giorno mar 7 gen 2025 alle ore 15:58 Andrew C Aitchison <[email protected]> ha scritto: > From `man exim4_passwd_client` on Ubuntu: > > /etc/exim4/passwd.client > contains account and password data for SMTP authentication > when exim is authenticating as a client to some remote server. > The file should contain lines of the form > target.mail.server.example:login-user-name:password which will > cause exim to use login-user-name and password when sending > messages to a server with the canonical host name > ** target.mail.server.example. Please note that this does not > ** configure the mail server to send to (this is determined in > ** Debconf), but only creates the correlation between host name and > authentication credentials to avoid exposing passwords to the > wrong host. > > Did you use Debconf ?
The remote_smtp_smarthost configuration already uses the passwd.client file, in Debian But seems that the auth is not sent to the smarthost, even if I've set this: # cat /etc/exim4/passwd.client # password file used when the local exim is authenticating to a remote # host as a client. # # see exim4_passwd_client(5) for more documentation # # Example: ### target.mail.server.example:login:password 1.2.3.4:[email protected]:xxxxxxxxxxx Tried with "*", the ip, the hostname and so on, it's always ignored # cat /etc/exim4/conf.d/transport/30_exim4-config_remote_smtp_smarthost ### transport/30_exim4-config_remote_smtp_smarthost ################################# # This transport is used for delivering messages over SMTP connections # to a smarthost. The local host tries to authenticate. # This transport is used for smarthost and satellite configurations. remote_smtp_smarthost: debug_print = "T: remote_smtp_smarthost for $local_part@$domain . host_address=$host_address" driver = smtp multi_domain hosts_try_auth = <; ${if exists{CONFDIR/passwd.client} \ {\ ${lookup{$host}nwildlsearch{CONFDIR/passwd.client}{$host_address}}\ }\ {} \ } -- ## subscription configuration (requires account): ## https://lists.exim.org/mailman3/postorius/lists/exim-users.lists.exim.org/ ## unsubscribe (doesn't require an account): ## [email protected] ## Exim details at http://www.exim.org/ ## Please use the Wiki with this list - http://wiki.exim.org/
