Post by Magnus BäckPost by Pascal Maescheck_sender_access hash:/etc/postfix/access
and it works !
250 2.1.0 Ok
If I replace REJECT by DISCARD, it doesn't work anymore (I receive
the mail)
250 2.1.0 Ok
250 2.1.5 Ok
This doesn't prove that you receive the mail, it only proves that Postfix
doesn't reject the MAIL FROM and RCPT TO commands. Show logs instead.
--
Magnus Bäck
log of the reject :
Apr 7 10:26:32 smtp-1 postfix/smtpd[19379]: connect from
gaia.elec.ucl.ac.be[130.104.236.1]
Apr 7 10:26:44 smtp-1 postfix/smtpd[19379]: NOQUEUE: reject: RCPT
from gaia.elec.ucl.ac.be[130.104.236.1]: 554 5.7.1 <***@domain.be>:
Sender address rejected: Access denied; from=<***@domain.be>
to=<***@elec.ucl.ac.be> proto=SMTP helo=<gaia.elec.ucl.ac.be>
log of the discard (complete sequence with clamsmtp and mailscanner) :
Apr 7 10:27:54 smtp-1 postfix/smtpd[19463]: 300D75F4:
client=gaia.elec.ucl.ac.be[130.104.236.1]
Apr 7 10:28:00 smtp-1 postfix/cleanup[19468]: 300D75F4: hold: header
Received: from smtp-1.dynsipr.ucl.ac.be (localhost.localdomain
[127.0.0.1])??by smtp-1.dynsipr.ucl.ac.be (Postfix) with ESMTP id
300D75F4??for <***@elec.ucl.ac.be>; Fri, 7 Apr 2006 10:27:54
+ from gaia.elec.ucl.ac.be[130.104.236.1]; from=<***@domain.be>
to=<***@elec.ucl.ac.be> proto=SMTP helo=<gaia.elec.ucl.ac.be>
Apr 7 10:28:00 smtp-1 postfix/cleanup[19468]: 300D75F4: message-
id=<***@smtp-1.dynsipr.ucl.ac.be>
Apr 7 10:28:00 smtp-1 clamsmtpd: 10FD84: from=***@domain.be,
to=***@elec.ucl.ac.be, status=CLEAN
Apr 7 10:28:03 smtp-1 MailScanner[12001]: Message 300D75F4.504A6
from 127.0.0.1 (***@domain.be) to elec.ucl.ac.be is n'est pas u
n polluriel, SpamAssassin (score=2.928, requis 5, MISSING_SUBJECT
0.57, MSGID_FROM_MTA_ID 0.93, NO_REAL_NAME 0.55, SPF_HELO_PASS -0.
00, SPF_PASS -0.00, UNDISC_RECIPS 0.88)
Apr 7 10:28:04 smtp-1 MailScanner[12001]: Requeue: 300D75F4.504A6 to
BBA3A5B4
Apr 7 10:28:04 smtp-1 MailScanner[12001]: Uninfected: Delivered 1
messages
Apr 7 10:28:04 smtp-1 postfix/qmgr[19348]: BBA3A5B4:
from=<***@domain.be>, size=697, nrcpt=1 (queue active)
Apr 7 10:28:04 smtp-1 MailScanner[12001]: Batch processed in 3.47
seconds
Apr 7 10:28:04 smtp-1 postfix/smtp[19475]: BBA3A5B4:
to=<***@elec.ucl.ac.be>, relay=gaia.elec.ucl.ac.be
[130.104.236.1]:25,
delay=10, delays=9.9/0/0.05/0.27, dsn=2.0.0, status=sent (250 2.0.0
k378S3AU007329 Message accepted for delivery)
Apr 7 10:28:04 smtp-1 postfix/qmgr[19348]: BBA3A5B4: removed
--
Pascal