greyfix -G option

104 views
Skip to first unread message

mza...@gmail.com

unread,
Aug 23, 2010, 9:28:09 AM8/23/10
to greyfix
How would I set a custom message using the -G option?

Kim Minh Kaplan

unread,
Aug 23, 2010, 10:45:21 AM8/23/10
to gre...@googlegroups.com
mza...@gmail.com writes:

> How would I set a custom message using the -G option?

Use something like "-G PREPEND%sX-Mzalli:%sCustom%sMessage"
--
Kim Minh

Rocky

unread,
Aug 23, 2010, 11:27:43 AM8/23/10
to gre...@googlegroups.com
I tried it, didn't work.  I did the following:

greyfix     unix     -     n     n      -      -      spawn
     user=nobody argv=/usr/local/sbin/greyfix --greylist-delay 60 -G PREPEND%sX-Mzalli:%sCustom%sMessage -/ 24

I was still getting the default message after implementing it.


--
You received this message because you are subscribed to the Google Groups "greyfix" group.
To post to this group, send an email to gre...@googlegroups.com.
To unsubscribe from this group, send email to greyfix+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/greyfix?hl=en-GB.




--
Rocky

Kim Minh Kaplan

unread,
Aug 23, 2010, 6:28:44 PM8/23/10
to gre...@googlegroups.com
Rocky writes:

> I tried it, didn't work.  I did the following:
>
> greyfix     unix     -     n     n      -      -      spawn
>      user=nobody argv=/usr/local/sbin/greyfix --greylist-delay 60 -G
> PREPEND%sX-Mzalli:%sCustom%sMessage -/ 24
>
> I was still getting the default message after implementing it.

That should have done it. You didn't forget to reload Postfix? Can you
check with ps that greyfix is launched with the intended arguments?
--
Kim Minh

Rocky

unread,
Aug 26, 2010, 7:46:29 AM8/26/10
to gre...@googlegroups.com
Well I'm not getting the result i should.  I tried both the greylisted action and reject action settings, but still getting the following:

Recipient address rejected: Greylisted by greyfix 0.3.9, try again in 60 seconds.  See http://www.kim-minh.com/pub/greyfix/ for more information.>

It's not big deal though, just wanted to make it customized.

I just have a few more questions.  In my mail.log, I'm getting this:
warning: /usr/local/sbin/greyfix: process id 1408: command time limit exceeded

Is that something I need to worry about?  If so, how do you fix that?

Also, are there any cron entries required to clear out the database?

Thanks,

Rocky

Kim Minh

--
You received this message because you are subscribed to the Google Groups "greyfix" group.
To post to this group, send an email to gre...@googlegroups.com.
To unsubscribe from this group, send email to greyfix+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/greyfix?hl=en-GB.




--
Rocky

Kim Minh Kaplan

unread,
Aug 26, 2010, 2:00:52 PM8/26/10
to gre...@googlegroups.com
Rocky writes:

> Well I'm not getting the result i should.  I tried both the greylisted action
> and reject action settings, but still getting the following:
>
> Recipient address rejected: Greylisted by greyfix 0.3.9, try again in 60
> seconds.  See http://www.kim-minh.com/pub/greyfix/ for more information.>

For this message it is the "-r" option you have to use. The "-G" option
is what happens for message that actually pass the greylisting test and
are *not* rejected.

> It's not big deal though, just wanted to make it customized.

It is meant to be customizable. That's why I asked for some
investigation on your side: can you check with the command ps with what
arguments greyfix is launched? Something along the lines of "ps ax |
grep greyfix"

> I just have a few more questions.  In my mail.log, I'm getting this:
> warning: /usr/local/sbin/greyfix: process id 1408: command time limit exceeded
>
> Is that something I need to worry about?  If so, how do you fix that?

This is normal: the greyfix process hangs around to service multiple
greylisting requests for Postfix. But Postfix will recycle the process
when it stays alive for long enough. See the section RESOURCE AND RATE
CONTROL in the man page for spawn(8).

> Also, are there any cron entries required to clear out the database?

You do not need additionnal care taking. The cleaning of the database is
taken care of automatically by the regular greyfix processes.
--
Kim Minh.

Rocky

unread,
Aug 26, 2010, 2:17:16 PM8/26/10
to gre...@googlegroups.com
Ok, so I tried the -r option and this is what it shows:

root@server1:/var/lib/lib/greyfix# ps ax | grep greyfix
14429 ?        S      0:00 spawn -n greyfix -t unix user=nobody argv=/usr/local/sbin/greyfix --greylist-delay 60 -r PREPEND%sX-MCRI:%sCustom%sMessage -/ 24
14450 ?        S      0:00 spawn -n greyfix -t unix user=nobody argv=/usr/local/sbin/greyfix --greylist-delay 60 -r PREPEND%sX-MCRI:%sCustom%sMessage -/ 24
14454 ?        S      0:00 spawn -n greyfix -t unix user=nobody argv=/usr/local/sbin/greyfix --greylist-delay 60 -r PREPEND%sX-MCRI:%sCustom%sMessage -/ 24
14460 ?        S      0:00 spawn -n greyfix -t unix user=nobody argv=/usr/local/sbin/greyfix --greylist-delay 60 -r PREPEND%sX-MCRI:%sCustom%sMessage -/ 24
14480 ?        S      0:00 spawn -n greyfix -t unix user=nobody argv=/usr/local/sbin/greyfix --greylist-delay 60 -r PREPEND%sX-MCRI:%sCustom%sMessage -/ 24
14482 ?        Ss     0:00 /usr/local/sbin/greyfix --greylist-delay 60 -r PREPEND%sX-MCRI:%sCustom%sMessage -/ 24
14492 ?        S      0:00 spawn -n greyfix -t unix user=nobody argv=/usr/local/sbin/greyfix --greylist-delay 60 -r PREPEND%sX-MCRI:%sCustom%sMessage -/ 24
14493 ?        Ss     0:00 /usr/local/sbin/greyfix --greylist-delay 60 -r PREPEND%sX-MCRI:%sCustom%sMessage -/ 24
14495 ?        S      0:00 spawn -n greyfix -t unix user=nobody argv=/usr/local/sbin/greyfix --greylist-delay 60 -r PREPEND%sX-MCRI:%sCustom%sMessage -/ 24
14496 ?        Ss     0:00 /usr/local/sbin/greyfix --greylist-delay 60 -r PREPEND%sX-MCRI:%sCustom%sMessage -/ 24
14504 ?        S      0:00 spawn -n greyfix -t unix user=nobody argv=/usr/local/sbin/greyfix --greylist-delay 60 -r PREPEND%sX-MCRI:%sCustom%sMessage -/ 24
14507 ?        Ss     0:00 /usr/local/sbin/greyfix --greylist-delay 60 -r PREPEND%sX-MCRI:%sCustom%sMessage -/ 24
14513 ?        S      0:00 spawn -n greyfix -t unix user=nobody argv=/usr/local/sbin/greyfix --greylist-delay 60 -r PREPEND%sX-MCRI:%sCustom%sMessage -/ 24
14514 ?        Ss     0:00 /usr/local/sbin/greyfix --greylist-delay 60 -r PREPEND%sX-MCRI:%sCustom%sMessage -/ 24
14517 ?        S      0:00 spawn -n greyfix -t unix user=nobody argv=/usr/local/sbin/greyfix --greylist-delay 60 -r PREPEND%sX-MCRI:%sCustom%sMessage -/ 24
14518 ?        Ss     0:00 /usr/local/sbin/greyfix --greylist-delay 60 -r PREPEND%sX-MCRI:%sCustom%sMessage -/ 24
14519 ?        S      0:00 spawn -n greyfix -t unix user=nobody argv=/usr/local/sbin/greyfix --greylist-delay 60 -r PREPEND%sX-MCRI:%sCustom%sMessage -/ 24
14520 ?        Ss     0:00 /usr/local/sbin/greyfix --greylist-delay 60 -r PREPEND%sX-MCRI:%sCustom%sMessage -/ 24
14567 ?        Ss     0:00 /usr/local/sbin/greyfix --greylist-delay 60 -r PREPEND%sX-MCRI:%sCustom%sMessage -/ 24
14580 ?        S      0:00 spawn -n greyfix -t unix user=nobody argv=/usr/local/sbin/greyfix --greylist-delay 60 -r PREPEND%sX-MCRI:%sCustom%sMessage -/ 24
14581 ?        S      0:00 spawn -n greyfix -t unix user=nobody argv=/usr/local/sbin/greyfix --greylist-delay 60 -r PREPEND%sX-MCRI:%sCustom%sMessage -/ 24
14582 ?        Ss     0:00 /usr/local/sbin/greyfix --greylist-delay 60 -r PREPEND%sX-MCRI:%sCustom%sMessage -/ 24
14583 ?        Ss     0:00 /usr/local/sbin/greyfix --greylist-delay 60 -r PREPEND%sX-MCRI:%sCustom%sMessage -/ 24

Stills is not working though.


Kim Minh.

--
You received this message because you are subscribed to the Google Groups "greyfix" group.
To post to this group, send an email to gre...@googlegroups.com.
To unsubscribe from this group, send email to greyfix+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/greyfix?hl=en-GB.




--
Rocky

Kim Minh Kaplan

unread,
Aug 26, 2010, 4:34:30 PM8/26/10
to gre...@googlegroups.com
Rocky writes:

> 14567 ?        Ss     0:00 /usr/local/sbin/greyfix --greylist-delay 60 -r PREPEND%sX-MCRI:%sCustom%sMessage -/ 24

There is some misunderstanding here ; the -r describes the action
Postfix should undertake to delay a message. Thus it's usage would look
like "-r DEFER_IF_PERMIT%sCustom%sMessage" instructing Greyfix to
temporarily *reject* the incoming mail with a Custom Message. Whereas
the -G describes the action Postfix takes when accepting the message
from this sender for the first time. Use it with "-G
PREPEND%sX-MCRI:%sCustom%Message" to have Postfix let the message in and
add a custom header.

What is the message you intend to customize?
--
Kim Minh

Reply all
Reply to author
Forward
0 new messages