LINUX.ORG.RU
ФорумAdmin

postfix - траблы


0

0

имеется общий почт. ящик у прова ... типа mail.firma.ru

связка postfix + fetchmail + procmail +dovecot pop3

Проверка серверов почты на сервере(ах) командой fetchmail -v -f '/root/.fetchmailrc' mail.firma.ru ..

fetchmail: 6.2.5 querying mail.firma.ru (protocol POP3) at Thu Mar 23 13:34:53 2006: poll started fetchmail: POP3< +OK <86143.1143118453@ns01.host.com> fetchmail: POP3> CAPA fetchmail: POP3< -ERR authorization first fetchmail: authorization first fetchmail: Repoll immediately on info@firma.ru@mail.firma.ru fetchmail: POP3< +OK <86146.1143118456@ns01.host.com> fetchmail: POP3> USER info@firma.ru fetchmail: POP3< +OK fetchmail: POP3> PASS * fetchmail: POP3< +OK fetchmail: POP3> STAT fetchmail: POP3< +OK 39 651728 39 messages for info@firma.ru at mail.firma.ru (651728 octets). fetchmail: POP3> LIST 1 fetchmail: POP3< +OK 1 4487 fetchmail: POP3> RETR 1 fetchmail: POP3< +OK reading message info@firma.ru@mail.firma.ru:1 of 39 (4487 octets) ....................... fetchmail: SMTP> MAIL FROM:<user@linuxmail.org> BODY=8BITMIME SIZE=1821 fetchmail: SMTP< 250 Ok fetchmail: SMTP> RCPT TO:<root@localhost> fetchmail: SMTP< 250 Ok fetchmail: SMTP> DATA fetchmail: SMTP< 354 End data with <CR><LF>.<CR><LF> #****************************fetchmail: SMTP>. (EOM) fetchmail: SMTP< 250 Ok: queued as C9C004F02C5 not flushed fetchmail: POP3> QUIT fetchmail: POP3< +OK fetchmail: 6.2.5 querying mail.firma.ru (protocol POP3) at Thu Mar 23 13:40:25 2006: poll completed fetchmail: SMTP> QUIT fetchmail: SMTP< 221 Bye fetchmail: normal termination, status 0

пиьсма не понятно куда приходят .... [root@mail-server ~]# mail No mail for root [root@mail-server ~]# cat /var/spool/mail/root [root@mail-server ~]#

конфиг постфикса postconf -n [root@mail-server ~]# [root@mail-server ~]# mail -bash: [root@mail-server: command not found [root@mail-server ~]# No mail for root -bash: No: command not found [root@mail-server ~]# [root@mail-server ~]# cat /var/spool/mail/root -bash: [root@mail-server: command not found [root@mail-server ~]# [root@mail-server ~]# -bash: [root@mail-server: command not found [root@mail-server ~]# postconf -n alias_database = hash:/etc/aliases alias_maps = hash:/etc/aliases command_directory = /usr/sbin config_directory = /etc/postfix daemon_directory = /usr/libexec/postfix debug_peer_level = 2 html_directory = no local_recipient_maps = unix:passwd.byname $alias_maps mail_spool_directory = /var/spool/mail mailbox_command = /usr/bin/procmail -a $EXTENSION mailbox_transport = lmtp:unix:/file/name mailq_path = /usr/bin/mailq.postfix manpage_directory = /usr/share/man mydestination = firma.ru mydomain = firma.ru myhostname = mail.firma.ru myorigin = firma.ru newaliases_path = /usr/bin/newaliases.postfix readme_directory = /usr/share/doc/postfix-2.2.2/README_FILES relay_domains = $mydestination sample_directory = /usr/share/doc/postfix-2.2.2/samples sendmail_path = /usr/sbin/sendmail.postfix setgid_group = postdrop smtpd_banner = $myhostname ESMTP $mail_name unknown_local_recipient_reject_code = 550 [root@mail-server ~]#

конфиг фетчмаила [root@mail-server ~]# cat /root/.fetchmailrc #set syslog defaults protocol pop3, timeout 60, nokeep fetchall

skip mail.firma.ru proto pop3 user "info@firma.ru" pass "pass" is root here keep fetchall #mda /usr/bin/procmail [root@mail-server ~]#

да procmail еще не дошел ... потомучто на рута пиьсма еще не приходят ... так что сортировку отложил .... что делать где копать ???

anonymous

Re: postfix - траблы

> что делать где копать ???

В логи postfix'a религия не позволяет заглядывать? fetchmail посылает письмо на <root@localhost>, а в mydestination у тебя нету localhost.

bigbit ★★★★★ ()
Ответ на: Re: postfix - траблы от bigbit

Re: postfix - траблы

<pre>исправел .... ну это не помогло ... вот конф постфикса ... [root@sonic ~]# postconf -n alias_database = hash:/etc/aliases alias_maps = hash:/etc/aliases command_directory = /usr/sbin config_directory = /etc/postfix daemon_directory = /usr/libexec/postfix debug_peer_level = 2 html_directory = no inet_interfaces = all mail_spool_directory = /var/spool/mail mailq_path = /usr/bin/mailq.postfix manpage_directory = /usr/share/man mydestination = localhost mydomain = localdomain myhostname = localhost mynetworks = 192.168.0.0/24 , 127.0.0.0/8 newaliases_path = /usr/bin/newaliases.postfix readme_directory = /usr/share/doc/postfix-2.2.2/README_FILES relay_domains = $mydestination sample_directory = /usr/share/doc/postfix-2.2.2/samples sendmail_path = /usr/sbin/sendmail.postfix setgid_group = postdrop smtpd_banner = $myhostname ESMTP $mail_name unknown_local_recipient_reject_code = 550 и вот лог постфикса ... Mar 27 06:01:29 sonic postfix/qmgr[23517]: 884654F02D5: removed Mar 27 06:01:29 sonic postfix/cleanup[23523]: 2AD914F02CF: message-id=<E1FNMMo-000MrC-00.288586-autoreply-bk-ru@mx25.mail.ru> Mar 27 06:01:29 sonic postfix/qmgr[23517]: 2AD914F02CF: from=<288586.autoreply@bk.ru>, size=2221, nrcpt=1 (queue active) Mar 27 06:01:31 sonic postfix/smtp[23521]: 2AD914F02CF: to=<root@localhost.localdomain>, orig_to=<root@localhost>, relay=none, delay=2, status=bounced (Host or domain name not found. Name service error for name=localhost.localdomain type=A: Host not found) Mar 27 06:01:31 sonic postfix/cleanup[23523]: 42DBC4F02D8: message-id=<20060327010131.42DBC4F02D8@localhost> Mar 27 06:01:31 sonic postfix/qmgr[23517]: 42DBC4F02D8: from=<>, size=4147, nrcpt=1 (queue active) Mar 27 06:01:31 sonic postfix/qmgr[23517]: 2AD914F02CF: removed Mar 27 06:01:33 sonic postfix/smtp[23525]: 2121D4F02D6: host mailin-01.mx.aol.com[205.188.158.121] said: 421-: (DNS:NR) http://postmaster.info.aol.com/errors/421dnsnr.html 421 SERVICE NOT AVAILABLE (in reply to end of DATA command) Mar 27 06:01:33 sonic postfix/smtpd[23422]: 41AE24F02CF: client=sonic[127.0.0.1] Mar 27 06:01:33 sonic postfix/cleanup[23523]: 41AE24F02CF: message-id=<852601c650cb$87ea5444$fc304a0a@hotmail.com>

Mar 27 06:01:42 sonic postfix/smtp[23527]: B7FA44F02D5: to=<r_filozov@mail.ru>, relay=mxs.mail.ru[194.67.23.20], delay=4, status=bounced (host mxs.mail.ru[194.67.23.20] said: 550 Access from ip address 217.14.101.179 blocked. Visit http://win.mail.ru/cgi-bin/support_bl?ip=217.14.101.179 (in reply to RCPT TO command)) 4его он не находит в моем ДНС ?? ПЛЗЗЗ хелп ми ...

</pre>

anonymous ()
Ответ на: Re: postfix - траблы от anonymous

Re: postfix - траблы

ужоснах.

mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain, firma.ru

Вдобавок на mail.ru тебя в черный список внесли.

bigbit ★★★★★ ()
Ответ на: Re: postfix - траблы от bigbit

Re: postfix - траблы

[root@mail-server ~]# postconf -n alias_database = hash:/etc/aliases alias_maps = hash:/etc/aliases command_directory = /usr/sbin config_directory = /etc/postfix daemon_directory = /usr/libexec/postfix debug_peer_level = 2 home_mailbox = Maildir/ html_directory = no inet_interfaces = all mail_spool_directory = /var/spool/mail mailbox_transport = lmtp:unix:/file/name mailq_path = /usr/bin/mailq.postfix manpage_directory = /usr/share/man mydestination = localhost mydomain = localdomain myhostname = localhost mynetworks = 192.168.0.0/24 , 127.0.0.0/8 newaliases_path = /usr/bin/newaliases.postfix readme_directory = /usr/share/doc/postfix-2.2.2/README_FILES relay_domains = $mydestination sample_directory = /usr/share/doc/postfix-2.2.2/samples sendmail_path = /usr/sbin/sendmail.postfix setgid_group = postdrop smtpd_banner = $myhostname ESMTP $mail_name unknown_local_recipient_reject_code = 550 [root@mail-server ~]#

щас тоже самое ...

anonymous ()
Ответ на: Re: postfix - траблы от anonymous

Re: postfix - траблы

<br>[root@mail-server ~]# tail -f /var/log/maillog Mar 28 13:19:06 mail-server postfix/smtp[6685]: connect to check1check-com.mr.outblaze.com[205.158.62.181]: Connection timed out (port 25) Mar 28 13:19:23 mail-server postfix/smtp[6690]: 8E0CF4F02D1: to=<ghostscript@compuserve.com>, relay=mail.mx5.compuserve.com[149.174.40.183], delay=2127, status=bounced (host mail.mx5.compuserve.com[149.174.40.183] said: 550 5.1.1 <ghostscript@compuserve.com>... Mailbox not found (in reply to RCPT TO command)) Mar 28 13:19:24 mail-server postfix/qmgr[5895]: 8E0CF4F02D1: removed Mar 28 13:19:36 mail-server postfix/smtp[6685]: connect to check1check-com-bk.mr.outblaze.com[205.158.62.181]: Connection timed out (port 25) Mar 28 13:20:24 mail-server postfix/smtp[6685]: AD6BC4F02D4: to=<kon@check1check.com>, relay=check1check-com-bk.mr.outblaze.com[205.158.62.177], delay=1944, status=bounced (host check1check-com-bk.mr.outblaze.com[205.158.62.177] said: 550 <>: No thank you rejected: Account Unavailable, Possible Forgery (in reply to RCPT TO command)) Mar 28 13:20:26 mail-server postfix/qmgr[5895]: AD6BC4F02D4: removed Mar 28 13:22:00 mail-server postfix/scache[6696]: statistics: start interval Mar 28 13:17:56 Mar 28 13:22:00 mail-server postfix/scache[6696]: statistics: domain lookup hits=0 miss=7 success=0% Mar 28 13:22:00 mail-server postfix/scache[6696]: statistics: address lookup hits=0 miss=98 success=0% Mar 28 13:22:00 mail-server postfix/scache[6696]: statistics: max simultaneous domains=1 addresses=2 connection=2 </br>

anonymous ()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.