Доброго времени суток all.Бьюсь с PostFix уже неделю, ничего не получается.
Моя задача отправка сообщений с локального компьютера на почтовый ящик в Интернете.
Мой конфиг:
# These are only the parameters changed from a default install
# see /etc/postfixmain.cf.dist for a commented, fuller version of this file.
myhostname = firma.ru
mydomain = firma.ru
# These are changed by postfix install script
readme_directory = /usr/share/doc/postfix-2.1.5/README_FILES
sample_directory = /usr/share/doc/postfix-2.1.5/samples
html_directory = /usr/share/doc/postfix-2.1.5/html
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
command_directory = /usr/sbin
manpage_directory = /usr/share/man
daemon_directory = /usr/lib/postfix
newaliases_path = /usr/bin/newaliases.postfix
mailq_path = /usr/bin/mailq.postfix
queue_directory = /var/spool/postfix
mail_owner = postfix
# User configurable parameters
inet_interfaces = localhost
mydestination = $myhostname
mynetworks = 127.0.0.1/8
alias_database=dbm:/etc/postfix/aliases
mynetworks_style = host
delay_warning_time = 4h
defer_transport=smtp
relayhost = [firma.ru]
#smtpd_banner = $myhostname ESMTP $mail_name ($mail_version) (Mandrakelinux)
unknown_local_recipient_reject_code = 450
smtp-filter_destination_concurrency_limit = 2
lmtp-filter_destination_concurrency_limit = 2
smtpd_sasl_path = /etc/postfix/sasl:/usr/lib/sasl2
smtpd_client_restrictions = permit_mynetworks, reject_unknown_client
smtpd_sender_restrictions = permit_mynetworks, reject_unknown_address, reject_no n_fqdn_sender, reject_invalid_hostname
smtpd_recipient_restrictions = permit_mynetworks, permit_mx_backup, reject_non_f qdn_sender, reject_non_fqdn_recipient, reject_unknown_sender_domain, check_relay _domains, reject_unknown_client, reject
local_destination_concurrency_limit = 2
default_destination_concurrency_limit = 10
debug_peer_level = 2
Логи:
Errors:
Sep 5 16:44:45 server postfix/postfix-script: fatal: the Postfix mail system is already running
Sep 6 12:21:10 server postfix[4774]: fatal: usage: postfix [-c config_dir] [-Dv] command
Sep 6 12:21:14 server postfix/postfix-script: fatal: usage: postfix start (or stop, reload, abort, flush, check, set-permissions, upgrade-configuration)
Info:
Sep 6 11:49:15 server postfix/postfix-script: starting the Postfix mail system
Sep 6 11:49:15 server postfix/master[4177]: daemon started -- version 2.1.5
Sep 6 11:49:15 server postfix/qmgr[4181]: 5EA8B83ED: from=<root@serverstk.firma.ru>, size=337, nrcpt=1 (queue active)
Sep 6 11:49:15 server postfix/qmgr[4181]: ADE0883E2: from=<root@serverstk.firma.ru>, size=337, nrcpt=1 (queue active)
Sep 6 11:49:15 server postfix/qmgr[4181]: EA2708412: from=<root@ServerSTK.ServerSTK>, size=317, nrcpt=1 (queue active)
Sep 6 11:49:15 server postfix/qmgr[4181]: 963AB8414: from=<root@serverstk.firma.ru>, size=337, nrcpt=1 (queue active)
Sep 6 11:49:15 server postfix/local[4187]: 5EA8B83ED: to=<postfix@firma.ru>, orig_to=<admin@firma.ru>, relay=local, delay=75250, status=sent (delivered to mailbox)
Sep 6 11:49:15 server postfix/qmgr[4181]: 5EA8B83ED: removed
Sep 6 11:49:15 server postfix/local[4189]: EA2708412: to=<postfix@firma.ru>, orig_to=<admin@firma.ru>, relay=local, delay=74096, status=sent (delivered to mailbox)
Sep 6 11:49:15 server postfix/qmgr[4181]: EA2708412: removed
Sep 6 11:49:15 server postfix/local[4187]: 963AB8414: to=<postfix@firma.ru>, orig_to=<admin@firma.ru>, relay=local, delay=73828, status=sent (delivered to mailbox)
Sep 6 11:49:15 server postfix/qmgr[4181]: 963AB8414: removed
Sep 6 11:49:16 server postfix/pickup[4180]: 56CFF83B2: uid=0 from=<root>
Sep 6 11:49:16 server postfix/cleanup[4185]: 56CFF83B2: message-id=<20060906000445.56CFF83B2@firma.ru>
Sep 6 11:49:16 server postfix/qmgr[4181]: 56CFF83B2: from=<root@firma.ru>, size=639, nrcpt=1 (queue active)
Sep 6 11:49:16 server postfix/pickup[4180]: 5B51D83ED: uid=0 from=<root>
Sep 6 11:49:16 server postfix/cleanup[4185]: 5B51D83ED: message-id=<20060906000447.5B51D83ED@firma.ru>
Sep 6 11:49:16 server postfix/qmgr[4181]: 5B51D83ED: from=<root@firma.ru>, size=5594, nrcpt=1 (queue active)
Sep 6 11:49:16 server postfix/local[4187]: 5B51D83ED: to=<m72rh73w2k@firma.ru>, orig_to=<m72rh73w2k>, relay=local, delay=27869, status=bounced (unknown user: "m72rh73w2k")
Sep 6 11:49:16 server postfix/cleanup[4185]: 6A5198416: message-id=<20060906074916.6A5198416@firma.ru>
Sep 6 11:49:16 server postfix/qmgr[4181]: 6A5198416: from=<>, size=7221, nrcpt=1 (queue active)
Sep 6 11:49:16 server postfix/qmgr[4181]: 5B51D83ED: removed
Sep 6 11:49:16 server postfix/cleanup[4185]: 6CEC6841E: message-id=<20060906074916.6CEC6841E@firma.ru>
Sep 6 11:49:16 server postfix/local[4187]: 6A5198416: to=<postfix@firma.ru>, orig_to=<root@firma.ru>, relay=local, delay=0, status=sent (delivered to mailbox)
Sep 6 11:49:16 server postfix/qmgr[4181]: 6A5198416: removed
Sep 6 11:49:16 server postfix/qmgr[4181]: 6CEC6841E: from=<>, size=2266, nrcpt=1 (queue active)
Sep 6 11:49:16 server postfix/qmgr[4181]: 56CFF83B2: removed
Sep 6 11:49:16 server postfix/local[4189]: 6CEC6841E: to=<postfix@firma.ru>, orig_to=<root@firma.ru>, relay=local, delay=0, status=sent (delivered to mailbox)
Sep 6 11:49:16 server postfix/qmgr[4181]: 6CEC6841E: removed
Sep 6 11:49:17 server postfix/local[4188]: ADE0883E2: to=<postfix@firma.ru>, orig_to=<admin@firma.ru>, relay=local, delay=75324, status=sent (delivered to mailbox)
Sep 6 11:49:17 server postfix/qmgr[4181]: ADE0883E2: removed
Sep 6 11:49:39 server postfix/pickup[4180]: 2DE7F83E2: uid=0 from=<root>
Sep 6 11:49:39 server postfix/cleanup[4193]: 2DE7F83E2: message-id=<20060906074939.2DE7F83E2@firma.ru>
Sep 6 11:49:39 server postfix/qmgr[4181]: 2DE7F83E2: from=<root@firma.ru>, size=305, nrcpt=1 (queue active)
Sep 6 11:49:39 server postfix/local[4187]: 2DE7F83E2: to=<postfix@firma.ru>, orig_to=<admin@firma.ru>, relay=local, delay=0, status=sent (delivered to mailbox)
Sep 6 11:49:39 server postfix/qmgr[4181]: 2DE7F83E2: removed
Warnings:
Sep 6 11:49:15 server postfix/postfix-script: warning: not set-gid or not owner+group+world executable: /usr/sbin/postqueue
Sep 6 11:49:15 server postfix/postfix-script: warning: not set-gid or not owner+group+world executable: /usr/sbin/postdrop
Почту пытаюсь отсылать через команду mail, например, id | mail –n –s test admin@firma.ru
Буду признателен если поможете как ссылочкой так и советом.