11.09.06, Nizamov Shawkat <shawkat@samdu.uz> написал(а):
В Сбт, 09/09/2006 в 17:05 +0300, Сергей Черепнин пишет:
>
>
> 05.09.06, Nizamov Shawkat <shawkat@samdu.uz> написал(а):
> В Втр, 05/09/2006 в 13:54 +0300, Сергей Черепнин пишет:
> > Доброго дня -
> > не могу понять что от меня хотят)
> >
> > Sergey:linux4:/etc/mail# telnet 192.168.15.2 25
> > Trying
192.168.15.2...
> > Connected to 192.168.15.2.
> > Escape character is '^]'.
> > 220 ;; ESMTP connection timed out; no servers could be
> reached
> > Sendmail 8.13.7 /8.13.7/Debian-2; Tue, 5 Sep 2006 16:46:14
> +0300; (No
> > UCE/UBE) logging access from:
> [
192.168.15.4](FAIL)-root@[192.168.15.4]
> > Connection closed by foreign host.
> >
> > почему? не могу понять что от меня нужно
>
> доказательств что не спамер :)
>
>
> Может быть!
>
> Но смотрите:
>
> user@Nata:~$ host nata.nata.linux.nt
> nata.nata.linux.nt has address
192.168.16.2
> user@Nata:~$ telnet vova.vova.linux.nt
> Trying 192.168.17.3...
> telnet: Unable to connect to remote host: Connection refused
> user@Nata:~$ telnet vova.vova.linux.nt 25
> Trying
192.168.17.3...
> Connected to vova.vova.linux.nt.
> Escape character is '^]'.
> 220 ;; ESMTP connection timed out; no servers could be reached
> Sendmail 8.13.7/8.13.7/Debian-2; Sat, 9 Sep 2006 16:49:46 +0300; (No
> UCE/UB E) logging access from:
> nata.vova.linux.nt(OK)-user@nata.vova.linux.nt [192.168.17.2]
вот здесь видимо и порылась собака :)
видите nata.vova.linux.nt(OK) ? скорей всего сендмейл настроен НЕ
получать писем от хостов которые не прописаны толком в ДНС (отсутствует
обратная запись PTR )
в оригинальном письме имеем
logging access from: [
192.168.15.4](FAIL)
то есть отработала нормальная в принципе антиспамерская тактика
чтобы решить проблему скорей всего надо прописать 192,168,15,4 в ДНС
аналогичным образом как и для 192,168,16,2
что-то типа
192,168,16,2 IN PTR somehost.somedomain.ru
и отвечать лучше в рассылку :)
ОК спасибо
с этим вопросов нет
но проблема осталась:
sergey:~# telnet vova.vova.linux.nt 25
Trying 192.168.17.1...
Connected to vova.vova.linux.nt.
Escape character is '^]'.
220 ;; ESMTP connection timed out; no servers could be reached Sendmail
8.13.7/8.13.7/Debian-2; Tue, 12 Sep 2006 11:43:19 +0300; (No UCE/UBE) logging access from: host200.vova.linux.nt(OK)-host200.vova.linux.nt [
192.168.17.200]
Вот это 220 ;; ESMTP connection timed out; no servers could be reached Sendmail и мешает отправлять почту
боролся долго и наконец решил:
vova:~# netstat -lnp | grep :25
tcp 0 0
0.0.0.0:25 0.0.0.0:* LISTEN 1948/sendmail: MTA:
vova:~# /etc/init.d/sendmail stop
vova:~# apt-get --purge remove sendmail sendmail-base sendmail-bin sendmail-cf sensible-mda
Reading Package Lists... Done
Building Dependency Tree... Done
The following packages will be REMOVED:
mutt* rmail* sendmail* sendmail-base* sendmail-bin* sendmail-cf* sensible-mda*
0 upgraded, 0 newly installed, 7 to remove and 765 not upgraded.
Need to get 0B of archives.
After unpacking 9731kB disk space will be freed.
Do you want to continue? [Y/n] Y ......
vova:~# apt-get install sendmail sendmail-base sendmail-bin sendmail-cf sensible-mda
Reading Package Lists... Done
Building Dependency Tree... Done
The following extra packages will be installed:
rmail
Suggested packages:
ca-certificates logcheck sasl2-bin libsasl2-modules libsasl2-modules-plain libsasl2-digestmd5-plain
libsasl2-digestmd5-des openssl
Recommended packages:
resolvconf
The following NEW packages will be installed:
rmail sendmail sendmail-base sendmail-bin sendmail-cf sensible-mda
0 upgraded, 6 newly installed, 0 to remove and 765 not upgraded.
Need to get 0B/2085kB of archives.
After unpacking 5128kB of additional disk space will be used.
Do you want to continue? [Y/n]
Выбор ранее не выбранного пакета sendmail-base.
(Чтение базы данных... на данный момент установлено 93524 файлов и каталогов.)
Распаковывается пакет sendmail-base (из файла .../sendmail-base_8.13.7-2_all.deb)...
Выбор ранее не выбранного пакета sendmail-cf.
Распаковывается пакет sendmail-cf (из файла .../sendmail-cf_8.13.7-2_all.deb)...
Выбор ранее не выбранного пакета sendmail-bin.
Распаковывается пакет sendmail-bin (из файла .../sendmail-bin_8.13.7-2_i386.deb)...
Выбор ранее не выбранного пакета rmail.
Распаковывается пакет rmail (из файла .../rmail_8.13.7-2_i386.deb)...
Выбор ранее не выбранного пакета sensible-mda.
Распаковывается пакет sensible-mda (из файла .../sensible-mda_8.13.7-2_i386.deb)...
Выбор ранее не выбранного пакета sendmail.
Распаковывается пакет sendmail (из файла .../sendmail_8.13.7-2_all.deb)...
Настраивается пакет sendmail-base (8.13.7-2) ...
--------- IMPORTANT INFORMATION FOR XINETD USERS ----------
The following line will be added to your /etc/inetd.conf file:
#<off># smtp\tstream\ttcp\tnowait\troot\t/usr/sbin/sendmail sendmail -Am -bs
If you are indeed using xinetd, you will have to convert the
above into /etc/xinetd.conf format, and add it manually. See
/usr/share/doc/xinetd/README.Debian for more information.
-----------------------------------------------------------
--------- IMPORTANT INFORMATION FOR XINETD USERS ----------
The following line will be added to your /etc/inetd.conf file:
#<off># submission\tstream\ttcp\tnowait\troot\t/usr/sbin/sendmail sendmail -Am -bs
If you are indeed using xinetd, you will have to convert the
above into /etc/xinetd.conf format, and add it manually. See
/usr/share/doc/xinetd/README.Debian for more information.
-----------------------------------------------------------
--------- IMPORTANT INFORMATION FOR XINETD USERS ----------
The following line will be added to your /etc/inetd.conf file:
#<off># smtps\tstream\ttcp\tnowait\troot\t/usr/sbin/sendmail sendmail -Am -bs
If you are indeed using xinetd, you will have to convert the
above into /etc/xinetd.conf format, and add it manually. See
/usr/share/doc/xinetd/README.Debian for more information.
-----------------------------------------------------------
Настраивается пакет sendmail-cf (8.13.7-2) ...
Настраивается пакет sendmail-bin (8.13.7-2) ...
You are doing a new install, or have erased /etc/mail/sendmail.mc.
If you've accidentaly erased /etc/mail/sendmail.mc, check /var/backups.
I am creating a safe, default
sendmail.mc for you and you can
run sendmailconfig later if you need to change the defaults.
Stopping Mail Transport Agent: sendmail.
Updating sendmail environment ...
Validating configuration.
Writing configuration to /etc/mail/sendmail.conf.
Writing /etc/cron.d/sendmail.
Could not open /etc/mail/databases(No such file or directory), creating it.
Could not open /etc/mail/sendmail.mc(No such file or directory)
Reading configuration from /etc/mail/sendmail.conf.
Validating configuration.
Writing configuration to /etc/mail/sendmail.conf.
Writing /etc/cron.d/sendmail.
Turning off Host Status collection
Could not open /etc/mail/databases(No such file or directory), creating it.
Reading configuration from /etc/mail/sendmail.conf.
Validating configuration.
Creating /etc/mail/databases...
Checking filesystem, this may take some time - it will not hang!
... Done.
Checking for installed MDAs...
Adding link for newly extant program (mail.local)
Adding link for newly extant program (procmail)
sasl2-bin not installed, not configuring sendmail support.
To enable sendmail SASL2 support at a later date, invoke "/usr/share/sendmail/update_auth"
OpenSSL is not installed, will not configure sendmail support for it.
to install openssl, get openssl.
To enable sendmail TLS support at a later date, invoke "/usr/share/sendmail/update_tls"
Checking {sendmail,submit}.mc and related databases...
Reading configuration from /etc/mail/sendmail.conf.
Validating configuration.
Creating /etc/mail/databases...
Reading configuration from /etc/mail/sendmail.conf.
Validating configuration.
Creating /etc/mail/databases...
Reading configuration from /etc/mail/sendmail.conf.
Validating configuration.
Creating /etc/mail/Makefile...
Reading configuration from /etc/mail/sendmail.conf.
Validating configuration.
Writing configuration to /etc/mail/sendmail.conf.
Writing /etc/cron.d/sendmail.
Disabling HOST statistics file(/var/lib/sendmail/host_status).
Creating /etc/mail/sendmail.cf...
*** ERROR: FEATURE() should be before MAILER()
*** MAILER(`local') must appear after FEATURE(`always_add_domain')*** ERROR: FEATURE() should be before MAILER()
*** MAILER(`local') must appear after FEATURE(`allmasquerade')*** ERROR: FEATURE() should be before MAILER()
Creating /etc/mail/submit.cf...
Informational: confCR_FILE file empty: /etc/mail/relay-domains
Warning: confCT_FILE source file not found: /etc/mail/trusted-users
it was created
Informational: confCT_FILE file empty: /etc/mail/trusted-users
Warning: confCW_FILE source file not found: /etc/mail/local-host-names
it was created
Updating /etc/mail/access...
Linking /etc/aliases to /etc/mail/aliases
Updating /etc/mail/aliases...
/etc/mail/aliases: 13 aliases, longest 10 bytes, 142 bytes total
Warning: 2 database(s) sources
were not found, (but were created)
please investigate.
Warning: These messages were issued while creating
sendmail.cf
make sure they are benign before starting sendmail!
Errors in generating
sendmail.cf*** ERROR: FEATURE() should be before MAILER()
*** MAILER(`local') must appear after FEATURE(`always_add_domain')*** ERROR: FEATURE() should be before MAILER()
*** MAILER(`local') must appear after FEATURE(`allmasquerade')*** ERROR: FEATURE() should be before MAILER()
Starting Mail Transport Agent: sendmail.
Настраивается пакет rmail (8.13.7-2) ...
Настраивается пакет sensible-mda (
8.13.7-2) ...
Настраивается пакет sendmail (8.13.7-2) ...
vova:/etc/mail# vi
sendmail.mcменяю
DAEMON_OPTIONS(`Family=inet, Name=MTA-v4, Port=smtp, Addr=
127.0.0.1')dnl
на
DAEMON_OPTIONS(`Family=inet, Name=MTA-v4, Port=smtp')dnl
и тоже самое
DAEMON_OPTIONS(`Family=inet, Name=MSP-v4, Port=submission')dnl
меняю
MASQUERADE_AS(`localhost.localdomain')dnl
на
MASQUERADE_AS(`vova.vova.linux.nt')dnl
и наконец переношу