ich möchte gerne auf meinem Debian Postfix einrichten. Das System soll mit Hilfe Postfix Mails versenden können. Da ich auf dem System auch ein Wordpress laufen haben, möchte ich meinen Apache so konfigurieren, dass Mails über postfix verschickt werden. Die Mails sollen über ein eingerichtetes Gmail Konto verschickt werden.
Anbei meine configs:
main.cfg
Code: Alles auswählen
# See /usr/share/postfix/main.cf.dist for a commented, more complete version
# Debian specific: Specifying a file name will cause the first
# line of that file to be used as the name. The Debian default
# is /etc/mailname.
#myorigin = /etc/mailname
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
biff = no
# appending .domain is the MUA's job.
append_dot_mydomain = no
# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h
readme_directory = no
sion_cache_database = btree:${data_directory}session_cache_database = btree:${data_directory}
# TLS parameters
smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
smtpd_use_tls=no
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
# See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
# information on enabling SSL in the smtp client.
#smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defe$
myhostname = hase
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = meinemail@gmail.com, hase, localhost.localdomain, l$
relayhost = [smtp.gmail.com]:587
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = loopback-only
default_transport = smtp
relay_transport = smtp
inet_protocols = all
# GMail
smtp_use_tls=yes
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_security_options = noanonymous
smtp_sasl_tls_security_options = noanonymous
smtp_tls_CAfile = /etc/postfix/cacert.pem
# /GMail
Code: Alles auswählen
[smtp.gmail.com]:587 meinemail@gmail.com:meinPW
Code: Alles auswählen
Aug 27 12:27:15 hase postfix/error[6620]: 248032C0C42: to=<root@meinemail$
Aug 27 12:27:15 hase postfix/error[6612]: 71DFE2C0D38: to=<root@meinemail$
Aug 27 12:27:15 hase postfix/error[6618]: 868E42C0C81: to=<root@meinemail$
Aug 27 12:27:15 hase postfix/error[6613]: 2EE872C0C50: to=<root@meinemail$
Aug 27 12:27:15 hase postfix/error[6615]: 807892C0D48: to=<root@meinemail$
Aug 27 12:27:15 hase postfix/error[6620]: 8C72F2C0D58: to=<root@meinemail$
Aug 27 12:27:15 hase postfix/error[6614]: F1F952C0C26: to=<root@meinemail$
Aug 27 12:27:15 hase postfix/bounce[6610]: E6CD52C0C18: sender non-deliver$
Aug 27 12:27:15 hase postfix/qmgr[1037]: E6CD52C0C18: removed
Aug 27 12:27:15 hase postfix/qmgr[1037]: 40AE42C0BC3: from=<>, size=2760, $
Aug 27 12:27:15 hase postfix/error[6612]: 40AE42C0BC3: to=<root@meinemail$
Aug 27 12:30:13 hase postfix/pickup[6474]: A923E2C0E0A: uid=0 from=<root@S$
Aug 27 12:30:13 hase postfix/cleanup[6628]: A923E2C0E0A: message-id=<20150$
Aug 27 12:30:13 hase postfix/qmgr[1037]: A923E2C0E0A: from=<root@hase>, $
Aug 27 12:30:13 hase postfix/error[6630]: A923E2C0E0A: to=<Empfängermail@t-on$
Code: Alles auswählen
Aug 27 12:36:39 hase postfix/pickup[6474]: 0F1A02C0E0D: uid=0 from=<root@hase>
Aug 27 12:36:39 hase postfix/cleanup[6650]: 0F1A02C0E0D: message-id=<20150827103639.0F1A02C0E0D@hase>
Aug 27 12:36:39 hase postfix/qmgr[1037]: 0F1A02C0E0D: from=<root@hase>, size=333, nrcpt=1 (queue active)
Aug 27 12:36:39 hase postfix/smtp[6652]: 0F1A02C0E0D: SASL authentication failed; server smtp.gmail.com[74.125.XXX.XXX] said: 534-5.7.14 <https://accounts.google.com/ContinueSignIn?sarp=1&scc=1&plt=AKgnsbsim?534-5.7.14 6R_xHoEVCyb8iUHnx2XmJDw1LNRDpkVpM_o0tVByuaNhq5IPx4P9UrXXUhneSl5yui-jiU?534-5.7.14 -7w3240ZnMRR_lrZtOFdQbFDa80HlVvQbaQCVsdPMDbrlugrY4fZj3c7uhB850pwA0xVHl?534-5.7.14 1gE3Rquw0tmAUCc7tsPhejLb28mi094-FXL9Dyq0aqy_I0-zhDzSwpC_OYG1yEn0LceeiW?534-5.7.14 wNwj5KBSouE-uzAYsFYjdT0Jn0vs> Please log in via your web browser and?534-5.7.14 then try again.?534-5.7.14 Learn more at?534 5.7.14 https://support.google.com/mail/answer/78754 d7sm1942829wiz.22 - gsmtp
Aug 27 12:36:39 hase postfix/smtp[6652]: connect to smtp.gmail.com[2a00:1450:4013:c01::6d]:587: Network is unreachable
Aug 27 12:36:40 hase postfix/smtp[6652]: 0F1A02C0E0D: to=<empfängermail@t-online.de>, relay=smtp.gmail.com[74.125.XXX.XXX]:587, delay=1.4, delays=0.04/0.02/1.4/0, dsn=4.7.14, status=deferred (SASL authentication failed; server smtp.gmail.com[74.125.XXX.XXX] said: 534-5.7.14 <https://accounts.google.com/ContinueSignIn?sarp=1&scc=1&plt=AKgnsbspB?534-5.7.14 GHAqCjMm8b7oh9XQqjA79RakOc0F2KfLWvANh8bBc4kijpJmZE5QkTA9uXMp0KNXR6x64i?534-5.7.14 5GsNqp51cX7OZiG6flbZuhqZYNo6P1HnqrsrEq8M-ecAWneHNG8n--sfRoLk6d8eci9yJE?534-5.7.14 rE6n51KQwX_Xs9HNy1JgZRhiN5jDubXEX6m8er_K0ntaf4_erWojUkeka6H-FNQtl-B-4z?534-5.7.14 8tThtNDIGXgTcUiv1dxP97o20sFo> Please log in via your web browser and?534-5.7.14 then try again.?534-5.7.14 Learn more at?534 5.7.14 https://support.google.com/mail/answer/78754 h9sm2418191wjx.20 - gsmtp)
LG