Zainstalowałem serwer poczty postfix z obsługą mysql, courier-imap, courier-pop, sasl i parę innych rzeczy zgodnie z tym poradnikiem. Mam niestety z nim dwa problemy.
Problem 1: testowa poczta wysyłana do mnie z Gmaila nie dochodzi. Oto fragment logu:
Kod: Zaznacz cały
cat /var/log/mail.err
Dec 20 17:36:16 HOSTname postfix/smtpd[13160]: connect from mail-ew0-f210.google.com[209.85.219.210]
Dec 20 17:36:17 HOSTname postfix/smtpd[13160]: 1EB02274E6: client=mail-ew0-f210.google.com[209.85.219.210]
Dec 20 17:36:17 HOSTname postfix/cleanup[13165]: 1EB02274E6: message-id=<7ef2f7be0912200836k38448fc2hd18198e1025cebf8@mail.gmail.com>
Dec 20 17:36:17 HOSTname postfix/qmgr[12312]: 1EB02274E6: from=<test@gmail.com>, size=1758, nrcpt=1 (queue active)
Dec 20 17:36:23 HOSTname postfix/smtpd[13171]: connect from poczta.mojadomena.pl.local[127.0.0.1]
Dec 20 17:36:23 HOSTname postfix/smtpd[13171]: 9EC4E275A4: client=poczta.mojadomena.pl.local[127.0.0.1]
Dec 20 17:36:23 HOSTname postfix/cleanup[13165]: 9EC4E275A4: message-id=<7ef2f7be0912200836k38448fc2hd18198e1025cebf8@mail.gmail.com>
Dec 20 17:36:23 HOSTname postfix/qmgr[12312]: 9EC4E275A4: from=<test@gmail.com>, size=2205, nrcpt=1 (queue active)
Dec 20 17:36:23 HOSTname postfix/smtpd[13171]: disconnect from poczta.mojadomena.pl.local[127.0.0.1]
Dec 20 17:36:23 HOSTname amavis[12194]: (12194-02) Passed CLEAN, [209.85.219.210] [209.85.219.210] <test@gmail.com> -> <biuro@mojadomena.pl>, Message-ID: <7ef2f7be0912200836k38448fc2hd18198e1025cebf8@mail.gmail.com>, mail_id: eYH-V93uqOrr, Hits: 0.001, size: 1758, queued_as: 9EC4E275A4, 6470 ms
Dec 20 17:36:23 HOSTname postfix/smtp[13167]: 1EB02274E6: to=<biuro@mojadomena.pl>, relay=127.0.0.1[127.0.0.1]:10024, delay=6.7, delays=0.16/0.01/0.01/6.5, dsn=2.0.0, status=sent (250 2.0.0 Ok, id=12194-02, from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as 9EC4E275A4)
Dec 20 17:36:23 HOSTname postfix/qmgr[12312]: 1EB02274E6: removed
Dec 20 17:36:23 HOSTname postfix/local[13173]: 9EC4E275A4: to=<biuro@mojadomena.pl>, relay=local, delay=0.12, delays=0.04/0.02/0/0.06, dsn=5.1.1, status=bounced (unknown użytkownik: "biuro")
Dec 20 17:36:23 HOSTname postfix/cleanup[13165]: BD24E275B2: message-id=<20091220163623.BD24E275B2@mojadomena.pl>
Dec 20 17:36:23 HOSTname postfix/qmgr[12312]: BD24E275B2: from=<>, size=3947, nrcpt=1 (queue active)
Dec 20 17:36:23 HOSTname postfix/bounce[13174]: 9EC4E275A4: sender non-delivery notification: BD24E275B2
Dec 20 17:36:23 HOSTname postfix/qmgr[12312]: 9EC4E275A4: removed
Dec 20 17:36:24 HOSTname postfix/smtp[13175]: BD24E275B2: to=<test@gmail.com>, relay=gmail-smtp-in.l.google.com[209.85.218.40]:25, delay=0.44, delays=0.04/0.01/0.17/0.21, dsn=2.0.0, status=sent (250 2.0.0 OK 1261326996 28si9190219bwz.77)
Dec 20 17:36:24 HOSTname postfix/qmgr[12312]: BD24E275B2: removed
Dec 20 17:36:47 HOSTname postfix/smtpd[13160]: disconnect from mail-ew0-f210.google.com[209.85.219.210]
Dec 20 17:40:07 HOSTname postfix/anvil[13163]: statistics: max connection rate 1/60s for (smtp:209.85.219.210) at Dec 20 17:36:16
Dec 20 17:40:07 HOSTname postfix/anvil[13163]: statistics: max connection count 1 for (smtp:209.85.219.210) at Dec 20 17:36:16
Dec 20 17:40:07 HOSTname postfix/anvil[13163]: statistics: max cache size 1 at Dec 20 17:36:16
Kod: Zaznacz cały
This is the mail system at host mojadomena.pl.
I'm sorry to have to inform you that your message could not
be delivered to one or more recipients. It's attached below.
For further assistance, please send mail to postmaster.
If you do so, please include this problem report. You can
delete your own text from the attached returned message.
The mail system
<biuro@mojadomena.pl>: unknown użytkownik: "biuro"
Final-Recipient: rfc822; [email]biuro@mojadomena.pl[/email]
Original-Recipient: rfc822;biuro@mojadomena.pl
Action: failed
Status: 5.1.1
Diagnostic-Code: X-Postfix; unknown użytkownik: "biuro"
Kod: Zaznacz cały
cat /etc/postfix/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
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/postfix/smtpd.cert
smtpd_tls_key_file = /etc/postfix/smtpd.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
smtpd_banner = Mojadomena Mail system
# See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
# information on enabling SSL in the smtp client.
myhostname = mojadomena.pl
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = mojadomena.pl, localhost, localhost.mojadomena.pl
relayhost =
mynetworks = 127.0.0.0/8
mailbox_command = procmail -a "$EXTENSION"
mail_spool_directory = /var/spool/mail
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
html_directory = /usr/share/doc/postfix/html
smtpd_sasl_auth_enable = yes
broken_sasl_auth_clients = yes
smtpd_sasl_security_options = noanonymous
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
message_size_limit = 30720000
virtual_alias_domains =
virtual_alias_maps = proxy:mysql:/etc/postfix/mysql-virtual_forwardings.cf, mysql:/etc/postfix/mysql-virtual_email2email.cf
virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql-virtual_domains.cf
virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailboxes.cf
virtual_mailbox_base = /home/vmail
virtual_uid_maps = static:1002
virtual_gid_maps = static:1002
smtpd_sasl_authenticated_header = yes
transport_maps = proxy:mysql:/etc/postfix/mysql-virtual_transports.cf
virtual_create_maildirsize = yes
virtual_maildir_extended = yes
#irtual_mailbox_limit_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailbox_limit_maps.cf
#irtual_mailbox_limit_override = yes
#irtual_maildir_limit_message = "The użytkownik you are trying to reach is over quota."
#irtual_overquota_bounce = yes
proxy_read_maps = $local_recipient_maps $mydestination $virtual_alias_maps $virtual_alias_domains $virtual_mailbox_maps $virtual_mailbox_domains $relay_recipient_maps $relay_domains $canonical_maps $sender_canonical_maps $recipient_canonical_maps $relocated_maps $transport_maps $mynetworks $virtual_mailbox_limit_maps
content_filter = amavis:[127.0.0.1]:10024
receive_override_options = no_address_mappings
Problem 2: Nie mogę się dostać do poczty przez SMTP.
Kod: Zaznacz cały
cat /var/log/mail.log
Dec 20 17:35:00 HOSTname pop3d: LOGIN, użytkownik=biuro@mojadomena.pl, ip=[::ffff:moje.IP], port=[50849]
Dec 20 17:35:00 HOSTname pop3d: scancur opendir("cur"): No such file or directory
Dziękuję za odpowiedzi.