milter-greylist is not working

Best practice information from Scalix users relating to integration of Scalix with other products.

Moderator: ScalixSupport

Hiob86
Posts: 92
Joined: Thu Sep 20, 2007 3:43 am
Contact:

milter-greylist is not working

Postby Hiob86 » Mon Oct 13, 2008 8:37 am

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

Valerion
Scalix Star
Scalix Star
Posts: 2730
Joined: Thu Feb 26, 2004 7:40 am
Location: Johannesburg, South Africa
Contact:

Postby Valerion » Tue Oct 14, 2008 5:58 am

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).

Hiob86
Posts: 92
Joined: Thu Sep 20, 2007 3:43 am
Contact:

Postby Hiob86 » Tue Oct 14, 2008 6:24 am

integrating milter-greylist and mybe spamassassin anf clamav would be the best way. how can i do this? some dokumentation would be great.

Valerion
Scalix Star
Scalix Star
Posts: 2730
Joined: Thu Feb 26, 2004 7:40 am
Location: Johannesburg, South Africa
Contact:

Postby Valerion » Tue Oct 14, 2008 6:47 am

The smtpd.cfg has some documentation inside it for other milters. You will have to adapt it, though.

Hiob86
Posts: 92
Joined: Thu Sep 20, 2007 3:43 am
Contact:

Postby Hiob86 » Tue Oct 14, 2008 6:50 am

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.

Hiob86
Posts: 92
Joined: Thu Sep 20, 2007 3:43 am
Contact:

Postby Hiob86 » Tue Oct 14, 2008 8:03 am

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.

Hiob86
Posts: 92
Joined: Thu Sep 20, 2007 3:43 am
Contact:

Postby Hiob86 » Tue Oct 14, 2008 8:25 am

is it possible to define milter macros in smtpd.cfg?

dannyt
Scalix
Scalix
Posts: 140
Joined: Mon Aug 08, 2005 11:52 am
Location: UK

Postby dannyt » Tue Oct 14, 2008 4:31 pm

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

Hiob86
Posts: 92
Joined: Thu Sep 20, 2007 3:43 am
Contact:

Postby Hiob86 » Tue Oct 14, 2008 4:45 pm

thanks for this link. but unfortunately milter-greylist need some macros.
is there any information about sopporting macros in the future?

dannyt
Scalix
Scalix
Posts: 140
Joined: Mon Aug 08, 2005 11:52 am
Location: UK

Postby dannyt » Tue Oct 14, 2008 5:11 pm

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

Hiob86
Posts: 92
Joined: Thu Sep 20, 2007 3:43 am
Contact:

Postby Hiob86 » Wed Oct 15, 2008 5:09 am

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.

Hiob86
Posts: 92
Joined: Thu Sep 20, 2007 3:43 am
Contact:

Postby Hiob86 » Wed Oct 22, 2008 3:32 am

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

Code: Select all

#SMTPFILTER=TRUE


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]

arsenet
Posts: 142
Joined: Fri Jan 11, 2008 1:31 pm
Location: Madrid - Spain
Contact:

Postby arsenet » Wed Jan 21, 2009 4:17 am

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
Red Hat Enterprise 5.0
Scalix Hosted Edition 11.46
David de Pedro, Thecnical
ArSeNet Servicios en Internet, S.L.
sat@arsenet.com

Hiob86
Posts: 92
Joined: Thu Sep 20, 2007 3:43 am
Contact:

Postby Hiob86 » Wed Jan 21, 2009 4:33 am

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:

Code: Select all

#SMTPFILTER
#SMTPFILTER=TRUE


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:

Code: Select all

debug_log=true


the logs should be found in "/var/opt/scalix/xx/s/logs/"

Hope this will help you


Return to “Third Party Integration”



Who is online

Users browsing this forum: No registered users and 1 guest