Reputation: 63
I am totally stuck...
I am trying to set up an exim4 server to send out mails through smarthosts only.
This is how it looks like:
My email addresses:
Contents of a few of the exim4 config files:
-> /etc/exim4/update-exim4.conf.conf:
dc_eximconfig_configtype='smarthost'
dc_other_hostnames='lnxmailsrv; lnxmailsrv.lone; lone'
dc_local_interfaces='192.168.111.200; 127.0.0.1'
dc_readhost='OTHERDOMAIN.com'
dc_hide_mailname='true'
dc_relay_domains='*'
dc_minimaldns='false'
dc_relay_nets=''
dc_smarthost='mail.gmx.net::587;smtp-mail.outlook.com::587;mail.OTHERDOMAIN.com::587;'
CFILEMODE='644'
dc_use_split_config='false'
dc_mailname_in_oh='true'
dc_localdelivery='maildir_home'
-> /etc/mailname:
OTHERDOMAIN.com
-> /etc/exim4/passwd.client (some server-specs are noted as regexp, but that does not seem to make any difference):
^mail\.gmx\.net:[email protected]:PASSWORD1
^mail\.gmx\.net:[email protected]:PASSWORD2
^mail\.gmx\.net:[email protected]:PASSWORD3
smtp-mail.outlook.com:[email protected]:PASSWORD4
mail.OTHERDOMAIN.com:[email protected]:PASSWORD5
I have already tried with "transport" und "router" entries within the respective files under
/etc/exim4/conf.d/
but without any success.
I can send mails from one single address only: [email protected]
All other throw error messages of the kind you can see below in excerpts of
/var/log/exim4/mainlog:
In the first example below I tried to send a mail from "[email protected]" to "[email protected]":
2024-05-01 20:59:18 1s2FAk-005IAz-0z <= [email protected] H=([192.168.111.233]) [192.168.111.233] P=esmtp S=581 [email protected]
2024-05-01 20:59:18 1s2FAk-005IAz-0z ** [email protected] R=smarthost T=remote_smtp_smarthost H=mail.gmx.net [212.227.17.168] X=TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256 CV=yes DN="C=DE,ST=Rheinland-Pfalz,L=Montabaur,O=1&1 Mail & Media GmbH,CN=mail.gmx.net": SMTP error from remote mail server after MAIL FROM:<[email protected]> SIZE=1639: 550-Requested action not taken: mailbox unavailable\n550 Sender address is not allowed.
You can see that exim uses the wrong smarthost, but this can not be the only fault, as....
....in the following example I tried to send a mail from "[email protected]" to "[email protected]", so the SMTP server would be correct, but still it is not working:
2024-05-02 18:11:05 1s2Z1V-005SwZ-0r <= [email protected] H=([192.168.111.233]) [192.168.111.233] P=esmtps X=TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_128_GCM:128 CV=no S=615 [email protected]
2024-05-02 18:11:05 1s2Z1V-005SwZ-0r **[email protected] R=smarthost T=remote_smtp_smarthost H=mail.gmx.net [212.227.17.168] X=TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256 CV=yes DN="C=DE,ST=Rheinland-Pfalz,L=Montabaur,O=1&1 Mail & Media GmbH,CN=mail.gmx.net": SMTP error from remote mail server after MAIL FROM:<[email protected]> SIZE=1666: 550-Requested action not taken: mailbox unavailable\n550 Sender address is not allowed.
Thanks for all the help!
Schogol
BTW: Receiving mails which are fetched by Getmail for Dovecot IMAP server functions wonderfully.
Upvotes: 1
Views: 247