Перейти к содержанию

esomkin

Members
  • Постов

    40
  • Зарегистрирован

  • Посещение

    Никогда

Сообщения, опубликованные esomkin

  1. Доброго времени суток

    Имеется сервер на котором подняты Apache, MySQL, PHP, Sendmail, qpopper и некоторые другие проги. Некоторое время под Апачем был один хост, но сейчас возникла проблема поднять еще один виртуальный хост. С этим никаких проблем, но на обоих хостах почтовые ящики с одинаковыми именами!!

    Порылся в инете, нашел статью про разделение почтовых ящиков с одинаковыми именами под sendmail, но решение не понравилось Confused .

    Может кто подскажет как это лучше сделать (возможна замена sendmail, qpopper на что-нибудь более подходящее и удобное, а также установка другого ПО).

    Спасибо

  2. Доброго времени суток

    Есть сервер на котором стоит Linux FC6, Apache и еще кое что.

    В httpd.conf определены виртуальные хосты domain.ru и www.domain.ru. По url domain.ru/phpMyAdmin/ висит phpMyAdmin (логично))). Хочу защитить директорию .htaccess. Создаю файл .htpasswd в /home/pma_access через утилиту htpasswd. Создаю .htaccess в phpMyAdmin с содержимым

    AuthType Basic

    AuthName "Private zone"

    AuthUserFile /home/pma_access/.htpasswd

    require valid-user

    Набираю в браузере http://www.domain.ru/phpMyAdmin/ и получаю Forbidden...

    Где может быть ошибка???

  3. Ну неужели никто не подскажет(

    Хотелось бы после подключения из дома к серверу увидеть десктоп Gnome сервера, а подключение выводит терминал((( как http://www.scsz.ru/Screenshot.png

    Удалил tightvnc, поставил vnc для fc6, подключаюсь и снова режим терминала(

    Где я неправ?

    scsz.ru:1.log

    Xvnc Free Edition 4.1.2

    Copyright © 2002-2005 RealVNC Ltd.

    See http://www.realvnc.com for information on VNC.

    Underlying X server release 70101000, The X.Org Foundation

    Fri Jul 13 13:08:17 2007

    vncext: VNC extension running!

    vncext: Listening for VNC connections on port 5901

    vncext: Listening for HTTP connections on port 5801

    vncext: created VNC server for screen 0

    Could not init font path element /usr/share/X11/fonts/CID/, removing from list!

    Fri Jul 13 13:08:52 2007

    Connections: accepted: 127.0.0.1::44413

    SConnection: Client needs protocol version 3.8

    SConnection: Client requests security type VncAuth(2)

    Fri Jul 13 13:08:54 2007

    VNCSConnST: Server default pixel format depth 16 (16bpp) little-endian rgb565

    VNCSConnST: Client pixel format depth 6 (8bpp) rgb222

    Fri Jul 13 13:08:58 2007

    VNCSConnST: Client pixel format depth 24 (32bpp) little-endian rgb888

    scsz:1.log

    Xvnc Free Edition 4.1.2

    Copyright © 2002-2005 RealVNC Ltd.

    See http://www.realvnc.com for information on VNC.

    Underlying X server release 70101000, The X.Org Foundation

    Sun Apr 29 13:19:06 2007

    vncext: VNC extension running!

    vncext: Listening for VNC connections on port 5901

    vncext: Listening for HTTP connections on port 5801

    vncext: created VNC server for screen 0

    Could not init font path element /usr/share/X11/fonts/OTF, removing from list!

    Could not init font path element /usr/share/X11/fonts/CID/, removing from list!

    FreeFontPath: FPE "/usr/share/X11/fonts/misc/" refcount is 2, should be 1; fixing.

  4. Как я понимаю vncserver запущен

    Вот, что находится в логах /root/.vnc/.log

    Couldn't open RGB_DB '/usr/X11R6/lib/X11/rgb'

    10/07/07 14:20:11 Xvnc version TightVNC-1.3.9

    10/07/07 14:20:11 Copyright © 2000-2007 TightVNC Group

    10/07/07 14:20:11 Copyright © 1999 AT&T Laboratories Cambridge

    10/07/07 14:20:11 All Rights Reserved.

    10/07/07 14:20:11 See http://www.tightvnc.com/ for information on TightVNC

    10/07/07 14:20:11 Desktop name 'X' (scsz.ru:1)

    10/07/07 14:20:11 Protocol versions supported: 3.3, 3.7, 3.8, 3.7t, 3.8t

    10/07/07 14:20:11 Listening for VNC connections on TCP port 5901

    10/07/07 14:20:11 Listening for HTTP connections on TCP port 5801

    10/07/07 14:20:11 URL http://scsz.ru:5801

    xsetroot: unknown color "grey"

    /root/.vnc/xstartup: line 10: vncconfig: command not found

    twm: invalid color name "black"

    twm: invalid color name "white"

    twm: invalid color name "slategrey"

    twm: invalid color name "gray85"

    twm: invalid color name "gray85"

    twm: invalid color name "gray85"

    twm: invalid color name "slategrey"

    twm: invalid color name "gray70"

    twm: invalid color name "gray85"

    twm: invalid color name "gray85"

    twm: invalid color name "gray85"

    10/07/07 15:01:06 Got connection from client 195.96.66.100

    10/07/07 15:01:06 Using protocol version 3.8

    10/07/07 15:01:06 Enabling TightVNC protocol extensions

    10/07/07 15:01:22 Full-control authentication passed by 195.96.66.100

    10/07/07 15:01:22 Pixel format for client 195.96.66.100:

    10/07/07 15:01:22 32 bpp, depth 24, little endian

    10/07/07 15:01:22 true colour: max r 255 g 255 b 255, shift r 16 g 8 b 0

    10/07/07 15:01:22 no translation needed

    10/07/07 15:01:22 Using raw encoding for client 195.96.66.100

    10/07/07 15:01:22 Using compression level 1 for client 195.96.66.100

    10/07/07 15:01:22 Using image quality level 6 for client 195.96.66.100

    10/07/07 15:01:22 Enabling X-style cursor updates for client 195.96.66.100

    10/07/07 15:01:22 Enabling cursor position updates for client 195.96.66.100

    10/07/07 15:01:22 Enabling LastRect protocol extension for client 195.96.66.100

    Может проблема в vncconfig?

  5. Здравствуйте

    Недавно установил веб-сервер и залил на него сайт. Для навигации по сайту используются пути вида /path1/path2/../, которые затем разбирает mod_rewrite. В Денвере все работало без проблем, а здесь выдает ошибку 404 (http://www.scsz.ru/news/)

    Покопавшись в интернете нашел, что надо изменить AllowOverride None на AllowOverride All, однако это не помогло.

    В .htaccess записано

    RewriteEngine On

    Options +FollowSymlinks

    RewriteCond %{REQUEST_FILENAME} !-f

    RewriteCond %{REQUEST_FILENAME} !-d

    RewriteRule ^(.*)$ index.php [L,QSA]

    В ответ на httpd -l выдает

    Compiled in modules:

    core.c

    prefork.c

    http_core.c

    mod_so.c

    Может ли это означать, что Apache надо перекомпилировать?

    Подскажите как быть?

    В httpd.conf

    ### Section 1: Global Environment

    ServerTokens OS

    ServerRoot "/etc/httpd"

    PidFile run/httpd.pid

    Timeout 120

    KeepAlive Off

    MaxKeepAliveRequests 100

    KeepAliveTimeout 15

    <IfModule prefork.c>

    StartServers 8

    MinSpareServers 5

    MaxSpareServers 20

    ServerLimit 256

    MaxClients 256

    MaxRequestsPerChild 4000

    </IfModule>

    <IfModule worker.c>

    StartServers 2

    MaxClients 150

    MinSpareThreads 25

    MaxSpareThreads 75

    ThreadsPerChild 25

    MaxRequestsPerChild 0

    </IfModule>

    Listen 80

    LoadModule auth_basic_module modules/mod_auth_basic.so

    LoadModule auth_digest_module modules/mod_auth_digest.so

    LoadModule authn_file_module modules/mod_authn_file.so

    LoadModule authn_alias_module modules/mod_authn_alias.so

    LoadModule authn_anon_module modules/mod_authn_anon.so

    LoadModule authn_dbm_module modules/mod_authn_dbm.so

    LoadModule authn_default_module modules/mod_authn_default.so

    LoadModule authz_host_module modules/mod_authz_host.so

    LoadModule authz_user_module modules/mod_authz_user.so

    LoadModule authz_owner_module modules/mod_authz_owner.so

    LoadModule authz_groupfile_module modules/mod_authz_groupfile.so

    LoadModule authz_dbm_module modules/mod_authz_dbm.so

    LoadModule authz_default_module modules/mod_authz_default.so

    LoadModule ldap_module modules/mod_ldap.so

    LoadModule authnz_ldap_module modules/mod_authnz_ldap.so

    LoadModule include_module modules/mod_include.so

    LoadModule log_config_module modules/mod_log_config.so

    LoadModule logio_module modules/mod_logio.so

    LoadModule env_module modules/mod_env.so

    LoadModule ext_filter_module modules/mod_ext_filter.so

    LoadModule mime_magic_module modules/mod_mime_magic.so

    LoadModule expires_module modules/mod_expires.so

    LoadModule deflate_module modules/mod_deflate.so

    LoadModule headers_module modules/mod_headers.so

    LoadModule usertrack_module modules/mod_usertrack.so

    LoadModule setenvif_module modules/mod_setenvif.so

    LoadModule mime_module modules/mod_mime.so

    LoadModule dav_module modules/mod_dav.so

    LoadModule status_module modules/mod_status.so

    LoadModule autoindex_module modules/mod_autoindex.so

    LoadModule info_module modules/mod_info.so

    LoadModule dav_fs_module modules/mod_dav_fs.so

    LoadModule vhost_alias_module modules/mod_vhost_alias.so

    LoadModule negotiation_module modules/mod_negotiation.so

    LoadModule dir_module modules/mod_dir.so

    LoadModule actions_module modules/mod_actions.so

    LoadModule speling_module modules/mod_speling.so

    LoadModule userdir_module modules/mod_userdir.so

    LoadModule alias_module modules/mod_alias.so

    LoadModule rewrite_module modules/mod_rewrite.so

    LoadModule proxy_module modules/mod_proxy.so

    LoadModule proxy_balancer_module modules/mod_proxy_balancer.so

    LoadModule proxy_ftp_module modules/mod_proxy_ftp.so

    LoadModule proxy_http_module modules/mod_proxy_http.so

    LoadModule proxy_connect_module modules/mod_proxy_connect.so

    LoadModule cache_module modules/mod_cache.so

    LoadModule suexec_module modules/mod_suexec.so

    LoadModule disk_cache_module modules/mod_disk_cache.so

    LoadModule file_cache_module modules/mod_file_cache.so

    LoadModule mem_cache_module modules/mod_mem_cache.so

    LoadModule cgi_module modules/mod_cgi.so

    Include conf.d/*.conf

    User apache

    Group apache

    ### Section 2: 'Main' server configuration

    ServerAdmin root@scsz.ru

    ServerName www.scsz.ru

    UseCanonicalName Off

    DocumentRoot "/var/www/html"

    <Directory />

    Options FollowSymLinks

    AllowOverride None

    </Directory>

    <Directory "/var/www/html">

    Options Indexes FollowSymLinks

    AllowOverride None

    Order allow,deny

    Allow from all

    </Directory>

    <IfModule mod_userdir.c>

    UserDir disable

    </IfModule>

    DirectoryIndex index.html index.htm index.php index.html.var

    AccessFileName .htaccess

    <Files ~ "^\.ht">

    Order allow,deny

    Deny from all

    </Files>

    TypesConfig /etc/mime.types

    DefaultType text/plain

    <IfModule mod_mime_magic.c>

    # MIMEMagicFile /usr/share/magic.mime

    MIMEMagicFile conf/magic

    </IfModule>

    HostnameLookups Off

    ErrorLog logs/error_log

    LogLevel warn

    LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined

    LogFormat "%h %l %u %t \"%r\" %>s %b" common

    LogFormat "%{Referer}i -> %U" referer

    LogFormat "%{User-agent}i" agent

    CustomLog logs/access_log combined

    ServerSignature On

    Alias /icons/ "/var/www/icons/"

    <Directory "/var/www/icons">

    Options Indexes MultiViews

    AllowOverride None

    Order allow,deny

    Allow from all

    </Directory>

    <IfModule mod_dav_fs.c>

    # Location of the WebDAV lock database.

    DAVLockDB /var/lib/dav/lockdb

    </IfModule>

    ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"

    <Directory "/var/www/cgi-bin">

    AllowOverride None

    Options None

    Order allow,deny

    Allow from all

    </Directory>

    IndexOptions FancyIndexing VersionSort NameWidth=* HTMLTable

    AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip

    AddIconByType (TXT,/icons/text.gif) text/*

    AddIconByType (IMG,/icons/image2.gif) image/*

    AddIconByType (SND,/icons/sound2.gif) audio/*

    AddIconByType (VID,/icons/movie.gif) video/*

    AddIcon /icons/binary.gif .bin .exe

    AddIcon /icons/binhex.gif .hqx

    AddIcon /icons/tar.gif .tar

    AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv

    AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip

    AddIcon /icons/a.gif .ps .ai .eps

    AddIcon /icons/layout.gif .html .shtml .htm .pdf

    AddIcon /icons/text.gif .txt

    AddIcon /icons/c.gif .c

    AddIcon /icons/p.gif .pl .py

    AddIcon /icons/f.gif .for

    AddIcon /icons/dvi.gif .dvi

    AddIcon /icons/uuencoded.gif .uu

    AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl

    AddIcon /icons/tex.gif .tex

    AddIcon /icons/bomb.gif core

    AddIcon /icons/back.gif ..

    AddIcon /icons/hand.right.gif README

    AddIcon /icons/folder.gif ^^DIRECTORY^^

    AddIcon /icons/blank.gif ^^BLANKICON^^

    DefaultIcon /icons/unknown.gif

    ReadmeName README.html

    HeaderName HEADER.html

    IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t

    AddLanguage ca .ca

    AddLanguage cs .cz .cs

    AddLanguage da .dk

    AddLanguage de .de

    AddLanguage el .el

    AddLanguage en .en

    AddLanguage eo .eo

    AddLanguage es .es

    AddLanguage et .et

    AddLanguage fr .fr

    AddLanguage he .he

    AddLanguage hr .hr

    AddLanguage it .it

    AddLanguage ja .ja

    AddLanguage ko .ko

    AddLanguage ltz .ltz

    AddLanguage nl .nl

    AddLanguage nn .nn

    AddLanguage no .no

    AddLanguage pl .po

    AddLanguage pt .pt

    AddLanguage pt-BR .pt-br

    AddLanguage ru .ru

    AddLanguage sv .sv

    AddLanguage zh-CN .zh-cn

    AddLanguage zh-TW .zh-tw

    LanguagePriority en ca cs da de el eo es et fr he hr it ja ko ltz nl nn no pl pt pt-BR ru sv zh-CN zh-TW

    ForceLanguagePriority Prefer Fallback

    AddDefaultCharset windows-1251

    AddType application/x-compress .Z

    AddType application/x-gzip .gz .tgz

    AddHandler type-map var

    AddType text/html .shtml

    AddOutputFilter INCLUDES .shtml

    Alias /error/ "/var/www/error/"

    <IfModule mod_negotiation.c>

    <IfModule mod_include.c>

    <Directory "/var/www/error">

    AllowOverride None

    Options IncludesNoExec

    AddOutputFilter Includes html

    AddHandler type-map var

    Order allow,deny

    Allow from all

    LanguagePriority en es de fr

    ForceLanguagePriority Prefer Fallback

    </Directory>

    </IfModule>

    </IfModule>

    BrowserMatch "Mozilla/2" nokeepalive

    BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0

    BrowserMatch "RealPlayer 4\.0" force-response-1.0

    BrowserMatch "Java/1\.0" force-response-1.0

    BrowserMatch "JDK/1\.0" force-response-1.0

    BrowserMatch "Microsoft Data Access Internet Publishing Provider" redirect-carefully

    BrowserMatch "MS FrontPage" redirect-carefully

    BrowserMatch "^WebDrive" redirect-carefully

    BrowserMatch "^WebDAVFS/1.[0123]" redirect-carefully

    BrowserMatch "^gnome-vfs/1.0" redirect-carefully

    BrowserMatch "^XML Spy" redirect-carefully

    BrowserMatch "^Dreamweaver-WebDAV-SCM1" redirect-carefully

    ### Section 3: Virtual Hosts

    NameVirtualHost 195.96.66.100:80

    <VirtualHost 195.96.66.100:80>

    ServerAdmin root@scsz.ru

    DocumentRoot /var/www/scsz.ru

    ServerName www.scsz.ru

    ErrorLog logs/scsz.ru-error_log

    CustomLog logs/scsz.ru-access_log common

    </VirtualHost>

    <VirtualHost 195.96.66.100:80>

    ServerAdmin root@scsz.ru

    DocumentRoot /var/www/scsz.ru

    ServerName scsz.ru

    ErrorLog logs/scsz.ru-error_log

    CustomLog logs/scsz.ru-access_log common

    </VirtualHost>

  6. Доброго времени суток.

    Проблема вот в чем: на сервере стоит FC6 и tightvnc-server для удаленного подключения. При подключении из tightvnc-viewer появляется окно терминала в текстовом режиме, а хотелось бы и в графическом.

    Подскажите, что делать.

  7. Наконец добрался до сервера

    На попытку отправить сообщение на почту esomkin@yandex.ru пишет в лог

    May 12 12:44:15 localhost sendmail[30521]: l4C8iFUt030521: from=root, size=50, class=0, nrcpts=1, msgid=<200705120844.l4C8iFUt030521@localhost.localdomain>, relay=root@localhost

    May 12 12:44:15 localhost sendmail[30522]: l4C8iFX2030522: from=<root@localhost.localdomain>, size=347, class=0, nrcpts=1, msgid=<200705120844.l4C8iFUt030521@localhost.localdomain>, proto=ESMTP, daemon=MTA, relay=localhost [127.0.0.1]

    May 12 12:44:15 localhost sendmail[30521]: l4C8iFUt030521: to=esomkin@yandex.ru, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30050, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (l4C8iFX2030522 Message accepted for delivery)

    May 12 12:44:15 localhost sendmail[30524]: l4C8iFX2030522: to=<esomkin@yandex.ru>, ctladdr=<root@localhost.localdomain> (0/0), delay=00:00:00, xdelay=00:00:00, mailer=esmtp, pri=120347, relay=mx1.yandex.ru. [213.180.200.11], dsn=5.6.0, stat=Data format error

    May 12 12:44:15 localhost sendmail[30524]: l4C8iFX2030522: l4C8iFX2030524: DSN: Data format error

    May 12 12:44:15 localhost sendmail[30524]: l4C8iFX2030524: to=<root@localhost.localdomain>, delay=00:00:00, xdelay=00:00:00, mailer=local, pri=31587, dsn=2.0.0, stat=Sent

    Если я правильно понял проблема в том, что отправка происходит от имени root@localhost.localdomain поэтому Yandex не принимает данное сообщение. Подскажите как решить данную проблему (Маскарадинг???)

  8. Здравствуйте

    У меня возникла проблема с отправкой писем с сервера на котором стоит sendmail. Почту с других почтовых ящиков он принимает, можно также переслать почту через него с одной из машин сети. Однако при попытке отправить почту с самого сервера ничего не происходит.

    Primary и Secondary DNS услуги заказаны в nic.ru и настроены:

    mail A наш IP адрес

    mydomain.ru MX 10 mail.mydomain.ru

    Настройки sendmail'a:

    sendmail.mc

    divert(-1)dnl

    dnl #

    dnl # This is the sendmail macro config file for m4. If you make changes to

    dnl # /etc/mail/sendmail.mc, you will need to regenerate the

    dnl # /etc/mail/sendmail.cf file by confirming that the sendmail-cf package is

    dnl # installed and then performing a

    dnl #

    dnl # make -C /etc/mail

    dnl #

    include(`/usr/share/sendmail-cf/m4/cf.m4')dnl

    VERSIONID(`setup for linux')dnl

    OSTYPE(`linux')dnl

    dnl #

    dnl # Do not advertize sendmail version.

    dnl #

    dnl define(`confSMTP_LOGIN_MSG', `$j Sendmail; $b')dnl

    dnl #

    dnl # default logging level is 9, you might want to set it higher to

    dnl # debug the configuration

    dnl #

    dnl define(`confLOG_LEVEL', `9')dnl

    dnl #

    dnl # Uncomment and edit the following line if your outgoing mail needs to

    dnl # be sent out through an external mail server:

    dnl #

    dnl define(`SMART_HOST', `smtp.your.provider')dnl

    dnl #

    define(`confDEF_USER_ID', ``8:12'')dnl

    dnl define(`confAUTO_REBUILD')dnl

    define(`confTO_CONNECT', `1m')dnl

    define(`confTRY_NULL_MX_LIST', `True')dnl

    define(`confDONT_PROBE_INTERFACES', `True')dnl

    define(`PROCMAIL_MAILER_PATH', `/usr/bin/procmail')dnl

    define(`ALIAS_FILE', `/etc/aliases')dnl

    define(`STATUS_FILE', `/var/log/mail/statistics')dnl

    define(`UUCP_MAILER_MAX', `2000000')dnl

    define(`confUSERDB_SPEC', `/etc/mail/userdb.db')dnl

    define(`confPRIVACY_FLAGS', `authwarnings,novrfy,noexpn,restrictqrun')dnl

    define(`confAUTH_OPTIONS', `A')dnl

    dnl #

    dnl # The following allows relaying if the user authenticates, and disallows

    dnl # plaintext authentication (PLAIN/LOGIN) on non-TLS links

    dnl #

    dnl define(`confAUTH_OPTIONS', `A p')dnl

    dnl #

    dnl # PLAIN is the preferred plaintext authentication method and used by

    dnl # Mozilla Mail and Evolution, though Outlook Express and other MUAs do

    dnl # use LOGIN. Other mechanisms should be used if the connection is not

    dnl # guaranteed secure.

    dnl # Please remember that saslauthd needs to be running for AUTH.

    dnl #

    dnl TRUST_AUTH_MECH(`EXTERNAL DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl

    dnl define(`confAUTH_MECHANISMS', `EXTERNAL GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl

    dnl #

    dnl # Rudimentary information on creating certificates for sendmail TLS:

    dnl # cd /usr/share/ssl/certs; make sendmail.pem

    dnl # Complete usage:

    dnl # make -C /usr/share/ssl/certs usage

    dnl #

    dnl define(`confCACERT_PATH', `/etc/pki/tls/certs')dnl

    dnl define(`confCACERT', `/etc/pki/tls/certs/ca-bundle.crt')dnl

    dnl define(`confSERVER_CERT', `/etc/pki/tls/certs/sendmail.pem')dnl

    dnl define(`confSERVER_KEY', `/etc/pki/tls/certs/sendmail.pem')dnl

    dnl #

    dnl # This allows sendmail to use a keyfile that is shared with OpenLDAP's

    dnl # slapd, which requires the file to be readble by group ldap

    dnl #

    dnl define(`confDONT_BLAME_SENDMAIL', `groupreadablekeyfile')dnl

    dnl #

    dnl define(`confTO_QUEUEWARN', `4h')dnl

    dnl define(`confTO_QUEUERETURN', `5d')dnl

    dnl define(`confQUEUE_LA', `12')dnl

    dnl define(`confREFUSE_LA', `18')dnl

    define(`confTO_IDENT', `0')dnl

    dnl FEATURE(delay_checks)dnl

    FEATURE(`no_default_msa', `dnl')dnl

    FEATURE(`smrsh', `/usr/sbin/smrsh')dnl

    FEATURE(`mailertable', `hash -o /etc/mail/mailertable.db')dnl

    FEATURE(`virtusertable', `hash -o /etc/mail/virtusertable.db')dnl

    FEATURE(redirect)dnl

    FEATURE(always_add_domain)dnl

    FEATURE(use_cw_file)dnl

    FEATURE(use_ct_file)dnl

    dnl #

    dnl # The following limits the number of processes sendmail can fork to accept

    dnl # incoming messages or process its message queues to 20.) sendmail refuses

    dnl # to accept connections once it has reached its quota of child processes.

    dnl #

    dnl define(`confMAX_DAEMON_CHILDREN', `20')dnl

    dnl #

    dnl # Limits the number of new connections per second. This caps the overhead

    dnl # incurred due to forking new sendmail processes. May be useful against

    dnl # DoS attacks or barrages of spam. (As mentioned below, a per-IP address

    dnl # limit would be useful but is not available as an option at this writing.)

    dnl #

    dnl define(`confCONNECTION_RATE_THROTTLE', `3')dnl

    dnl #

    dnl # The -t option will retry delivery if e.g. the user runs over his quota.

    dnl #

    FEATURE(local_procmail, `', `procmail -t -Y -a $h -d $u')dnl

    FEATURE(`access_db', `hash -T<TMPF> -o /etc/mail/access.db')dnl

    FEATURE(`blacklist_recipients')dnl

    EXPOSED_USER(`root')dnl

    dnl #

    dnl # For using Cyrus-IMAPd as POP3/IMAP server through LMTP delivery uncomment

    dnl # the following 2 definitions and activate below in the MAILER section the

    dnl # cyrusv2 mailer.

    dnl #

    dnl define(`confLOCAL_MAILER', `cyrusv2')dnl

    dnl define(`CYRUSV2_MAILER_ARGS', `FILE /var/lib/imap/socket/lmtp')dnl

    dnl #

    dnl # The following causes sendmail to only listen on the IPv4 loopback address

    dnl # 127.0.0.1 and not on any other network devices. Remove the loopback

    dnl # address restriction to accept email from the internet or intranet.

    dnl #

    dnl DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl

    dnl #

    dnl # The following causes sendmail to additionally listen to port 587 for

    dnl # mail from MUAs that authenticate. Roaming users who can't reach their

    dnl # preferred sendmail daemon due to port 25 being blocked or redirected find

    dnl # this useful.

    dnl #

    dnl DAEMON_OPTIONS(`Port=submission, Name=MSA, M=Ea')dnl

    dnl #

    dnl # The following causes sendmail to additionally listen to port 465, but

    dnl # starting immediately in TLS mode upon connecting. Port 25 or 587 followed

    dnl # by STARTTLS is preferred, but roaming clients using Outlook Express can't

    dnl # do STARTTLS on ports other than 25. Mozilla Mail can ONLY use STARTTLS

    dnl # and doesn't support the deprecated smtps; Evolution <1.1.1 uses smtps

    dnl # when SSL is enabled-- STARTTLS support is available in version 1.1.1.

    dnl #

    dnl # For this to work your OpenSSL certificates must be configured.

    dnl #

    dnl DAEMON_OPTIONS(`Port=smtps, Name=TLSMTA, M=s')dnl

    dnl #

    dnl # The following causes sendmail to additionally listen on the IPv6 loopback

    dnl # device. Remove the loopback address restriction listen to the network.

    dnl #

    dnl DAEMON_OPTIONS(`port=smtp,Addr=::1, Name=MTA-v6, Family=inet6')dnl

    dnl #

    dnl # enable both ipv6 and ipv4 in sendmail:

    dnl #

    dnl DAEMON_OPTIONS(`Name=MTA-v4, Family=inet, Name=MTA-v6, Family=inet6')

    dnl #

    dnl # We strongly recommend not accepting unresolvable domains if you want to

    dnl # protect yourself from spam. However, the laptop and users on computers

    dnl # that do not have 24x7 DNS do need this.

    dnl #

    FEATURE(`accept_unresolvable_domains')dnl

    dnl #

    dnl FEATURE(`relay_based_on_MX')dnl

    dnl #

    dnl # Also accept email sent to "localhost.localdomain" as local email.

    dnl #

    LOCAL_DOMAIN(`localhost.localdomain')dnl

    dnl #

    dnl # The following example makes mail from this host and any additional

    dnl # specified domains appear to be sent from mydomain.com

    dnl #

    dnl MASQUERADE_AS(`mydomain.com')dnl

    dnl #

    dnl # masquerade not just the headers, but the envelope as well

    dnl #

    dnl FEATURE(masquerade_envelope)dnl

    dnl #

    dnl # masquerade not just @mydomainalias.com, but @*.mydomainalias.com as well

    dnl #

    dnl FEATURE(masquerade_entire_domain)dnl

    dnl #

    dnl MASQUERADE_DOMAIN(localhost)dnl

    dnl MASQUERADE_DOMAIN(localhost.localdomain)dnl

    dnl MASQUERADE_DOMAIN(mydomainalias.com)dnl

    dnl MASQUERADE_DOMAIN(mydomain.lan)dnl

    MAILER(smtp)dnl

    MAILER(procmail)dnl

    dnl MAILER(cyrusv2)dnl

    во вновь созданном sendmail.cf изменены строки

    Cwmail.mydomain.ru

    Dj.Sw.mydomain.ru

    в access находятся следующие строки

    localhost.localdomain RELAY

    mail.mydomain.ru RELAY

    mydomain.ru RELAY

    IP адрес машины в сети RELAY

    IP адрес сервера RELAY

    access обработан makemap

    в local-host-names

    mail.mydomain.ru

    mydomain.ru

    Система: Linux Fedora Core 6

    Версия sendmail - 8.

    Подскажите, где моя ошибка Shocked

  9. Вопрос вот в чем:

    На компьютере с постоянным подключением к Инету поднял веб-сервер (IP - постоянный). Домен зарегистрирован в RuЦентре (nic.ru). Есть доступ к редактированию зонных файлов, где уже привязан IP к доменному имени. Необходимо на этой же машине настроить прием и передачу почты.

    Если я все правильно понял, то для этого достаточно настроить sendmail (прием-передача почты) и pop или imap демон (для получения почты). Но вот вопрос:

    - для настройки sendmail необходимо прописывать MX запись в зонных файлах, как она должна выглядеть не пойму, в руководствах написано для примера mail.domain.ru, а что означает mail и где это настраивать на сервере? Surprised

    - нужно ли поднимать DNS службу на сервере?

    Заранее благодарю.

  10. Ситуация в следующем

    Скачал с ftp qualcomm'а qpoper, распаковал его и сделал как сказано в документации, а именно

    ./configure --enable-specialauth

    make

    su

    далее скопировал получившийся popper в /usr/sbin и настроил xinetd так

    service pop3

    {

    port = 110

    socket_type = stream

    protocol = tcp

    wait = no

    user = root

    server = /usr/sbin/popper

    }

    Перезапустил xinetd, но на попытку подключения система отвечает

    [root@web1 popper]# telnet localhost 110

    Trying ::1...

    telnet: connect to address ::1: Connection refused

    telnet: Unable to connect to remote host: Connection refuse

    В ответ на сервисы chkconfig --list система выдает

    на основе xinetd:

    ...

    pop3: вкл

    ...

    На iptables -L|less

    ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:pop3

    Файл hosts

    ::1 localhost localhost.localdomain web1

    10.195.61.126 web1

    10.195.61.126 www.ultravel.ru ultravel.ru

    Подскажите куда копать?

×
×
  • Создать...