Witam, mam problem z wysyłaniem mails. Gdy próbuje wysłać mail z SquirrelMail to dostaje błąd:
Odbieranie maili wysłanych na mój adres user@domena.tld działa bardzo ładnie SquirrelMail odbiera je bez problemu. Ale przy wysyłaniu maila dostaje taki błąd.
Podczas wysyłania w /var/log/mail.log jest takie co:
Aug 1 14:39:41 aaa postfix/smtpd[27890]: connect from localhost[127.0.0.1]
Aug 1 14:39:41 aaa postfix/smtpd[27890]: lost connection after UNKNOWN from localhost[127.0.0.1]
Aug 1 14:39:41 aaa postfix/smtpd[27890]: disconnect from localhost[127.0.0.1]
Dodam że tylko w SquirrelMail jest taki błąd z wysyłaniem z php mail(); wysyła bez problemu.
Moja konfiguracja main.cf
root@aaa:/etc/postfix# cat main.cf
# See /usr/share/postfix/main.cf.dist for a commented, more complete version
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = mail.itunix.eu
smtpd_recipient_restrictions = permit_mynetworks,permit_sasl_authenticated,reject_unauth_destination
smtpd_sasl_security_options = noanonymous
# 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 = /usr/share/doc/postfix
# 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 = aaa.router
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = itunix.eu, dropit.pl, aaa.router, localhost.router, localhost
relayhost =
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
html_directory = /usr/share/doc/postfix/html
root@aaa:/etc/postfix# cat /etc/mailname
itunix.eu
dropit.pl
Jak naprawić błąd?
PS. Tutaj są logi z odbierania maila (odbieranie działa bardzo dobrze)
Aug 1 14:55:18 aaa postfix/smtpd[28003]: connect from mail-yi0-f50.google.com[209.85.218.50]
Aug 1 14:55:19 aaa postfix/smtpd[28003]: BA7C713F854: client=mail-yi0-f50.google.com[209.85.218.50]
Aug 1 14:55:19 aaa postfix/cleanup[28008]: BA7C713F854: message-id=
Aug 1 14:55:20 aaa postfix/qmgr[27913]: BA7C713F854: from=, size=1474, nrcpt=1 (queue active)
Aug 1 14:55:20 aaa postfix/local[28009]: BA7C713F854: to=, orig_to=, relay=local, delay=0.48, delays=0.41/0/0/0.07, dsn=2.0.0, status=sent (delivered to mailbox)
Aug 1 14:55:20 aaa postfix/qmgr[27913]: BA7C713F854: removed