Bijayant Kumar a écrit :
> --- On Thu, 21/5/09, mouss <mo...@ml.netoyen.net> wrote:
> 
>> From: mouss <mo...@ml.netoyen.net>
>> Subject: Re: Fw: Not able to add disclaimer
>> To: "postfix" <postfix-users@postfix.org>
>> Date: Thursday, 21 May, 2009, 9:36 PM
>> Bijayant Kumar a écrit :
>>> Some body please help me, its very urgent.
>>>
>> if you use amavisd-new, it already supports altermime. it's
>> probably
>> easier.
> Thank you very much sir for replying. On local mail server I am not using 
> amavisd-new :(
> 
>> if you want to integrate altermime directly, please follow
>> the FILTER
>> README directions.
>>
>> ALso, instead of using ipfilter to redirect traffic, you
>> can simply use
>> the "LAN" IP address for the listener
>>
>> 192.168.1.23    ... smtpd
>>     -o content_filter=....

to ease debugging, add
        -o syslog_name=postalter
so that you can differentiate between multiple smtpd listeners in the logs.

>>
> There is only one interface for incoming and outgoing mails. Thats why I have 
> to use ipfilter rules. After further R & D I can see in the logs that mails 
> are being relayed to the "dfilt:" filter what I have defined in master.cf but 
> disclaimer is not being added in any of the mails and I dont know why SMTP 
> authentication is also started breaking as soon as I applied these settings. 
> I can provide more details if required.
> 

- apply the changes
- restart postfix
- at the beginning of your disclaimer script, add this:

/usr/bin/logger -i -p mail.info -t disclaimer "disclaimer called"

- do a test using your favourite mailer (thunderbird, outlook, ...) from
your LAN (so that the connection is redirected by iptables)

- show output of 'postconf -n'
- show logs for the test transaction (from the time mail enters postfix
until it gets out of postfix. feel free to replace private infos but do
so coherently. show _full_ log lines).


now, do a test with telnet. on the postfix box, do
telnet 192.168.1.23 25
EHLO localhost
MAIL FROM:<>
RCPT TO:<testaddr...@example.com>
DATA
Subject: testing altermime (test number=1)

testing
.
QUIT

replace "testaddress..." with a valid address of yours.

show the full transcript here. in particular, we want to see the reply
to the EHLO command (this is for the authentication part).

Also check the message you received and see if it has a disclaimer.

Reply via email to