Hello ^^)
Le 24/06/2021 à 16:17, IL Ka a écrit :
Hello.
> relayhost = [smtp.externalserver]
Do you really want to send all emails via this host or do you want to
send them directly?
this is my registrar host where I have that domain, their mail system
offers a lot of stuff I would not have to implement on my own server, so
I wanted to test with these.
BTW I first tried to send directly from my server but got the same
problem of no outgoing mails... all mails sent was delivered on the
server only. not outside where it should go.
BTW II : if I could send all mail from the server and its hosted
websites directly to the outside I will be happy ^^)
> Jun 24 12:50:53 amiga postfix/smtpd[26449]: connect from
localhost[127.0.0.1]
> Jun 24 12:53:14 amiga postfix/smtpd[26449]: SSL_accept error from
localhost[127.0.0.1]: -1
> Jun 24 12:53:14 amiga postfix/smtpd[26449]: warning: TLS library
problem: error:1408F10B:SSL routines:ssl3_get_record:wrong version
number:../ssl/record/ssl3_record.c:332:
Local client failed to connect to the local server using TLS. Which
client do you use?
to test mail sending I've just used that in the shell :
echo "please don't reply" | mail -s "Test" webmaster@mydomain
or
echo "please don't reply" | mail -s "Test" jfbache...@free.fr
the first never worked as expected (delivered on the server itself or
vanishes as soon as secure sending was on, but never to the outside. and
still not now that the sending to customer@everywhere works (second example)
> Jun 24 12:58:54 amiga postfix/smtp[26836]: connect to
mail.'external host'[external host IP]:25: Connection timed out
For some reason smtp client failed to connect to this host to send email
> Jun 24 13:13:24 amiga postfix/smtp[27566]: ACD741C80B56:
to=<customer@anywhere>, relay=smtp.free.fr
<http://smtp.free.fr>[2a01:e0c:1::25]:25, delay=1494,
delays=1494/0.02/0.04/0.08, dsn=2.0.0, status=sent (250 2.0.0 Ok: q$
Email to the "customer@anywhere" was sent using "smtp.free.fr
<http://smtp.free.fr>" (which I believe is "smtp.externalserver", right?)
So:
If you want to send all emails via smarthost (relayhost), then you need:
* Find smarthost (provided by your ISP or hoster or whatever)
*
http://www.postfix.org/STANDARD_CONFIGURATION_README.html#null_client
<http://www.postfix.org/STANDARD_CONFIGURATION_README.html#null_client>
If you want to send emails directly, you need to:
* make sure 25 port is opened for the outgoing connections
* you have SPF, DKIM and DMARC
*
http://www.postfix.org/STANDARD_CONFIGURATION_README.html#stand_alone
<http://www.postfix.org/STANDARD_CONFIGURATION_README.html#stand_alone>