Linux-Bulgaria.ORG
навигация

 

начало

пощенски списък

архив на групата

семинари ...

документи

как да ...

 

 

Предишно писмо Следващо писмо Предишно по тема Следващо по тема По Дата По тема (thread)

lug-bg: Sendmail проблем


  • Subject: lug-bg: Sendmail проблем
  • From: Атанас Мавров <bugar@xxxxxxxxxxxx>
  • Date: Mon, 17 Jan 2005 17:58:19 +0200

Здравейте,
опитвам се да пусна пощенски сървър + cyrus-sasl + amavisd-new + clamav на slackware current...
Направих всичко (уж) както трябва само дето ни приема - ни предава :-)
И така ето малко по - конкретна информация:

Освен всички описания в /etc/amavisd.conf съм включил и следното:
$forward_method= 'pipe:flags=q argv=/usr/sbin/sendmail -i -f ${sender} -- ${recipient}';
$notify_method = 'pipe:flags=q argv=/usr/sbin/sendmail -i -f ${sender} -- ${recipient}';

В /etc/hosts съм описал адреса на сървъра

И така, когато се опитам да пратя писмо (без значение отдалечено или локално) се получава следното (ако е отдалечено се "изпраща до 70% след което
нещата "умират" и накрая връзката прекъсва) в логовете се получава следното:

amavis.log

Jan 17 17:34:37 mail /usr/local/sbin/amavisd[1063]: (01063) spam_scan: DSPAM not available, skipping it
Jan 17 17:34:38 mail /usr/local/sbin/amavisd[1063]: (01063) calling SA parse, SA version 3.0.2
Jan 17 17:34:38 mail /usr/local/sbin/amavisd[1063]: (01063) CALLING SA check
Jan 17 17:34:42 mail /usr/local/sbin/amavisd[1063]: (01063) RETURNED FROM SA check, time left: 26 s
Jan 17 17:34:42 mail /usr/local/sbin/amavisd[1063]: (01063) prolong_timer after spam_scan_SA: remaining time = 479 s
Jan 17 17:34:42 mail /usr/local/sbin/amavisd[1063]: (01063) spam_scan: hits=-2.642 tests=ALL_TRUSTED,NO_REAL_NAME
Jan 17 17:34:42 mail /usr/local/sbin/amavisd[1063]: (01063) prolong_timer after spam_scan: remaining time = 479 s
Jan 17 17:34:42 mail /usr/local/sbin/amavisd[1063]: (01063) lookup: (scalar) matches, result="6.31"
Jan 17 17:34:42 mail /usr/local/sbin/amavisd[1063]: (01063) lookup (spam_kill_level) => true,  "user@my_host" matches, result="6.31", matching_key="(constant:6.31)"
Jan 17 17:34:42 mail /usr/local/sbin/amavisd[1063]: (01063) header: Received: from unknown by localhost (amavisd-new, unix socket) id 01063\n for <user@my_host>; Mon, 17 Jan 2005 17:34:36 +0200 (EET)\n
Jan 17 17:34:42 mail /usr/local/sbin/amavisd[1063]: (01063) lookup_acl(user@my_host) matches key ".my_host.bg", result=1
Jan 17 17:34:42 mail /usr/local/sbin/amavisd[1063]: (01063) lookup (local_domains) => true,  "user@my_host" matches, result="1", matching_key=".my_host.bg"
Jan 17 17:34:42 mail /usr/local/sbin/amavisd[1063]: (01063) query_keys: user@my_host, user@, my_host, .my_host, .my_host.bg, .bg, .
Jan 17 17:34:42 mail /usr/local/sbin/amavisd[1063]: (01063) lookup_hash(user@my_host), no matches
Jan 17 17:34:42 mail /usr/local/sbin/amavisd[1063]: (01063) lookup (bypass_virus_checks) => undef, "user@my_host" does not match
Jan 17 17:34:42 mail /usr/local/sbin/amavisd[1063]: (01063) query_keys: user@my_host, user@, my_host, .my_host, .my_host.bg, .bg, .
Jan 17 17:34:42 mail /usr/local/sbin/amavisd[1063]: (01063) lookup_hash(user@my_host), no matches
Jan 17 17:34:42 mail /usr/local/sbin/amavisd[1063]: (01063) lookup (bypass_spam_checks) => undef, "user@my_host" does not match
Jan 17 17:34:42 mail /usr/local/sbin/amavisd[1063]: (01063) lookup: (scalar) matches, result="2"
Jan 17 17:34:42 mail /usr/local/sbin/amavisd[1063]: (01063) lookup (spam_tag_level) => true,  "user@my_host" matches, result="2", matching_key="(constant:2)"
Jan 17 17:34:42 mail /usr/local/sbin/amavisd[1063]: (01063) lookup: (scalar) matches, result="6.31"
Jan 17 17:34:42 mail /usr/local/sbin/amavisd[1063]: (01063) lookup (spam_tag2_level) => true,  "user@my_host" matches, result="6.31", matching_key="(constant:6.31)"
Jan 17 17:34:42 mail /usr/local/sbin/amavisd[1063]: (01063) headers CLUSTERING: NEW CLUSTER <user@my_host>: hits=-2.642, tag=0, tag2=0, subj=0, subj_u=0, local=1, bl=
Jan 17 17:34:42 mail /usr/local/sbin/amavisd[1063]: (01063) header: X-Virus-Scanned: amavisd-new at my_host.bg\n
Jan 17 17:34:42 mail /usr/local/sbin/amavisd[1063]: (01063) headers CLUSTERING: done all 1 recips in one go
Jan 17 17:34:42 mail /usr/local/sbin/amavisd[1063]: (01063) FWD via PIPE: <root@my_host> -> <user@my_host>
Jan 17 17:34:42 mail /usr/local/sbin/amavisd[1063]: (01063) mail_via_pipe running command: /usr/sbin/sendmail -i -f root@my_host -- user@my_host
Jan 17 17:34:42 mail /usr/local/sbin/amavisd[1063]: (01063) run_command_consumer: [1092] /usr/sbin/sendmail -i -f root@my_host -- user@my_host >/dev/null
-------------------------------------------------------------------------------------------------
В maillog

Jan 17 17:32:43 mail amavis-milter[1055]: Starting, handing off to smfi_main
Jan 17 17:32:48 mail sendmail[1060]: starting daemon (8.13.2): SMTP+queueing@00:25:00
Jan 17 17:34:23 mail sendmail[1082]: j0HFYNwm001082: from=root, size=210, class=0, nrcpts=1, msgid=<200501171534.j0HFYNwm001082@my_host>, relay=root@localhost
Jan 17 17:34:24 mail sendmail[1083]: STARTTLS=server, relay=localhost [127.0.0.1], version=TLSv1/SSLv3, verify=NO, cipher=DHE-RSA-AES256-SHA, bits=256/256
Jan 17 17:34:24 mail sendmail[1082]: STARTTLS=client, relay=[127.0.0.1], version=TLSv1/SSLv3, verify=FAIL, cipher=DHE-RSA-AES256-SHA, bits=256/256
Jan 17 17:34:24 mail sendmail[1083]: j0HFYNcd001083: from=<root@my_host>, size=452, class=0, nrcpts=1, msgid=<200501171534.j0HFYNwm001082@my_host>, proto=ESMTP, daemon=MTA, relay=localhost [127.0.0.1]
Jan 17 17:34:32 mail sendmail[1088]: j0HFYWqE001088: Authentication-Warning: my_host: amavis set sender to root@my_host using -f
Jan 17 17:34:32 mail sendmail[1088]: j0HFYWqE001088: from=root@my_host, size=781, class=0, nrcpts=1, msgid=<200501171534.j0HFYNwm001082@my_host>, relay=amavis@localhost
Jan 17 17:34:33 mail sendmail[1088]: STARTTLS=client, relay=[127.0.0.1], version=TLSv1/SSLv3, verify=FAIL, cipher=DHE-RSA-AES256-SHA, bits=256/256
Jan 17 17:34:33 mail sendmail[1090]: STARTTLS=server, relay=localhost [127.0.0.1], version=TLSv1/SSLv3, verify=NO, cipher=DHE-RSA-AES256-SHA, bits=256/256
Jan 17 17:34:33 mail sendmail[1090]: j0HFYXSE001090: from=<root@my_host>, size=1034, class=0, nrcpts=1, msgid=<200501171534.j0HFYNwm001082@my_host>, proto=ESMTP, daemon=MTA, relay=localhost [127.0.0.1]
Jan 17 17:34:43 mail sendmail[1092]: j0HFYhTd001092: Authentication-Warning: my_host: amavis set sender to root@my_host using -f
Jan 17 17:34:43 mail sendmail[1092]: j0HFYhTd001092: from=root@my_host, size=1363, class=0, nrcpts=1, msgid=<200501171534.j0HFYNwm001082@my_host>, relay=amavis@localhost
Jan 17 17:34:43 mail sendmail[1092]: STARTTLS=client, relay=[127.0.0.1], version=TLSv1/SSLv3, verify=FAIL, cipher=DHE-RSA-AES256-SHA, bits=256/256
Jan 17 17:34:43 mail sendmail[1093]: STARTTLS=server, relay=localhost [127.0.0.1], version=TLSv1/SSLv3, verify=NO, cipher=DHE-RSA-AES256-SHA, bits=256/256
Jan 17 17:34:44 mail sendmail[1093]: j0HFYhGM001093: from=<root@my_host>, size=1616, class=0, nrcpts=1, msgid=<200501171534.j0HFYNwm001082@my_host>, proto=ESMTP, daemon=MTA, relay=localhost [127.0.0.1]
------------------------------------------------------------------------------------------------
а процесите си седят така :

1082 pts/0    S      0:00 sendmail: ./j0HFYNwm001082 [127.0.0.1]: client DATA status
1083 ?        S      0:00 sendmail: j0HFYNcd001083 localhost [127.0.0.1]: DATA
1084 ?        S      0:00 /usr/local/sbin/amavis-milter -p local:/var/amavis/amavis-milter.sock
1086 ?        S      0:00 /usr/local/sbin/clamd
1088 ?        S      0:00 sendmail: ./j0HFYWqE001088 [127.0.0.1]: client DATA status
1090 ?        S      0:00 sendmail: j0HFYXSE001090 localhost [127.0.0.1]: DATA
1091 ?        S      0:00 /usr/local/sbin/amavis-milter -p local:/var/amavis/amavis-milter.sock
1092 ?        S      0:00 sendmail: ./j0HFYhTd001092 [127.0.0.1]: client DATA status
1093 ?        S      0:00 sendmail: j0HFYhGM001093 localhost [127.0.0.1]: DATA
1094 ?        S      0:00 /usr/local/sbin/amavis-milter -p local:/var/amavis/amavis-milter.sock

Много ще съм благодарен за всяка помощ :-)
(ако трябва мога да пратя конфигурацията на sendmail и amavis или каквото е нужно) 
============================================================================
A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers).
http://www.linux-bulgaria.org - Hosted by Internet Group Ltd. - Stara Zagora
To unsubscribe: http://www.linux-bulgaria.org/public/mail_list.html
============================================================================



 

наши приятели

 

линукс за българи
http://linux-bg.org

FSA-BG
http://fsa-bg.org

OpenFest
http://openfest.org

FreeBSD BG
http://bg-freebsd.org

KDE-BG
http://kde.fsa-bg.org/

Gnome-BG
http://gnome.cult.bg/

проект OpenFMI
http://openfmi.net

NetField Forum
http://netField.ludost.net/forum/

 

 

Linux-Bulgaria.ORG

Mailing list messages are © Copyright their authors.