On Thu, Jun 28, 2007 at 07:26:10AM -0400, Jason Gauthier wrote:
> Mark,
> > 
> > Is amavisd getting information about client IP from MTA through
> > XFORWARD?
> > A client IP address should show (through macro %a) in the log,
> > and at log level 1 also in the log entry such as:
> > 
> > amavis[16469]: (16469-18) Checking: rhOluIzi8z9w [121.133.47.8] <xxx>
> -
> > > <xxx>
> 
> 
> My "Checking" line does not include the IP.
> I do have xforwarding turned on in postfix's master.cf:
> 
> 127.0.0.1:10025 inet    n   -   y   -   -   smtpd
>     -o content_filter=
>     -o local_recipient_maps=
>     -o relay_recipient_maps=
>     -o smtpd_restriction_classes=
>     -o smtpd_helo_restrictions=
>     -o smtpd_sender_restrictions=
>     -o smtp_send_xforward_command=yes
>     -o smtpd_recipient_restrictions=permit_mynetworks,reject
>     -o mynetworks=127.0.0.0/8
>     -o strict_rfc821_envelopes=yes


This is the wrong place (I suppose it is the reinjection target).
Do list it on your filter transport target, eg:

if you are using something like
content_filter=smtp_amavis:127.0.0.1:10024


smtp_amavis unix -      -       y       -       3   smtp 
    -o smtp_data_done_timeoout=1200 
    -o disable_dns_lookups=yes 
    -o smtp_send_xforward_command=yes


-- 
    Robert Felber (PGP: 896CF30B)
    Munich, Germany

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
AMaViS-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/

Reply via email to