I have linux (debian) box which is running fine. However I have problem I need to find out what program is sending emails when i use "mail" command. Or for that matter when a PHP script is sending emails with mail() function I need to know what program is sending those emails.
How can I find out?
Ps: To clear, I'd like to know what program is invoked when I (or a program) use the "mail" command.
There are 2-3 MTA's installed on my server but I can't find out which one is responsible for sending mail.