On Sun, Aug 10, 2014 at 08:26:21PM -0500, Karol Pomaski wrote: > I was trying to use my content_filter to create the vacation engine for > my users. It works as a content_filter but only if the emails are coming > from outside. I am trying to enable the vacation script to work also for > local emails. Lets say we create autoresponder for j...@domain.tld, so > now sending email to john from emi...@domain.tld I would get the > autoresponse. > > Anyone knows how to achieve it?
The issue is that that your vacation script likely injects the auto-responses into the queue via sendmail(1), i.e. local submission. To avoid loops, such configurations correctly disable filtering of local submission. The only way to avoid the problem is to ensure that auto-responses are sent into an input channel in which the vacation filter is not enabled. With local submission (i.e. without rewriting the vacation responder to speak SMTP) that is only possible with a multi-instance setup, in which a second instance delivers mail to its recipients without a vacation filter, then you could use "sendmail -C /config/dir" to submit filtered mail from the first instance into the second, allowing local submission in the first instance to be filtered. -- Viktor.