On 17/02/09 03:54:18, Matus UHLAR - fantomas wrote: > I would like to use msmtp as sendmail for CGI/PHP scripts. > > For CGI scripts I would like to push extra header line to > SMTP server which would append UID of process that executed > msmtp to mail headers (e.g. "X-Sending-UID: %d"), to make > searching for broken scripts in case of spam outbreak easier > (we use suexec, so each user's scripts are executed under > their UID). PHP has such functionality (if patched with the > mail header patch) but CGI is something different :)
I often include extra headers in my scripts. If the first paragraph (ie, up to the first blank line) contains only headers then msmtp will treat them as such. You can use this to add "X" headers, Message-Ids etc and to expand the To and From headers (ie, [email protected] as the recipient in the command line can be expanded to "John Smith <[email protected]>" in the first paragraph of headers). HTH, Robert Thorsby A computing fellow from Dundee Once wrote an application in p... . But t'was better in sed And faster in ed, So he rewrote the damned thing in C. ------------------------------------------------------------------------------ Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H _______________________________________________ msmtp-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/msmtp-users
