Jordi Moles wrote:
> Hi,
> 
> i've been trying to set up policyd in my system for weeks, but i can't 
> get it working as i want.
> I'm using postfix and freebsd in a local machine. Postfix has both uses: 
> incoming and outgoing mails.
> The thing is that i've set up policyd to work on mysql and if i use this 
> server as "smtp server" from thunderbird, policyd logs its activities in 
> the maillog file and actually works as i want. However, if i run, for 
> example, a perl or php script which calls function mail(), policyd just 
> doesn't do anything, it doesn't even write anything in the logs.

This is because mail() doesn't connect to Postfix on port 25.

> Is that a normal behaviour? can i do anything at all to make postfix use 
> policyd when i run a script from the command line interface?

Unfortunately there isn't and its a Postfix limitation.

> The thing is that when i run a script, postfix logs that the email has 
> been sent but policyd doesn't appear anywhere. The lines written in the 
> log file in this case are exactly the same as the ones when i use the 
> stmp server from thunderbird, but it's just that the policyd lines are 
> omitted.

This is because its sent via /usr/sbin/sendmail so bypasses all
the restrictions.

Cami

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
policyd-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/policyd-users

Reply via email to