Floris Bos:
> Hi,
> 
> I am trying to limit the number of outgoing messages a single local Unix user 
> (web hosting customer) can send in a single day.
> My first thought was to create a policy server for this, but unfortuneately 
> Postfix does not supply the originating UID to the policy server, and the 
> "sender" field can be easily forged.

The policy server is for SMTP mail. 

postdrop is for the Postfuix sendmail command (i.e. local submission).

> So I'm looking for a different way, and found Postdrop does have a 
> "authorized_submit_users" parameter.
> The idea was to have that call a MySQL stored function that administers the 
> number of sent messages in the database, and returns a boolean indicating 
> wheter the user is allowed to send more messages.
> 
> 
> Unfortuneately, that does not seem to work either.
> When I create a config file with my database details, and add it to main.cf:
> 
> ==
> authorized_submit_users=mysql:/etc/postfix/mysql_outgoing_limit.cf

Instead of guessing, try to read the documentation.

man 5 postconf | less +/authorized_submit_users

        Wietse

Reply via email to