Nedd Help configuring postfix

Hi guys,

i got an centos server and now i want to send mails automatically to the users if the server is going down for reasons.
I also created a mailaccount on mail.de for my server because i dont want trouble with not being in a whitelist.

I used this tutorial to setup postfix


but i am stuck at adding the certificate. Can anyone help?

greetings

Felix

Do you mean your server certificate for when you connect to your server and not the CA certificates used to validate other servers? Make sure you have these lines in your main.cf file:

# TLS parameters
# smtp_use_tls = no
smtp_tls_security_level = may
smtpd_use_tls=yes
smtpd_tls_security_level = may
# smtpd_tls_auth_only = no
smtp_tls_note_starttls_offer = yes
smtpd_tls_loglevel = 2
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
tls_random_source = dev:/dev/urandom
smtpd_tls_cert_file=/etc/ssl/certs/your-public-key.crt
smtpd_tls_key_file=/etc/ssl/private/your-private-key.key
# smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
# smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtp_tls_CAfile = /etc/ssl/certs/ca-certificates.crt
smtp_tls_mandatory_protocols=!SSLv2,!SSLv3

Also make sure you uncomment the submission line in master.cf:

submission inet n       -       n       -       -       smtpd

That should do it, if not check out this guide, it's what I used when setting up my mail server.

http://flurdy.com/docs/postfix/