Software :: Pipe Email Using Aliases File Or Script?
Jul 26, 2010
have some problems in doing my project, my project title is ' in investigate into implementation of certification authority with small network ' ( with using Postfix, openSSL ) and i have builded up two different networks using debian and after that i need to make a mail server, so i configured Postfix and made a mail server, i can send and receive emails on both networks. now i need a shell script on received emails using Postfix, like mail is coming from outside then will go to pipe and there should a script in bash, that will run and check the email and deliver to others, or throw it away some thing like that... here are some links where i was looking
Related to my last post in that it is another email issue, but something else I am having a problem with.
Debian Lenny on virtual KVM (32-bit, v5.0.7)
With Postfix it is necessary to have an alias for root, eg: root: someuser
In theory, and as far as I am aware, this can also be something like: root: someone@someaddress.tld
When I use the latter, though, the following happens whenever my system tries to redirect root email messages, but not when I use the root: someuser method in the aliases file (and, yes, I do know to use newaliases after amending the file).
The firewall is not an issue (tested with and without the firewall), nor are the resolvers, and the DNS for accounts on the box is all okay and fully propagated. Also, changing the email address to something like this.address@google.com does not work, either, - same error message.
I have an email alias and I want to capture some items in the email body and put it in a database.
I'm using Linux and Bash. In /etc/aliases I have: bexpense: "|/usr/bin/bexpense"In /usr/bin/bexpense, I have: #!/bin/bash echo $1 $2 >> bexpense.out
If I just run /usr/bin/bexpense with as "bexpense test test" I get "test test" in bexpense.out. If I send email to bexpense@myserver.com, I get a blank line in bexpense.out. How do I get the subject and body of the email?
Have tried to setup email aliases in sendmail so I can have multiple address pointing to one linux login. However none of the aliases seem to be accepting mail.
I get the following error message when trying to send to them.
I have tried restarting sendmail, have mapped the /etc/mail/virtusertable across to virtusertable.db with the following command.
Code:
Output of sendmail -bv is as follows and looks correct.
Code:
Have also added new domain into local-host-names file. I am stuck on what is left to check and why the messages are getting bounced back.
I would like to pipe a raw email from cPanel to curl, using curl to send the raw email via a post variable.wever, I am unsure of the command line syntax that would receive the piped email and post using curl.Ideally, the email would pipe to the curl command "curl -d 'emailvar=RAWEMAILHERE'
Can anyone tell me what the pros and cons are between heirloom-mailx vs mailutils? This is for ubuntu 10.04 LTS. AT this point my only purpose is to use the mail command line program to occasionally send log output to email aliases.
I've written a simple server in linux used fork to create a FIFO pipe.The server create two FIFO pipe.One for server read data from client and write data to client.Then another pipe for client read data from server and write data to server.When the server read data from a client used server-pipe and then write data to client.But ,if the client no read open the pipe,the server side write will be crashed because of a broken-pipe SIGPIPE. How to check whether the read side is opened?Or,how to catch the SIGPIPE,and then my server will still execute on,not crashed!!
I'm doing ping between 2 RH servers through a VPN site2site tunnel and in some times I got in the result pipe 2 and another pipe 3 as I mark it in blue color below.
e.g.
64 bytes from 192.168.1.10: icmp_seq=0 ttl=128 time=0.229 ms 64 bytes from 192.168.1.10: icmp_seq=1 ttl=128 time=0.287 ms 64 bytes from 192.168.1.10: icmp_seq=2 ttl=128 time=0.278 ms
[code]....
What's the difference between pipe 2 and pipe 3 and what's the meaning of it?
Defining tcsh aliases through a .aliases file has worked perfectly for me for years and years using cygwin and older versions of mandriva. I am encountering very annoying and mysterious problems when attempting to do the same thing with a .aliases file in a fedora 64-bit VM. Strangely, if I define aliases in the file, they won't work, but if I do so on the command line, then they will.
Here's a simple example: Suppose I define an alias for "ls" in the file: alias ls '/bin/ls' Then source the file. This happens: me: ls : Command not found. me: alias ls /bin/ls me: /bin/ls file1 file2 file3 etc. me: unalias ls me: ls file1 file2 file3 etc. me: alias ls '/bin/ls' me: ls file1 file2 file3 etc.
A second example: if I place either of these lines in my .aliases file: alias d '/bin/ls -alF !:1' alias d '/bin/ls -alF !*'and source the alias file, this happens:/ me: d Bad ! arg selector. However, if I define the alias on the command line: / me: alias d '/bin/ls -alF !*'then the alias behaves correctly:/ me: dtotal 376 drwxr-xr-x. 10 r r 4096 Apr 14 16:05 ./ drwxrwxr-x. 6 r r 4096 Feb 21 16:15 ../ drwxr-xr-x. 3 r r 4096 Apr 14 16:05 bin.v2/ -rwxr-xr-x. 1 r r 193872 Apr 14 15:35 bjam* -rw-r--r--. 1 r r 52804 Apr 14 17:20 bjam.my.log drwxr-xr-x. 77 r r 4096 Nov 17 09:49 boost/ -rw-r--r--. 1 r r 989 Nov 17 04:51 boost.css
I'm looking for an mp3 file in the firefox cache folder.I was thinking I could run the command 'find -size +2M' and pipe that output into the 'file' command to tell me which is an mp3, something like thisfind -size +2M | fileBut this doesn't work, what am I doing wrong?This is output Usage: file [-bcikLhnNrsvz0] [-e test] [-f namefile] [-F separator] [-m magicfiles] file...file -C -m magicfilesTry `file --help' for more information.
I want to pipe the output of ls in a folder to a file (lets call it test.txt) but when i do so, but when i do ls > test.txt in test.txt there is also test.txt (logical
I have a bug where WoW under wine is crashing my computer, and I want to get the data from the console, so I want to put it in a file, but I don't know how! None of the piping tutorials online helped at all.
I'm storing a list of strings in a file and would like to read the file and pipe each line returned to grep which in turn searches a directory for files containing the string.However this is not returning any output.
I am tying to read a file in with nawk whilst trying to take input from a pipe. I've come across the getline option and no matter how hard I try, I can't figure out the correct syntax. What I want to do is to take some input from the pipe and make a comparison with all of the values in a file and print a match.
My question deals with me creating a name pipe (file) in the my /group directory called chat.I then have to write a script to read from the named pipe and save data into a file called chat.log until the words End of File are passed to the program.
-When I created the named pipe file (chat) I used the mknod chat p command..Is this the correct command to create a named pipe file? -Then I'm having trouble with my script and how to make it run until the words End of File are entered in. This is what I have so far.
is there a way to pipe a video feed from virtual box to vlc and save it as a file? cause if i could then i could save streaming videos from places like hulu and netflix or save bluray movies to a avi file for latter use.
I need to be able to convert HTML email messages saved as text files (.eml or .msg) to PDF documents, one PDF per email, retaining formatting and images.
Are there any Linux tools that will allow me to do this from the command line (so it can be scripted)?
is there a way that I can insert a wav file in an email and play when the receiver opens the mail? I don't mean when he clicks on an attachment but when he opens the message file. Using Latest Thunderbird version.
My Slackware 13.0 system says it does not know what to use to open a .jpg file. I checked a couple of other threads which say one is supposed to use gimp but that it does not work. What does work?
I restarted a server yesterday for the first time in 2 years, but a shell script that send out an email every night via a mutt command line didn't work last night.
I don't know anything about mutt. do i have to start something in order for it to be able to work? is there a log i can look at to see what did or didn't happen making it not work?