Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

milter-greylist with postfix

775 views
Skip to first unread message

Nerijus Baliunas

unread,
Nov 29, 2006, 5:14:06 PM11/29/06
to
Hello,

milter-greylist 3.0 works with postfix 2.3.3. main.cf:

milter_default_action = accept
milter_connect_macros = j {client_addr}
milter_protocol = 3
smtpd_milters = unix:/var/milter-greylist/milter-greylist.sock

But there is one problem. New line and " 0" are added at the end
of every message, and a number (pid?) is added after all the headers,
for example:

X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
44660

Message-Id: <200611271459...@mail.xxx.lt>
3753

Any idea why?

Regards,
Nerijus

Wietse Venema

unread,
Nov 29, 2006, 7:09:54 PM11/29/06
to
Nerijus Baliunas:

Please see line 6 of the mailing list welcome message.

Wietse

1 Welcome to the postfix-users mailing list.
2
3 This list is for questions and discussions concerning the installation,
4 configuration and operation of the Postfix mail system.
5
6 TO REPORT A PROBLEM see http://www.postfix.org/DEBUG_README.html#mail
7
8 TO (UN)SUBSCRIBE see http://www.postfix.org/lists.html
9
10 Thank you for using Postfix.

Nerijus Baliunas

unread,
Nov 29, 2006, 7:36:43 PM11/29/06
to
On Wed, 29 Nov 2006 19:09:54 -0500 (EST) Wietse Venema <wie...@porcupine.org> wrote:

> Please see line 6 of the mailing list welcome message.
>

Hmm, what info should I provide? There's nothing in the logs about corrupting messages,
but here you are:
Nov 30 02:32:05 mail postfix/smtpd[7228]: connect from unknown[58.141.133.11]
Nov 30 02:32:07 mail milter-greylist: smfi_getsymval failed for {i}
Nov 30 02:32:07 mail milter-greylist: (unknown id): addr unknown[58.141.133.11] from <customerserv...@security.53.com> to <A...@AAA.lt> delayed for 00:02:00 (ACL 103)
Nov 30 02:32:07 mail postfix/smtpd[7228]: NOQUEUE: milter-reject: RCPT from unknown[58.141.133.11]: 451 4.7.1 Greylisting in action, please come back later; from=<customerserv...@security.53.com> proto=SMTP helo=<+++?+t>

The problem with smfi_getsymval failed for {i} will probably be dealt in the next
milter-greylist release, so I didn't report it.

postconf -n:
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
header_checks = regexp:/etc/postfix/header_checks
html_directory = no
inet_interfaces = all
local_recipient_maps = unix:passwd.byname $alias_maps $virtual_mailbox_maps
mail_owner = postfix
mailq_path = /usr/bin/mailq
manpage_directory = /usr/share/man
message_size_limit = 10240000
milter_connect_macros = j {client_addr}
milter_default_action = accept
milter_protocol = 3
mydestination = localhost, $myhostname, localhost.$mydomain, mysql:/etc/postfix/mysql-mydestination.cf
mydomain = AAA.lt
myhostname = mail.AAA.lt
mynetworks = 192.168.0.0/16, 127.0.0.0/8
newaliases_path = /usr/bin/newaliases
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.3.3/README_FILES
sample_directory = /usr/share/doc/postfix-2.3.3/samples
sendmail_path = /usr/sbin/sendmail
setgid_group = postdrop
smtpd_milters = unix:/var/milter-greylist/milter-greylist.sock
transport_maps = mysql:/etc/postfix/mysql-transport.cf hash:/etc/postfix/transport
virtual_gid_maps = mysql:/etc/postfix/mysql-virtual-gid.cf
virtual_mailbox_base = /
virtual_mailbox_limit = 10240000
virtual_mailbox_maps = mysql:/etc/postfix/mysql-virtual-maps.cf
virtual_minimum_uid = 500
virtual_uid_maps = mysql:/etc/postfix/mysql-virtual-uid.cf

Regards,
Nerijus

Wietse Venema

unread,
Nov 29, 2006, 7:55:45 PM11/29/06
to
Nerijus Baliunas:

> On Wed, 29 Nov 2006 19:09:54 -0500 (EST) Wietse Venema <wie...@porcupine.org> wrote:
>
> > Please see line 6 of the mailing list welcome message.
> >
> > 6 TO REPORT A PROBLEM see http://www.postfix.org/DEBUG_README.html#mail
>
> Hmm, what info should I provide? There's nothing in the logs about corrupting messages,
> but here you are:
> Nov 30 02:32:05 mail postfix/smtpd[7228]: connect from unknown[58.141.133.11]
> Nov 30 02:32:07 mail milter-greylist: smfi_getsymval failed for {i}
> Nov 30 02:32:07 mail milter-greylist: (unknown id): addr unknown[58.141.133.11] from <customerserv...@security.53.com> to <A...@AAA.lt> delayed for 00:02:00 (ACL 103)
> Nov 30 02:32:07 mail postfix/smtpd[7228]: NOQUEUE: milter-reject: RCPT from unknown[58.141.133.11]: 451 4.7.1 Greylisting in action, please come back later; from=<customerserv...@security.53.com> proto=SMTP helo=<+++?+t>
>
> The problem with smfi_getsymval failed for {i} will probably be dealt in the next
> milter-greylist release, so I didn't report it.

Greylisting happens before mail is received, so I don't see why it
should touch any content at all.

Are you by any chance using a content filter? Mailscanner will
surely screw up the queue file if Milering is enabled.

Wietse

Wietse Venema

unread,
Nov 29, 2006, 8:02:26 PM11/29/06
to
Wietse Venema:

Another data point:

http://archives.neohapsis.com/archives/postfix/2006-06/1366.html

Wietse

Nerijus Baliunas

unread,
Nov 29, 2006, 8:27:48 PM11/29/06
to
On Wed, 29 Nov 2006 19:55:45 -0500 (EST) Wietse Venema <wie...@porcupine.org> wrote:

> Greylisting happens before mail is received, so I don't see why it
> should touch any content at all.

But milter-greylist is supposed to add X-Greylist header (which doesn't
happen btw), it probably adds it using some milter interface, not
by modifying message itself?

> Are you by any chance using a content filter? Mailscanner will

> surely screw up the queue file if Miltering is enabled.

Yes. And just tried after disabling Mailscanner - messages are OK.
So I'll take it up with MailScanner mailing list. Thanks for your help!

Regards,
Nerijus

0 new messages