Discussion:
[SA-exim] Couldn't get Connecting IP header X-SA-Exim-Connect-IP again :(
Maxim Kostikov
2012-09-05 19:19:58 UTC
Permalink
Dear Marc!

I'm realy sorry fror asking this question here but this is last chance to
understand
where I made a mistake.
Well, I have Exim 4.80 with latest at this moment SA-Exim version on
FreeBSD 8.3 system.
I carefully readed README.greylisting file and tried to follow
recomendations.
beta# cat /usr/local/etc/exim/sa-exim.conf | grep -v #
SAEximDebug: 1
SAspamcpath: /usr/local/bin/spamc
SAspamcHost: 127.0.0.1
SAspamcPort: 783
SAEximRunCond: ${if and {{def:sender_host_address} {!eq
{$sender_host_address}{127.0.0.1}} {!eq {$h_X-SA-Do-Not-Run:}{Yes}} }
{1}{0}}
SAEximRejCond: ${if !eq {$h_X-SA-Do-Not-Rej:}{Yes} {1}{0}}
SAmaxbody: 256000
SATruncBodyCond: 0
SARewriteBody: 0
SAPrependArchiveWithFrom: 1
SAmaxarchivebody: 20971520
SAerrmaxarchivebody: 1073741824
SAmaxrcptlistlength: 8000
SAaddSAEheaderBeforeSA: 1
SAtimeoutsave: /var/spool/exim/SAtimeoutsave
SAtimeoutSavCond: 1
SAerrorsave: /var/spool/exim/SAerrorsave
SAerrorSavCond: 1
SAtemprejectonerror: 0
SAteergrubetime: 900
SAteergrubeSavCond: 1
SAteergrubesave: /var/spool/exim/SAteergrube
SAteergrubeoverwrite: 1
SAdevnullSavCond: 1
SAdevnullsave: /var/spool/exim/SAdevnull
SApermreject: 12.0
SApermrejectSavCond: 1
SApermrejectsave: /var/spool/exim/SApermreject
SAtempreject: 3.0
SAtemprejectSavCond: 1
SAtemprejectsave: /var/spool/exim/SAtempreject
SAtemprejectoverwrite: 1
SAgreylistiswhitestr: GREYLIST_ISWHITE
SAgreylistraisetempreject: 6.0
SAspamacceptsave: /var/spool/exim/SAspamaccept
SAspamacceptSavCond: 0
SAnotspamsave: /var/spool/exim/SAnotspam
SAnotspamSavCond: 0
SAmsgteergrubewait: Wait for more output
SAmsgteergruberej: Please try again later
SAmsgpermrej: Message rejected
SAmsgtemprej: Please try again later
SAmsgerror: Temporary local error while processing message, please contact
postmaster.
cat /usr/local/etc/mail/spamassassin/local.cf | grep -v #

bayes_path /var/spool/mqueue/.spamassassin/bayes
bayes_file_mode 0666
loadplugin Greylisting /usr/ports/mail/exim/work/sa-exim-4.2/Greylisting.pm
header GREYLIST_ISWHITE eval:greylisting("( 'dir' =>
'/var/spool/sa-exim/tuplets'; 'method' => 'dir'; 'greylistsecs' => '600';
'dontgreylistthreshold' => 11; 'connectiphdr' => 'X-SA-Exim-Connect-IP';
'envfromhdr' => 'X-SA-Exim-Mail-From'; 'rcpttohdr' => 'X-SA-Exim-Rcpt-To';
'greylistnullfrom' => 1; 'greylistfourthbyte' => 0 )")
describe GREYLIST_ISWHITE The incoming server has been whitelisted for
this receipient and sender
score GREYLIST_ISWHITE -1.5
priority GREYLIST_ISWHITE 99999
After restarting sa-exim I have such type records in log:

Sep 5 21:20:25 beta spamd[3282]: spamd: connection from localhost
[127.0.0.1] at port 49218
Sep 5 21:20:25 beta spamd[3282]: spamd: setuid to mailnull succeeded
Sep 5 21:20:25 beta spamd[3282]: spamd: checking message <
Sep 5 21:20:27 beta spamd[3282]: Couldn't get Connecting IP header
X-SA-Exim-Connect-IP for message <
greylisting call
Sep 5 21:20:28 beta spamd[3282]: spamd: clean message (-1.2/5.0) for
mailnull:26 in 2.4 seconds, 1497 bytes.
Sep 5 21:20:28 beta spamd[3282]: spamd: result: . -1 -
BAYES_00,HTML_MESSAGE,MIME_HTML_ONLY
scantime=2.4,size=1497,user=mailnull,uid=26,required_score=5.0,rhost=localhost,raddr=127.0.0.1,rport=49218,mid=<
,bayes=0.000000,autolearn=no
Sep 5 21:20:28 beta spamd[3283]: spamd: connection from localhost
[127.0.0.1] at port 33497
Sep 5 21:20:28 beta spamd[3283]: spamd: setuid to mailnull succeeded
Sep 5 21:20:28 beta spamd[3283]: spamd: processing message <
Sep 5 21:20:28 beta spamd[3274]: prefork: child states: IB
I see all required by greylisting feature headers in e-mail but greylisting
don't.
Well, can you tell me where I wrong in configuration and how I can debug
this problem for fixing?
Thank you.
--
Best regards,
Maxim V. Kostikov
ICQ #115377
Loading...