Кто знает, подскажите с Postfix....

EXIM, sendmail, postfix, Dovecot и прочие. Решение проблем связанных с работой электронной почты

Модератор: xM

Правила форума
Убедительная просьба юзать теги [code] при оформлении листингов.
Сообщения не оформленные должным образом имеют все шансы быть незамеченными.
Bronk_Kvis
рядовой
Сообщения: 22
Зарегистрирован: 2008-03-07 9:33:09

Кто знает, подскажите с Postfix....

Непрочитанное сообщение Bronk_Kvis » 2008-08-12 17:10:25

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

Настраиваю почтарь вот по этой замечательной статье http://www.sys-adm.org.ua/mail/mail-howto-p1.php
Cтолкнулся с некоторыми сложностями, а именно дошёл до запуска postfixa, стартует без ошибок, но в логи летит вот это:

Код: Выделить всё

Aug 12 16:15:08 xxx postfix/master[87733]: daemon started -- version 2.5.1, configuration /usr/local/etc/postfix                                               
Aug 12 16:15:08 xxx postfix/pickup[87734]: E341145066: uid=0 from=<root>       
Aug 12 16:15:08 xxx postfix/cleanup[87736]: E341145066: message-id=<20080812121508.E341145066@mail.my.ru>                                                    
Aug 12 16:15:08 xxx postfix/cleanup[87736]: warning: mysql query failed: Table 'postfix.alias' doesn't exist                                                   
Aug 12 16:15:08 xxx postfix/cleanup[87736]: warning: E341145066: virtual_alias_maps map lookup problem for root@my.ru                                        
Aug 12 16:15:08 xxx postfix/pickup[87734]: E75D745066: uid=0 from=<root>       
Aug 12 16:15:08 xxx postfix/cleanup[87736]: E75D745066: message-id=<20080812121508.E75D745066@mail.my.ru>                                                    
Aug 12 16:15:08 xxx postfix/cleanup[87736]: warning: E75D745066: virtual_alias_maps map lookup problem for root@my.ru                                        
Aug 12 16:15:08 xxx postfix/pickup[87734]: E795945066: uid=0 from=<root>       
Aug 12 16:15:08 xxx postfix/cleanup[87736]: E795945066: message-id=<20080812121508.E795945066@mail.my.ru>
вот мои конфиги:
1. authdaemonrc

Код: Выделить всё

# cat /usr/local/etc/authlib/authdaemonrc | grep -v ^# | grep -v ^$
authmodulelist="authmysql"                                             
authmodulelistorig="authmysql"                                         
daemons=5                                                              
authdaemonvar=/var/run/authdaemond                                     
subsystem=mail                                                         
DEBUG_LOGIN=2                                                       
DEFAULTOPTIONS="wbnodsn=1"                                             
LOGGEROPTS=""
2. authmysqlrc

Код: Выделить всё

# cat /usr/local/etc/authlib/authmysqlrc | grep -v ^# | grep -v ^$
MYSQL_SERVER            localhost                                     
MYSQL_USERNAME          postfix                                       
MYSQL_PASSWORD          postfix                                       
MYSQL_SOCKET            /tmp/mysql.sock                               
MYSQL_OPT               0                                             
MYSQL_DATABASE          postfix                                       
MYSQL_CHARACTER_SET     utf8                                          
MYSQL_USER_TABLE        mailbox                                       
MYSQL_CLEAR_PWFIELD     password                                      
MYSQL_UID_FIELD         '1981'                                        
MYSQL_GID_FIELD         '1981'                                        
MYSQL_LOGIN_FIELD       username                                      
MYSQL_HOME_FIELD        '/var/spool/mail'                             
MYSQL_NAME_FIELD        name                                          
MYSQL_MAILDIR_FIELD     maildir                                       
MYSQL_QUOTA_FIELD       quota                                         
MYSQL_WHERE_CLAUSE      active='1' 
3.main.cf

Код: Выделить всё

queue_directory = /var/spool/postfix                                          
command_directory = /usr/local/sbin                                           
base = /usr/local/etc/postfix                                                 
daemon_directory = /usr/local/libexec/postfix                                 
mail_owner = postfix                                                          
default_privs = nobody                                                        
myhostname = my.ru                                                     
mydomain = my.ru                                                            
myorigin = $mydomain                                                          
inet_interfaces = all                                                         
mydestination = localhost.$mydomain, localhost                   
local_recipient_maps = unix:passwd.byname $alias_maps 
#local_recipient_maps = $virtual_mailbox_maps, $virtual_alias_maps, $alias_maps
unknown_local_recipient_reject_code = 550                                     
mynetworks_style = host                                                       
mynetworks = 127.0.0.0/8                                                      
alias_maps = hash:/etc/aliases
#alias_maps = hash:/etc/mail/aliases                                           
alias_database = hash:/etc/aliases
#alias_database = hash:/etc/mail/aliases                                       
home_mailbox = Maildir/                                                       
                                                                              
mail_spool_directory = /var/spool/mail                                        
                                                                              
header_checks = regexp:$base/header_checks                                    
smtpd_banner = $myhostname ESMTP                                              
debug_peer_level = 2                                              
#debug_peer_list = 127.0.0.1, my.ru                              
debugger_command =                                                
         PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin         
         ddd $daemon_directory/$process_name $process_id & sleep 5
sendmail_path = /usr/local/sbin/sendmail                          
newaliases_path = /usr/local/bin/newaliases                       
mailq_path = /usr/local/bin/mailq                                 
setgid_group = maildrop                                           
html_directory = no                                               
manpage_directory = /usr/local/man                                
sample_directory = /usr/local/etc/postfix                         
readme_directory = no
smtpd_client_restrictions =     permit_mynetworks,                              
                                permit_sasl_authenticated,                      
                                check_client_access hash:$base/client_access,   
                                reject_unknown_client_hostname                  
                                                                                
smtpd_helo_restrictions =       check_helo_access hash:$base/hello_access,      
                                permit_mynetworks,                              
                                permit_sasl_authenticated,                      
                                reject_invalid_helo_hostname,                   
                                reject_non_fqdn_helo_hostname,                  
                                reject_unknown_helo_hostname                    
                                                                                
smtpd_sender_restrictions =     permit_mynetworks,                              
                                check_sender_access hash:$base/sender_access,   
                                reject_authenticated_sender_login_mismatch,     
                                reject_unknown_sender_domain,                   
                                reject_unlisted_sender,                         
                                reject_unverified_sender                        
                                                                                
smtpd_recipient_restrictions =  permit_mynetworks,                              
                                permit_sasl_authenticated,                      
                                reject_unauth_destination,                      
                                check_recipient_access hash:$base/recipient_access
                                 reject_unlisted_recipient,      
                                 reject_unknown_recipient_domain,
                                 reject_non_fqdn_recipient,      
                                 reject_unverified_recipient 
content_filter=smtp-amavis:[127.0.0.1]:10024
smtpd_etrn_restrictions = reject                                   
smtpd_reject_unlisted_sender = yes                                 
disable_vrfy_command = yes                                         
strict_rfc821_envelopes = yes                                      
show_user_unknown_table_name = no                                  
address_verify_sender = <>                                         
unverified_sender_reject_code = 550                                
smtpd_helo_required = yes                                          
smtp_always_send_ehlo = yes                                        
smtpd_hard_error_limit = 8                                         
smtpd_sasl_auth_enable = yes                                       
smtpd_sasl_application_name = smtpd                                
broken_sasl_auth_clients = yes                                     
smtpd_sasl_security_options = noanonymous                          
smtpd_sender_login_maps = mysql:$base/mysqlLookupMaps/sender.conf  
virtual_alias_maps = mysql:$base/mysqlLookupMaps/alias.conf        
virtual_mailbox_domains = mysql:$base/mysqlLookupMaps/domain.conf  
virtual_mailbox_maps = mysql:$base/mysqlLookupMaps/mailbox.conf    
virtual_mailbox_base = /var/spool/mail                             
virtual_mailbox_limit_maps = mysql:$base/mysqlLookupMaps/quota.conf
virtual_maildir_extended=yes                                       
virtual_mailbox_limit_override=yes                                 
virtual_create_maildirsize = yes
virtual_overquota_bounce = yes                                                  
virtual_maildir_limit_message="Sorry, the user's maildir has overdrawn his disks
pace quota, please try again later"                                             
message_size_limit = 31457280                                                   
virtual_gid_maps = static:1981                                                  
virtual_uid_maps = static:1981                                                  
virtual_minimum_uid = 1000
4. alias.conf

Код: Выделить всё

# cat /usr/local/etc/postfix/mysqlLookupMaps/alias.conf
user = postfix                                             
password = postfix                                         
hosts = localhost                                          
dbname = postfix                                           
table = alias                                              
select_field = goto                                        
where_field = address
в mysql я создал юзера и дал ему права :
mysql -p -u root
задаём пороль...рута,
создаём базу postfix и создаём юзера postfix и даём права на эту базу!!!
mysql> create database postfix;
grant all on postfix.* to 'postfix'@'localhost' identified by 'postfix';

понимаю что он ругается на таблицу postfix.alias что её нету, но почему???? или я чего то не понимаю :st: .....подскажите как быть?
Последний раз редактировалось Bronk_Kvis 2008-08-20 9:34:34, всего редактировалось 3 раза.

Хостинговая компания Host-Food.ru
Хостинг HostFood.ru
 

Услуги хостинговой компании Host-Food.ru

Хостинг HostFood.ru

Тарифы на хостинг в России, от 12 рублей: https://www.host-food.ru/tariffs/hosting/
Тарифы на виртуальные сервера (VPS/VDS/KVM) в РФ, от 189 руб.: https://www.host-food.ru/tariffs/virtualny-server-vps/
Выделенные сервера, Россия, Москва, от 2000 рублей (HP Proliant G5, Intel Xeon E5430 (2.66GHz, Quad-Core, 12Mb), 8Gb RAM, 2x300Gb SAS HDD, P400i, 512Mb, BBU):
https://www.host-food.ru/tariffs/vydelennyi-server-ds/
Недорогие домены в популярных зонах: https://www.host-food.ru/domains/

Аватара пользователя
ProFTP
подполковник
Сообщения: 3388
Зарегистрирован: 2008-04-13 1:50:04
Откуда: %&й
Контактная информация:

Re: Кто знает, подскажите с Postfix....

Непрочитанное сообщение ProFTP » 2008-08-12 18:25:50

Код: Выделить всё

# cd /usr/local/www/postfixadmin
# mysql -u root -p < DATABASE_MYSQL.TXT
http://www.sys-adm.org.ua/mail/mail-howto-p1.php#c9
Pеrl FAQ
perl -e 'print join"",map $$_[rand@$_],([0..9,'a'..'z','A'..'Z'])x30'
ИзображениеИзображение

Bronk_Kvis
рядовой
Сообщения: 22
Зарегистрирован: 2008-03-07 9:33:09

Re: Кто знает, подскажите с Postfix....

Непрочитанное сообщение Bronk_Kvis » 2008-08-12 18:40:26

ProFTP писал(а):

Код: Выделить всё

# cd /usr/local/www/postfixadmin
# mysql -u root -p < DATABASE_MYSQL.TXT
http://www.sys-adm.org.ua/mail/mail-howto-p1.php#c9
эээээээ..... я до этого ещё не дошёл :smile:

вот где я :

Код: Выделить всё

Если все правильно настроено, то в log-файле должно быть следующее
# cat /var/log/maillog | grep postfix
Feb  9 23:46:40 freebsd postfix/postfix-script[12718]: starting the Postfix mail system
Feb  9 23:46:40 freebsd postfix/master[12719]: daemon started -- version 2.4.6, configuration
/usr/local/etc/postfix
а там вот это:

Код: Выделить всё

Aug 12 17:53:16 xxx postfix/pickup[1821]: 1777945067: uid=0 from=<root>        
Aug 12 17:53:16 xxx postfix/cleanup[1823]: 1777945067: message-id=<20080812135316.1777945067@my.ru>                                                          
Aug 12 17:53:16 xxx postfix/cleanup[1823]: warning: 1777945067: virtual_alias_maps map lookup problem for root@my.ru                                         
Aug 12 17:53:16 xxx postfix/pickup[1821]: 17AB045067: uid=0 from=<root>        
Aug 12 17:53:16 xxx postfix/cleanup[1823]: 17AB045067: message-id=<20080812135316.17AB045067@my.ru>                                                          
Aug 12 17:53:16 xxx postfix/cleanup[1823]: warning: 17AB045067: virtual_alias_maps map lookup problem for root@my.ru                                         
Aug 12 17:53:16 xxx postfix/pickup[1821]: 17DF245067: uid=0 from=<root>        
Aug 12 17:53:16 xxx postfix/cleanup[1823]: 17DF245067: message-id=<20080812135316.17DF245067@my.ru>                                                          
и это сыпится чуть ли не каждую минуту, maillog растёт.... естественно, я apache и php5 и тем более postfixadmin ещё не ставил.... :(
что бы maillog не вырос до безобразия в данный момент postfix остановил.... :(

Bronk_Kvis
рядовой
Сообщения: 22
Зарегистрирован: 2008-03-07 9:33:09

Re: Кто знает, подскажите с Postfix....

Непрочитанное сообщение Bronk_Kvis » 2008-08-13 7:11:36

Доброе утро.

вопрос:
А мне нужно было создавать таблицы ? :unknown: (postfix.alias)

Аватара пользователя
ProFTP
подполковник
Сообщения: 3388
Зарегистрирован: 2008-04-13 1:50:04
Откуда: %&й
Контактная информация:

Re: Кто знает, подскажите с Postfix....

Непрочитанное сообщение ProFTP » 2008-08-13 13:26:20

почитай файл DATABASE_MYSQL.TXT, он их создает!
Pеrl FAQ
perl -e 'print join"",map $$_[rand@$_],([0..9,'a'..'z','A'..'Z'])x30'
ИзображениеИзображение

Bronk_Kvis
рядовой
Сообщения: 22
Зарегистрирован: 2008-03-07 9:33:09

Re: Кто знает, подскажите с Postfix....

Непрочитанное сообщение Bronk_Kvis » 2008-08-15 8:53:28

ProFTP писал(а):почитай файл DATABASE_MYSQL.TXT, он их создает!
там нет такого файла, за то есть вот такой INSTALL.TXT

ProFTP спасибо, разобрался......
просто я поторопился бить тревогу :oops:
установка Postfix Admin 2.2.1.1 отличается от статейной!!!!
на будущее........ может кому и понадобится:
что бы в /var/spool/mail появились письма, нужно после того как создашь СуперАдмина, сделать ему почтовый ящик!!!!!
пример:
СуперАдмин : Kaka@byka.ru
пароль: ******
создаёшь домен!!!!
и сразу переходишь в "Создание нового почтового ящика для вашего домена"
почта : Kaka@byka.ru
пароль: ******
и будит тебе счастье!

теперь о грустном:
в логах нашёл вот на такую запись :

Код: Выделить всё

Aug 15 09:00:01 xxx postfix/cleanup[63562]: E3DB44501E: message id=<20080815050001.E3DB44501E@mail.xxx.ru>                                                    
Aug 15 09:00:01 xxx postfix/bounce[63565]: D79034501C: sender non-delivery notification: E3DB44501E                                                            
Aug 15 09:00:01 xxx postfix/qmgr[59401]: E3DB44501E: from=<>, size=2273, nrcpt=1 (queue active)                                                                
Aug 15 09:00:01 xxx postfix/qmgr[59401]: D79034501C: removed                   
Aug 15 09:00:01 xxx postfix/virtual[63564]: E3DB44501E: to=<root@xxx.ru>, relay=virtual, delay=0.01, delays=0/0/0/0, dsn=5.1.1, status=bounced (unknown user: "root@xxx.ru")                                                                 
Aug 15 09:00:01 xxx postfix/qmgr[59401]: E3DB44501E: removed 
конфиг postfix указан выше:
я так понимаю ругается на не известного пользователя рута, но почему? понять не могу :cf:
это кроновый рут наверно... или я что то путаю :roll:
подскажите как быть??? :st:

Bronk_Kvis
рядовой
Сообщения: 22
Зарегистрирован: 2008-03-07 9:33:09

Re: Кто знает, подскажите с Postfix....

Непрочитанное сообщение Bronk_Kvis » 2008-08-20 11:12:15

Здравствуйте коллеги!

Вот настроил я почтарь вот по этим замечательным статьям:
http://www.sys-adm.org.ua/mail/mail-howto-p1.php
http://www.sys-adm.org.ua/mail/mail-howto-p2.php
Автору большое спасибо!!!

всё работает! отправляет, принимает, спам режет (не идеально конечно же, но режет!) на вирусы трусит базы обновляет антивирусные и всё бы хорошо, если бы не одно но....root системный (/var/mail/) перестал получать отчёты.....
как быть в этой ситуации? :unknown:
рассмотрю любую критику, советы и т д.

вот:

Код: Выделить всё

Aug 20 00:00:02 xxx postfix/pickup[64791]: 05E2845038: uid=0 from=<root>       
Aug 20 00:00:02 xxx postfix/cleanup[65174]: 05E2845038: message-id=<20080819200
002.05E2845038@my.ru>                                                         
Aug 20 00:00:02 xxx postfix/qmgr[64285]: 05E2845038: from=<root@my.ru>, size=
575, nrcpt=1 (queue active)                                                     
Aug 20 00:00:19 xxx postfix/smtpd[65178]: connect from localhost[127.0.0.1]    
Aug 20 00:00:19 xxx postfix/smtpd[65178]: F0F5445042: client=localhost[127.0.0.
1]                                                                              
Aug 20 00:00:19 xxx postfix/cleanup[65174]: F0F5445042: message-id=<20080819200
002.05E2845038@my.ru>                                                         
Aug 20 00:00:19 xxx postfix/smtpd[65178]: disconnect from localhost[127.0.0.1] 
Aug 20 00:00:19 xxx postfix/qmgr[64285]: F0F5445042: from=<root@my.ru>, size=
964, nrcpt=1 (queue active)                                                     
Aug 20 00:00:20 xxx amavis[62896]: (62896-16) Passed CLEAN, <root@my.ru> -> <
root@my.ru>, Message-ID: <20080819200002.05E2845038@my.ru>, mail_id: WCpV5J6
mb0cr, Hits: 0.3, size: 575, queued_as: F0F5445042, 17971 ms                    
Aug 20 00:00:20 xxx postfix/smtp[65175]: 05E2845038: to=<root@my.ru>, orig_to
=<root>, relay=127.0.0.1[127.0.0.1]:10024, delay=18, delays=0.02/0.01/0.01/18, d
sn=2.0.0, status=sent (250 2.0.0 Ok, id=62896-16, from MTA([127.0.0.1]:10025): 2
50 2.0.0 Ok: queued as F0F5445042)                                              
Aug 20 00:00:20 xxx postfix/qmgr[64285]: 05E2845038: removed                   
Aug 20 00:00:20 xxx postfix/virtual[65180]: F0F5445042: to=<root@my.ru>, rela
y=virtual, delay=0.06, delays=0.01/0.02/0/0.03, dsn=5.1.1, status=bounced (unkno
wn user: "root@my.ru")                                                        
Aug 20 00:00:20 xxx postfix/cleanup[65174]: 0A9284504F: message-id=<20080819200
020.0A9284504F@my.ru>                                                         
Aug 20 00:00:20 xxx postfix/qmgr[64285]: 0A9284504F: from=<>, size=2645, nrcpt=
1 (queue active)                                                                
Aug 20 00:00:20 xxx postfix/bounce[65181]: F0F5445042: sender non-delivery noti
fication: 0A9284504F                                                            
Aug 20 00:00:20 xxx postfix/qmgr[64285]: F0F5445042: removed                   
Aug 20 00:00:20 xxx postfix/virtual[65180]: 0A9284504F: to=<root@my.ru>, rela
y=virtual, delay=0.01, delays=0/0/0/0, dsn=5.1.1, status=bounced (unknown user: 
"root@my.ru")                                                                   

Fly
проходил мимо

Re: Кто знает, подскажите с Postfix....

Непрочитанное сообщение Fly » 2008-08-20 20:12:03

Люди та же беда - нет файла DATABASE_MYSQL.TXT.
Следовательно не могу создать нужные таблицы.
Дайте ктонить листинг этого файла.
Уже ноги посбивал в поисках.
А в файле INSTALL.TXT есть только указания по созданию базы postfix и все , а какие там должны быть таблицы ? типы данных и тп?

lumen2006
проходил мимо

Re: Кто знает, подскажите с Postfix....

Непрочитанное сообщение lumen2006 » 2008-08-20 21:11:26

есть таблица alias туда можно добавлять алиасы то есть с какого адреса делать перенаправления.

Файлы взятые из postffixadmin-2.1.0
Вложения
DATABASE_PGSQL.TXT
DATABASE_PGSQL
(4.84 КБ) 72 скачивания
DATABASE_MYSQL.TXT
DATABASE_MYSQL
(4.93 КБ) 405 скачиваний

Alex_hha
лейтенант
Сообщения: 755
Зарегистрирован: 2005-11-06 18:25:26
Контактная информация:

Re: Кто знает, подскажите с Postfix....

Непрочитанное сообщение Alex_hha » 2008-08-20 21:55:05

Aug 20 00:00:20 xxx postfix/virtual[65180]: 0A9284504F: to=<root@my.ru>, rela
y=virtual, delay=0.01, delays=0/0/0/0, dsn=5.1.1, status=bounced (unknown user:
"root@my.ru")
создай виртуального пользователя root
Люди та же беда - нет файла DATABASE_MYSQL.TXT.
Следовательно не могу создать нужные таблицы.
Дайте ктонить листинг этого файла.
Уже ноги посбивал в поисках.
надо документацию читать. Начиная с postfix-2.2.x нет такого файла. Необходимо самому создать пустую базу, а все необходимые таблицы создаст сам инсталятор postfix
Последний раз редактировалось Alex_hha 2008-08-26 12:04:38, всего редактировалось 1 раз.

fly
проходил мимо

Re: Кто знает, подскажите с Postfix....

Непрочитанное сообщение fly » 2008-08-21 9:52:28

Незнаю. Мне вот ничего не создал хотя база стоит и схема postfix присудствует - короче говоря , все как в документации сделано.

Я решил эту проблему таким образом(может пригодиться кому) - скачал устаревшую версию 2.1.0 с оф. сайта и в нем был этот файл =).

для тех кому неохота долго рыться - http://downloads.sourceforge.net/postfi ... g_mirror=0

TEN
проходил мимо
Сообщения: 1
Зарегистрирован: 2008-09-02 14:57:13

Re: Кто знает, подскажите с Postfix....

Непрочитанное сообщение TEN » 2008-09-02 18:00:54

Помогите советом пожалуйста.
Поставил себе по статье Postfix, дошел до setup и получаю такой результат:
Postfix Admin Setup Checker
Running software:

PHP version 5.2.6
Apache/1.3.41 (Unix) PHP/5.2.6 with Suhosin-Patch mod_ssl/2.8.31 OpenSSL/0.9.8h
Checking for dependencies:

Warning: Magic Quotes: ON (internal workaround used)
Depends on: presence config.inc.php - OK
Checking $CONF['configured'] - OK
Depends on: MySQL 4.1 - OK
Testing database connection - OK - mysqli://postfix:xxxxx@localhost/postfix
Depends on: session - OK
Depends on: pcre - OK
Depends on: multibyte string - OK
Depends on: IMAP functions - OK
Everything seems fine... attempting to create/update database structure

DEBUG INFORMATION:
Invalid query: Access denied for user 'postfix'@'localhost' to database 'postfix'

Не пойму, если конект проверен, то куда нет доступа? Может стоит пересоздать базу? Если пересоздать - то подскажите как, а то как новичок не знаю команд.

Alex_hha
лейтенант
Сообщения: 755
Зарегистрирован: 2005-11-06 18:25:26
Контактная информация:

Re: Кто знает, подскажите с Postfix....

Непрочитанное сообщение Alex_hha » 2008-09-02 18:09:58

я сам пока не разобрался с этим. На время создания укажи рута, потом поменяй на postfix. Возможно ему не хватает прав на создание таблиц

Mamazulu
рядовой
Сообщения: 20
Зарегистрирован: 2008-09-10 9:19:17

Re: Кто знает, подскажите с Postfix....

Непрочитанное сообщение Mamazulu » 2008-09-10 9:23:42

Измения параметр
1) Magic Quotes в php.ini
2/ Перезапусти Apache
3) Я обычно сравлю сразу phpmyadmin на сервак и через него прогоняю все скрипты.
В твоем случае просто залезь на него и дай права на запись для юзера postfixadmin для базы postfix.

Аватара пользователя
Belfigor
рядовой
Сообщения: 25
Зарегистрирован: 2008-08-04 2:41:07
Откуда: Белгород
Контактная информация:

Re: Кто знает, подскажите с Postfix....

Непрочитанное сообщение Belfigor » 2008-09-27 18:34:44

А у меня другая байда только с Postixadmin ,так вроде всё пашет telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 ubuntu.bel.ru ESMTP Postfix (Ubuntu)
ehlo ubuntu.bel.ru
250-ubuntu.bel.ru
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-STARTTLS
250-AUTH PLAIN LOGIN
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN
quit
221 2.0.0 Bye
__________________________________________

telnet localhost 110
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
+OK Dovecot ready.
quit
+OK Logging out
Connection closed by foreign host
____________________________________

Но теперь блин другая пробема , не могу создать админ в posfixadmin

вроде так всё нормально

Checking for dependencies:

* Magic Quotes: Disabled - OK
* Depends on: presence config.inc.php - OK
* Checking $CONF['configured'] - OK
* Depends on: MySQL 3.23, 4.0 - OK
* Depends on: MySQL 4.1 - OK
* Testing database connection - OK - mysqli://postfix:xxxxx@localhost/postfix
* Depends on: session - OK
* Depends on: pcre - OK
* Depends on: multibyte string - OK

Everything seems fine... attempting to create/update database structure
Database is up to date

но

Create superadmin account
Администратор: dirwar@ubuntu.bel.ru Почтовый адрес
Некорректный адрес администратора!
Пароль: ******
Пароль (еще раз):

в чём причина , подскажите что не так , ткните носом так сказать , :(((((

вот конфиг postfixadmin
<?php
/**
* Postfix Admin
*
* LICENSE
* This source file is subject to the GPL license that is bundled with
* this package in the file LICENSE.TXT.
*
* Further details on the project are available at :
* http://www.postfixadmin.com or http://postfixadmin.sf.net
*
* @version $Id: config.inc.php 309 2008-03-05 00:09:46Z christian_boltz $
* @license GNU GPL v2 or later.
*
* File: config.inc.php
* Contains configuration options.
*/

if (ereg ("config.inc.php", $_SERVER['PHP_SELF']))
{
header ("Location: login.php");
exit;
}

/*****************************************************************
* !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
* The following line needs commenting out or removing before the
* application will run!
* Doing this implies you have changed this file as required.
*/
$CONF['configured'] = true;


// Postfix Admin Path
// Set the location of your Postfix Admin installation here.
// YOU MUST ENTER THE COMPLETE URL e.g. http://domain.tld/postfixadmin
$CONF['postfix_admin_url'] = '';

// shouldn't need changing.
$CONF['postfix_admin_path'] = dirname(__FILE__);

// Language config
// Language files are located in './languages', change as required..
$CONF['default_language'] = 'ru';

// Database Config
// mysql = MySQL 3.23 and 4.0
// mysqli = MySQL 4.1
// pgsql = PostgreSQL
$CONF['database_type'] = 'mysqli';
$CONF['database_host'] = 'localhost';
$CONF['database_user'] = 'postfix';
$CONF['database_password'] = '******';
$CONF['database_name'] = 'postfix';
$CONF['database_prefix'] = '';

// Here, if you need, you can customize table names.
$CONF['database_prefix'] = '';
$CONF['database_tables'] = array (
'admin' => 'admin',
'alias' => 'alias',
'config' => 'config',
'domain' => 'domain',
'domain_admins' => 'domain_admins',
'log' => 'log',
'mailbox' => 'mailbox',
'vacation' => 'vacation',
'vacation_notification' => 'vacation_notification',
);

// Site Admin
// Define the Site Admins email address below.
// This will be used to send emails from to create mailboxes.
$CONF['admin_email'] = 'belf@bel.ru';

// Mail Server
// Hostname (FQDN) of your mail server.
// This is used to send email to Postfix in order to create mailboxes.
$CONF['smtp_server'] = 'localhost';
$CONF['smtp_port'] = '25';

// Encrypt
// In what way do you want the passwords to be crypted?
// md5crypt = internal postfix admin md5
// md5 = md5 sum of the password
// system = whatever you have set as your PHP system default
// cleartext = clear text passwords (ouch!)
$CONF['encrypt'] = 'md5crypt';

// Minimum length required for passwords. Postfixadmin will not
// allow users to set passwords which are shorter than this value.
$CONF['min_password_length'] = 5;

// Generate Password
// Generate a random password for a mailbox or admin and display it.
// If you want to automagically generate paswords set this to 'YES'.
$CONF['generate_password'] = 'NO';

// Show Password
// Always show password after adding a mailbox or admin.
// If you want to always see what password was set set this to 'YES'.
$CONF['show_password'] = 'NO';

// Page Size
// Set the number of entries that you would like to see
// in one page.
$CONF['page_size'] = '10';

// Default Aliases
// The default aliases that need to be created for all domains.
$CONF['default_aliases'] = array (
'abuse' => 'abuse@bel.ru',
'hostmaster' => 'hostmaster@bel.ru',
'postmaster' => 'postmaster@bel.ru',
'webmaster' => 'webmaster@bel.ru'
);

// Mailboxes
// If you want to store the mailboxes per domain set this to 'YES'.
// Examples:
// YES: /usr/local/virtual/domain.tld/username@domain.tld
// NO: /usr/local/virtual/username@domain.tld
$CONF['domain_path'] = 'NO';
// If you don't want to have the domain in your mailbox set this to 'NO'.
// Examples:
// YES: /usr/local/virtual/domain.tld/username@domain.tld
// NO: /usr/local/virtual/domain.tld/username
// Note: If $CONF['domain_path'] is set to NO, this setting will be forced to YES.
$CONF['domain_in_mailbox'] = 'YES';

// Default Domain Values
// Specify your default values below. Quota in MB.
$CONF['aliases'] = '10';
$CONF['mailboxes'] = '10';
$CONF['maxquota'] = '10';

// Quota
// When you want to enforce quota for your mailbox users set this to 'YES'.
$CONF['quota'] = 'NO';
// You can either use '1024000' or '1048576'
$CONF['quota_multiplier'] = '1024000';

// Transport
// If you want to define additional transport options for a domain set this to 'YES'.
// Read the transport file of the Postfix documentation.
$CONF['transport'] = 'NO';
// Transport options
// If you want to define additional transport options put them in array below.
$CONF['transport_options'] = array (
'virtual', // for virtual accounts
'local', // for system accounts
'relay' // for backup mx
);
// Transport default
// You should define default transport. It must be in array above.
$CONF['transport_default'] = 'virtual';

// Virtual Vacation
// If you want to use virtual vacation for you mailbox users set this to 'YES'.
// NOTE: Make sure that you install the vacation module. http://high5.net/postfixadmin/
$CONF['vacation'] = 'NO';
// This is the autoreply domain that you will need to set in your Postfix
// transport maps to handle virtual vacations. It does not need to be a
// real domain (i.e. you don't need to setup DNS for it).
$CONF['vacation_domain'] = 'autoreply.change-this-to-your.domain.tld';

// Vacation Control
// If you want users to take control of vacation set this to 'YES'.
$CONF['vacation_control'] ='YES';

// Vacation Control for admins
// Set to 'YES' if your domain admins should be able to edit user vacation.
$CONF['vacation_control_admin'] = 'YES';

// Alias Control
// Postfix Admin inserts an alias in the alias table for every mailbox it creates.
// The reason for this is that when you want catch-all and normal mailboxes
// to work you need to have the mailbox replicated in the alias table.
// If you want to take control of these aliases as well set this to 'YES'.
$CONF['alias_control'] = 'NO';

// Alias Control for admins
// Set to 'NO' if your domain admins shouldn't be able to edit user aliases.
$CONF['alias_control_admin'] = 'NO';

// Special Alias Control
// Set to 'NO' if your domain admins shouldn't be able to edit default aliases.
$CONF['special_alias_control'] = 'NO';

// Alias Goto Field Limit
// Set the max number of entries that you would like to see
// in one 'goto' field in overview, the rest will be hidden and "[and X more...]" will be added.
// '0' means no limits.
$CONF['alias_goto_limit'] = '0';

// Backup
// If you don't want backup tab set this to 'NO';
$CONF['backup'] = 'YES';

// Send Mail
// If you don't want sendmail tab set this to 'NO';
$CONF['sendmail'] = 'YES';

// Logging
// If you don't want logging set this to 'NO';
$CONF['logging'] = 'YES';

// Fetchmail
// If you don't want fetchmail tab set this to 'NO';
$CONF['fetchmail'] = 'YES';

// fetchmail_extra_options allows users to specify any fetchmail options and any MDA
// (it will even accept 'rm -rf /' as MDA!)
// This should be set to NO, except if you *really* trust *all* your users.
$CONF['fetchmail_extra_options'] = 'NO';

// Header
$CONF['show_header_text'] = 'NO';
$CONF['header_text'] = ':: Postfix Admin ::';

// link to display under 'Main' menu when logged in as a user.
$CONF['user_footer_link'] = "http://change-this-to-your.domain.tld/main";

// Footer
// Below information will be on all pages.
// If you don't want the footer information to appear set this to 'NO'.
$CONF['show_footer_text'] = 'YES';
$CONF['footer_text'] = 'Return to change-this-to-your.domain.tld';
$CONF['footer_link'] = 'http://change-this-to-your.domain.tld';

// Welcome Message
// This message is send to every newly created mailbox.
// Change the text between EOM.
$CONF['welcome_text'] = <<<EOM
Hi,

Welcome to your new account.
EOM;

// When creating mailboxes, check that the domain-part of the
// address is legal by performing a name server look-up.
$CONF['emailcheck_resolve_domain']='YES';


// Optional:
// Analyze alias gotos and display a colored block in the first column
// indicating if an alias or mailbox appears to deliver to a non-existent
// account. Also, display indications, for POP/IMAP mailboxes and
// for custom destinations (such as mailboxes that forward to a UNIX shell
// account or mail that is sent to a MS exchange server, or any other
// domain or subdomain you use)
// See http://www.w3schools.com/html/html_colornames.asp for a list of
// color names available on most browsers

//set to YES to enable this feature
$CONF['show_status']='NO';
//display a guide to what these colors mean
$CONF['show_status_key']='NO';
// 'show_status_text' will be displayed with the background colors
// associated with each status, you can customize it here
$CONF['show_status_text']='&nbsp;&nbsp;';
// show_undeliverable is useful if most accounts are delivered to this
// postfix system. If many aliases and mailboxes are forwarded
// elsewhere, you will probably want to disable this.
$CONF['show_undeliverable']='NO';
$CONF['show_undeliverable_color']='tomato';
$CONF['show_undeliverable_exceptions']=array("unixmail.domain.ext","exchangeserver.domain.ext","gmail.com");
$CONF['show_popimap']='NO';
$CONF['show_popimap_color']='darkgrey';
// set 'show_custom_count' to 0 to disable custom indicators
$CONF['show_custom_count']=2;
$CONF['show_custom_domains']=array("subdomain.domain.ext","domain2.ext");
$CONF['show_custom_colors']=array("lightgreen","lightblue");


// Optional:
// Script to run after creation of mailboxes.
// Note that this may fail if PHP is run in "safe mode", or if
// operating system features (such as SELinux) or limitations
// prevent the web-server from executing external scripts.
// $CONF['mailbox_postcreation_script']='sudo -u courier /usr/local/bin/postfixadmin-mailbox-postcreation.sh';

// Optional:
// Script to run after deletion of mailboxes.
// Note that this may fail if PHP is run in "safe mode", or if
// operating system features (such as SELinux) or limitations
// prevent the web-server from executing external scripts.
// $CONF['mailbox_postdeletion_script']='sudo -u courier /usr/local/bin/postfixadmin-mailbox-postdeletion.sh';

// Optional:
// Script to run after deletion of domains.
// Note that this may fail if PHP is run in "safe mode", or if
// operating system features (such as SELinux) or limitations
// prevent the web-server from executing external scripts.
// $CONF['domain_postdeletion_script']='sudo -u courier /usr/local/bin/postfixadmin-domain-postdeletion.sh';

// Optional:
// Sub-folders which should automatically be created for new users.
// The sub-folders will also be subscribed to automatically.
// Will only work with IMAP server which implement sub-folders.
// Will not work with POP3.
// If you define create_mailbox_subdirs, then the
// create_mailbox_subdirs_host must also be defined.
//
// $CONF['create_mailbox_subdirs']=array('Spam');
// $CONF['create_mailbox_subdirs_host']='localhost';
//
// Normally, the TCP port number does not have to be specified.
// $CONF['create_mailbox_subdirs_hostport']=143;
//
// If you have trouble connecting to the IMAP-server, then specify
// a value for $CONF['create_mailbox_subdirs_hostoptions']. These
// are some examples to experiment with:
// $CONF['create_mailbox_subdirs_hostoptions']=array('notls');
// $CONF['create_mailbox_subdirs_hostoptions']=array('novalidate-cert','norsh');
// See also the "Optional flags for names" table at
// http://www.php.net/manual/en/function.imap-open.php


// Theme Config
// Specify your own logo and CSS file
$CONF['theme_logo'] = 'images/logo-default.png';
$CONF['theme_css'] = 'css/default.css';

// If you want to keep most settings at default values and/or want to ensure
// that future updates work without problems, you can use a separate config
// file (config.local.php) instead of editing this file and override some
// settings there.
if (file_exists(dirname(__FILE__) . '/config.local.php')) { # for /
include(dirname(__FILE__) . '/config.local.php');
}

//
// END OF CONFIG FILE
//
/* vim: set expandtab softtabstop=4 tabstop=4 shiftwidth=4: */
:cz2:
Да прибудет со мной Shell

Аватара пользователя
Belfigor
рядовой
Сообщения: 25
Зарегистрирован: 2008-08-04 2:41:07
Откуда: Белгород
Контактная информация:

Re: Кто знает, подскажите с Postfix....

Непрочитанное сообщение Belfigor » 2008-09-27 21:06:16

Люди ну отзовитесь кто нибудь , почему у меня выбивает это " Почтовый адрес
Некорректный адрес администратора!"
я уже какие только не пробывал вводить и даже admin@admin.ru :( , на всё рычит Некорректный адрес администратора
Да прибудет со мной Shell

Mamazulu
рядовой
Сообщения: 20
Зарегистрирован: 2008-09-10 9:19:17

Re: Кто знает, подскажите с Postfix....

Непрочитанное сообщение Mamazulu » 2008-09-28 8:53:47

// When creating mailboxes, check that the domain-part of the
// address is legal by performing a name server look-up.
$CONF['emailcheck_resolve_domain']='YES';
Поставьна NO
помогает

Аватара пользователя
Belfigor
рядовой
Сообщения: 25
Зарегистрирован: 2008-08-04 2:41:07
Откуда: Белгород
Контактная информация:

Re: Кто знает, подскажите с Postfix....

Непрочитанное сообщение Belfigor » 2008-09-28 21:38:43

Mamazulu писал(а):
// When creating mailboxes, check that the domain-part of the
// address is legal by performing a name server look-up.
$CONF['emailcheck_resolve_domain']='YES';
Поставьна NO
помогает
Блиииииииииин , СПАСИБО ТЕБЕ БОЛЬШОЕ !!!!!! :roll:
Mamazulu +++++ :drinks: :drinks: :drinks: :drinks: я неделю промучался :cz2: :roll:
Да прибудет со мной Shell

b2d
проходил мимо

Re: Кто знает, подскажите с Postfix....

Непрочитанное сообщение b2d » 2009-07-24 15:48:01

а мне не помогло((((...
есть еще какие т варианты, сам ящик создает в вот папки нет

Аватара пользователя
Sun
прапорщик
Сообщения: 496
Зарегистрирован: 2008-07-14 18:27:14
Откуда: Красноярск
Контактная информация:

Re: Кто знает, подскажите с Postfix....

Непрочитанное сообщение Sun » 2009-07-25 15:18:06

народ а в чем может быть проблема, пост фикс стоит почту принимает-отправляет, но при настройки раундкуба пишет ошибка подключения по имап

Аватара пользователя
skeletor
майор
Сообщения: 2548
Зарегистрирован: 2007-11-16 18:22:04

Re: Кто знает, подскажите с Postfix....

Непрочитанное сообщение skeletor » 2009-07-27 11:47:09

Приведи лог сюда, где видна ошибка иначе только пальцем в небо :)

korc
проходил мимо
Сообщения: 8
Зарегистрирован: 2010-01-27 7:10:02

Re: Кто знает, подскажите с Postfix....

Непрочитанное сообщение korc » 2010-03-11 8:17:14

Belfigor писал(а):
Mamazulu писал(а):
// When creating mailboxes, check that the domain-part of the
// address is legal by performing a name server look-up.
$CONF['emailcheck_resolve_domain']='YES';
Поставьна NO
помогает
Блиииииииииин , СПАСИБО ТЕБЕ БОЛЬШОЕ !!!!!! :roll:
Mamazulu +++++ :drinks: :drinks: :drinks: :drinks: я неделю промучался :cz2: :roll:
не помогло с NO
что еще может быть???