summaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2008-08-05 15:02:49 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2008-08-05 15:02:49 +0200
commit15adf8f1fda97b5c744e92390ef7e41ce3d7f3b2 (patch)
tree8a70d11e1c38d74621ef4cdf0abe95c1c9a364ab /plugins
parent87576f85699afd0aba3f8a3716b343f8f568d1f0 (diff)
downloadrsyslog-15adf8f1fda97b5c744e92390ef7e41ce3d7f3b2.tar.gz
rsyslog-15adf8f1fda97b5c744e92390ef7e41ce3d7f3b2.tar.xz
rsyslog-15adf8f1fda97b5c744e92390ef7e41ce3d7f3b2.zip
bugfix: IPv6 addresses could not be specified in forwarding actions
New syntax @[addr]:port introduced to enable that. Root problem was IPv6 addresses contain colons. Also somewhat enhanced debugging messages.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/ommail/ommail.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/plugins/ommail/ommail.c b/plugins/ommail/ommail.c
index 39c2d21f..5faadce3 100644
--- a/plugins/ommail/ommail.c
+++ b/plugins/ommail/ommail.c
@@ -129,6 +129,8 @@ addRcpt(void __attribute__((unused)) *pVal, uchar *pNewVal)
pNew->pNext = lstRcpt;
lstRcpt = pNew;
+ dbgprintf("ommail::addRcpt adds recipient %s\n", pNewVal);
+
finalize_it:
if(iRet != RS_RET_OK) {
if(pNew != NULL)
@@ -155,6 +157,7 @@ WriteRcpts(instanceData *pData, uchar *pszOp, size_t lenOp, int iStatusToCheck)
assert(lenOp != 0);
for(pRcpt = pData->md.smtp.lstRcpt ; pRcpt != NULL ; pRcpt = pRcpt->pNext) {
+ dbgprintf("Sending '%s: <%s>'\n", pszOp, pRcpt->pszTo);
CHKiRet(Send(pData->md.smtp.sock, (char*)pszOp, lenOp));
CHKiRet(Send(pData->md.smtp.sock, ": <", sizeof(": <") - 1));
CHKiRet(Send(pData->md.smtp.sock, (char*)pRcpt->pszTo, strlen((char*)pRcpt->pszTo)));
@@ -696,6 +699,8 @@ CODEmodInit_QueryRegCFSLineHdlr
CHKiRet(objUse(errmsg, CORE_COMPONENT));
CHKiRet(objUse(glbl, CORE_COMPONENT));
+ dbgprintf("ommail version %s initializing\n", VERSION);
+
CHKiRet(omsdRegCFSLineHdlr( (uchar *)"actionmailsmtpserver", 0, eCmdHdlrGetWord, NULL, &pszSrv, STD_LOADABLE_MODULE_ID));
CHKiRet(omsdRegCFSLineHdlr( (uchar *)"actionmailsmtpport", 0, eCmdHdlrGetWord, NULL, &pszSrvPort, STD_LOADABLE_MODULE_ID));
CHKiRet(omsdRegCFSLineHdlr( (uchar *)"actionmailfrom", 0, eCmdHdlrGetWord, NULL, &pszFrom, STD_LOADABLE_MODULE_ID));