Проблема такая, в виртуалбоксе поднят freebsd8.2 с него посылаю почту следующей командой:
echo text|mail -s "test" sergey@hov.ru оно повисает в mailq. В логах происходит следующее
Jun 17 15:33:22 bugzilla sendmail[2413]: p5HBXM4E002413: from=sergey, size=46, class=0, nrcpts=1, msgid=<201106171133.p5HBXM4E002413@bugzilla.hov.int>, relay=root@localhost Jun 17 15:33:22 bugzilla sm-mta[2414]: p5HBXMCD002414: from=<sergey@bugzilla.hov.int>, size=377, class=0, nrcpts=1, msgid=<201106171133.p5HBXM4E002413@bugzilla.hov.int>, proto=ESMTP, daemon=IPv4, relay=localhost [127.0.0.1] Jun 17 15:33:22 bugzilla sendmail[2413]: p5HBXM4E002413: to=sergey@hov.ru, ctladdr=sergey (1001/1001), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30046, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (p5HBXMCD002414 Message accepted for delivery) Jun 17 15:34:37 bugzilla sm-mta[2416]: p5HBXMCD002414: to=<sergey@hov.ru>, ctladdr=<sergey@bugzilla.hov.int> (1001/1001), delay=00:01:15, xdelay=00:01:15, mailer=esmtp, pri=30377, relay=mail1.hov.ru. [195.151.220.73], dsn=4.0.0, stat=Deferred: Operation timed out with mail1.hov.ru.
cat /etc/hosts|grep -v "^#"
::1 localhost localhost.my.domain 127.0.0.1 localhost 10.0.2.15 bugzilla.hov.int cat /etc/resolv.conf|grep -v "^#"
search hov.int nameserver 172.16.1.200 order hosts,bind
sendmail -d0.10</dev/null
Version 8.14.4 Compiled with: DNSMAP LOG MAP_REGEX MATCHGECOS MILTER MIME7TO8 MIME8TO7 NAMED_BIND NETINET NETINET6 NETUNIX NEWDB NIS PIPELINING SCANF STARTTLS TCPWRAPPERS USERDB XDEBUG OS Defines: BSD4_4_SOCKADDR HASFCHOWN HASFCHMOD HASFLOCK HASGETDTABLESIZE HASGETUSERSHELL HASINITGROUPS HASLSTAT HASNICE HASRANDOM HASRRESVPORT HASSETLOGIN HASSETREUID HASSETRLIMIT HASSETSID HASSETUSERCONTEXT HASSETVBUF HAS_ST_GEN HASSRANDOMDEV HASURANDOMDEV HASSTRERROR HASUNAME HASUNSETENV HASWAITPID IDENTPROTO IP_SRCROUTE LOCK_ON_OPEN SAFENFSPATHCONF USE_DOUBLE_FORK USESETEUID USESYSCTL Kernel symbols: don't use _PATH_UNIX Conf file: /etc/mail/submit.cf (default for MSP) Conf file: /etc/mail/sendmail.cf (default for MTA) Pid file: /var/run/sendmail.pid (default) Canonical name: bugzilla.hov.int UUCP nodename: bugzilla.hov.int a.k.a.: [10.0.2.15] Conf file: /etc/mail/submit.cf (selected) Pid file: /var/spool/clientmqueue/sm-client.pid (selected)============ SYSTEM IDENTITY (after readcf) ============ (short domain name) $w = bugzilla (canonical domain name) $j = bugzilla.hov.int (subdomain name) $m = hov.int (node name) $k = bugzilla.hov.int ======================================================== Recipient names must be specified
cat /etc/mail/freebsd.mc|grep -v "^#"|grep -v "^dnl"|grep -v "^$"
divert(-1) divert(0) VERSIONID(`$FreeBSD: src/etc/sendmail/freebsd.mc,v 1.37.2.2.4.1 2010/12/21 17:09:25 kensmith Exp $') OSTYPE(freebsd6) DOMAIN(generic) FEATURE(access_db, `hash -o -T<TMPF> /etc/mail/access') FEATURE(blacklist_recipients) FEATURE(local_lmtp) FEATURE(mailertable, `hash -o /etc/mail/mailertable') FEATURE(virtusertable, `hash -o /etc/mail/virtusertable') define('SMART_HOST', '172.16.1.100') define(`confCW_FILE', `-o /etc/mail/local-host-names') DAEMON_OPTIONS(`Name=IPv4, Family=inet') define(`confBIND_OPTS', `WorkAroundBrokenAAAA') define(`confNO_RCPT_ACTION', `add-to-undisclosed') define(`confPRIVACY_FLAGS', `authwarnings,noexpn,novrfy') FEATURE(masquerade_envelope) MAILER(local) MAILER(smtp) MASQUERADE_AS('bugzilla.hov.int') Как я понимаю сервер не отвечает, когда ему выдают неправильный заголовок HELO. А у меня relay=localhost. Я не знаю в этом ли причина, но и не знаю как его поменять. С sendmail'ом плохо знаком. Бьюсь над этим уже неделю - гугл затер до дыр)
|