Проблемы с postfix.
Нужно настроить локальную почту.
конфиг:
#cat /usr/local/etc/postfix/main.cf
soft_bounce = no
queue_directory = /var/spool/postfix
command_directory = /usr/local/sbin
daemon_directory = /usr/local/libexec/postfix
config_directory = /usr/local/etc/postfix
mail_spool_directory = /var/mail
manpage_directory = /usr/local/man
sample_directory = /usr/local/etc/postfix
mail_owner = postfix
myhostname = host.domain.ru
mydomain = domain.ru
myorigin = $myhostname
mydestination = $myhostname localhost.$mydomain
mynetworks = 192.168.0.0/24, 127.0.0.1/32
relay_domains = $mydomain
virtual_maps = hash:${config_directory}/virtual
relocated_maps = hash:${config_directory}/relocated
transport_maps = hash:${config_directory}/transport
alias_maps = hash:${config_directory}/aliases
alias_database = hash:${config_directory}/aliases
#cat /usr/local/etc/postfix/transport
domain.ru smtp:[192.168.0.100]
* smtp:
#cat /usr/local/etc/postfix/aliases
postmaster: root
bin: root
daemon: root
named: root
nobody: root
uucp: root
www: root
ftp-bugs: root
postfix: root
manager: root
dumper: root
operator: root
abuse: postmaster
decode: root
почему-то локальную почту он шлет по smtp...
делаю
#mail -s test root
и в логе следующее:
----
Aug 14 09:31:22 host sendmail[1554]: h7E5VMH8001554: from=root, size=24, class=0, nrcpts=1, msgid=<200308140531.h7E5VMH8001554@host.domain.ru>, relay=root@localhost
Aug 14 09:31:22 host postfix/smtpd[1555]: connect from localhost.domain.ru[127.0.0.1]
Aug 14 09:31:22 host postfix/smtpd[1555]: ABAE34F3EF: client=localhost.domain.ru[127.0.0.1]
Aug 14 09:31:22 host postfix/cleanup[1557]: ABAE34F3EF: message-id=<200308140531.h7E5VMH8001554@host.domain.ru>
Aug 14 09:31:22 host postfix/qmgr[1550]: ABAE34F3EF: from=<root@host.domain.ru>, size=534, nrcpt=1 (queue active)
Aug 14 09:31:22 host sendmail[1554]: h7E5VMH8001554: to=root, ctladdr=root (1001/20), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30024, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (Ok: queued as ABAE34F3EF)
Aug 14 09:31:22 host postfix/smtpd[1555]: disconnect from localhost.domain.ru[127.0.0.1]
Aug 14 09:31:22 host postfix/smtpd[1555]: connect from host.domain.ru[194.190.x.x]
Aug 14 09:31:22 host postfix/smtp[1559]: warning: host host.domain.ru[194.190.x.x] greeted me with my own hostname host.domain.ru
Aug 14 09:31:22 host postfix/smtp[1559]: warning: host host.domain.ru[194.190.x.x] replied to HELO/EHLO with my own hostname host.domain.ru
Aug 14 09:31:22 host postfix/smtp[1559]: ABAE34F3EF: to=<root@host.domain.ru>, relay=host.domain.ru[194.190.x.x], delay=0, status=bounced (mail for host.domain.ru loops back to myself)
Aug 14 09:31:22 host postfix/smtpd[1555]: lost connection after EHLO from host.domain.ru[194.190.x.x]
Aug 14 09:31:22 host postfix/smtpd[1555]: disconnect from host.domain.ru[194.190.x.x]
Aug 14 09:31:22 host postfix/cleanup[1557]: E00584F39F: message-id=<20030814053122.E00584F39F@host.domain.ru>
Aug 14 09:31:22 host postfix/qmgr[1550]: E00584F39F: from=<>, size=2140, nrcpt=1 (queue active)
Aug 14 09:31:22 host postfix/smtpd[1555]: connect from host.domain.ru[194.190.x.x]
Aug 14 09:31:22 host postfix/smtp[1559]: warning: host host.domain.ru[194.190.x.x] greeted me with my own hostname host.domain.ru
Aug 14 09:31:22 host postfix/smtp[1559]: warning: host host.domain.ru[194.190.x.x] replied to HELO/EHLO with my own hostname host.domain.ru
Aug 14 09:31:22 host postfix/smtp[1559]: E00584F39F: to=<root@host.domain.ru>, relay=host.domain.ru[194.190.x.x], delay=0, status=bounced (mail for host.domain.ru loops back to myself)
Aug 14 09:31:22 host postfix/smtpd[1555]: lost connection after EHLO from host.domain.ru[194.190.x.x]
Aug 14 09:31:22 host postfix/smtpd[1555]: disconnect from host.domain.ru[194.190.x.x]
----