Форум русскоязычного сообщества Ubuntu


Увидели сообщение с непонятной ссылкой, спам, непристойность или оскорбление?
Воспользуйтесь ссылкой «Сообщить модератору» рядом с сообщением!

Автор Тема: SendMail  (Прочитано 1741 раз)

0 Пользователей и 1 Гость просматривают эту тему.

Оффлайн Vexare

  • Автор темы
  • Любитель
  • *
  • Сообщений: 64
    • Просмотр профиля
SendMail
« : 01 Января 2014, 19:06:27 »
Пытаюсь настроить sendmail на локальной машине, ошибок при установке очень много, по этому возможно достаточно нескольких изменений и все заработает.
На хостингах\VPS ставиться легко и без проблем, но есть причины по которым от них отказываюсь и настроить желательно на локальном компьютере.
За ранние спасибо.

Лог ошибок при установке:
Reading package lists...
Building dependency tree...
Reading state information...
The following packages were automatically installed and are no longer required:
  thunderbird-globalmenu gir1.2-ubuntuoneui-3.0 libubuntuoneui-3.0-1
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  libdb4.8 m4 procmail sendmail-base sendmail-bin sendmail-cf sensible-mda
Suggested packages:
  sendmail-doc rmail logcheck sasl2-bin
Recommended packages:
  default-mta mail-transport-agent fetchmail
The following NEW packages will be installed:
  libdb4.8 m4 procmail sendmail sendmail-base sendmail-bin sendmail-cf
  sensible-mda
0 upgraded, 8 newly installed, 0 to remove and 0 not upgraded.
Need to get 2095 kB of archives.
After this operation, 6451 kB of additional disk space will be used.
Get:1 http://ua.archive.ubuntu.com/ubuntu/ precise/main libdb4.8 i386 4.8.30-11ubuntu1 [711 kB]
Get:2 http://ua.archive.ubuntu.com/ubuntu/ precise/main m4 i386 1.4.16-2ubuntu1 [195 kB]
Get:3 http://ua.archive.ubuntu.com/ubuntu/ precise/main procmail i386 3.22-19 [144 kB]
Get:4 http://ua.archive.ubuntu.com/ubuntu/ precise-updates/universe sendmail-base all 8.14.4-2ubuntu2.1 [166 kB]
Get:5 http://ua.archive.ubuntu.com/ubuntu/ precise-updates/universe sendmail-cf all 8.14.4-2ubuntu2.1 [103 kB]
Get:6 http://ua.archive.ubuntu.com/ubuntu/ precise-updates/universe sendmail-bin i386 8.14.4-2ubuntu2.1 [764 kB]
Get:7 http://ua.archive.ubuntu.com/ubuntu/ precise-updates/universe sensible-mda i386 8.14.4-2ubuntu2.1 [9322 B]
Get:8 http://ua.archive.ubuntu.com/ubuntu/ precise-updates/universe sendmail all 8.14.4-2ubuntu2.1 [3478 B]
Fetched 2095 kB in 0s (3732 kB/s)
Selecting previously unselected package libdb4.8.
(Reading database ... 224520 files and directories currently installed.)
Unpacking libdb4.8 (from .../libdb4.8_4.8.30-11ubuntu1_i386.deb) ...
Selecting previously unselected package m4.
Unpacking m4 (from .../m4_1.4.16-2ubuntu1_i386.deb) ...
Selecting previously unselected package procmail.
Unpacking procmail (from .../procmail_3.22-19_i386.deb) ...
Selecting previously unselected package sendmail-base.
Unpacking sendmail-base (from .../sendmail-base_8.14.4-2ubuntu2.1_all.deb) ...
Selecting previously unselected package sendmail-cf.
Unpacking sendmail-cf (from .../sendmail-cf_8.14.4-2ubuntu2.1_all.deb) ...
Selecting previously unselected package sendmail-bin.
Unpacking sendmail-bin (from .../sendmail-bin_8.14.4-2ubuntu2.1_i386.deb) ...
Selecting previously unselected package sensible-mda.
Unpacking sensible-mda (from .../sensible-mda_8.14.4-2ubuntu2.1_i386.deb) ...
Selecting previously unselected package sendmail.
Unpacking sendmail (from .../sendmail_8.14.4-2ubuntu2.1_all.deb) ...
Processing triggers for install-info ...
Processing triggers for man-db ...
Processing triggers for ureadahead ...
Setting up libdb4.8 (4.8.30-11ubuntu1) ...
Setting up m4 (1.4.16-2ubuntu1) ...
Setting up procmail (3.22-19) ...
Setting up sendmail-base (8.14.4-2ubuntu2.1) ...
adduser: Warning: The home directory `/var/lib/sendmail' does not belong to the user you are currently creating.
Setting up sendmail-cf (8.14.4-2ubuntu2.1) ...
Setting up sendmail-bin (8.14.4-2ubuntu2.1) ...
update-rc.d: warning: sendmail stop runlevel arguments (0 1 6) do not match LSB Default-Stop values (1)
update-alternatives: using /usr/lib/sm.bin/sendmail to provide /usr/sbin/sendmail-mta (sendmail-mta) in auto mode.
update-alternatives: using /usr/lib/sm.bin/sendmail to provide /usr/sbin/sendmail-msp (sendmail-msp) in auto mode.
update-alternatives: warning: not replacing /usr/share/man/man8/sendmail.8.gz with a link.

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 (MTA) sendmail
   ...done.
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!
  ...  Creating /etc/aliases (not found)
 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"

 
Creating/Updating SSL(for TLS) information
Creating /etc/mail/tls/starttls.m4...
Creating SSL certificates for sendmail.
Generating DSA parameters, 2048 bit long prime
This could take some time
......................+........+.................+....+..+................+..+........................................+..........+..+.+..........+.........+..........+.....................+......................+........+.....+++++++++++++++++++++++++++++++++++++++++++++++++++*
...................+..+.......+...+.......................+..+........+++++++++++++++++++++++++++++++++++++++++++++++++++*
Generating RSA private key, 2048 bit long modulus
..+++
...+++
e is 65537 (0x10001)

*** *** *** WARNING *** WARNING *** WARNING *** WARNING *** *** ***

Everything you need to support STARTTLS (encrypted mail transmission
and user authentication via certificates) is installed and configured
but is *NOT* being used.

To enable sendmail to use STARTTLS, you need to:
1) Add this line to /etc/mail/sendmail.mc and optionally
   to /etc/mail/submit.mc:
  include(`/etc/mail/tls/starttls.m4')dnl
2) Run sendmailconfig
3) Restart sendmail

 
Updating /etc/hosts.allow, adding "sendmail: all".

Please edit /etc/hosts.allow and check the rules location to
make sure your security measures have not been overridden -
it is common to move the sendmail:all line to the *end* of
the file, so your more selective rules take precedence.
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...
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
Warning: access_db source file not found: /etc/mail/access
 it was created
Updating /etc/mail/access...
Linking /etc/aliases to /etc/mail/aliases
Updating /etc/mail/aliases...
WARNING: local host name (Sitebook) is not qualified; see cf/README: WHO AM I?
/etc/mail/aliases: 4 aliases, longest 10 bytes, 66 bytes total
 
Warning: 3 database(s) sources
were not found, (but were created)
please investigate.
 * Starting Mail Transport Agent (MTA) sendmail
   ...done.
Setting up sensible-mda (8.14.4-2ubuntu2.1) ...
Setting up sendmail (8.14.4-2ubuntu2.1) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place

Оффлайн AnrDaemon

  • Заслуженный пользователь
  • Старожил
  • *
  • Сообщений: 28366
    • Просмотр профиля
Re: SendMail
« Ответ #1 : 01 Января 2014, 21:22:37 »
Почем у именно sendmail? Чем штатный postfix не угодил?
Хотите получить помощь? Потрудитесь представить запрошенную информацию в полном объёме.

Прежде чем [Отправить], нажми [Просмотр] и прочти собственное сообщение. Сам-то понял, что написал?…

Оффлайн Vexare

  • Автор темы
  • Любитель
  • *
  • Сообщений: 64
    • Просмотр профиля
Re: SendMail
« Ответ #2 : 01 Января 2014, 22:42:12 »
Почем у именно sendmail? Чем штатный postfix не угодил?

Установил PostFix... проще, но все равно Connecting time out... проверяю через IPB отправку почты, пишет успешно, но на почту не приходит.

 

Страница сгенерирована за 0.05 секунд. Запросов: 25.