Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Problems using an autoresponder with pipe

152 views
Skip to first unread message

Alexandros Fragkiadakis

unread,
Jun 5, 2007, 6:53:40 AM6/5/07
to
Hi,

I'm trying to set up a mechanism for vacation messages, through postfix's
pipe. I've added in master.cf the following line:

#-----------------------------------
vacation unix - n n - - pipe
flags=Rhu user=vacation argv=/var/spool/vacation/vacation.pl
#-----------------------------------
vacation.pl is the script the does the autoresponding and vacation is a
user in linux.

my transport file is:
#-------------------------
vacation.mydomain vacation:
#-------------------------

another file i use is called vacation_alias:
#-------------------------
test@mydomain test@mydomain,te...@vacation.mydomain

#-------------------------

in main.cf:

#-----------------
transport_maps=hash:/etc/postfix/transport

virtual_alias_maps= hash:/etc/postfix/vacation_alias
#------------------


When i send emails to test@mydomain i got the following errors:

fatal: user= command-line attribute specifies mail system owner postfix
group id 100

warning: premature end-of-input on private/vacation socket while reading
input attribute name
Jun 5 13:31:33 hermes postfix/qmgr[963]: warning: private/vacation
socket: malformed response
Jun 5 13:31:33 hermes postfix/qmgr[963]: warning: transport vacation
failure -- see a previous warning/fatal/panic logfile record for the
problem description
Jun 5 13:31:33 hermes postfix/master[30619]: warning: process
/usr/libexec/postfix/pipe pid 1298 exit status 1
Jun 5 13:31:33 hermes postfix/master[30619]: warning:
/usr/libexec/postfix/pipe: bad command startup -- throttling
Jun 5 13:31:33 hermes postfix/qmgr[963]: 878252C076:
to=<te...@vacation.mydomain>, orig_to=<test@mydomain>, relay=none,
delay=2.6, delays=1.5/1.1/0/0, dsn=4.3.0, status=deferred (unknown mail
transport error)

What can be wrong?

Many thanks in advance!

Regards,

Alexandros

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

mouss

unread,
Jun 5, 2007, 7:33:05 AM6/5/07
to
Alexandros Fragkiadakis wrote:
> Hi,
>
> I'm trying to set up a mechanism for vacation messages, through postfix's
> pipe. I've added in master.cf the following line:
>
> #-----------------------------------
> vacation unix - n n - - pipe
> flags=Rhu user=vacation argv=/var/spool/vacation/vacation.pl
>

how do you get the recipient address?

> [snip]
>
>
> What can be wrong?
>

show your perl script.

Alexandros Fragkiadakis

unread,
Jun 5, 2007, 7:31:48 AM6/5/07
to

Recipients' addresses are stored in LDAP server. When i send mail to
test@mydomain, email is correctly placed in test's mailbox. But, the
problem it when the script tries to send the autoresponse. I'm using the
vacation script contained in postfixadmin package.

mouss

unread,
Jun 5, 2007, 8:56:59 AM6/5/07
to
Alexandros Fragkiadakis wrote:
> On Tue, June 5, 2007 2:33 pm, mouss wrote:
>
>> Alexandros Fragkiadakis wrote:
>>
>>
>>> Hi,
>>>
>>>
>>> I'm trying to set up a mechanism for vacation messages, through
>>> postfix's pipe. I've added in master.cf the following line:
>>>
>>> #-----------------------------------
>>> vacation unix - n n - - pipe flags=Rhu
>>> user=vacation argv=/var/spool/vacation/vacation.pl
>>>
>>>
>> how do you get the recipient address?
>>
>>
>>> [snip]
>>>
>>>
>>>
>>> What can be wrong?
>>>
>>>
>>>
>> show your perl script.
>>
>>
>
> Recipients' addresses are stored in LDAP server. When i send mail to
> test@mydomain, email is correctly placed in test's mailbox.
you did not understand my question: how does your script know the
recipient (the mailbox it is run for)? you are providing no arguments to
this script, nor setting the 'D' flag to have a Delivered-To header.

If you are getting the recipient from the To or CC header, then you're
just adding another broken responder.

> But, the
> problem it when the script tries to send the autoresponse. I'm using the
> vacation script contained in postfixadmin package.
>

I never used it.
see if you can use the "old" vacation program.


Alexandros Fragkiadakis

unread,
Jun 6, 2007, 4:01:12 AM6/6/07
to
On Tue, June 5, 2007 5:51 pm, Gary V wrote:

>> Alexandros Fragkiadakis wrote:
>>
>
>>> But, the
>>> problem it when the script tries to send the autoresponse. I'm using
>>> the vacation script contained in postfixadmin package.
>>>
>
> This may get you one step closer (I think I found this somewhere at
> http://high5.net/forum/ ):
>
>
> vacation unix - n n - - pipe flags=Rq
> user=vacation argv=/var/spool/vacation/vacation.pl -f ${sender} --
> ${recipient}
>
>
> BTW, make sure you use version 3.2 from svn.
>
>
> Gary V
>
>
The problem was that, the owner of the vacation script was in the same
group with postfix. I removed the user account into a different group and
it works now. :)
0 new messages