Page 1 of 1
milter-greylist is not working
Posted: Mon Oct 13, 2008 8:37 am
by Hiob86
Hi,
i tried to install milter-greylist, but i cant get it work because milter-greylist alway see the local address 127.0.0.1 which is whitelisted.
is there a chance to get it work?
mfg
Hiob
Posted: Tue Oct 14, 2008 5:58 am
by Valerion
You will either have to make sendmail the primary listener (there's some threads on how to achieve this) or integrate milter-greylist into your smtpd.cfg (only since 11.3.0).
Posted: Tue Oct 14, 2008 6:24 am
by Hiob86
integrating milter-greylist and mybe spamassassin anf clamav would be the best way. how can i do this? some dokumentation would be great.
Posted: Tue Oct 14, 2008 6:47 am
by Valerion
The smtpd.cfg has some documentation inside it for other milters. You will have to adapt it, though.
Posted: Tue Oct 14, 2008 6:50 am
by Hiob86
i will try this and post my experience later.
is there a posibility to debug the function of the smtpd.cfg to know if it is working the way i wanted to.
Posted: Tue Oct 14, 2008 8:03 am
by Hiob86
I simply add this line to smtpd.cfg:
Code: Select all
INPUT_MAIL_FILTER=('greylist', 'S=local:/var/milter-greylist/milter-greylist.sock, F=, T=S:1m;R:1m')
but it will not work.
in /var/opt/scalix/fn/s/tmp/smtpd-SMTP.log i could see this:
Code: Select all
[2008-10-04 10:09:51] Cli 0/? milter->milter: OpenSession name 'greylist' path 'local:/var/milter-greylist/milter-greylist.sock' flag ','
[2008-10-04 10:09:51] Cli 0/? milter->milter: Command2 cmd 'O' len 12 pnr 0 reply 'O'
[2008-10-04 10:09:51] Cli 0/? milter->milter: Negotiate version 2 actions 1 protocols 114
[2008-10-04 10:09:51] Cli 0/? milter->milter: Negotiate reply 'O' result 0
[2008-10-04 10:09:51] Cli 0/? milter->milter: OpenSession result 1
[2008-10-04 10:09:51] Cli 0/? milter->milter: Command2 cmd 'Q' len 0 pnr -1 reply 'c'
[2008-10-04 10:09:51] Cli 0/? milter->milter: Close reply 'c' result 0
[2008-10-04 10:09:51] Cli 0/? milter->milter: CloseSession result 1
[2008-10-04 10:09:51] Cli 0/? cfg->milter: AddToMilterList result 1
so it smtpd connects to milter-greylist an startup but did not connect while processing a message.
whats the problem.
Posted: Tue Oct 14, 2008 8:25 am
by Hiob86
is it possible to define milter macros in smtpd.cfg?
Posted: Tue Oct 14, 2008 4:31 pm
by dannyt
Hi,
The followings may be useful in case you have not read it:
http://www.scalix.com/wiki/index.php?ti ... -04-CTASAV
The greylist milter has not been tried, but in theory it should work unless it requires any feature that is unsupported as per the document above, and unfortunately macros is one of those.
Regards,
Danny
Posted: Tue Oct 14, 2008 4:45 pm
by Hiob86
thanks for this link. but unfortunately milter-greylist need some macros.
is there any information about sopporting macros in the future?
Posted: Tue Oct 14, 2008 5:11 pm
by dannyt
Currently there is no specific time frame yet for macros support. Please feel free to submit a request in
https://bugzilla.scalix.com/ if appropriate.
Danny
Posted: Wed Oct 15, 2008 5:09 am
by Hiob86
ok. then i will implement spamassassin and clamav milter into smtpd to test this configuration. and if macro support is added i can also use milter-greylist.
Posted: Wed Oct 22, 2008 3:32 am
by Hiob86
Hi all,
i have implement spamassassin and clamav in smtpd.cfg on monday morning this way:
Code: Select all
SMTPMILTER=TRUE
# list of milters to call sequentially (default none)
#INPUT_MAIL_FILTER=('CTmilter', 'S=local:~/temp/CTmilter_socket, F=T, T=C:300s;S:10s;R:10s;E:300s')
INPUT_MAIL_FILTER=('spamassassin','S=local:/var/run/spamass.sock, F=, T=C:15m;S:4m;R:4m;E:10m')
INPUT_MAIL_FILTER=('clamav', 'S=local:/var/run/clamav/clamav-milter.sock, F=T, T=S:4m;R:4m')
and of cause disabled
Now i can say that it works great. so the mitler interface in smtpd.cfg work well with spamassassin and clamav milter. if there are any problems with this solution i will post it here.
mfg
Hiob[/quote]
Posted: Wed Jan 21, 2009 4:17 am
by arsenet
But,
Do you delete the lines in sendmail.cf??? i put that config and mail not filter.
Scalix say that that config in smtpd.cfg is only work with their spamm and AV
Posted: Wed Jan 21, 2009 4:33 am
by Hiob86
i am using the Community edition and there is no spam and av programm, so i have to use something like clam and spamassassin.
I have inserte these lines:
Code: Select all
# master switch to enable milter support (default off)
SMTPMILTER=TRUE
# list of milters to call sequentially (default none)
#INPUT_MAIL_FILTER=('CTmilter', 'S=local:~/temp/CTmilter_socket, F=T, T=C:300s;S:10s;R:10s;E:300s')
INPUT_MAIL_FILTER=('spamassassin','S=local:/var/run/spamass.sock, F=, T=C:15m;S:4m;R:4m;E:10m')
INPUT_MAIL_FILTER=('clamav', 'S=local:/var/run/clamav/clamav-milter.sock, F=T, T=S:4m;R:4m')
and change smtpfilter to this:
I thougt that smtpfilter is not in the standart config.
i did not delete these lines in sendmail.cf because all outgoing mails are handled by sendmail.
Maybe you cuold enable debug for smtp deamon with:
the logs should be found in "/var/opt/scalix/xx/s/logs/"
Hope this will help you