I have configured the mail delivery in IPFire and I tested it successfully.
I can seen in the log lot’s of entries like that:
Time: Nov 21 10:00:01
IP: 192.168.4.10
Host:
Facility: mail
Priority: err
Tag: dma[a603ea.1517d70]
Message: remote delivery to smtpauths.bluewin.ch [195.186.227.54] failed after MAIL FROM: 550 5.1.0 sc301: Invalid sender address
Time: Nov 21 10:00:01
IP: 192.168.4.10
Host:
Facility: mail
Priority: err
Tag: dma[a603ea.1517d70]
Message: remote delivery to smtpauths.bluewin.ch [195.186.227.54] failed after MAIL FROM: 550 5.1.0 sc301: Invalid sender address
If I hit “test mail” in IPFire right after such messages all is working OK and I get the e-mail. The log shows the following:
Any idea?
sec-con
(SecCon)
21 November 2023 09:24
2
Maybe you need an entry for “user: nobody” ?
Never mind I checked mine and it’s basically the same.
10:25:50 dma[60345c]: new mail from user=nobody uid=99 envelope_from=<security@conram.it>
10:25:50 dma[60345c]: mail to=<security@conram.it> queued as 60345c.6e6710
10:25:50 dma[60345c.6e6710]: <security@conram.it> trying delivery
10:25:50 dma[60345c.6e6710]: using smarthost (prime1.inleed.net:587)
10:25:50 dma[60345c.6e6710]: trying remote delivery to prime1.inleed.net [2001:67c:750::19] pref 0
10:25:50 dma[60345c.6e6710]: connect to prime1.inleed.net [2001:67c:750::19] failed: Cannot assign requested address
10:25:50 dma[60345c.6e6710]: trying remote delivery to prime1.inleed.net [185.189.48.4] pref 0
10:25:50 dma[60345c.6e6710]: Server greeting successfully completed
10:25:50 dma[60345c.6e6710]: Server supports STARTTLS
10:25:50 dma[60345c.6e6710]: Server supports LOGIN authentication
10:25:50 dma[60345c.6e6710]: SSL initialization successful
10:25:50 dma[60345c.6e6710]: Server greeting successfully completed
10:25:50 dma[60345c.6e6710]: Server does not support STARTTLS
10:25:50 dma[60345c.6e6710]: Server supports LOGIN authentication
10:25:50 dma[60345c.6e6710]: using SMTP authentication for user security@conram.it
10:25:50 dma[60345c.6e6710]: <security@conram.it> delivery successful
Despite this:
10:25:50 dma[60345c.6e6710]: connect to prime1.inleed.net [2001:67c:750::19] failed: Cannot assign requested address
it works.
Isn’t IPFire using the addresses (receipient and sender) which I have configured on the mail section of IPFire? Otherwise the “test mail” button is for nothing.
sec-con
(SecCon)
21 November 2023 09:35
4
again, mine works despite one error so your errors it may be related to something else.
Do you use correct ports, my mailserver uses 587.
My email provider uses TLS so the port is 465. Since the test messages are always working I assume that the configuration is OK.
I also saw in the log, that IPFire is using this address ipfireJBR@lcoal.ch and not the one I have configured. This ipfireJBR address won’t be accepted from my provider. Maybe the IPFireWeb GUI does not change all the sender addresses with the one I configured.