Инет от beeline, 25 порт закрыт. Пишут: "Рекомендуем Вам воспользоваться следующим сервером почты - smtp.svitonline.com."
тестировал телнетом:
Код: Выделить всё
telnet smtp.svitonline.com 25
Trying 212.109.32.5...
Connected to smtp.svitonline.com.
Escape character is '^]'.
220 relay03.kiev.sovam.com ESMTP ready
helo stellar
250 relay03.kiev.sovam.com Hello stellar [188.163.10.108]
mail from:xxx@xxx.xx
250 OK
rcpt to:xxx@xxx.xx
250 Accepted
data
354 Enter message, ending with "." on a line by itself
from:xxx@xxx.xx
to:xxx@xxx.xx
test passed
.
250 OK id=1NHcW9-0009t6-8B
quit
221 relay03.kiev.sovam.com closing connection
Connection closed by foreign host.
подправил конфиг router.mc
Код: Выделить всё
divert(0)
VERSIONID(`$FreeBSD: src/etc/sendmail/freebsd.mc,v 1.37.2.1.2.1 2009/10/25 01:10:29 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
define(`SMART_HOST', `smtp.svitonline.com')
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)
make install
make reboot
Затем при отсылке письма через mail() в PHP в логах пишется:
Код: Выделить всё
Dec 6 16:05:20 router sendmail[1541]: nB6E5KOk001541: to=mail@xx.xxx, ctladdr=www (80/80), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30043, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (nB6E5KjO001551 Message accepted for delivery)
Dec 6 16:05:21 router sm-mta[1553]: STARTTLS=client, relay=smtp.svitonline.com., version=TLSv1/SSLv3, verify=FAIL, cipher=AES256-SHA, bits=256/256
Dec 6 16:05:21 router sm-mta[1553]: nB6E5KjO001551: to=<mail@xx.xxx>, ctladdr=<www@router> (80/80), delay=00:00:01, xdelay=00:00:01, mailer=relay, pri=30318, relay=smtp.svitonline.com. [212.109.32.5], dsn=5.1.1, stat=User unknown
Dec 6 16:05:21 router sm-mta[1553]: nB6E5KjO001551: nB6E5LjO001553: DSN: User unknown
Dec 6 16:05:21 router sm-mta[1553]: nB6E5LjO001553: to=<www@router>, delay=00:00:00, xdelay=00:00:00, mailer=local, pri=31342, relay=local, dsn=2.0.0, stat=Sent
Заранее благодарствую.