[Tech] Aiuto su configurazione server Postfix
Artini Alessio
AArtini@comune.pontassieve.fi.it
Mer 27 Lug 2005 10:26:25 CEST
Per Aldo:
ho riguardato la configurazione main.cf:
soft_bounce = no
command_directory = /usr/sbin
daemon_directory = /usr/libexec/postfix
mail_owner = postfix
myhostname = sendmail.comune.pontassieve.fi.it
mydomain = comune.pontassieve.fi.it
myorigin = $mydomain
inet_interfaces = all
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
mynetworks = 213.225.215.144/28, 127.0.0.0/8
relay_domains = comune.pontassieve.fi.it
smtpd_recipient_restrictions = permit_mynetworks,
check_relay_domains,
reject_non_fqdn_recipient
relayhost = firewall.comune.pontassieve.fi.it:25
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
mailbox_command = /usr/bin/procmail
debug_peer_level = 2
debugger_command =
PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
xxgdb $daemon_directory/$process_name $process_id & sleep 5
sendmail_path = /usr/sbin/sendmail.postfix
newaliases_path = /usr/bin/newaliases.postfix
mailq_path = /usr/bin/mailq.postfix
setgid_group = postdrop
content_filter = smtp-amavis:[127.0.0.1]:10024
Ma se dalla shell del server eseguo il comando:
sendmail -bm aartini@comune.pontassieve.fi.it
Non ricevo alcuna e-mail e dal file di log
si vede che il sistema non trova alcuni file
relativi a spamassassin ed alla fine
mi restituisce "No recipients specified".
Ecco una parte del file maillog:
...
postfix/pickup[24187]: 44D619442A: uid=0 from=<root>
postfix/cleanup[24192]: 44D619442A:
message-id=<20050727073714.44D619442A@sendmail.comune.pontassieve.fi.it>
postfix/qmgr[24188]: 44D619442A: from=<root@comune.pontassieve.fi.it>,
size=332, nrcpt=1 (queue active)
amavis[23573]: (23573-04) ESMTP::10024
/var/amavis/tmp/amavis-20050727T085310-23573:
<root@comune.pontassieve.fi.it> -> <aartini@comune.pontassieve.fi.it>
Received: SIZE=332 from sendmail.comune.pontassieve.fi.it ([127.0.0.1]) by
localhost (sendmail [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id
23573-04 for <aartini@comune.pontassieve.fi.it>; Wed, 27 Jul 2005 09:37:14
+0200 (CEST)
amavis[23573]: (23573-04) body hash: ae5b468c7707a1f3d36c49b1fe2ef850
amavis[23573]: (23573-04) Checking: IsFk7yMONNjK
<root@comune.pontassieve.fi.it> -> <aartini@comune.pontassieve.fi.it>
amavis[23573]: (23573-04) p001 1 Content-Type: text/plain, size: 5 B, name:
amavis[23573]: (23573-04) Checking for banned types and filenames
amavis[23573]: (23573-04) collect banned table[0]:
aartini@comune.pontassieve.fi.it, tables:
DEFAULT=>Amavis::Lookup::RE=ARRAY(0x8b1a7b8)
amavis[23573]: (23573-04) p.path aartini@comune.pontassieve.fi.it:
"P=p001,L=1,M=text/plain,T=asc"
...
postfix/smtpd[24197]: 5C5DA94426:
client=localhost.comune.pontassieve.fi.it[127.0.0.1]
amavis[23573]: (23573-04) response to RCPT TO for
<aartini@comune.pontassieve.fi.it>: "250 Ok"
postfix/cleanup[24192]: 5C5DA94426:
message-id=<20050727073714.44D619442A@sendmail.comune.pontassieve.fi.it>
postfix/qmgr[24188]: 5C5DA94426: from=<root@comune.pontassieve.fi.it>,
size=855, nrcpt=1 (queue active)
postfix/smtpd[24197]: disconnect from
localhost.comune.pontassieve.fi.it[127.0.0.1]
amavis[23573]: (23573-04) FWD via SMTP: <root@comune.pontassieve.fi.it> ->
<aartini@comune.pontassieve.fi.it>, 250 2.6.0 Ok, id=23573-04, from
MTA([127.0.0.1]:10025): 250 Ok: queued as 5C5DA94426
amavis[23573]: (23573-04) Passed CLEAN, <root@comune.pontassieve.fi.it> ->
<aartini@comune.pontassieve.fi.it>, Message-ID:
<20050727073714.44D619442A@sendmail.comune.pontassieve.fi.it>, mail_id:
IsFk7yMONNjK, Hits: -, 136 ms
spamd[20550]: connection from localhost.comune.pontassieve.fi.it [127.0.0.1]
at port 36504
spamd[20550]: Creating default_prefs [//.spamassassin/user_prefs]
amavis[23573]: (23573-04) TIMING [total 141 ms] - SMTP EHLO: 2 (1%)1, SMTP
pre-MAIL: 0 (0%)2, SMTP pre-DATA-flush: 2 (1%)3, SMTP DATA: 39 (28%)30,
body_hash: 1 (0%)31, gen_mail_id: 0 (0%)31, mime_decode: 5 (3%)34,
get-file-type1: 6 (4%)38, decompose_part: 0 (0%)39, parts_decode: 0 (0%)39,
AV-scan-1: 4 (3%)41, update_cache: 1 (1%)42, fwd-connect: 17 (12%)54,
fwd-mail-from: 1 (1%)55, fwd-rcpt-to: 2 (1%)56, write-header: 1 (1%)57,
fwd-data: 0 (0%)57, fwd-data-end: 43 (30%)88, fwd-rundown: 1 (1%)88,
main_log_entry: 14 (10%)98, update_snmp: 1 (1%)99, unlink-1-files: 1
(1%)100, rundown: 0 (0%)100
postfix/smtp[24194]: 44D619442A: to=<aartini@comune.pontassieve.fi.it>,
relay=127.0.0.1[127.0.0.1], delay=0, status=sent (250 2.6.0 Ok, id=23573-04,
from MTA([127.0.0.1]:10025): 250 Ok: queued as 5C5DA94426)
spamd[20550]: Cannot write to //.spamassassin/user_prefs: No such file or
directory
postfix/qmgr[24188]: 44D619442A: removed
spamd[20550]: Couldn't create readable default_prefs for
[//.spamassassin/user_prefs]
amavis[23573]: (23573-04) load: 0 %, total idle 2642.891 s, busy 0.591 s
spamd[20550]: processing message
<20050727073714.44D619442A@sendmail.comune.pontassieve.fi.it> for
aartini:503.
spamd[20550]: clean message (-99.9/5.1) for aartini:503 in 1.0 seconds, 1041
bytes.
spamd[20550]: result: . -99 -
ALL_TRUSTED,MISSING_SUBJECT,UNDISC_RECIPS,USER_IN_WHITELIST
scantime=1.0,size=1041,mid=<20050727073714.44D619442A@sendmail.comune.pontas
sieve.fi.it>,autolearn=no
postfix/pickup[24187]: 764D894433: uid=501 from=<>
postfix/cleanup[24192]: 764D894433:
message-id=<20050727073714.44D619442A@sendmail.comune.pontassieve.fi.it>
postfix/local[24199]: 5C5DA94426: to=<aartini@comune.pontassieve.fi.it>,
relay=local, delay=1, status=sent (delivered to command: /usr/bin/procmail)
postfix/qmgr[24188]: 5C5DA94426: removed
postfix/cleanup[24192]: 764D894433: to=<unknown>, relay=none, delay=0,
status=bounced (No recipients specified)
Ecco i problemi:
1) Perché mi fa il controllo dell'utente ed alla fine non mi invia niente?
2) Vorrei che le impostazioni di spamassassin fossero prese da un unico
posto e non seguendo l'utente.
Grazie
Alessio
Maggiori informazioni sulla lista
flug-tech