[Comm] Postfix & procmail

=?iso-8859-1?q?=F3=C5=D2=C7=C5=CA_=F3=C9=CC=C1=CE=D4=D8=C5=D7?= =?iso-8859-1?q?Serj_=CE=C1_Kmez=2ERu?=
Чт Мар 11 15:02:07 MSK 2004


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

  ALTM2.2, чистый дистрибут, без сизифа. Поставил пакеты postfix и procmail.
  Почта не раскладывается по почтовым ящикам - типа procmail`у не хватает прав.
  Даже если ящик уже существует. Если нет - ящик и не создается. Пробовал
  сделать procmail suid`ным - результат тот же, с одним различием - ящик
  создается, но он пуст. Пакеты postfix и procmail убивал и ставил заново (со
  всеми зависимостями). Настройки умолчательные, прописал только aliases,
  mydestination, mynetworks и отладку для local в master.cf. Пользователь
  реально существует в системе. Логи ниже. Подскажите, плиз, куда рыть ?

>------------------------------------------------------------------------------
# ls -l /var/spool
...
drwxrws--t    2 root     mail           48 Мар 11 16:51 mail
drwxr-x--x   18 root     root          432 Мар 11 15:35 postfix
...
>------------------------------------------------------------------------------
# rpm -qa | grep postfix
postfix-1.1.12-alt2                       
postfix-smtpd-1.1.12-alt2                 
# rpm -V postfix-1.1.12-alt2
S.5....T c /etc/postfix/aliases
.......T c /etc/postfix/main.cf                      
S.5....T c /etc/postfix/master.cf                    
S.5....T c /etc/postfix/mydestination                
S.5....T c /etc/postfix/mynetworks                   
отсутствует /var/spool/postfix/dev/log               
отсутствует /var/spool/postfix/var/nis/NIS_COLD_START
>------------------------------------------------------------------------------
# rpm -qa | grep procmail
procmail-3.22-alt3
# rpm -V procmail-3.22-alt3
>------------------------------------------------------------------------------
# service postfix check
Checking postfix configuration:                                         [  OK  ]
# service postfix adjust
Adjusting environment for postfix:                                      [  OK  ]
>------------------------------------------------------------------------------
# cat main.cf | grep -v ^#
queue_directory = /var/spool/postfix
command_directory = /usr/sbin 
daemon_directory = /usr/lib/postfix 
mail_owner = postfix 
default_privs = postman 
mydestination = localhost, $myhostname, localhost.$mydomain, $config_directory/m
mynetworks = $config_directory/mynetworks 
default_transport = smtp 
alias_maps = hash:/etc/postfix/aliases 
alias_database = hash:/etc/postfix/aliases 
mailbox_command = /usr/bin/procmail -a $DOMAIN -d $LOGNAME 
disable_vrfy_command = yes 
smtpd_banner = $myhostname ESMTP $mail_name 
debug_peer_level = 2 
debugger_command = 
allow_mail_to_commands = alias 
smtpd_etrn_restrictions = permit_mynetworks, reject 
smtpd_helo_required = yes 
notify_classes = policy,protocol,resource,software 
sendmail_path = /usr/sbin/sendmail 
newaliases_path = /usr/bin/newaliases 
mailq_path = /usr/bin/mailq 
setgid_group = postdrop 
manpage_directory = /usr/share/man 
sample_directory = /etc/postfix/samples 
readme_directory = /etc/postfix/README_FILES
>------------------------------------------------------------------------------
# cat /var/log/mail/all
...
postfix/smtpd[7294]: connect from copper.chel.su[192.168.200.9]
postfix/smtpd[7294]: 5B98F20906: client=copper.chel.su[192.168.200.9]
postfix/cleanup[7295]: 5B98F20906: message-id=<141578481532.20040311114335 на Kmez.Ru>
postfix/qmgr[3402]: 5B98F20906: from=<Serj на Kmez.Ru>, size=990, nrcpt=1 (queue active)
...
postfix/local[7297]: deliver_alias: hash:/etc/postfix/aliases: serj not found
postfix/local[7297]: deliver_dotforward[3]: local serj recip serj на new.copper.chel.su exten  deliver serj на new.copper.chel.su exp_from 
postfix/local[7297]: deliver_dotforward[3]: set user_attr: serj
postfix/local[7297]: mac_expand_callback: home = /home/serj
postfix/local[7297]: mac_expand_callback: /.forward = /.forward
postfix/local[7297]: mac_expand_callback: recipient_delimiter = (undef)
postfix/local[7297]: mac_expand_callback: extension = (undef)
postfix/local[7297]: mac_expand_callback: home = /home/serj
postfix/local[7297]: mac_expand_callback: /.forward = /.forward
postfix/local[7297]: set_eugid: euid 500 egid 500
postfix/local[7297]: set_eugid: euid 42 egid 42
postfix/local[7297]: deliver_dotforward: path /home/serj/.forward expand_status 0 look_status -1
postfix/local[7297]: deliver_mailbox[3]: local serj recip serj на new.copper.chel.su exten  deliver serj на new.copper.chel.su exp_from 
postfix/local[7297]: been_here: mailbox serj: 0
postfix/local[7297]: deliver_mailbox[3]: set user_attr: serj
postfix/local[7297]: deliver_command[4]: local serj recip serj на new.copper.chel.su exten  deliver serj на new.copper.chel.su exp_from 
postfix/local[7297]: been_here: command 500 /usr/bin/procmail -a $DOMAIN -d $LOGNAME: 0
postfix/local[7297]: connect to subsystem private/bounce
postfix/local[7297]: send attr nrequest = 0
postfix/local[7297]: send attr flags = 0
postfix/local[7297]: send attr queue_id = 5B98F20906
postfix/local[7297]: send attr recipient = serj на new.copper.chel.su
postfix/local[7297]: send attr reason = can't create user output file. Command output: procmail: Couldn't create "/var/spool/mail/serj" procmail: [7298] Thu Mar 11 16:40:35 2004 procmail: Executing "date,+%Y:%m:%d:%T" procmail: [7298] Thu Mar 11 16:40:35 2004 procmail: Assigning "DATETIME=2004:03:11:16:40:35" procmail: Assigning "PATH=/home/serj/bin:/bin:/usr/bin:/usr/local/bin" procmail: Locking "/var/spool/mail/serj.lock" procmail: [7298] Thu Mar 11 16:40:37 2004 procmail: Error while writing to "/var/spool/mail/_CyB,1AFUAB.new.copper.chel.s" procmail: Lock failure on "/var/spool/mail/serj.lock" procmail: Assigning "LASTFOLDER=/var/spool/mail/serj" procmail: Opening "/var/spool/mail/serj" procmail: Error while writing to "/var/spool/mail/serj" procmail: Notified comsat: "serj@:**Bounced**" From Serj на Kmez.Ru  Thu Mar 11 16:40:33 2004  Subject: test 1   Folder: **Bounced**             0 
...
>------------------------------------------------------------------------------

Ну, пока...            Сергей Силантьев (MailTo:Serj на Kmez.Ru) ICQ:11144549
HTTP://WWW.KMEZ.RU                                       2:5010/53 на Fidonet




Подробная информация о списке рассылки community