Questions tagged [pipe]
157 questions
0
votes
1 answer
Postfix sendmail sets original recipient
I have a postfix + dovecot with a spamassassin doing some content filtering on the postfix side. The problem is that with a recent update the originally available sendmail binary was replaced with the sendmail.postfix binary. Which seems to work…

lhw
- 141
- 6
0
votes
1 answer
reading stdin in shell
#!/bin/sh
#myVar=`date`#case 1
#myVar=`cat /dev/stdin`#case 2
myVar=($(< /dev/stdin)) #case 3
echo $myVar
exit 2
case 1 works
case 2 and 3 don't work.
When I test with either 2 or 3; there is no output and the script never exits
What I eventually…

Stewie
- 577
- 2
- 7
- 17
0
votes
2 answers
Skipping a "Press certain key to continue" in a bash script
I'm installing RVM for Ruby with the following command: curl -L https://get.rvm.io | sudo su myuser -c "bash -s stable --rails"
I specifically need it to be installed under that user - and it will work, but it requires the user to intervene by…

TJ Biddle
- 161
- 1
- 6
0
votes
2 answers
Postfix bounce local delivery with source address from orig_to
I am creating a python script to deliver local mail using various means. The problem is this:
This script has to accept multiple virtual domains defined in /etc/postfix/virtual
The script does the checking if the recipient is valid and the contents…

zeyus
- 33
- 1
- 7
0
votes
1 answer
Postfix "mail-to-script" pipe only delivers empty messages
i have a problem here.
I want that a incoming email is piped to a php script in the system through postfix.
My System is running with ispconfig 3, postfix and dovecot (< virtual mailbox users are saved in mysql).
I looked already into this one: How…

carrot
- 97
- 1
- 1
- 10
0
votes
1 answer
syslog-ng not flushing the pipe to external program
I have written a python script that takes log entries from syslog-ng and writes them to MongoDB (I couldn't do it with afmongodb driver because I need to do some special processing).
This is how it looks like in syslog-ng.conf:
destination…

johndodo
- 125
- 1
- 6
0
votes
1 answer
Enabling Pipe(|) functionality with Postfix for a .forward file
I'm running into an issue trying to get pipe forwarding working on postfix. Rather than running the script I'm intending to run, it's appending to my script. Testing on other servers this seems to work fine which leads me to believe this is a…

Justin
- 67
- 1
- 4
0
votes
1 answer
Postfix, set privileges for piping
I configured postfix on my box to call a php script on incoming e-mails, using virtual aliases. The script is being called, but it runs as "nobody" and thus I can't send signals to another program from my script that runs as a real user.
I found the…

Dexter
- 597
- 1
- 4
- 5
0
votes
1 answer
Forward mail to mailbox in addition to piping
I've set up postfix to pipe emails through rdm-mailhandler.rb (redmine), but I'd also like the emails to be delivered to the mailbox.
transport:
support@myhost.com redmine
master.cf:
redmine unix - n n - - pipe…

simendsjo
- 304
- 2
- 14
0
votes
1 answer
Catchall with Exim and Virtual Host
I tried following the tutorial at: http://www.phpshare.org/articles/Piping-Incoming-Mail-with-PHP.html to pipe incoming mail to a PHP script for a virtual host with Exim. I can't seem to get it working. Any ideas?
Here's my exim.conf…
John
0
votes
3 answers
how to "batch" output of "tail -F" or output all data in a stream every X seconds?
I am trying to monitor a log file in real-time.
Say I issue a command such as:
tail -F mysystem.log|grep -i error|mail ...
This is supposed to monitor my log file, every time it sees an error, email the line containing the error.
However, it is…

user23398
- 1,191
- 3
- 9
- 14
0
votes
2 answers
Piping emails from a development server to a text file
Is there a way to capture all mail from a unix server and pipe it to a log file? Or maybe at least all mail from PHP? I know of a trick where in php.ini sendmail is tricked byt this line:
sendmail_path = /Users/ckj/Dropbox/scripts/snydmail.sh
Where…

naxoc
- 101
- 1
0
votes
2 answers
How pipe email to PHP with Maildirs
I used to pipe incoming emails using:
|/path/to/php/script in .forward file at /home folder.
But the actual system I'm working on is based on Maìldir instead MBOX. So that solution does not work.
I have no clue how to pipe emails correctly to PHP.
Andre Resende
0
votes
3 answers
forward all mail on a specified domain to script
I run a disposable e-mail service that accepts all incoming mail and forwards it to a PHP script that stores it in a database for people to view. Before now, I have been on shared hosting with cPanel, which makes it easy to pipe e-mails to a script.…

Ashley Strout
- 218
- 2
- 13
0
votes
3 answers
Hang and broken pipe when rebooting over ssh
I'm trying to reboot one box from another, using the following command:
ssh 10.0.0.26 'reboot --force'
I expect this to block for a short while until the other box reboots, then return. What I see happening is no activity for a while, then if I…

me_and
- 158
- 1
- 9