Скомпилял Sendmail, а он при попытке переслать письмо на рута пишет в лог седующее:
Feb 16 14:29:08 fire sendmail[9684]: j1GCT01T009684: to=root, ctladdr=root (0/0), delay=00:00:08, xdelay=00:00:00, mailer=relay, pri=38097, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Permission deniedКогда даю telnet localhost 25, сендмэйл тоже ругается, мол:
Trying 127.0.0.1...
telnet: connect to address 127.0.0.1: Permission denied
telnet: Unable to connect to remote hostВ Файрволе вроде все ОК. В чем может быть дело?
в /etc/hosts.allow был? Договорился там, чтобы пускал?
>в /etc/hosts.allow был? Договорился там, чтобы пускал?Да там для локалкоста все разрешено.
# Allow anything from localhost. Note that an IP address (not a host
# name) *MUST* be specified for portmap(8).
ALL : localhost 127.0.0.1 : allow
ALL : my.machine.example.com 192.0.2.35 : allow# Sendmail can help protect you against spammers and relay-rapers
sendmail : localhost : allow
sendmail : .nice.guy.example.com : allow
sendmail : .evil.cracker.example.com : deny
sendmail : ALL : allow# Exim is an alternative to sendmail, available in the ports tree
exim : localhost : allow
#exim : 127.0.0.1 : allow
exim : .nice.guy.example.com : allow
exim : .evil.cracker.example.com : deny
exim : ALL : allowЧто еще может быть?
>Что еще может быть?
Оказалось таки файрвол. Дал ему доступ, но теперь пишет
Feb 17 12:29:09 fire sendmail[69765]: j1HAT1a3069765: to=root, ctladdr=root (0/0), delay=00:00:08, xdelay=00:00:00, mailer=relay, pri=41015, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]
ps auxw|grep sendmail ?
>ps auxw|grep sendmail ?В процессах он есть:
root 3923 0.0 0.1 1904 1496 ?? Ss 3:00PM 0:00.01 sendmail: Queue runner@00:01:00 for /var/spool/mqueue (sendmail)
Ну разве это он?
Этот процесс запускается для разгрузки очереди.Запусти
/usr/sbin/sendmail -bd -q1h
>Ну разве это он?
>Этот процесс запускается для разгрузки очереди.
>
>Запусти
>/usr/sbin/sendmail -bd -q1hСпасибо. Запустился.