mail IN A 194.xxx.xxx.xxx
@ IN MX 10 mail.мойдомен.ru.
telnet localhost 25 - работает нормально, а при попытке telnet извне (как по имени, так и по ip) пишет Connection refused.
Фаервола нет, провайдер не перекрывает 25 порт. Похоже, где-то наврал с настройками.
Файл access:
Код: Выделить всё
127.0.0.1 RELAY
localhost RELAY
To:194.xxx.xxx.xxx OK
To:мойдомен.su OK
To:mail.мойдомен.su OKlocal-host-names:
Код: Выделить всё
мойдомен.ru
mail.мойдомен.ru
194.xxx.xxx.xxxlocalhost.mc
Код: Выделить всё
divert(0)
VERSIONID(`$FreeBSD: src/etc/sendmail/freebsd.mc,v 1.30.2.6.2.1 2008/10/02 02:57:24 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')
dnl Uncomment to allow relaying based on your MX records.
dnl NOTE: This can allow sites to use your server as a backup MX without
dnl your permission.
dnl FEATURE(relay_based_on_MX)
dnl DNS based black hole lists
dnl --------------------------------
dnl DNS based black hole lists come and go on a regular basis
dnl so this file will not serve as a database of the available servers.
dnl For that, visit
dnl http://www.google.com/Top/Computers/Internet/E-mail/Spam/Blacklists/
dnl Uncomment to activate Realtime Blackhole List
dnl information available at http://www.mail-abuse.com/
dnl NOTE: This is a subscription service as of July 31, 2001
dnl FEATURE(dnsbl)
dnl Alternatively, you can provide your own server and rejection message:
dnl FEATURE(dnsbl, `blackholes.mail-abuse.org', ``"550 Mail from " $&{client_addr} " rejected, see http://mail-abuse.org/cgi-bin/lookup?" $&{client_addr}'')
dnl Dialup users should uncomment and define this appropriately
dnl define(`SMART_HOST', `your.isp.mail.server')
dnl Uncomment the first line to change the location of the default
dnl /etc/mail/local-host-names and comment out the second line.
dnl define(`confCW_FILE', `-o /etc/mail/sendmail.cw')
define(`confCW_FILE', `-o /etc/mail/local-host-names')
dnl Enable for both IPv4 and IPv6 (optional)
DAEMON_OPTIONS(`Name=IPv4, Family=inet')
DAEMON_OPTIONS(`Name=IPv6, Family=inet6, Modifiers=O')
define(`confBIND_OPTS', `WorkAroundBrokenAAAA')
define(`confNO_RCPT_ACTION', `add-to-undisclosed')
define(`confPRIVACY_FLAGS', `authwarnings,noexpn,novrfy')
MAILER(local)
MAILER(smtp)Код: Выделить всё
localhost# sockstat | grep sendmail
smmsp sendmail 14383 3 dgram -> /var/run/log
root sendmail 14379 3 tcp4 127.0.0.1:25 *:*
root sendmail 14379 4 dgram -> /var/run/logpriv
smmsp sendmail 92937 3 dgram -> /var/run/log