On Thu, 10 Apr 2014 12:48:34 +0200 Hanno Böck <[email protected]> wrote:
> I see.
> Then probably a different approach might be easier: Providing an
> option to change the name under that esmtpd gets logged into syslog.
>
> I think basically changing this line
> courieresmtpd.c: clog_open_syslog("courieresmtpd");
> from a hardcoded string to something configurable would do, right?
Quick and dirty patch attached that does this.
Sam, do you think you'd commit something like this?
--
Hanno Böck
http://hboeck.de/
mail/jabber: [email protected]
GPG: BBB51E42
diff -Naur courier-0.73.1/courier/module.esmtp/courieresmtpd.c courier-0.73.1-1/courier/module.esmtp/courieresmtpd.c
--- courier-0.73.1/courier/module.esmtp/courieresmtpd.c 2013-09-25 13:05:52.000000000 +0200
+++ courier-0.73.1-1/courier/module.esmtp/courieresmtpd.c 2014-04-10 12:50:55.454025200 +0200
@@ -1063,7 +1063,11 @@
if (p && *p && config_has_vhost(p))
config_set_local_vhost(p);
- clog_open_syslog("courieresmtpd");
+ if ( getenv("LOGNAME") ) {
+ clog_open_syslog(getenv("LOGNAME"));
+ } else {
+ clog_open_syslog("courieresmtpd");
+ }
if ((p=getenv("ESMTP_TLS")) && atoi(p))
{
signature.asc
Description: PGP signature
------------------------------------------------------------------------------ Put Bad Developers to Shame Dominate Development with Jenkins Continuous Integration Continuously Automate Build, Test & Deployment Start a new project now. Try Jenkins in the cloud. http://p.sf.net/sfu/13600_Cloudbees
_______________________________________________ courier-users mailing list [email protected] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
