Quantcast
Channel: openSUSE Forums
Viewing all articles
Browse latest Browse all 40713

Help - Can't get postfix to send email with SSL

$
0
0
My provider wants me to start submitting email via SMTP with SSL encryption. I used to simply submit email via postfix to mr01.hansenet.de:465 like this:

main.cf:
Code:

relayhost = mr01.hansenet.de
sender_canonical:
Code:

foth      kilianfoth@alice-dsl.de
Both these are heavily obsolete, since those products/companies don't exist anymore and everything is "O2" now, but so far it kept working, and I didn't want to meddle with a working set-up.

Now the provider has started rejecting emails sent like this to other "alice.de" users ("Local senders are prohibited to send to local recipients without authentication"), and their support told me to switch to a new relay host; I'm afraid that old relay will be eventually switched off, so I should make the switch.

Unfortunately this means submitting SMTP email with SSL, and I'm failing at getting this to work. Having read advice from people on the internet who had the same problem, I tried these additional settings:

main.cf:
Code:

relayhost = smtp.o2mail.de:465
smtp_sasl_auth_enable = yes
smtp_sasl_security_options =
smtp_sasl_password_maps = hash:/etc/postfix/password
smtpd_sasl_auth_enable = no
smtp_use_tls = yes

sender_canonical:
Code:

foth      kilianfoth@o2mail.de
master.cf:
Code:

tlsmgr    unix  -      -      n      1000?  1      tlsmgr
password:
Code:

smtp.o2mail.de:465    kilianfoth@o2mail.de:MYPASSWORD

But I can't get any mail through - /var/log/mail says

Code:

postfix/smtp[8960]: CLIENT wrappermode (port smtps/465) is unimplemented
postfix/smtp[8960]: instead, send to (port submission/587) with STARTTLS
postfix/smtp[8960]: connect to new.maila.net[204.45.2.141]:465: Connection timed out
postfix/smtp[8960]: 5361332C0732: to=<kilianfoth@meetingsphere.com>, relay=none, delay=30, delays=0.11/0.01/30/0, dsn=4.4.1, status=deferred (connect to new.maila.net[204.45.2.141]:465: Connection timed out)


Therefore I tried using STARTTLS by talking to port 587:

main.cf:
Code:

relayhost = smtp.o2mail.de:587

That takes care of the first problem, but I'm still timing out:

Code:

postfix/smtp[9016]: connect to new.maila.net[204.45.2.141]:587: Connection timed out
postfix/smtp[9016]: 14FAE32C0731: to=<kilianfoth@meetingsphere.com>, relay=none, delay=528, delays=498/0.01/30/0, dsn=4.4.1, status=deferred (connect to new.maila.net[204.45.2.141]:587: Connection timed out)

Now, I can reach smtp.o2mail.de fine via telnet, both on port 465 and 587, but not new.maila.net. Why would postfix talk to new.maila.net (204.45.2.141) instead of smtp.o2mail.de (91.136.8.189), and what can I do to prevent timing out?

Viewing all articles
Browse latest Browse all 40713

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>