Tiež sa akorát snažim rozbehnúť postfix ako relayhost na szm. Akorát mi odmieta cez szm odoslať.
Chyba z mail.log
Feb 28 10:49:15 maxcomputers postfix/smtp[2595]: B98E62DA7A: to=<mirocafal1@gmail.com>, relay=mail.szm.com[88.86.113.6]:25, delay=35, delays=34/0.02/0.18/0.15, dsn=5.7.1, status=bounced (host mail.szm.com[88.86.113.6] said: 554 5.7.1 Service unavailable; Client host [212.5.194.230] blocked using cbl.abuseat.org; Blocked - see http://cbl.abuseat.org/lookup.cgi?ip=212.5.194.230 (in reply to RCPT TO command))
Feb 28 10:49:15 maxcomputers postfix/cleanup[2593]: 2A4842F7F7: message-id=<20120228094915.2A4842F7F7@maxcomputers.sk>
Feb 28 10:49:15 maxcomputers postfix/qmgr[2592]: 2A4842F7F7: from=<>, size=2683, nrcpt=1 (queue active)
Feb 28 10:49:15 maxcomputers postfix/bounce[2707]: B98E62DA7A: sender non-delivery notification: 2A4842F7F7
Feb 28 10:49:15 maxcomputers postfix/qmgr[2592]: B98E62DA7A: removed
Feb 28 10:49:15 maxcomputers postfix/local[2708]: 2A4842F7F7: to=<maxcomputers@maxcomputers>, relay=local, delay=0.06, delays=0.01/0.03/0/0.01, dsn=2.0.0, status=sent (delivered to command: procmail -a "$EXTENSION")
Feb 28 10:49:15 maxcomputers postfix/qmgr[2592]: 2A4842F7F7: removed
main.cf
# 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 (Ubuntu)
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
# 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=yes
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.
myhostname = maxcomputers.sk
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = maxcomputers.sk, maxcomputers, localhost.localdomain, localhost
relayhost = mail.szm.com
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
smtpd_recipient_restrictions = permit_mynetworks reject_unauth_destination permit_inet_interfaces
smtp_sasl_password_maps = hash:/etc/postfix/smtp_sasl_password_map
smtpd_sasl_auth_enable = yes
Neviem, či nie je problém s certifikátom, lebo mailový klient si najprv musí stiahnuť certifikát, až potom môže odoslať. Ale ten neviem ako dostať do postfixu.
Vďaka.