Anton Melser wrote: > ... > >> how does the application send mail? >> >> > > It's via the php mail function, which I believe just uses a > $ sendmail blablah... > internally (ie, it gets sent by postfix). >
Any thing sent through the sendmail command will not have SMTP restrictions placed upon it since the pickup daemon kicks in. You can redefine sendmail_path in PHP to a custom script that talks SMTP to apply restrictions (use Mail::MIME or the like in PHP, or Perl/Python/Ruby/etc). You can also set 'defer_transports = smtp' *IF* this is a test machine only. Note: this will hold all email via smtp until you ask it to send but it will NOT redirect anything. Just simply hold it in the queue. Read 'man postsuper' to see how to clear the queue if you choose this path and read all documents. The wrong command (ex. 'sendmail -q') will make these go out to the world. This is also a good way to debug real messages since the queue can be inspected. Brian